/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getScreenRecord().getField(ProductScreenRecord.START_DATE), Inventory.INV_DATE, null, null, null, null)); listener.setEndKey(false); this.getScreenRecord().getField(ProductScreenRecord.START_DATE).addListener(new FieldReSelectHandler(this)); if (Boolean.TRUE.toString().equalsIgnoreCase(this.getProperty(this.getScreenRecord().getField(ProductScreenRecord.READ_ONLY).getFieldName()))) { this.setAppending(false); this.setEditing(false); } } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getScreenRecord().getField(ProductScreenRecord.START_DATE), Inventory.INV_DATE, null, null, null, null)); listener.setEndKey(false); this.getScreenRecord().getField(ProductScreenRecord.START_DATE).addListener(new FieldReSelectHandler(this)); if (Boolean.TRUE.toString().equalsIgnoreCase(this.getProperty(this.getScreenRecord().getField(ProductScreenRecord.READ_ONLY).getFieldName()))) { this.setAppending(false); this.setEditing(false); } } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getScreenRecord().getField(ProductScreenRecord.START_DATE), BookingDetail.DETAIL_DATE, null, null, null, null)); listener.setEndKey(false); if (this.getScreenRecord().getField(ProductScreenRecord.START_DATE).isNull()) this.getScreenRecord().getField(ProductScreenRecord.START_DATE).setValue(DateTimeField.currentTime(), DBConstants.DISPLAY, DBConstants.INIT_MOVE); this.getScreenRecord().getField(ProductScreenRecord.START_DATE).addListener(new FieldReSelectHandler(this)); this.setAppending(false); this.setEditing(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getScreenRecord().getField(ProductScreenRecord.START_DATE), BookingDetail.DETAIL_DATE, null, null, null, null)); listener.setEndKey(false); if (this.getScreenRecord().getField(ProductScreenRecord.START_DATE).isNull()) this.getScreenRecord().getField(ProductScreenRecord.START_DATE).setValue(DateTimeField.currentTime(), DBConstants.DISPLAY, DBConstants.INIT_MOVE); this.getScreenRecord().getField(ProductScreenRecord.START_DATE).addListener(new FieldReSelectHandler(this)); this.setAppending(false); this.setEditing(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(AcctDetail.TRX_DATE_KEY); SubFileFilter listener = new SubFileFilter(this.getScreenRecord().getField(GenledScreenRecord.START_DATE), AcctDetail.TRX_DATE, null, null, null, null); listener.setEndKey(false); this.getMainRecord().addListener(listener); listener = new SubFileFilter(this.getScreenRecord().getField(GenledScreenRecord.END_DATE), AcctDetail.TRX_DATE, null, null, null, null); listener.setInitialKey(false); this.getMainRecord().addListener(listener); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_COUNT), false, true)); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_TOTAL), AcctDetail.AMOUNT_LOCAL, false, true)); this.setProperty(LIMIT_PARAM, LIMIT_UNLIMITED); // Unlimited detail records } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(Account.ACCOUNT_NO_KEY); SubFileFilter listener = new SubFileFilter(((AccountField)this.getScreenRecord().getField(GenledScreenRecord.START_ACCOUNT_ID)).getReferenceRecord().getField(Account.ACCOUNT_NO), Account.ACCOUNT_NO, null, null, null, null); listener.setEndKey(false); this.getMainRecord().addListener(listener); listener = new SubFileFilter(((AccountField)this.getScreenRecord().getField(GenledScreenRecord.END_ACCOUNT_ID)).getReferenceRecord().getField(Account.ACCOUNT_NO), Account.ACCOUNT_NO, null, null, null, null); listener.setInitialKey(false); this.getMainRecord().addListener(listener); // Profit Center filter this.getMainRecord().addListener(new ProfitCenterFilter(Account.ACCOUNT_NO, this.getScreenRecord().getField(GenledScreenRecord.PROFIT_CENTER_ID))); CalcAcctBalHandler calcListener = null; this.getMainRecord().addListener(calcListener = new CalcAcctBalHandler(this.getScreenRecord().getField(GenledScreenRecord.END_BALANCE), null, this.getScreenRecord().getField(GenledScreenRecord.CUTOFF_DATE), true, this.getScreenRecord().getField(GenledScreenRecord.SUB_TOTAL))); calcListener.getAcctDetail().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_TOTAL), AcctDetail.AMOUNT_LOCAL, false, false)); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_COUNT), false, true)); this.setProperty(LIMIT_PARAM, LIMIT_UNLIMITED); // Unlimited detail records } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(AcctDetail.SOURCE_KEY); SubFileFilter listener = new SubFileFilter(this.getScreenRecord().getField(GenledScreenRecord.START_SOURCE), AcctDetail.SOURCE, null, null, null, null); listener.setEndKey(false); this.getMainRecord().addListener(listener); listener = new SubFileFilter(this.getScreenRecord().getField(GenledScreenRecord.END_SOURCE), AcctDetail.SOURCE, null, null, null, null); listener.setInitialKey(false); this.getMainRecord().addListener(listener); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_COUNT), false, true)); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.REPORT_TOTAL), AcctDetail.AMOUNT_LOCAL, false, true)); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(GenledScreenRecord.SUB_TOTAL), AcctDetail.AMOUNT_LOCAL, false, true, true)); this.getRecord(AcctDetail.ACCT_DETAIL_FILE).addListener(new ExtractRangeFilter(AcctDetail.TRX_DATE, this.getScreenRecord().getField(GenledScreenRecord.START_DATE), this.getScreenRecord().getField(GenledScreenRecord.END_DATE), ExtractRangeFilter.PAD_END_FIELD)); this.getRecord(AcctDetail.ACCT_DETAIL_FILE).addListener(new ExtractRangeFilter(AcctDetail.TRX_ENTRY, this.getScreenRecord().getField(GenledScreenRecord.START_ENTRY), this.getScreenRecord().getField(GenledScreenRecord.END_ENTRY), ExtractRangeFilter.PAD_END_FIELD)); this.setProperty(LIMIT_PARAM, LIMIT_UNLIMITED); // Unlimited detail records } /**
listener.setEndKey(false); this.getMainRecord().addListener(listener); listener = new SubFileFilter(((AccountField)this.getScreenRecord().getField(GenledScreenRecord.END_ACCOUNT_ID)).getReferenceRecord().getField(Account.ACCOUNT_NO), Account.ACCOUNT_NO, null, null, null, null); listener.setEndKey(false); this.getRecord(AcctDetail.ACCT_DETAIL_FILE).addListener(listener);