/**
   * Method execute
   *
   * @param mapping
   * @param form
   * @param request
   * @param response
   * @return ActionForward
   */
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {
    // IdAF idAF = (IdAF) form;// TODO Auto-generated method stub
    try {
      // 把 PAYID 传过来放在SESSION 里
      if (request.getAttribute("payId_num") != null) {
        HttpSession session = request.getSession();
        session.setAttribute("payId_num_session", (String) request.getAttribute("payId_num"));
      }

      IAgentBS agentBS =
          (IAgentBS) BSUtils.getBusinessService("agentBS", this, mapping.getModuleConfig());
      Pagination pagination =
          getPagination(PAGINATION_KEY, request, (String) request.getAttribute("payId_num"));
      PaginationUtils.updatePagination(pagination, request);
      // TB  集合
      List list = agentBS.queryAgentInfoTbList(pagination);
      // TB  数量
      int count = agentBS.queryAgentInfoTbListCount(pagination);

      pagination.setNrOfElements(count);
      AgentInfoQueryTbAF agentInfoQueryTbAF = new AgentInfoQueryTbAF();
      agentInfoQueryTbAF.setList(list);
      request.setAttribute("agentInfoQueryTbAF", agentInfoQueryTbAF);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return mapping.findForward("to_agentInfoQueryTb_show");
  }
 public ActionForward execute(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response)
     throws Exception {
   // TODO Auto-generated method stub
   try {
     SettleincanddecAF settleincanddecAF = new SettleincanddecAF();
     Pagination pagination = getPagination(SettleincanddecShowAC.PAGINATION_KEY, request);
     PaginationUtils.updatePagination(pagination, request);
     SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
     List list = null;
     ISettleincanddecBS settleincanddecBS =
         (ISettleincanddecBS)
             BSUtils.getBusinessService("settleincanddecBS", this, mapping.getModuleConfig());
     list = settleincanddecBS.querySettleIncAndDecList(securityInfo, pagination);
     settleincanddecAF.setList(list);
     request.setAttribute("settleincanddecAF", settleincanddecAF);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return mapping.findForward("to_show_settleincanddec");
 }
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    ActionMessages messages = null;
    SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
    try {

      OrgAccountInfoAF af = new OrgAccountInfoAF();
      String id = (String) request.getAttribute("id");
      String mode = request.getParameter("mode");
      String opTime = (String) request.getAttribute("opTime");
      Pagination pagination = getPagination(OrgAccountInfoTcShowAC.PAGINATION_KEY, request);
      Pagination pagination1 =
          (Pagination) request.getSession().getAttribute(OrgAccountInfoTaShowAC.PAGINATION_KEY);
      pagination.getQueryCriterions().put("opDate", pagination1.getQueryCriterions().get("opDate"));
      pagination
          .getQueryCriterions()
          .put("inOpDate", pagination1.getQueryCriterions().get("inOpDate"));
      if (id != null) {
        pagination.getQueryCriterions().put("id", id);
      }
      if (opTime != null) {
        pagination.getQueryCriterions().put("opTime", opTime);
      }
      mode = (String) pagination1.getQueryCriterions().get("mode");
      pagination.getQueryCriterions().put("mode", pagination1.getQueryCriterions().get("mode"));
      PaginationUtils.updatePagination(pagination, request);
      IOrgAccountInfoBS orgAccountInfoBS =
          (IOrgAccountInfoBS)
              BSUtils.getBusinessService("orgAccountInfoBS", this, mapping.getModuleConfig());
      List officelist = securityInfo.getOfficeList();
      List officelist1 = new ArrayList();
      OfficeDto dto = null;
      Iterator itr = officelist.iterator();
      while (itr.hasNext()) {
        dto = (OfficeDto) itr.next();
        officelist1.add(
            new org.apache.struts.util.LabelValueBean(
                dto.getOfficeName().toString(), dto.getOfficeCode().toString()));
      }
      List bankList = securityInfo.getCollBankList();
      List bankList1 = new ArrayList();
      Userslogincollbank bankdto = null;
      Iterator itr1 = bankList.iterator();
      while (itr1.hasNext()) {
        bankdto = (Userslogincollbank) itr1.next();
        bankList1.add(
            new org.apache.struts.util.LabelValueBean(
                bankdto.getCollBankName().toString(), bankdto.getCollBankId().toString()));
      }
      request.getSession(true).setAttribute("bankList1", bankList1);
      request.getSession(true).setAttribute("officelist1", officelist1);
      List list = orgAccountInfoBS.findOrgAccountInfoByDay(pagination, securityInfo);
      OrgAccountInfoTotalDTO totaldto =
          orgAccountInfoBS.findOrgAccountInfoDayTotal(pagination, securityInfo);
      request.setAttribute("orgAccountInfoTotalDTO", totaldto);
      af.setMode(pagination1.getQueryCriterions().get("mode") + "");
      request.setAttribute("orgAccountInfoAF", af);
      request.setAttribute("LIST", list);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return mapping.findForward(getForword());
  }
 public ActionForward execute(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response) {
   ActionMessages messages = null;
   try {
     /** 分页 */
     Pagination pagination = getPagination(PAGINATION_KEY, request);
     PaginationUtils.updatePagination(pagination, request);
     saveToken(request);
     RateShowAF rateShowAF = new RateShowAF();
     IRatemngBS ratemngBS =
         (IRatemngBS) BSUtils.getBusinessService("ratemngBS", this, mapping.getModuleConfig());
     List list = ratemngBS.findRatemngList_sy(pagination);
     // 以下程序是判断是否启用按钮好用。
     SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
     List temp_list = securityInfo.getAllOfficeList();
     List temp_officecode = new ArrayList();
     OfficeDto officeDto = null;
     String info = "";
     String loadsMassage = "";
     // 确定有几个没有启用
     if (!temp_list.isEmpty()) {
       for (int i = 0; i < temp_list.size(); i++) {
         officeDto = (OfficeDto) temp_list.get(i);
         String officecode = officeDto.getOfficeCode();
         info = ratemngBS.checkOfficeCode(officecode);
         if (!info.equals("") && info.equals("nohi")) {
           temp_officecode.add(info);
         }
       }
     }
     // 办事处个数和没启用个数相等的时候启用按钮可用
     if (temp_list.size() == temp_officecode.size()) {
       loadsMassage = "hi";
     }
     RatemngAF ratemngAF = new RatemngAF();
     ratemngAF.setLoadsMassage(loadsMassage);
     ratemngAF.setList(list);
     List officeList = securityInfo.getAllOfficeList();
     List officeList1 = new ArrayList();
     OfficeDto officedto = null;
     Iterator itr1 = officeList.iterator();
     while (itr1.hasNext()) {
       officedto = (OfficeDto) itr1.next();
       officeList1.add(
           new org.apache.struts.util.LabelValueBean(
               officedto.getOfficeName(), officedto.getOfficeCode()));
     }
     request.getSession(true).setAttribute("officeList1", officeList1);
     ratemngAF.setOfficecode("");
     rateShowAF.setRatetypemap(BusiTools.listBusiProperty(BusiConst.CHGTYPESTATUS));
     request.setAttribute("ratemngAF", ratemngAF);
     request.setAttribute("rateShowAF", rateShowAF);
     ratemngAF.reset(mapping, request);
   } catch (Exception ex) {
     ex.printStackTrace();
   }
   return mapping.findForward("to_ratemng_list");
 }