Пример #1
0
  /** @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) */
  public void handleAction(Object context) throws ApplicationException {
    Anlagevermoegen a = null;
    if (context != null) {
      if (context instanceof Mandant) {
        try {
          a = (Anlagevermoegen) Settings.getDBService().createObject(Anlagevermoegen.class, null);
          a.setMandant((Mandant) context);
        } catch (RemoteException e) {
          Logger.error("error while creating anlagevermoegen", e);
        }
      } else {
        a = (Anlagevermoegen) context;
      }
    }

    GUI.startView(de.willuhn.jameica.fibu.gui.views.AnlagevermoegenNeu.class, a);
  }
Пример #2
0
 /**
  * Initialisiert die Liste der Kontenrahmen.
  *
  * @return Liste der Kontenrahmen.
  * @throws RemoteException
  */
 private static GenericIterator init() throws RemoteException {
   DBIterator list = Settings.getDBService().createList(Kontenrahmen.class);
   list.setOrder("order by name");
   return list;
 }