Ejemplo n.º 1
0
 public ModelAndView summaryEditForward(
     HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
     throws Exception {
   this.logger.debug("entering 'summaryEditForward' method...");
   VoucherService localVoucherService = (VoucherService) SysData.getBean("f_voucherService");
   ViewService localViewService = (ViewService) SysData.getBean("f_viewService");
   String str = paramHttpServletRequest.getParameter("summaryNo");
   Summary localSummary = localVoucherService.getSummaryByNo(str);
   List localList = localViewService.getLedgerFieldList();
   ModelAndView localModelAndView = new ModelAndView("finance/voucher/editSummary");
   localModelAndView.addObject("summary", localSummary);
   localModelAndView.addObject("fieldList", localList);
   return localModelAndView;
 }
Ejemplo n.º 2
0
 public ModelAndView getSummary(
     HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
     throws Exception {
   this.logger.debug("entering 'getSummary' method...");
   paramHttpServletResponse.setHeader("Cache-Control", "no-cache");
   paramHttpServletResponse.setHeader("Cache-Control", "no-store");
   paramHttpServletResponse.setHeader("Pragma", "no-cache");
   paramHttpServletResponse.setContentType("text/xml");
   paramHttpServletResponse.setCharacterEncoding("GBK");
   VoucherService localVoucherService = (VoucherService) SysData.getBean("f_voucherService");
   String str1 = paramHttpServletRequest.getParameter("summaryNo");
   String str2 = null;
   if (str1 != null) {
     Summary localObject = localVoucherService.getSummaryByNo(str1);
     str2 = ((Summary) localObject).getSummary();
   }
   Object localObject = paramHttpServletResponse.getWriter();
   ((PrintWriter) localObject).flush();
   ((PrintWriter) localObject).print(str2);
   ((PrintWriter) localObject).close();
   return null;
 }