예제 #1
0
  /**
   * Add the toolbars that belong with this screen.
   *
   * @return The new toolbar.
   */
  public ToolScreen addToolbars() {
    ToolScreen screen = super.addToolbars();

    this.getScreenRecord()
        .getField(CashBatchScreenRecord.BOOKING_ID)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    this.getScreenRecord()
        .getField(CashBatchScreenRecord.AIRLINE_ID)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.DONT_SET_ANCHOR),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    this.getScreenRecord()
        .getField(CashBatchScreenRecord.MCO_NO)
        .setupDefaultView(
            screen.getNextLocation(
                ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.DONT_SET_ANCHOR),
            screen,
            ScreenConstants.DEFAULT_DISPLAY);
    return screen;
  }
예제 #2
0
 /** Add button(s) to the toolbar. */
 public void addToolbarButtons(ToolScreen toolScreen) {
   new SCannedBox(
       toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
       toolScreen,
       null,
       ScreenConstants.DEFAULT_DISPLAY,
       null,
       MenuConstants.FORMDETAIL,
       MenuConstants.FORMDETAIL,
       MenuConstants.FORMDETAIL,
       null);
 }
예제 #3
0
 /** Add button(s) to the toolbar. */
 public void addToolbarButtons(ToolScreen toolScreen) {
   super.addToolbarButtons(toolScreen);
   BaseApplication application = (BaseApplication) this.getTask().getApplication();
   new SCannedBox(
       toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
       toolScreen,
       null,
       ScreenConstants.DEFAULT_DISPLAY,
       null,
       application
           .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
           .getString(AcctDetailDist.DIST_DISTRIBUTION),
       AcctDetailDist.DIST_DISTRIBUTION,
       AcctDetailDist.DIST_DISTRIBUTION,
       null);
 }
예제 #4
0
  /** Add button(s) to the toolbar. */
  public void addToolbarButtons(ToolScreen toolScreen) {
    BaseApplication application = (BaseApplication) this.getTask().getApplication();

    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(ApTrx.PRODUCT_DETAIL),
        MenuConstants.FORMDETAIL,
        MenuConstants.FORMDETAIL,
        null);

    String strPaymentHistory = PaymentHistory.PAYMENT_HISTORY;
    strPaymentHistory =
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(strPaymentHistory);
    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strPaymentHistory,
        PaymentHistory.PAYMENT_HISTORY_ICON,
        PaymentHistory.PAYMENT_HISTORY_FILE,
        null);

    strPaymentHistory = PaymentHistory.PAYMENT_DISTRIBUTION;
    strPaymentHistory =
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(strPaymentHistory);
    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strPaymentHistory,
        PaymentHistory.PAYMENT_DISTRIBUTION_ICON,
        PaymentHistory.PAYMENT_DISTRIBUTION,
        null);

    new SCannedBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        application
            .getResources(ResourceConstants.ACCTPAY_RESOURCE, true)
            .getString(AcctDetailDist.DIST_DISTRIBUTION),
        AcctDetailDist.DIST_DISTRIBUTION,
        AcctDetailDist.DIST_DISTRIBUTION,
        null);

    String strVendor = Vendor.VENDOR_FILE + ' ' + MenuConstants.DISPLAY;
    strVendor =
        application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(strVendor);
    String strTour = Tour.TOUR_FILE + ' ' + MenuConstants.DISPLAY;
    strTour = application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(strTour);
    new SButtonBox(
        toolScreen.getNextLocation(ScreenConstants.FLUSH_LEFT, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strVendor,
        MenuConstants.DISPLAY,
        Vendor.VENDOR_FILE,
        null);
    new SButtonBox(
        toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR),
        toolScreen,
        null,
        ScreenConstants.DEFAULT_DISPLAY,
        null,
        strTour,
        MenuConstants.DISPLAY,
        Tour.TOUR_FILE,
        null);
  }