Package de.willuhn.jameica.hbci.rmi

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


    String s = null;
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeSession session = service.get(HBCISynchronizeBackend.class).getCurrentSession();
      Konto konto = session != null ? session.getKonto() : null;
     
      if (konto != null)
      {
        s = konto.getBezeichnung();
        String name = HBCIProperties.getNameForBank(konto.getBLZ());
        if (name != null && name.length() > 0)
          s += " [" + name + "]";
      }
    }
    catch (Exception e)
View Full Code Here


   * @throws RemoteException
   * @throws ApplicationException
   */
  GridPrint createTransferTable(T a) throws RemoteException, ApplicationException
  {
    Konto k = a.getKonto();
    DefaultGridLook look = new DefaultGridLook(5,5);
    GridPrint table = new GridPrint("l:p:n, l:d:g",look);

    // Bezeichnung
    table.add(new TextPrint(i18n.tr("Bezeichnung"),fontNormal));
    table.add(new TextPrint(notNull(a.getBezeichnung()),fontBold));

    // Konto
    table.add(new TextPrint(i18n.tr("Konto"),fontNormal));
    table.add(new TextPrint(notNull(k != null ? k.getLongName() : null),fontNormal));
    table.add(new EmptyPrint());
    table.add(new TextPrint(i18n.tr("IBAN: {0}",k.getIban()),fontNormal));

    // Termin
    Date termin = a.getTermin();
    table.add(new TextPrint(i18n.tr("F�llig am"),fontNormal));
    table.add(new TextPrint(termin == null ? "-" : HBCI.DATEFORMAT.format(termin),fontNormal));

    // Summe
    table.add(new TextPrint(i18n.tr("Summe"),fontNormal));
    table.add(new TextPrint(HBCI.DECIMALFORMAT.format(a.getSumme()) + " " + k.getWaehrung(),fontBold));

    // Ausfuehrungsstatus
    Date ausgefuehrt = a.getAusfuehrungsdatum();
    table.add(new TextPrint(i18n.tr("Ausgef�hrt"),fontNormal));
    if (ausgefuehrt != null)
View Full Code Here

    String s = null;
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeSession session = service.get(HBCISynchronizeBackend.class).getCurrentSession();
      Konto konto = session != null ? session.getKonto() : null;
     
      if (konto != null)
      {
        s = konto.getBezeichnung();
        String name = HBCIProperties.getNameForBank(konto.getBLZ());
        if (name != null && name.length() > 0)
          s += " [" + name + "]";
      }
    }
    catch (Exception e)
View Full Code Here

      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
View Full Code Here

  /**
   * @see de.willuhn.jameica.hbci.gui.action.AbstractSepaSammelTransferExecute#execute(de.willuhn.jameica.hbci.rmi.SepaSammelTransfer)
   */
  void execute(final SepaSammelTransfer transfer) throws ApplicationException, RemoteException
  {
    Konto konto = transfer.getKonto();
    Class<SynchronizeJobSepaSammelLastschrift> type = SynchronizeJobSepaSammelLastschrift.class;

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

      GUI.getStatusBar().setSuccessText(i18n.tr("Buchung gespeichert"));
      getBuchung().transactionCommit();

      if (getBuchung().getBetrag() > Settings.getUeberweisungLimit())
      {
        Konto k = getBuchung().getSammelTransfer().getKonto();
        String w = k != null ? k.getWaehrung() : HBCIProperties.CURRENCY_DEFAULT_DE;
        GUI.getView().setErrorText(i18n.tr("Warnung: Auftragslimit �berschritten: {0} ",
            HBCI.DECIMALFORMAT.format(Settings.getUeberweisungLimit()) + " " + w));
      }

     
View Full Code Here

    // Automatisch in die Edit-View wechseln, falls es ein Offline-Konto ist
    // Siehe BUGZILLA 989
    try
    {
      Umsatz u = (Umsatz) context;
      Konto k = u.getKonto();
      if (k != null && (k.getFlags() & Konto.FLAG_OFFLINE) == Konto.FLAG_OFFLINE)
      {
        new UmsatzDetailEdit().handleAction(context);
        return;
      }
    }
View Full Code Here

      {
        u = (AuslandsUeberweisung) context;
      }
      else if (context instanceof Konto)
      {
        Konto k = (Konto) context;
        u = (AuslandsUeberweisung) Settings.getDBService().createObject(AuslandsUeberweisung.class,null);
        if (!k.hasFlag(Konto.FLAG_DISABLED) && !k.hasFlag(Konto.FLAG_OFFLINE) && StringUtils.trimToNull(k.getIban()) != null)
          u.setKonto(k);
      }
      else if (context instanceof Address)
      {
        Address e = (Address) context;
View Full Code Here

        boolean found = false;
        Logger.info("  checking if already exists");

        while (existing.hasNext())
        {
          Konto check = (Konto) existing.next();

          // BLZ stimmt nicht ueberein
          if (!check.getBLZ().equals(konto.getBLZ()))
            continue;

          // Kontonummer stimmt nicht ueberein.
          if (!check.getKontonummer().equals(konto.getKontonummer()))
            continue;

          // Stimmen Passports ueberein?
          String pp = check.getPassportClass();
          if (pp == null || !pp.equals(konto.getPassportClass()))
            continue;


          // BUGZILLA 338: Checken, ob Bezeichnung (=Type) uebereinstimmt
          // Bezeichnung ist optional - wir checken nur, wenn auf beiden
          // Seiten ein Name vorhanden ist und sie sich unterscheiden
          String localType = check.getBezeichnung();
          String newType   = konto.getBezeichnung();
          boolean haveName = (localType != null && localType.length() > 0 &&
                             newType != null && newType.length() > 0);

          // Die Konten gelten bereits als identisch, wenn
View Full Code Here

        Logger.info("no accounts found");
        return new Konto[]{};
      }

      ArrayList result = new ArrayList();
      Konto k = null;
      for (int i=0;i<konten.length;++i)
      {
        k = Converter.HBCIKonto2HibiscusKonto(konten[i], PassportImpl.class);
        Logger.debug("found account " + k.getKontonummer());
        result.add(k);
      }
      return (Konto[]) result.toArray(new Konto[result.size()]);
    }
    finally
View Full Code Here

TOP

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

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.