Examples of SepaSammelLastBuchung


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

      }
      else if (context instanceof SepaSammelLastBuchung)
      {
        try
        {
          SepaSammelLastBuchung b = (SepaSammelLastBuchung) context;
          SepaSammelLastschrift st = (SepaSammelLastschrift) b.getSammelTransfer();
          u = (SepaLastschrift) Settings.getDBService().createObject(SepaLastschrift.class,null);
          u.setBetrag(b.getBetrag());
          u.setGegenkontoBLZ(b.getGegenkontoBLZ());
          u.setGegenkontoName(b.getGegenkontoName());
          u.setGegenkontoNummer(b.getGegenkontoNummer());
          u.setZweck(b.getZweck());
          u.setCreditorId(b.getCreditorId());
          u.setEndtoEndId(b.getEndtoEndId());
          u.setMandateId(b.getMandateId());
          u.setSignatureDate(b.getSignatureDate());
         
          if (st != null)
          {
            u.setKonto(st.getKonto());
            u.setTermin(st.getTermin());
View Full Code Here

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

  /**
   * @see de.willuhn.jameica.hbci.server.AbstractSepaSammelTransferBuchungImpl#duplicate()
   */
  public Duplicatable duplicate() throws RemoteException
  {
    SepaSammelLastBuchung b = (SepaSammelLastBuchung) super.duplicate();
    b.setMandateId(this.getMandateId());
    b.setSignatureDate(this.getSignatureDate());
    b.setCreditorId(this.getCreditorId());
    return b;
  }
View Full Code Here

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

    List<SepaSammelLastBuchung> buchungen = lastschrift.getBuchungen();
   
    for (int i=0;i<buchungen.size();++i)
    {
      SepaSammelLastBuchung 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);
     
      setJobParam("mandateid",     idx, b.getMandateId());
      setJobParam("manddateofsig", idx, b.getSignatureDate());
      setJobParam("creditorid",    idx, b.getCreditorId());
    }
   
    setJobParam("sequencetype",lastschrift.getSequenceType().name());
    if (this.type != null)
      setJobParam("type",this.type.name());
View Full Code Here

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

   * geoeffnet.
   * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object)
   */
  public void handleAction(Object context) throws ApplicationException
  {
    SepaSammelLastBuchung u = null;

    if (context instanceof SepaSammelLastBuchung)
    {
      u = (SepaSammelLastBuchung) context;
    }
View Full Code Here

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

  /**
   * @see de.willuhn.jameica.hbci.rmi.SepaSammelTransfer#createBuchung()
   */
  public SepaSammelLastBuchung createBuchung() throws RemoteException, ApplicationException
  {
    SepaSammelLastBuchung b = (SepaSammelLastBuchung) this.getService().createObject(SepaSammelLastBuchung.class,null);
    if (this.isNewObject())
      store();
    b.setSammelTransfer(this);
    return b;
  }
View Full Code Here

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

      l.store();
     
      List<SepaSammelLastBuchung> list = this.getBuchungen();
      for (SepaSammelLastBuchung t:list)
      {
        SepaSammelLastBuchung copy = (SepaSammelLastBuchung) t.duplicate();
        copy.setSammelTransfer(l);
        copy.store();
      }
      l.transactionCommit();
      return (Duplicatable) l;
    }
    catch (Exception e)
View Full Code Here

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

        {
          Logger.error("unable to find sepa transfer for key " + key);
          continue;
        }
       
        SepaSammelLastBuchung b = s.createBuchung();
        b.setBetrag(l.getBetrag());
        b.setCreditorId(l.getCreditorId());
        b.setEndtoEndId(l.getEndtoEndId());
        b.setGegenkontoBLZ(l.getGegenkontoBLZ());
        b.setGegenkontoName(l.getGegenkontoName());
        b.setGegenkontoNummer(l.getGegenkontoNummer());
        b.setMandateId(l.getMandateId());
        b.setSignatureDate(l.getSignatureDate());
        b.setZweck(l.getZweck());
        b.store();
        Application.getMessagingFactory().sendMessage(new ImportMessage(b));
        Application.getMessagingFactory().sendMessage(new ObjectChangedMessage(s));
       
        if (delete && !l.isNewObject())
        {
View Full Code Here

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

  public AddressInput getEmpfaengerName() throws RemoteException
  {
    if (empfName != null)
      return empfName;
   
    SepaSammelLastBuchung s = this.getBuchung();
   
    // Wir schauen mal, ob wir in dem Auftrag schon eine Adress-ID haben
    // Wenn das der Fall ist, bearbeitet der User scheinbar gerade eine
    // existierende Lastschrift. Wir laden dann die Adresse, damit die
    // Mandats-Daten beim Speichern wieder dieser zugeordnet werden.
    try
    {
      if (!s.isNewObject())
      {
        String id = StringUtils.trimToNull(MetaKey.ADDRESS_ID.get(s));
        if (id != null)
          this.address = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,id);
      }
View Full Code Here

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

  public Input getCreditorId() throws RemoteException
  {
    if (this.creditorId != null)
      return this.creditorId;
   
    SepaSammelLastBuchung s = this.getBuchung();
    String creditorId       = s.getCreditorId();
   
    // Checken, ob wir im Konto eine Glaeubiger-ID haben
    if (StringUtils.trimToNull(creditorId) == null)
      creditorId = StringUtils.trimToNull(MetaKey.SEPA_CREDITOR_ID.get(s.getSammelTransfer().getKonto()));
   
    this.creditorId = new TextInput(creditorId,HBCIProperties.HBCI_SEPA_CREDITORID_MAXLENGTH);
    this.creditorId.setName(i18n.tr("Gl�ubiger-Identifikation"));
    this.creditorId.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS);
    this.creditorId.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    this.creditorId.setMandatory(true);
    return this.creditorId;
  }
View Full Code Here

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

  public Input getMandateId() throws RemoteException
  {
    if (this.mandateId != null)
      return this.mandateId;
   
    SepaSammelLastBuchung s = this.getBuchung();
   
    this.mandateId = new TextInput(s.getMandateId(),HBCIProperties.HBCI_SEPA_MANDATEID_MAXLENGTH);
    this.mandateId.setName(i18n.tr("Mandats-Referenz"));
    this.mandateId.setValidChars(HBCIProperties.HBCI_SEPA_MANDATE_VALIDCHARS);
    this.mandateId.setEnabled(!s.getSammelTransfer().ausgefuehrt());
    this.mandateId.setMandatory(true);
    return this.mandateId;
  }
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.