Exemplo n.º 1
0
 public String detail() {
   getLogger().debug("Processing -> detail()");
   try {
     listAccount = accountService.findListAccByCifId(cifId);
     cif = cifService.findCifById(cifId);
     session.put(WEB_CONTENT_KEY, cifId);
   } catch (Exception e) {
     handleException(e);
   }
   return INPUT;
 }
Exemplo n.º 2
0
  public void makeTableContent() {
    prepareParamVO(
        new ProductParamVO(),
        WEB_PARAM_KEY + WebModules.MENU_CUSTOMER_SUPPORT_RESET_PIN,
        "c.id",
        WebConstants.SORT_ORDER_ASC);
    String[] arrayHeader = {getText("l.cifDeviceCode"), getText("l.cifName"), getText("l.status")};
    String[] arrayBody = {"deviceCode", "cifName", "mobileStatusDisplay"};
    String[] arrayDbVariable = {"c.device_code", "c.cif_name", "c.status"};
    List<LinkTableVO> listLinkTable = new ArrayList<LinkTableVO>();
    listLinkTable.add(
        new LinkTableVO(
            "ResetPin!detail.web", "deviceCode", new String[] {"cifId"}, new String[] {"id"}));

    try {
      CifParamVO cifParamVO = (CifParamVO) paramVO;
      cifParamVO.setAuthStatus(WebConstants.STAT_APPROVED);
      int totalRow = cifService.countCifForResetPin(cifParamVO);
      listCif = cifService.findCifForResetPin(cifParamVO);
      Locale language = (Locale) session.get(WEB_LOCALE_KEY);
      resultSearchJson =
          webSearchResultService.composeSearchResult(
              getText("l.listCif"),
              arrayHeader,
              arrayBody,
              arrayDbVariable,
              gson.toJson(listCif),
              getCurrentPage(),
              totalRow,
              listLinkTable,
              language,
              listCif.size(),
              paramVO);
    } catch (MmbsWebException we) {
      LOG.error("Error while make table content: ", we);
    }
  }