/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().setKeyArea(Vendor.CURRENCYS_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(this.getScreenRecord().getField(CurrencyReqScreenRecord.CURRENCYS_ID), Vendor.CURRENCYS_ID, null, null, null, null, true)); this.getScreenRecord().getField(CurrencyReqScreenRecord.CURRENCYS_ID).addListener(new FieldReSelectHandler(this)); ApTrx recApTrx = ((Vendor)this.getMainRecord()).addSelectBehaviors(); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(CurrencyReqScreenRecord.BALANCE_TOTAL), Vendor.VENDOR_BALANCE, true, true)); this.getMainRecord().addListener(new SubCountHandler(this.getScreenRecord().getField(CurrencyReqScreenRecord.TOTAL_TOTAL), Vendor.AMOUNT_SELECTED, true, true)); this.setEnabled(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.addMainKeyBehavior(); TrxStatus recTrxStatus = (TrxStatus)this.getRecord(TrxStatus.TRX_STATUS_FILE); EnableScreenHandler behavior = new EnableScreenHandler(ApTrx.TRX_STATUS_ID); this.getMainRecord().addListener(behavior); recTrxStatus.getTrxStatusID(TransactionType.ACCTPAY, ApTrx.AP_TRX_FILE, ApTrx.PREPAYMENT); behavior.addComparison(recTrxStatus.getField(TrxStatus.ID).getData()); recTrxStatus.getTrxStatusID(TransactionType.ACCTPAY, ApTrx.AP_TRX_FILE, ApTrx.DEBIT_MEMO); behavior.addComparison(recTrxStatus.getField(TrxStatus.ID).getData()); recTrxStatus.getTrxStatusID(TransactionType.ACCTPAY, ApTrx.AP_TRX_FILE, ApTrx.BROKER_PAYMENT); behavior.addComparison(recTrxStatus.getField(TrxStatus.ID).getData()); m_recSelectApTrx = ((Vendor)this.getRecord(Vendor.VENDOR_FILE)).addSelectBehaviors(); FilterApTrxHandler filter = new FilterApTrxHandler(null); m_recSelectApTrx.addListener(filter); filter.addTrxStatusID(ApTrx.INVOICE); filter.addTrxStatusID(ApTrx.INVOICE_NON_TOUR); filter.addTrxStatusID(ApTrx.CREDIT_MEMO); } /**