Package de.willuhn.jameica.hbci.rmi

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


  public Input getSignatureDate() throws RemoteException
  {
    if (this.signature != null)
      return this.signature;
   
    SepaSammelLastBuchung s = this.getBuchung();
   
    this.signature = new DateInput(s.getSignatureDate(),DateUtil.DEFAULT_FORMAT);
    this.signature.setName(i18n.tr("Unterschriftsdatum des Mandats"));
    this.signature.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    this.signature.setMandatory(true);
    return this.signature;
  }
View Full Code Here


   * Ueberschrieben, um die Lastschrift-spezifischen Attribute zu setzen.
   * @see de.willuhn.jameica.hbci.gui.controller.AbstractSepaSammelTransferBuchungControl#handleStore()
   */
  public synchronized boolean handleStore()
  {
    SepaSammelLastBuchung s = null;
    SepaSammelLastschrift t = null;
   
    try
    {
      s = this.getBuchung();
      t = s.getSammelTransfer();
     
      if (t.ausgefuehrt())
        return true;
     
      s.transactionBegin();
     
      s.setCreditorId((String) getCreditorId().getValue());
      s.setMandateId((String) getMandateId().getValue());
      s.setSignatureDate((Date) getSignatureDate().getValue());
     
      this.store();
     
      Konto k = t.getKonto();
     
      // Glaeubiger-ID im Konto speichern, damit wir sie beim naechsten Mal parat haben
      MetaKey.SEPA_CREDITOR_ID.set(k,s.getCreditorId());
     
      // Wenn wir eine fest assoziierte Adresse haben, ordnen wir die Mandats-Daten dieser zu
      String id = MetaKey.ADDRESS_ID.get(s); // Die ID kann sich u.U. geaendert haben
      if (id != null)
      {
        this.address = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,id);
      }

      // Daten des Mandats als Meta-Daten an der Adresse speichern
      if (this.address != null)
      {
        MetaKey.SEPA_MANDATE_ID.set(this.address,s.getMandateId());
        MetaKey.SEPA_MANDATE_SIGDATE.set(this.address,DateUtil.DEFAULT_FORMAT.format(s.getSignatureDate()));
      }
     
      s.transactionCommit();
      return true;
    }
    catch (Exception e)
    {
      if (t != null) {
View Full Code Here

      count = 0;

    List<SepaSammelLastBuchung> buchungen = u.getBuchungen();
    for (int i=0;i<buchungen.size();++i)
    {
      SepaSammelLastBuchung b = buchungen.get(i);
      props.setProperty(SepaUtil.insertIndex("dst.bic",count),      StringUtils.trimToEmpty(b.getGegenkontoBLZ()));
      props.setProperty(SepaUtil.insertIndex("dst.iban",count),     StringUtils.trimToEmpty(b.getGegenkontoNummer()));
      props.setProperty(SepaUtil.insertIndex("dst.name",count),     StringUtils.trimToEmpty(b.getGegenkontoName()));
      props.setProperty(SepaUtil.insertIndex("btg.value",count),    HBCIUtils.value2String(b.getBetrag()));
      props.setProperty(SepaUtil.insertIndex("btg.curr",count),     k.getWaehrung() != null ? k.getWaehrung() : HBCIProperties.CURRENCY_DEFAULT_DE);
      props.setProperty(SepaUtil.insertIndex("usage",count),        StringUtils.trimToEmpty(b.getZweck()));
      props.setProperty(SepaUtil.insertIndex("endtoendid",count),   StringUtils.trimToEmpty(b.getEndtoEndId()));
     
      props.setProperty(SepaUtil.insertIndex("creditorid",count),   StringUtils.trimToEmpty(b.getCreditorId()));
      props.setProperty(SepaUtil.insertIndex("mandateid",count),    StringUtils.trimToEmpty(b.getMandateId()));
      props.setProperty(SepaUtil.insertIndex("manddateofsig",count),ISO_DATE.format(b.getSignatureDate()));
      count++;
    }


    // Weil wir eine Liste von Auftraegen mit Buchungen haben, muessen wir den Zaehler selbst zaehlen
View Full Code Here

                   "LOWER(empfaenger_bic) LIKE ?",
                   text,text,text,text,text,text,text);

    while (list.hasNext())
    {
      SepaSammelLastBuchung buchung = (SepaSammelLastBuchung) list.next();
      SepaSammelLastschrift ueb = (SepaSammelLastschrift) buchung.getSammelTransfer();
      hash.put(ueb.getID(),new MyResult(ueb));
    }
   
    // Schritt 2: Sammel-Auftraege selbst
    list = Settings.getDBService().createList(SepaSammelLastschrift.class);
View Full Code Here

      ueb.store();
      ctx.put("ueb",ueb); // und im Context speichern
      Application.getMessagingFactory().sendMessage(new ImportMessage(ueb));
    }

    SepaSammelLastBuchung u = ueb.createBuchung();
    u.setGegenkontoName(prop.getProperty(ISEPAParser.Names.DST_NAME.getValue()));
    u.setGegenkontoNummer(prop.getProperty(ISEPAParser.Names.DST_IBAN.getValue()));
    u.setGegenkontoBLZ(prop.getProperty(ISEPAParser.Names.DST_BIC.getValue()));
    u.setZweck(prop.getProperty(ISEPAParser.Names.USAGE.getValue()));
    u.setBetrag(Double.valueOf(prop.getProperty(ISEPAParser.Names.VALUE.getValue())));
    u.setEndtoEndId(StringUtils.trimToNull(prop.getProperty(ISEPAParser.Names.ENDTOENDID.getValue())));

    u.setCreditorId(prop.getProperty(ISEPAParser.Names.CREDITORID.getValue()));
    u.setMandateId(prop.getProperty(ISEPAParser.Names.MANDATEID.getValue()));
   
    String mandDate = StringUtils.trimToNull(prop.getProperty(ISEPAParser.Names.MANDDATEOFSIG.getValue()));
    if (mandDate != null && !SepaUtil.DATE_UNDEFINED.equals(mandDate))
      u.setSignatureDate(ISO_DATE.parse(mandDate));

    u.store();
    Application.getMessagingFactory().sendMessage(new ObjectChangedMessage(ueb));

  }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.rmi.SepaSammelLastBuchung

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.