Examples of SepaSammelTransferBuchung


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

      if (curr == null || curr.length() == 0)
        curr = HBCIProperties.CURRENCY_DEFAULT_DE;
     
      for (int i=0;i<buchungen.size();++i)
      {
        SepaSammelTransferBuchung b = buchungen.get(i);
       
        // Wir nehmen explizit ein Integer-Objekt, um sicherzugehen, dass
        // wir nicht durch Autoboxing die falsche Signatur erwischen
        Integer idx = Integer.valueOf(i);
       
        org.kapott.hbci.structures.Konto k = new org.kapott.hbci.structures.Konto();
        k.bic  = b.getGegenkontoBLZ();
        k.iban = b.getGegenkontoNummer();
        k.name = b.getGegenkontoName();
       
        setJobParam("dst", idx, k);
        setJobParam("btg", idx, b.getBetrag(),curr);
       
        String zweck = b.getZweck();
        if (zweck != null && zweck.length() > 0)
          setJobParam("usage", idx ,zweck);
       
        String endToEndId = b.getEndtoEndId();
        if (endToEndId != null && endToEndId.trim().length() > 0)
          setJobParam("endtoendid", idx, endToEndId);
      }
    }
    catch (RemoteException e)
View Full Code Here

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

  public AddressInput getEmpfaengerName() throws RemoteException
  {
    if (empfName != null)
      return empfName;
   
    SepaSammelTransferBuchung s = this.getBuchung();
   
    empfName = new AddressInput(s.getGegenkontoName(), AddressFilter.FOREIGN);
    empfName.setMandatory(true);
    empfName.addListener(new EmpfaengerListener());
    empfName.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    return empfName;
  }
View Full Code Here

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

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

    SepaSammelTransferBuchung s = this.getBuchung();

    empfkto = new IBANInput(s.getGegenkontoNummer(),this.getEmpfaengerBic());
    empfkto.setValidChars(HBCIProperties.HBCI_IBAN_VALIDCHARS);
    empfkto.setMandatory(true);
    empfkto.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    return empfkto;
  }
View Full Code Here

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

  public Input getEmpfaengerBic() throws RemoteException
  {
    if (this.bic != null)
      return this.bic;
   
    SepaSammelTransferBuchung s = this.getBuchung();
   
    this.bic = new BICInput(s.getGegenkontoBLZ());
    this.bic.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    this.bic.setMandatory(true);
    return this.bic;
  }
View Full Code Here

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

  public Input getEndToEndId() throws RemoteException
  {
    if (this.endToEndId != null)
      return this.endToEndId;

    SepaSammelTransferBuchung s = this.getBuchung();

    this.endToEndId = new TextInput(s.getEndtoEndId(),HBCIProperties.HBCI_SEPA_ENDTOENDID_MAXLENGTH);
    this.endToEndId.setName(i18n.tr("End-to-End ID"));
    this.endToEndId.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS);
    this.endToEndId.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    this.endToEndId.setHint(i18n.tr("freilassen wenn nicht ben�tigt"));
    this.endToEndId.setMandatory(false);
    return this.endToEndId;
  }
View Full Code Here

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

  public Input getZweck() throws RemoteException
  {
    if (zweck != null)
      return zweck;

    SepaSammelTransferBuchung s = this.getBuchung();

    zweck = new TextInput(s.getZweck(),HBCIProperties.HBCI_FOREIGNTRANSFER_USAGE_MAXLENGTH);
    zweck.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS);
    zweck.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    return zweck;
  }
View Full Code Here

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

  public Input getBetrag() throws RemoteException
  {
    if (betrag != null)
      return betrag;
   
    SepaSammelTransferBuchung s = this.getBuchung();
    SepaSammelTransfer t        = s.getSammelTransfer();
   
    double d = s.getBetrag();
    if (Math.abs(d) < 0.01d) d = Double.NaN;
    betrag = new DecimalInput(d,HBCI.DECIMALFORMAT);
    betrag.setComment(t.getKonto().getWaehrung());
    betrag.setMandatory(true);
    betrag.setEnabled(!t.ausgefuehrt());
View Full Code Here

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

  {
    if (storeEmpfaenger != null)
      return storeEmpfaenger;

    // Nur bei neuen Transfers aktivieren
    SepaSammelTransferBuchung s = this.getBuchung();
    // Checkbox nur setzen, wenn es eine neue Ueberweisung ist und
    // noch kein Gegenkonto definiert ist.
    boolean enabled = s.isNewObject() && s.getGegenkontoNummer() == null;
   
    // Per Hidden-Parameter kann die Checkbox komplett ausgeschaltet werden
    de.willuhn.jameica.system.Settings settings = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getSettings();
    enabled &= settings.getBoolean("transfer.addressbook.autoadd",true);
    storeEmpfaenger = new CheckboxInput(enabled);
View Full Code Here

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

   * Speichert die Buchung.
   * @throws Exception
   */
  protected synchronized void store() throws Exception
  {
    SepaSammelTransferBuchung s = this.getBuchung();
    if (s.getSammelTransfer().ausgefuehrt())
      return;
   
    Double d = (Double) getBetrag().getValue();
    s.setBetrag(d == null ? Double.NaN : d.doubleValue());
   
    s.setZweck((String)getZweck().getValue());
    s.setEndtoEndId((String) getEndToEndId().getValue());

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

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

    Boolean store = (Boolean) getStoreEmpfaenger().getValue();
    if (store.booleanValue())
    {
      HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
View Full Code Here

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

   */
  public synchronized boolean handleStore()
  {
    try
    {
      SepaSammelTransferBuchung s = this.getBuchung();
      SepaSammelTransfer t = s.getSammelTransfer();
     
      if (t.ausgefuehrt())
        return true;
     
      this.store();
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.