コード例 #1
0
  /**
   * Get all transaction list with details for selected country
   *
   * @param request
   * @param model
   * @return
   */
  @RequestMapping(
      value = "/icga/InternalCtrlGapAnalysisSummaryView.html",
      method = RequestMethod.GET)
  public String InternalCtrlGapAnalysisSummeryView(HttpServletRequest request, Model model) {
    logger.debug(" :: InternalCtrlGapAnalysisSummaryView GET ::");

    String pageNo =
        request.getSession().getAttribute("pageNo") != null
            ? (String) request.getSession().getAttribute("pageNo")
            : "";
    String controlIds =
        request.getParameter("controlIds") != null ? request.getParameter("controlIds") : "";
    logger.debug("SMN LOG: conmtrol ids=" + controlIds);

    if (Utils.isEmpty(pageNo)) {
      pageNo = "1";
    }
    try {

      if (!isEmpty(controlIds)) {

        model.addAttribute("NewRiskAssessmentTxBean", new NewRiskAssessmentTxBean());
        model.addAttribute("reactiveProjectId", "0");
        model.addAttribute("proactiveProjectId", "0");
        model.addAttribute("realTimeProjectId", "0");

        model.addAttribute("ctrlId", controlIds);
        model.addAttribute(
            "serialNoForTableRowSelection", ProactiveController.getSerialNoFromSession(request));
        model.addAttribute(
            "maxFileUploadSize", getApplicationPropertyValue("file.mazFileUploadSize"));
        model.addAttribute("pageNo", pageNo);
      }

    } catch (Exception ex) {
      logger.debug("CERROR::icga Summary View: " + ex);
      logger.debug("CERROR:: Error Description: " + ex.getMessage());
    }
    model.addAttribute("mainTabId", getMessageBundlePropertyValue("mainTab.transactionMonitoring"));
    model.addAttribute("subTabId", getMessageBundlePropertyValue("subTabId.trxMonitoring"));

    return "common/newRiskAssessmentSummary1";
  }
コード例 #2
0
  @RequestMapping(value = "/icga/projectWiseControlCount.html", method = RequestMethod.GET)
  String ajaxCallForProjectWiseControlCount(HttpServletRequest request, Model model) {
    try {
      logger.debug("--------in AJAX project Wise Control Count CONTROLLER----------");
      String controlId =
          request.getParameter("controlId") != null ? request.getParameter("controlId") : "0";
      logger.debug("controlId : " + controlId);
      String controlName =
          !"0".equals(controlId)
              ? adminJdbcService.getControlNameByControlId(Long.parseLong(controlId))
              : "";
      model.addAttribute("controlId", controlId);
      model.addAttribute("controlName", controlName);

    } catch (Exception ex) {
      logger.debug("CERROR:: Ajax Call Exception " + ex.getMessage());
      ex.printStackTrace();
    }
    return "common/icgaCountryWiseTx";
  }