// Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
// 
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
// 
// 	public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// 	public static final String ACCOUNTING_SYSTEM_NAVISION_XML = "NAVISIONXML";
// 	public static final String ACCOUNTING_SYSTEM_SFS = "SFS";
// 
// 	public static final String PROPERTY_ACCOUNTING_SYSTEM = "egov.external.accounting.system";
// 	public static final String PROPERTY_ACCOUNTING_FETCHER_SHOW_INPUTS = "egov.accounting.show.all.inputs";
// 	public static final String PROPERTY_ACCOUNTING_SHOW_AGRESSO_VIEW = "egov.accounting.show.agresso.view";
// 	
// 	public static final String SESSION_PRODUCT_MAP = "accounting_product_map";
// 	public static final String SESSION_PAYMENT_METHOD_MAP = "accounting_payment_method_map";
// 
// }
// 
// Path: src/java/is/idega/idegaweb/egov/accounting/data/AccountingFiles.java
// public interface AccountingFiles extends IDOEntity {
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getCaseCode
// 	 */
// 	public CaseCode getCaseCode();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getFile
// 	 */
// 	public ICFile getFile();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getCreatedDate
// 	 */
// 	public Timestamp getCreatedDate();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getMonth
// 	 */
// 	public Date getMonth();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setCaseCode
// 	 */
// 	public void setCaseCode(CaseCode code);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setFile
// 	 */
// 	public void setFile(ICFile file);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setCreatedDate
// 	 */
// 	public void setCreatedDate(Timestamp createdDate);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setMonth
// 	 */
// 	public void setMonth(Date month);
// }


import is.idega.idegaweb.egov.accounting.business.AccountingConstants;
import is.idega.idegaweb.egov.accounting.data.AccountingFiles;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import com.idega.business.IBORuntimeException;
import com.idega.core.file.data.ICFile;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Link;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.DateInput;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.util.IWTimestamp;
import com.idega.util.PresentationUtil;
		table.setCellspacing(0);
		table.setStyleClass("ruler");
		table.setStyleClass("adminTable");
		
		TableRowGroup group = table.createHeaderRowGroup();
		TableRow row = group.createRow();
		TableCell2 cell = row.createHeaderCell();
		cell.setStyleClass("firstColumn");
		cell.setStyleClass("fileName");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.file_name", "File name")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("createdDate");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.created_date", "Created date")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("month");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.month", "Month")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("remove");
		cell.setStyleClass("lastColumn");
		cell.add(Text.getNonBrakingSpace());

		group = table.createBodyRowGroup();
		int iRow = 1;
		
		Collection files = getAccountingKeyBusiness(iwc).getAccountingFiles(this.caseCode);
		Iterator iter = files.iterator();
		while (iter.hasNext()) {
// Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
// 
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
// 
// 	public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// 	public static final String ACCOUNTING_SYSTEM_NAVISION_XML = "NAVISIONXML";
// 	public static final String ACCOUNTING_SYSTEM_SFS = "SFS";
// 
// 	public static final String PROPERTY_ACCOUNTING_SYSTEM = "egov.external.accounting.system";
// 	public static final String PROPERTY_ACCOUNTING_FETCHER_SHOW_INPUTS = "egov.accounting.show.all.inputs";
// 	public static final String PROPERTY_ACCOUNTING_SHOW_AGRESSO_VIEW = "egov.accounting.show.agresso.view";
// 	
// 	public static final String SESSION_PRODUCT_MAP = "accounting_product_map";
// 	public static final String SESSION_PAYMENT_METHOD_MAP = "accounting_payment_method_map";
// 
// }
// 
// Path: src/java/is/idega/idegaweb/egov/accounting/data/AccountingFiles.java
// public interface AccountingFiles extends IDOEntity {
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getCaseCode
// 	 */
// 	public CaseCode getCaseCode();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getFile
// 	 */
// 	public ICFile getFile();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getCreatedDate
// 	 */
// 	public Timestamp getCreatedDate();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#getMonth
// 	 */
// 	public Date getMonth();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setCaseCode
// 	 */
// 	public void setCaseCode(CaseCode code);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setFile
// 	 */
// 	public void setFile(ICFile file);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setCreatedDate
// 	 */
// 	public void setCreatedDate(Timestamp createdDate);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.accounting.data.AccountingFilesBMPBean#setMonth
// 	 */
// 	public void setMonth(Date month);
// }


// Path: src/java/is/idega/idegaweb/egov/accounting/presentation/AccountingEntryFetcher.java
import is.idega.idegaweb.egov.accounting.business.AccountingConstants;
import is.idega.idegaweb.egov.accounting.data.AccountingFiles;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import com.idega.business.IBORuntimeException;
import com.idega.core.file.data.ICFile;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Link;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.DateInput;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.util.IWTimestamp;
import com.idega.util.PresentationUtil;

		table.setCellspacing(0);
		table.setStyleClass("ruler");
		table.setStyleClass("adminTable");
		
		TableRowGroup group = table.createHeaderRowGroup();
		TableRow row = group.createRow();
		TableCell2 cell = row.createHeaderCell();
		cell.setStyleClass("firstColumn");
		cell.setStyleClass("fileName");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.file_name", "File name")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("createdDate");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.created_date", "Created date")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("month");
		cell.add(new Text(this.iwrb.getLocalizedString("accounting_fetcher.month", "Month")));
		
		cell = row.createHeaderCell();
		cell.setStyleClass("remove");
		cell.setStyleClass("lastColumn");
		cell.add(Text.getNonBrakingSpace());

		group = table.createBodyRowGroup();
		int iRow = 1;
		
		Collection files = getAccountingKeyBusiness(iwc).getAccountingFiles(this.caseCode);
		Iterator iter = files.iterator();
		while (iter.hasNext()) {
			AccountingFiles file = (AccountingFiles) iter.next();