Examples of SepaDauerauftrag


Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public Input getLetzteZahlung() throws RemoteException
  {
    if (letzteZahlung != null)
      return letzteZahlung;

    SepaDauerauftrag t = getTransfer();
    Date d = t.getLetzteZahlung();

    letzteZahlung = new DateInput(d,HBCI.DATEFORMAT);
    letzteZahlung.setComment("");
    letzteZahlung.setTitle(i18n.tr("Datum der letzten Zahlung"));
    letzteZahlung.setText(i18n.tr("Bitte geben Sie das Datum der letzten Zahlung ein"));
    letzteZahlung.addListener(new Listener() {
      public void handleEvent(Event event)
      {
        // Nur, um den Parser zu triggern
        letzteZahlung.getValue();
      }
   
    });

    if (t.isActive())
      letzteZahlung.setEnabled(getBPD().getBoolean("lastexeceditable",true));
   
    return letzteZahlung;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public AddressInput getEmpfaengerName() throws RemoteException
  {
    if (empfName != null)
      return empfName;
   
    SepaDauerauftrag t = getTransfer();

    empfName = new AddressInput(t.getGegenkontoName(), AddressFilter.FOREIGN);
    empfName.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS_RELAX);
    empfName.setMandatory(true);
    empfName.addListener(new EmpfaengerListener());
    if (t.isActive())
    {
      boolean changable = getBPD().getBoolean("recnameeditable",true) && getBPD().getBoolean("recktoeditable",true);
      empfName.setEnabled(changable);
    }
    return empfName;
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public TextInput getEmpfaengerKonto() throws RemoteException
  {
    if (empfkto != null)
      return empfkto;

    SepaDauerauftrag t = getTransfer();
    empfkto = new IBANInput(t.getGegenkontoNummer(),this.getEmpfaengerBic());
    empfkto.setMandatory(true);
    if (t.isActive())
      empfkto.setEnabled(getBPD().getBoolean("recktoeditable",true));
    return empfkto;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public TextInput getEmpfaengerBic() throws RemoteException
  {
    if (this.bic != null)
      return this.bic;
   
    SepaDauerauftrag t = getTransfer();
    this.bic = new BICInput(t.getGegenkontoBLZ());
    this.bic.setMandatory(true);
    if (t.isActive())
      this.bic.setEnabled(getBPD().getBoolean("recktoeditable",true));
    return this.bic;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public DecimalInput getBetrag() throws RemoteException
  {
    if (betrag != null)
      return betrag;
   
    SepaDauerauftrag t = getTransfer();
    double d = t.getBetrag();
    if (d == 0.0d) d = Double.NaN;
    betrag = new DecimalInput(d,HBCI.DECIMALFORMAT);

    Konto k = t.getKonto();
    betrag.setComment(k == null ? "" : k.getWaehrung());
    betrag.setMandatory(true);
    if (t.isActive())
      betrag.setEnabled(getBPD().getBoolean("valueeditable",true));
   
    new KontoListener().handleEvent(null);

    return betrag;
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

  public TextInput getZweck() throws RemoteException
  {
    if (zweck != null)
      return zweck;
   
    SepaDauerauftrag t = getTransfer();
    zweck = new TextInput(getTransfer().getZweck(),HBCIProperties.HBCI_FOREIGNTRANSFER_USAGE_MAXLENGTH);
    zweck.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS_RELAX);
    zweck.setMandatory(true);
    if (t.isActive())
      zweck.setEnabled(getBPD().getBoolean("usageeditable",true));
    return zweck;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

   * Speichert den Geld-Transfer.
   * @return true, wenn das Speichern erfolgreich war, sonst false.
   */
  public synchronized boolean handleStore()
  {
    SepaDauerauftrag t = null;
   
    try
    {
      t = this.getTransfer();
     
      t.transactionBegin();

      Double d = (Double) getBetrag().getValue();
      t.setBetrag(d == null ? Double.NaN : d.doubleValue());
     
      t.setKonto((Konto)getKontoAuswahl().getValue());
      t.setErsteZahlung((Date)getErsteZahlung().getValue());
      t.setLetzteZahlung((Date)getLetzteZahlung().getValue());
      t.setTurnus((Turnus)getTurnus().getValue());
      t.setZweck((String)getZweck().getValue());

      String kto  = (String)getEmpfaengerKonto().getValue();
      String name = getEmpfaengerName().getText();
      String bic  = (String) getEmpfaengerBic().getValue();

      t.setGegenkontoNummer(kto);
      t.setGegenkontoName(name);
      t.setGegenkontoBLZ(bic);
     
      t.store();

      Boolean store = (Boolean) getStoreEmpfaenger().getValue();
      if (store.booleanValue())
      {
        HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
        e.setIban(kto);
        e.setName(name);
        e.setBic(bic);
       
        // Zu schauen, ob die Adresse bereits existiert, ueberlassen wir der Action
        new EmpfaengerAdd().handleAction(e);
      }
      GUI.getStatusBar().setSuccessText(i18n.tr("Auftrag gespeichert"));
      t.transactionCommit();

      if (t.getBetrag() > Settings.getUeberweisungLimit())
        GUI.getView().setErrorText(i18n.tr("Warnung: Auftragslimit �berschritten: {0} ", HBCI.DECIMALFORMAT.format(Settings.getUeberweisungLimit()) + " " + getTransfer().getKonto().getWaehrung()));
     
      return true;
    }
    catch (Exception e)
    {
      if (t != null) {
        try {
          t.transactionRollback();
        }
        catch (Exception xe) {
          Logger.error("rollback failed",xe);
        }
      }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

   */
  public void handleAction(Object context) throws ApplicationException
  {
    I18N i18n = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getI18N();

    SepaDauerauftrag d = null;

    if (context instanceof SepaDauerauftrag)
    {
      d = (SepaDauerauftrag) context;
    }
    else if (context instanceof Konto)
    {
      try {
        Konto k = (Konto) context;
        d = (SepaDauerauftrag) Settings.getDBService().createObject(SepaDauerauftrag.class,null);
        if (!k.hasFlag(Konto.FLAG_DISABLED) && !k.hasFlag(Konto.FLAG_OFFLINE))
          d.setKonto(k);
      }
      catch (RemoteException e)
      {
        // Dann halt nicht
      }
    }
    else if (context instanceof Address)
    {
      try {
        Address e = (Address) context;
        d = (SepaDauerauftrag) Settings.getDBService().createObject(SepaDauerauftrag.class,null);
        d.setGegenkonto(e);
      }
      catch (RemoteException e)
      {
        throw new ApplicationException(i18n.tr("Fehler beim Anlegen des Dauerauftrages"));
      }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

    if (! (context instanceof SepaDauerauftrag))
      throw new ApplicationException(i18n.tr("Kein SEPA-Dauerauftrag angegeben"));

    try
    {
      final SepaDauerauftrag d = (SepaDauerauftrag) context;
     
      SepaDauerauftragDialog dd = new SepaDauerauftragDialog(d,SepaDauerauftragDialog.POSITION_CENTER);
      try
      {
        if (!((Boolean)dd.open()).booleanValue())
          return;
      }
      catch (OperationCanceledException oce)
      {
        Logger.info(oce.getMessage());
        return;
      }
      catch (Exception e)
      {
        Logger.error("error while showing confirm dialog",e);
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehler beim Ausf�hren des SEPA-Dauerauftrages"),StatusBarMessage.TYPE_ERROR));
        return;
      }

      Konto konto = d.getKonto();
      Class<SynchronizeJobSepaDauerauftragStore> type = SynchronizeJobSepaDauerauftragStore.class;

      BeanService bs = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeEngine engine   = bs.get(SynchronizeEngine.class);
      SynchronizeBackend backend = engine.getBackend(type,konto);
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.SepaDauerauftrag

    if (!(data instanceof SepaDauerauftrag))
      throw new ApplicationException(i18n.tr("Bitte w�hlen Sie einen Auftrag aus"));
   
    try
    {
      SepaDauerauftrag a = (SepaDauerauftrag) data;
      Konto k            = a.getKonto();
     
      // Die eigentlich Tabelle mit den Werten
      DefaultGridLook look = new DefaultGridLook(5,5);
      GridPrint table = new GridPrint("l:p:n, l:d:g",look);

      // Konto
      table.add(new TextPrint(i18n.tr("Konto"),fontNormal));
      table.add(new TextPrint(notNull(k != null ? k.getLongName() : null),fontNormal));
     
      // Leerzeile
      table.add(new LineBreakPrint(fontNormal));
      table.add(new LineBreakPrint(fontNormal));
     
      // Empfaenger
      {
        String blz = a.getGegenkontoBLZ();
       
        table.add(new TextPrint(i18n.tr("Gegenkonto"),fontNormal));
        table.add(new TextPrint(notNull(a.getGegenkontoName()),fontBold));
        table.add(new EmptyPrint());
        if (blz != null && blz.length() > 0)
          table.add(new TextPrint(i18n.tr("{0} [BLZ: {1}]\nKonto: {2}",notNull(HBCIProperties.getNameForBank(blz)),blz,notNull(a.getGegenkontoNummer())),fontNormal));
        else
          table.add(new EmptyPrint());
      }

      // Leerzeile
      table.add(new LineBreakPrint(fontNormal));
      table.add(new LineBreakPrint(fontNormal));
     
      // Verwendungszweck
      {
        String usage = VerwendungszweckUtil.toString(a,"\n");
        table.add(new TextPrint(i18n.tr("Verwendungszweck"),fontNormal));
        table.add(new TextPrint(notNull(usage),fontNormal));
      }

      // Leerzeile
      table.add(new LineBreakPrint(fontNormal));
      table.add(new LineBreakPrint(fontNormal));
     
      // Betrag
      {
        double betrag = a.getBetrag();
        String curr = k != null ? k.getWaehrung() : HBCIProperties.CURRENCY_DEFAULT_DE;
       
        table.add(new TextPrint(i18n.tr("Betrag"),fontNormal));
        table.add(new TextPrint(betrag == 0.0d || Double.isNaN(betrag) ? "-" : (HBCI.DECIMALFORMAT.format(betrag) + " " + curr),fontBold));
      }

      // Leerzeile
      table.add(new LineBreakPrint(fontNormal));
      table.add(new LineBreakPrint(fontNormal));
     
      // Der Rest
      {
        Date first = a.getErsteZahlung();
        table.add(new TextPrint(i18n.tr("Erste Zahlung"),fontNormal));
        table.add(new TextPrint(first == null ? "-" : HBCI.DATEFORMAT.format(first),fontNormal));

        Date last = a.getLetzteZahlung();
        table.add(new TextPrint(i18n.tr("Letzte Zahlung"),fontNormal));
        table.add(new TextPrint(last == null ? "-" : HBCI.DATEFORMAT.format(last),fontNormal));

        Date next = a.getNaechsteZahlung();
        table.add(new TextPrint(i18n.tr("N�chste Zahlung"),fontNormal));
        table.add(new TextPrint(next == null ? "-" : HBCI.DATEFORMAT.format(next),fontNormal));

        Turnus turnus = a.getTurnus();
        table.add(new TextPrint(i18n.tr("Turnus"),fontNormal));
        table.add(new TextPrint(turnus == null ? "-" : turnus.getBezeichnung(),fontBold));

        // Leerzeile
        table.add(new LineBreakPrint(fontNormal));
        table.add(new LineBreakPrint(fontNormal));

        table.add(new TextPrint(i18n.tr("Aktiv"),fontNormal));
        table.add(new TextPrint(a.isActive() ? "Ja" : "Nein",fontBold));
      }
     
      return table;
    }
    catch (RemoteException re)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.