コード例 #1
0
 // 进入到货展示页面
 @RequestMapping(value = "/arr.htm")
 private Object arr(String purOrderId, HttpSession session) {
   ModelAndView mav = new ModelAndView("purchase_mgr/purchaseOrder_mgr/arr");
   mav.addObject("userDate", userService.getUserCombo(null)); // 员工信息
   mav.addObject("deliverTypeDate", deliverTypeService.getDeliverTypeCombo()); // 所属仓库
   mav.addObject("purchaseTypeDate", purchaseTypeService.getParPurchaseTypeCombo()); // 采购类型
   mav.addObject("suppliersDate", suppliersService.getSuppliersCombo()); // 供应商
   mav.addObject("suppliersLogisticsDate", suppliersService.getSuppliersLogisticsCombo()); // 物流供应商
   mav.addObject("paymentTypeDate", paymentTypeService.getParComPaymentTypeCombo()); // 约定支付
   mav.addObject("warehouseDate", warehouseService.getWareHouseCombo()); // 仓库
   mav.addObject("purchaseDate", purchaseOrderService.getPurchaseOrder(purOrderId));
   session.setAttribute("arrId", purOrderId);
   return mav;
 }
コード例 #2
0
 // 进入表单页面
 @RequestMapping(value = "/intoForm.htm")
 private Object inForme(String purOrderId) {
   ModelAndView mav =
       new ModelAndView(
           "purchase_mgr/purchaseOrder_mgr/purchaseOrder_form"); // purchaseArrival_form2
   if (StringUtils.isNotBlank(purOrderId)) {
     mav.addObject("purchaseOrderData", purchaseOrderService.getPurchaseOrder(purOrderId));
   }
   mav.addObject("warehouseDate", warehouseService.getWareHouseCombo()); // 仓库
   mav.addObject("deliverTypeDate", deliverTypeService.getDeliverTypeCombo()); // 交货方式
   mav.addObject("purchaseTypeDate", purchaseTypeService.getParPurchaseTypeCombo()); // 采购类型
   mav.addObject("paymentTypeDate", paymentTypeService.getParComPaymentTypeCombo()); // 约定支付
   return mav;
 }