public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    // TODO Auto-generated method stub
    try {
      OrgkhAF af = (OrgkhAF) form;
      //      String orgId=(String)request.getParameter("orgId");
      //      String isModify="";
      String orgId = (String) request.getSession().getAttribute("orgId");
      SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
      String officecodeID = request.getParameter("officecode");
      //      isModify=bizcheckBS.queruIsBankModify(orgId);
      IOrgOpenAccountBS orgOpenAccountBS =
          (IOrgOpenAccountBS)
              BSUtils.getBusinessService("orgOpenAccountBS", this, mapping.getModuleConfig());
      Org org = orgOpenAccountBS.findOPA(new Integer(orgId));
      af.setOrg(org);
      if (request.getParameter("officecode") != null) {
        af.getOrg().getOrgInfo().setOfficecode(officecodeID);
      }
      //    取出用户权限办事处,显示在下拉菜单中
      List officeList = securityInfo.getOfficeList();
      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()));
      }

      // 得到办事处下的归集银行
      OfficeDto officeDtoTest = null;
      List collBankListTest = null;
      // 从请求参数中得到办事处id
      if (request.getParameter("officecode") != null) {
        collBankListTest = orgOpenAccountBS.queryCollBank(officecodeID);
      } else {
        officeDtoTest = (OfficeDto) officeList.get(0);
        collBankListTest = orgOpenAccountBS.queryCollBank(officeDtoTest.getOfficeCode());
      }

      // 判断该权限下的某个办事处对应的归集银行
      List collBankList = securityInfo.getCollBankList();
      List collBankList1 = new ArrayList();
      Userslogincollbank userslogincollbank = null;
      Iterator itr2 = collBankList.iterator();
      while (itr2.hasNext()) {
        userslogincollbank = (Userslogincollbank) itr2.next();
        for (int i = 0; i < collBankListTest.size(); i++) {
          CollBank collBank = (CollBank) collBankListTest.get(i);
          if (userslogincollbank.getCollBankId().equals(collBank.getCollBankId())) {
            collBankList1.add(
                new org.apache.struts.util.LabelValueBean(
                    userslogincollbank.getCollBankName().toString(),
                    userslogincollbank.getCollBankId().toString()));
          }
        }
      }
      request.getSession(true).setAttribute("officeList1", officeList1);
      request.getSession(true).setAttribute("collBankList1", collBankList1);
      request.setAttribute("orgkhAF", af);
    } catch (Exception e) {
      // TODO: handle exception
      e.printStackTrace();
    }
    return mapping.findForward("to_show_modify");
  }
  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)
      throws Exception {
    // TODO Auto-generated method stub
    ActionMessages messages = null;
    String paramValue = "";
    String contractId = null;
    String comeFromType = null;
    String afterSure = null;
    EndorsecontractTaAF endorsecontractTaAF = new EndorsecontractTaAF();
    SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
    String insert = (String) request.getSession().getAttribute("insert");
    IEndorsecontractBS endorsecontractBS =
        (IEndorsecontractBS)
            BSUtils.getBusinessService("endorsecontractBS", this, mapping.getModuleConfig());
    Pagination pagination = getPagination(PAGINATION_KEY, request);
    List loanBankNameList = new ArrayList(); // 银行
    List bankList = securityInfo.getDkUserBankList();
    Userslogincollbank userslogincollbank = null;
    Iterator bank = bankList.iterator();
    while (bank.hasNext()) {
      userslogincollbank = (Userslogincollbank) bank.next();
      loanBankNameList.add(
          new org.apache.struts.util.LabelValueBean(
              userslogincollbank.getCollBankName(), userslogincollbank.getCollBankId().toString()));
    }
    try {
      comeFromType = (String) request.getAttribute("comeFromType"); // 用来判断是否为维护传来的状态
      afterSure = (String) request.getAttribute("afterSure");
      paramValue = endorsecontractBS.queryParamValue(securityInfo); // 参数值('AB'
      String temp_an = (String) request.getAttribute("temp_an");
      if (temp_an == null) {
        if (comeFromType != null) { // 先判断是否是点击维护修改按钮过来
          contractId = (String) request.getSession().getAttribute("contractId");
          loanBankNameList = endorsecontractBS.queryBankList(contractId, securityInfo);

          endorsecontractTaAF =
              endorsecontractBS.queryContractInfo_(contractId, pagination, securityInfo, request);
          endorsecontractTaAF.setIsComeFromT5("0"); // 是从维护按钮过来,合同编号按钮禁用
        } else if ("afterSure".equals(afterSure)) { // 点击确定后过来的
          contractId = (String) request.getSession().getAttribute("contractId");
          loanBankNameList = endorsecontractBS.queryBankList(contractId, securityInfo);

          endorsecontractTaAF =
              endorsecontractBS.queryContractInfo_(contractId, pagination, securityInfo, request);
          String error = (String) request.getAttribute("error");
          if (error == null) {
            endorsecontractTaAF.setIsComeFromT5("0"); // 是从维护按钮过来,合同编号按钮禁用
          } else {
            endorsecontractTaAF = new EndorsecontractTaAF();
          }
        } else {
          // 从其他页面过来的
          contractId = (String) request.getSession().getAttribute("contractId");
          // 下面这行代码,点击节点进入时,银行下拉框将为空
          loanBankNameList = endorsecontractBS.queryBankList(contractId, securityInfo);
          endorsecontractTaAF =
              endorsecontractBS.queryContractInfo(
                  contractId, pagination, securityInfo, request, insert);
        }
      }
    } catch (BusinessException bex) {
      bex.printStackTrace();
      messages = new ActionMessages();
      messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(bex.getMessage(), false));
      saveErrors(request, messages);
    }

    request.setAttribute("loanBankNameList", loanBankNameList);
    endorsecontractTaAF.setParamValue(paramValue);
    String temp_beentruster = endorsecontractTaAF.getBeentruster();
    endorsecontractTaAF.setTemp_beentruster(temp_beentruster);
    String aftermaintain = (String) request.getSession().getAttribute("aftermaintain");
    if (aftermaintain != null && !"".equals(aftermaintain)) {
      request.getSession().setAttribute("aftermaintain", null);
    }
    String taIsNeedDel = (String) request.getAttribute("taIsNeedDel");
    endorsecontractTaAF.setIsNeedDel(taIsNeedDel);
    request.setAttribute("endorsecontractTaAF", endorsecontractTaAF);
    request.getSession().setAttribute("afterSure", null);
    return mapping.findForward("to_endorsecontractTa");
  }