Examples of Branchensicht


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

    if(planned == null)
      planned = 1;
    f.set("geplant", planned);
    request.setAttribute("geplant", planned);

    Branchensicht b = new Branchensicht();
    b.setMandantId((Integer) request.getSession().getAttribute(Constants.MANDANT_ID));
    b.setBranchensichtId(branchensichtId);
    Integer total = service.getRecordCount(b)-1;
    request.setAttribute("totalgeplant", total);

/*
    if((request.getParameter("backbutton") == null) || !request.getParameter("backbutton").equals("true")) {
View Full Code Here

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

    Integer planned = (Integer) f.get("geplant");
    planned++;
    f.set("geplant", planned);
    service.populate(request, f);

    Branchensicht b = new Branchensicht();
    b.setMandantId((Integer) request.getSession().getAttribute(Constants.MANDANT_ID));
    b.setBranchensichtId(getBranchensichtId(request, f));
    Integer total = service.getRecordCount(b)-1;
    if(total < planned)
      total = planned;
    request.setAttribute("totalgeplant", total);
     request.setAttribute("geplant", planned);
View Full Code Here

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

      logger.debug("Setze auswertung f�r branchensichtId: "+((Integer) mForm.get(Constants.BRANCHENSICHT_ID))+", customizingId: "+((Integer) mForm.get(Constants.CUSTOMIZING_ID)));
    }

    service.populate(request, mForm);

    Branchensicht b = new Branchensicht();
    b.setMandantId((Integer) request.getSession().getAttribute(Constants.MANDANT_ID));
    b.setBranchensichtId(getBranchensichtId(request, mForm));
    Integer total = service.getRecordCount(b)-1;
    request.setAttribute("totalgeplant", total);

    Integer planned = (Integer) mForm.get("geplant");
     request.setAttribute("geplant", planned);
View Full Code Here

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

    f.set(Constants.BRANCHENSICHT_ID, m.getBranchensichtId());

    service.populate(request, f);

    if(planned > 0) {
      Branchensicht b = new Branchensicht();
      b.setMandantId(m.getMandantId());
      b.setBranchensichtId(m.getBranchensichtId());
      Integer total = service.getRecordCount(b)-1;
      if(total < planned)
        total = planned;
      request.setAttribute("totalgeplant", total);
    }
View Full Code Here

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

    Integer[] modulIds = (Integer[]) mForm.get("modulIds");
    Integer planned = (Integer) mForm.get("geplant");

    // Branchensicht holen
    HttpSession session = request.getSession();
    Branchensicht b = new Branchensicht();
    b.setMandantId((Integer) session.getAttribute(Constants.MANDANT_ID));
    b.setBranchensichtId(getBranchensichtId(request, mForm));
    b = bService.getById(b);

    // Module zuweisen
    logger.debug("Module angew�hlt: " + modulIds.length);
    List<Modul> module = new ArrayList<Modul>();
    Double punkte = 0.0;
    for(int i = 0; i < modulIds.length; i++) {
      Modul m = new Modul();
      m.setModulId(modulIds[i]);
      m.setMandantId((Integer) request.getSession().getAttribute(Constants.MANDANT_ID));
      m = service.getById(m);
      m.setBranchensichtId(b.getBranchensichtId());
      m.setGeplant(planned);
      logger.debug((planned == 0) ? "Aktueller Stand" : "Geplanter Stand " + planned);
      logger.debug("F�ge Modul " + m.getModulId() + " hinzu.");
      module.add(m);
      punkte += m.getPunkte();
View Full Code Here

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

    Integer branchensichtId = getBranchensichtId(request, bForm);
    logger.debug("form branchensichtId=" + branchensichtId);
    session.setAttribute(Constants.BRANCHENSICHT_ID, branchensichtId);

    if(isUpdate(request, bForm)) {
      Branchensicht b = createBranchensicht(request);
      b.setBranchensichtId(branchensichtId);
      Branchensicht branchensicht = service.getById(b);
      bForm.set(Constants.BRANCHENSICHT_ID, branchensichtId);
      bForm.set("name", branchensicht.getName());
      logger.debug("branchensicht.name: " + branchensicht.getName());
      bForm.set("update", true);
    }
    return mapping.findForward(Constants.FORM);
  }
View Full Code Here

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

      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    Branchensicht branchensicht = getBranchensicht(request);
    if(branchensicht == null) {
      service.populate(request);
      logger.debug("customizing = null");
      return mapping.findForward(Constants.LIST);
    }
    ActionMessages messages = new ActionMessages();
    messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("messages.question.delete", branchensicht.getName()));
    saveMessages(request, messages);
    request.setAttribute(Constants.ACTION, Constants.BRANCHENSICHT_ACTION);
    request.setAttribute(Constants.DISPATCH_YES, Constants.DELETE);
    request.setAttribute(Constants.DISPATCH_NO, Constants.LIST);
    request.setAttribute(Constants.ID_NAME, Constants.BRANCHENSICHT_ID);
    request.setAttribute(Constants.ID_VALUE, branchensicht.getBranchensichtId());
    return mapping.findForward(Constants.QUESTION);
  }
View Full Code Here

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

      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    Branchensicht branchensicht = getBranchensicht(request);
    if (branchensicht == null) {
      service.populate(request);
      logger.debug("branchensicht = null");
      return mapping.findForward(Constants.LIST);
    }
View Full Code Here

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

    // Formulardaten holen
    DynaActionForm branchensichtForm = (DynaActionForm) form;
    Integer branchensichtId = (Integer) branchensichtForm.get(Constants.BRANCHENSICHT_ID);
    Integer mandantId = (Integer) request.getSession().getAttribute(Constants.MANDANT_ID);
    String name = (String) branchensichtForm.get("name");
    Branchensicht branchensicht = new Branchensicht();
    branchensicht.setBranchensichtId(branchensichtId);
    branchensicht.setMandantId(mandantId);
    branchensicht.setName(name);
    branchensicht.setStatus(true);

    // branchensicht name check auf unique
    if (exists(request, branchensichtForm)) {
      ActionMessages errors = new ActionMessages();
      errors.add("name", new ActionMessage("errors.duplicate", "Branchensicht"));
View Full Code Here

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

      branchensichtId = new Integer(param);
    } catch (Exception ex) {
      logger.warn("Fehlende branchensichtId!");
      return null;
    }
    Branchensicht b = createBranchensicht(request);
    b.setBranchensichtId(branchensichtId);
    b = service.getById(b);
    if (b == null) {
      logger.warn("Branchensicht mit der id " + branchensichtId + " wurde nicht gefunden.");
      return null;
    }
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.