Package ch.bfh.egov.internetapps.tos

Examples of ch.bfh.egov.internetapps.tos.Customizing


    if (customizingId == null) {
      return;
    }
   
    // Customizing holen
    Customizing c = new Customizing();
    c.setCustomizingId(customizingId);
    c.setMandantId(mandantId);
    c = dao.getById(c);
   
    // Status �ndern und update
    c.setStatus(!c.getStatus());
    dao.update(c);
  }
View Full Code Here


    logger.debug("customizingId" + customizingId);
    if(customizingId == null)
      return;

    // Customizing holen
    Customizing c = new Customizing();
    c.setCustomizingId(customizingId);
    c.setMandantId(mandantId);
    c = dao.getById(c);
    if (c == null)
      return;

    // Status �ndern und update
  if (type.equals("na"))
      c.setNaStatus(!c.getNaStatus());
    else if (type.equals("opNu"))
      c.setOpNuStatus(!c.getOpNuStatus());
    dao.update(c);
  }
View Full Code Here

    // Anzahl Resultate holen
    ListIterator it = customizings.listIterator();
    List<Customizing> list = new ArrayList<Customizing>();
    NaOpNu naOpNu = new NaOpNu();
    while (it.hasNext()) {
      Customizing customizing = (Customizing) it.next();
      Integer customizingId = customizing.getCustomizingId();
      naOpNu.setCustomizingId(customizingId);

      // Resultate Operativer Nutzen
      naOpNu.setNutzenattraktivitaet(false);
      naOpNu.setOperativerNutzen(true);
      NaOpNu opNuObj = naOpNuDao.getNaOpNuResultat(naOpNu);
      if (opNuObj == null)
        customizing.setAnzahlOpNuResultate(0);
      else
        customizing.setAnzahlOpNuResultate(opNuObj.getAnzahl());

      // Resultate Nutzenattraktivit�t
      naOpNu.setNutzenattraktivitaet(true);
      naOpNu.setOperativerNutzen(false);
      NaOpNu na = naOpNuDao.getNaOpNuResultat(naOpNu);
      if (na == null)
        customizing.setAnzahlNaResultate(0);
      else
          customizing.setAnzahlNaResultate(na.getAnzahl());
      list.add(customizing);
    }

    request.setAttribute(Constants.CUSTOMIZINGS, list);
  }
View Full Code Here

      naOpNuUID = (Long) form.get("na");
      logger.debug("naUID=" + naOpNuUID);
    }

    // Customizing holen
    Customizing c = dao.getCustomizingByNaOpNuUID(naOpNuUID);

    // Status zur�ckgeben
    if (c != null) {
      boolean status = opNu ? c.getOpNuStatus() : c.getNaStatus();
      return c.getStatus() && status;
    }
    return false;
  }
View Full Code Here

      else
        naOpNuUID = opNuUID;
    }

    // Customizing anhand der UID holen
    Customizing customizing = dao.getCustomizingByNaOpNuUID(naOpNuUID);
    if (customizing == null) {
      return null;
    }
    return customizing.getCustomizingId();
  }
View Full Code Here

TOP

Related Classes of ch.bfh.egov.internetapps.tos.Customizing

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.