Examples of Turnus


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

   */
  public static List<Date> getTermine(BaseDauerauftrag t, Date from, Date to) throws RemoteException
  {
    Date de       = t.getErsteZahlung();
    Date dl       = t.getLetzteZahlung();
    Turnus turnus = t.getTurnus();
   
    if (from == null)
      from = new Date();
   
    List<Date> result = new ArrayList<Date>();
View Full Code Here

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

      Date letzteZahlung = dauerauftrag.getLetzteZahlung();
      if (letzteZahlung != null)
        setJobParam("lastdate",letzteZahlung);

      Turnus turnus = dauerauftrag.getTurnus();
      setJobParam("timeunit",turnus.getZeiteinheit() == Turnus.ZEITEINHEIT_MONATLICH ? "M" : "W");
      setJobParam("turnus",turnus.getIntervall());
      setJobParam("execday",turnus.getTag());
    }
    catch (RemoteException e)
    {
      throw e;
    }
View Full Code Here

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

      Date letzteZahlung = dauerauftrag.getLetzteZahlung();
      if (letzteZahlung != null)
        setJobParam("lastdate",letzteZahlung);

      Turnus turnus = dauerauftrag.getTurnus();
      setJobParam("timeunit",turnus.getZeiteinheit() == Turnus.ZEITEINHEIT_MONATLICH ? "M" : "W");
      setJobParam("turnus",turnus.getIntervall());
      setJobParam("execday",turnus.getTag());
    }
    catch (RemoteException e)
    {
      throw e;
    }
View Full Code Here

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

   */
  public void setJob(HBCIJob job) throws RemoteException, ApplicationException
  {
    // Tests fuer die Job-Restriktionen
    Properties p = job.getJobRestrictions();
    Turnus turnus = dauerauftrag.getTurnus();
    new TurnusRestriction(turnus,p).test();
    if (!active) // nur pruefen bei neuen Dauerauftraegen
      new PreTimeRestriction(dauerauftrag.getErsteZahlung(),p).test();
   
    super.setJob(job);
View Full Code Here

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

    Integer ze        = (Integer)getAttribute("zeiteinheit");
    Integer intervall = (Integer)getAttribute("intervall");
    Integer tag        = (Integer)getAttribute("tag");
    if (ze == null || intervall == null || tag == null)
      return null;
    Turnus t = (Turnus) getService().createObject(Turnus.class,null);
    t.setIntervall(intervall.intValue());
    t.setZeiteinheit(ze.intValue());
    t.setTag(tag.intValue());
    return t;
  }
View Full Code Here

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

    turnusList.setFormatter(new TableFormatter()
    {
      public void format(TableItem item)
      {
        try {
          Turnus t = (Turnus) item.getData();
          if (t.isInitial())
          {
            item.setForeground(Settings.getBuchungSollForeground());
          }
        }
        catch (Exception e)
        {
          Logger.error("error while formatting turnus",e);
        }
      }
    });

    ContextMenu c = new ContextMenu();

    // Einer fuer die Neuanlage
    c.addItem(new ContextMenuItem(i18n.tr("Neu..."), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        handleEdit(null);
      }
    }));

    // Ein Contextmenu-Eintrag zum Bearbeiten   
    c.addItem(new ContextMenuItem(i18n.tr("Bearbeiten..."), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        if (context == null || !(context instanceof Turnus))
          return;
        handleEdit((Turnus) context);
      }
    })
    {
      /**
       * @see de.willuhn.jameica.gui.parts.ContextMenuItem#isEnabledFor(java.lang.Object)
       */
      public boolean isEnabledFor(Object o)
      {
        try
        {
          if (o == null || !(o instanceof Turnus))
            return false;
          Turnus t = (Turnus) o;
          if (t.isInitial())
            return false;
        }
        catch (Exception e)
        {
          Logger.error("error while checking context menu item",e);
        }
        return super.isEnabledFor(o);
      }
    });


    // Ein Contextmenu-Eintrag zum Loeschen   
    c.addItem(new ContextMenuItem(i18n.tr("L�schen..."), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        if (context == null || !(context instanceof Turnus))
          return;
        try
        {
          Turnus t = (Turnus) context;
          t.delete();
        }
        catch (Exception e)
        {
          Logger.error("error while deleting turnus",e);
        }
      }
    })
    {
      /**
       * @see de.willuhn.jameica.gui.parts.ContextMenuItem#isEnabledFor(java.lang.Object)
       */
      public boolean isEnabledFor(Object o)
      {
        try
        {
          if (o == null || !(o instanceof Turnus))
            return false;
          Turnus t = (Turnus) o;
          if (t.isInitial())
            return false;
        }
        catch (Exception e)
        {
          Logger.error("error while checking context menu item",e);
View Full Code Here

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

    // Turnus-Edit-Dialog ohne Turnus erzeugen
    TurnusEditDialog te = new TurnusEditDialog(TurnusEditDialog.POSITION_MOUSE,t);
    try
    {
      Turnus t2 = (Turnus) te.open();
      if (t2 != null)
      {
        // Turnus zur Liste hinzufuegen wenn es eine Neuanlage ist
        if (isNew)
        {
View Full Code Here

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

   * @throws RemoteException
   * @throws ApplicationException
   */
  public static Turnus createByDauerAuftrag(GVRDauerList.Dauer d) throws RemoteException, ApplicationException
  {
    Turnus turnus = findByDauerAuftrag(d);
    if (turnus != null)
      return turnus; // wir haben schon einen, den nehmen wir.

    int ze = Turnus.ZEITEINHEIT_MONATLICH;
    if ("W".equalsIgnoreCase(d.timeunit)) ze = Turnus.ZEITEINHEIT_WOECHENTLICH;
   
    // Keiner da, dann erstellen wir ihn.
    turnus = (Turnus) Settings.getDBService().createObject(Turnus.class,null);
    turnus.setIntervall(d.turnus);
    turnus.setTag(d.execday);
    turnus.setZeiteinheit(ze);
    turnus.store();
    return turnus;
  }
View Full Code Here

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

            // Wir lassen 7 Tage Vorlauf
            Calendar cal = Calendar.getInstance();
            cal.add(Calendar.DATE,7);
            d.setErsteZahlung(cal.getTime());
            Turnus turnus = (Turnus) Settings.getDBService().createObject(Turnus.class,null);
            turnus.setIntervall(1);
            turnus.setTag(cal.get(Calendar.DAY_OF_MONTH));
            turnus.setZeiteinheit(Turnus.ZEITEINHEIT_MONATLICH);
            d.setTurnus(turnus);
            new de.willuhn.jameica.hbci.gui.action.SepaDauerauftragNew().handleAction(d);
          }
          catch (Exception e)
          {
View Full Code Here

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

    TurnusDialog td = new TurnusDialog(TurnusDialog.POSITION_MOUSE);
    td.addCloseListener(new Listener() {
      public void handleEvent(Event event) {
        if (event == null || event.data == null)
          return;
        Turnus choosen = (Turnus) event.data;
        try
        {
          getTransfer().setTurnus(choosen);
          getTurnus().setText(choosen.getBezeichnung());
          nextDate.handleEvent(null);
        }
        catch (RemoteException e)
        {
          Logger.error("error while choosing turnus",e);
          GUI.getStatusBar().setErrorText(i18n.tr("Fehler bei der Auswahl des Zahlungsturnus"));
        }
      }
    });

    SepaDauerauftrag da = getTransfer();
    Turnus t = da.getTurnus();
    turnus = new DialogInput(t == null ? "" : t.getBezeichnung(),td);
    turnus.setValue(t);
    turnus.setMandatory(true);
   
    if (da.isActive())
    {
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.