예제 #1
0
 public ModelAndView voucherList(
     HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
     throws Exception {
   this.logger.debug("entering 'voucherList' method...");
   String str1 = AclCtrl.getLogonID(paramHttpServletRequest);
   VoucherService localVoucherService = (VoucherService) SysData.getBean("f_voucherService");
   QueryConditions localQueryConditions =
       QueryHelper.getQueryConditionsFromRequest(paramHttpServletRequest);
   PageInfo localPageInfo = QueryHelper.getPageInfoFromRequest(paramHttpServletRequest);
   String str2 = paramHttpServletRequest.getParameter("sign");
   if (str2 != null) {
     if (localQueryConditions == null) {
       localQueryConditions = new QueryConditions();
     }
     if ("edit".equals(str2)) {
       localQueryConditions.addCondition("status", "=", "editing");
     }
     if ("confirm".equals(str2)) {
       localQueryConditions.addCondition("status", "=", "editing");
     }
     if ("audit".equals(str2)) {
       localQueryConditions.addCondition("status", "=", "auditing");
     }
   }
   String str3 = paramHttpServletRequest.getParameter("accountCode");
   String str4 = null;
   if ((str3 != null) && (!"".equals(str3.trim()))) {
     str4 =
         " and VoucherNo in (select VoucherNo from F_VoucherEntry where AccountCode like '"
             + str3
             + "')";
   }
   if (localPageInfo == null) {
     localPageInfo = new PageInfo(1, 15, "voucherNo", false);
   }
   List localList = localVoucherService.getVouchers(localQueryConditions, localPageInfo, str4);
   Map localMap = WebUtils.getParametersStartingWith(paramHttpServletRequest, "_");
   ModelAndView localModelAndView =
       new ModelAndView("finance/voucher/listVoucher", "resultList", localList);
   localModelAndView.addObject("pageInfo", localPageInfo);
   localModelAndView.addObject("oldParams", localMap);
   localModelAndView.addObject("sign", str2);
   localModelAndView.addObject("accountCode", str3);
   localModelAndView.addObject("logonUser", str1);
   return localModelAndView;
 }
 public ModelAndView getList(
     HttpServletRequest paramHttpServletRequest,
     HttpServletResponse paramHttpServletResponse,
     String paramString)
     throws Exception {
   QueryConditions localQueryConditions = new QueryConditions();
   localQueryConditions.addCondition("ProsceniumApplication", "=", "QT_C_GoodsOrder");
   List localList = getBeanOfProsceniumShowService().getObjectList(localQueryConditions);
   ModelAndView localModelAndView =
       new ModelAndView(Condition.PATH + "prosceniumShow/prosceniumShow");
   localModelAndView.addObject("resultList", localList);
   return localModelAndView;
 }