Package de.willuhn.jameica.hbci.gui.controller

Examples of de.willuhn.jameica.hbci.gui.controller.SepaSammelLastBuchungControl


  /**
   * @see de.willuhn.jameica.gui.AbstractView#bind()
   */
  public void bind() throws Exception
  {
    final SepaSammelLastBuchungControl control = new SepaSammelLastBuchungControl(this);
    final SepaSammelTransfer l = control.getBuchung().getSammelTransfer();
   
    GUI.getView().setTitle(i18n.tr("SEPA-Sammellastschrift {0}: Buchung bearbeiten",l.getBezeichnung()));

    // Zusaetzlicher Back-Button, um zurueck zum Auftrag zu kommen
    GUI.getView().addPanelButton(new PanelButton("stock_navigator-shift-left.png",new SepaSammelLastschriftNew(){
      public void handleAction(Object context) throws ApplicationException
      {
        super.handleAction(l);
      }
    },i18n.tr("Zur�ck zum Sammelauftrag")));
   

    ColumnLayout cols = new ColumnLayout(getParent(),2);
   
    // Linke Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Zahlungspflichtiger"));
      container.addLabelPair(i18n.tr("Name"), control.getEmpfaengerName());
      container.addLabelPair(i18n.tr("IBAN"), control.getEmpfaengerKonto());   
      container.addLabelPair(i18n.tr("BIC"),  control.getEmpfaengerBic());
      container.addCheckbox(control.getStoreEmpfaenger(),i18n.tr("In Adressbuch �bernehmen"));
    }
   
    // Rechte Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Mandat"));
      container.addInput(control.getCreditorId());
      container.addInput(control.getMandateId());
      container.addInput(control.getSignatureDate());
      container.addHeadline(i18n.tr("SEPA"));
      container.addInput(control.getEndToEndId());
    }

    Container container = new SimpleContainer(getParent());
    container.addHeadline(i18n.tr("Details"));
    container.addLabelPair(i18n.tr("Verwendungszweck"), control.getZweck());
    container.addLabelPair(i18n.tr("Betrag"),           control.getBetrag());
   
    ButtonArea buttonArea = new ButtonArea();
    Button delete = new Button(i18n.tr("L�schen"), new DBObjectDelete(),control.getBuchung(),false,"user-trash-full.png");
    delete.setEnabled(!l.ausgefuehrt());
    buttonArea.addButton(delete);

    Button store = new Button(i18n.tr("Speichern"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        control.handleStore();
      }
    },null,false,"document-save.png");
    store.setEnabled(!l.ausgefuehrt());
    buttonArea.addButton(store);
   
    // BUGZILLA 116 http://www.willuhn.de/bugzilla/show_bug.cgi?id=116
    Button store2 = new Button(i18n.tr("Speichern und n�chste Buchung"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        if (control.handleStore())
        {
          new de.willuhn.jameica.hbci.gui.action.SepaSammelLastBuchungNew().handleAction(l);
          // Wir schicken das hier nochmal, weil beim Start einer neuen View die Statusbar geleert wird
          Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Buchung gespeichert"),StatusBarMessage.TYPE_SUCCESS));
        }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.gui.controller.SepaSammelLastBuchungControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.