public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    EmpOperationFlowAF f = (EmpOperationFlowAF) form;
    EmpOperationFlowAF empOperationFlowAF = new EmpOperationFlowAF();

    Map opStatusMap = BusiTools.listBusiProperty(BusiConst.CLEARACCOUNTSTATUS);
    Map opTypeMap = BusiTools.listBusiProperty(BusiConst.CLEARACCOUNTBUSINESSTYPE);

    empOperationFlowAF.setOpStatusMap(opStatusMap);
    empOperationFlowAF.setOpTypeMap(opTypeMap);

    request.setAttribute("empOperationFlowAF", empOperationFlowAF);

    HashMap criterions = makeCriterionsMap(f);
    Pagination pagination =
        new Pagination(
            0,
            f.getPageSize(),
            1,
            " empHAFAccountFlow.orgHAFAccountFlow.settDate ",
            "ASC",
            criterions);
    String paginationKey = EmpOperationFlowTaShowAC.PAGINATION_KEY;
    request.getSession().setAttribute(paginationKey, pagination);

    f.reset(mapping, request);

    return mapping.findForward(getForword());
  }
 protected HashMap makeCriterionsMap(EmpOperationFlowAF form) {
   HashMap m = new HashMap();
   String orgid = form.getOrgid();
   if (!(orgid == null || "".equals(orgid.trim()))) {
     try {
       int iid = Integer.parseInt(orgid.trim());
       m.put("orgid", new Integer(iid));
     } catch (NumberFormatException e) {
       m.put("orgid", new Integer(-10000));
     }
   }
   String orgname = form.getOrgname();
   if (!(orgname == null || orgname.length() == 0)) {
     m.put("orgname", form.getOrgname().trim());
   }
   String empid = form.getEmpid();
   if (!(empid == null || "".equals(empid.trim()))) {
     try {
       int iid = Integer.parseInt(empid.trim());
       m.put("empid", new Integer(iid));
     } catch (NumberFormatException e) {
       m.put("empid", new Integer(-10000));
     }
   }
   String empname = form.getEmpname();
   if (!(empname == null || empname.length() == 0)) {
     m.put("empname", form.getEmpname().trim());
   }
   String noteNum = form.getNoteNum();
   if (!(noteNum == null || noteNum.length() == 0)) {
     m.put("noteNum", form.getNoteNum().trim());
   }
   String docNum = form.getDocNum();
   if (!(docNum == null || docNum.length() == 0)) {
     m.put("docNum", form.getDocNum().trim());
   }
   String opStatus = form.getOpStatus();
   if (!(opStatus == null || opStatus.length() == 0)) {
     m.put("opStatus", form.getOpStatus().trim());
   }
   String opType = form.getOpType();
   if (!(opType == null || opType.length() == 0)) {
     m.put("opType", form.getOpType().trim());
   }
   String inOpDate = form.getInOpDate();
   if (!(inOpDate == null || inOpDate.length() == 0)) {
     m.put("inOpDate", form.getInOpDate().trim());
   }
   String opDate = form.getOpDate();
   if (!(opDate == null || opDate.length() == 0)) {
     m.put("opDate", form.getOpDate().trim());
   }
   String inOpMoney = form.getInOpMoney();
   if (!(inOpMoney == null || inOpMoney.length() == 0)) {
     m.put("inOpMoney", form.getInOpMoney().trim());
   }
   String opMoney = form.getOpMoney();
   if (!(opMoney == null || opMoney.length() == 0)) {
     m.put("opMoney", form.getOpMoney().trim());
   }
   String opDirection = form.getOpDirection();
   if (!(opDirection == null || opDirection.length() == 0)) {
     m.put("opDirection", form.getOpDirection().trim());
   }
   return m;
 }