/** Initialize class fields. */
 public void init(
     Record record,
     ScreenLocation itsLocation,
     BasePanel parentScreen,
     Converter fieldConverter,
     int iDisplayFieldDesc,
     Map<String, Object> properties) {
   super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties);
 }
示例#2
0
 /** Add all the screen listeners. */
 public void addListeners() {
   super.addListeners();
   this.addMainKeyBehavior();
   this.setEnabled(false);
   this.getMainRecord().getField(ApTrx.CODE).setEnabled(true);
   this.getMainRecord().getField(ApTrx.DESCRIPTION).setEnabled(true);
   this.getMainRecord().getField(ApTrx.START_SERVICE_DATE).setEnabled(true);
   this.getMainRecord().getField(ApTrx.END_SERVICE_DATE).setEnabled(true);
   this.getMainRecord().getField(ApTrx.FINALIZATION_DATE).setEnabled(true);
   this.getMainRecord().getField(ApTrx.INVOICE_NO).setEnabled(true);
   this.getMainRecord().getField(ApTrx.INVOICE_DATE).setEnabled(true);
 }
示例#3
0
  /** Add all the screen listeners. */
  public void addListeners() {
    super.addListeners();

    this.getScreenRecord()
        .getField(McoScreenRecord.AIRLINE_ID)
        .addListener(
            new InitFieldHandler(
                this.getRecord(ArControl.AR_CONTROL_FILE).getField(ArControl.AIRLINE_ID)));

    TrxStatus recTrxStatus = (TrxStatus) this.getRecord(TrxStatus.TRX_STATUS_FILE);
    recTrxStatus.getTrxStatusID(TransactionType.ACCTREC, Mco.MCO_FILE, Mco.SUBMITTED);
    this.getMainRecord().addListener(new SubFileFilter(recTrxStatus));

    this.getMainRecord().addListener(new McoCollCalcNetBeh(null));

    this.getMainRecord()
        .addListener(
            new CompareFileFilter(
                Mco.AIRLINE_ID,
                this.getScreenRecord().getField(McoScreenRecord.AIRLINE_ID),
                "=",
                null,
                false));

    this.getMainRecord()
        .getField(Mco.PAID)
        .addListener(
            new MoveOnChangeHandler(
                this.getMainRecord().getField(Mco.AMOUNT_PAID),
                this.getScreenRecord().getField(McoScreenRecord.NET)));
    FieldListener fieldBehavior =
        new MoveOnChangeHandler(
            this.getMainRecord().getField(Mco.DATE_PAID),
            this.getScreenRecord().getField(McoScreenRecord.TODAY),
            false,
            true);
    fieldBehavior.setRespondsToMode(DBConstants.INIT_MOVE, false);
    fieldBehavior.setRespondsToMode(DBConstants.READ_MOVE, false);
    this.getMainRecord().getField(Mco.AMOUNT_PAID).addListener(fieldBehavior);

    this.setEnabled(false);
    this.getScreenRecord().getField(McoScreenRecord.AIRLINE_ID).setEnabled(true);
    this.getMainRecord().getField(Mco.DATE_PAID).setEnabled(true);
    this.getMainRecord().getField(Mco.AMOUNT_PAID).setEnabled(true);
    this.getMainRecord().getField(Mco.PAID).setEnabled(true);
  }
示例#4
0
 /** Override this to open the other files in the query. */
 public void openOtherRecords() {
   super.openOtherRecords();
   new ArControl(this);
   new TrxStatus(this);
 }