diff --git a/src/main/java/com/zzjee/wm/controller/WmImNoticeHController.java b/src/main/java/com/zzjee/wm/controller/WmImNoticeHController.java index 93530274..2cd2c364 100644 --- a/src/main/java/com/zzjee/wm/controller/WmImNoticeHController.java +++ b/src/main/java/com/zzjee/wm/controller/WmImNoticeHController.java @@ -123,7 +123,40 @@ public class WmImNoticeHController extends BaseController { public ModelAndView tbatchlist(HttpServletRequest request) { return new ModelAndView("com/zzjee/wm/wmintqmbatchList"); } + @RequestMapping(params = "doPrintgoods") + public ModelAndView doPrintgoods(String id,HttpServletRequest request) { + WmImNoticeHEntity wmImNoticeHEntity = wmImNoticeHService.getEntity(WmImNoticeHEntity.class, id); + Object id0 = wmImNoticeHEntity.getNoticeId(); + + + List wmImNoticeIEntitynewList = new ArrayList<>(); + String hql0 = "from WmImNoticeIEntity where iM_NOTICE_ID = ? "; + try { + List wmImNoticeIEntityList = systemService + .findHql(hql0, id0); + for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIEntityList) { + try{ + MdGoodsEntity mvgoods = systemService.findUniqueByProperty( + MdGoodsEntity.class, "shpBianMa", wmImNoticeIEntity.getGoodsCode()); + if (mvgoods != null) { + wmImNoticeIEntity.setBzhiQi(mvgoods.getBzhiQi()); + wmImNoticeIEntity.setShpGuiGe(mvgoods.getShpGuiGe()); + wmImNoticeIEntity.setGoodsName(mvgoods.getShpMingCheng()); + wmImNoticeIEntity.setBarCode(mvgoods.getShpTiaoMa()); + } + }catch (Exception e){ + + } + wmImNoticeIEntitynewList.add(wmImNoticeIEntity); + } + request.setAttribute("wmImNoticeIList", wmImNoticeIEntitynewList); + + }catch (Exception e){ + + } + return new ModelAndView("com/zzjee/wm/print/imnotice-printgoods"); + } @RequestMapping(params = "doPrintpage") public ModelAndView doPrint(String id,HttpServletRequest request) { WmImNoticeHEntity wmImNoticeHEntity = wmImNoticeHService.getEntity(WmImNoticeHEntity.class, id); diff --git a/src/main/webapp/webpage/com/zzjee/wm/print/imnotice-printgoods.jsp b/src/main/webapp/webpage/com/zzjee/wm/print/imnotice-printgoods.jsp new file mode 100644 index 00000000..2e7c3d21 --- /dev/null +++ b/src/main/webapp/webpage/com/zzjee/wm/print/imnotice-printgoods.jsp @@ -0,0 +1,37 @@ +<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@include file="/context/mytags.jsp"%> + + + + 商品打印 + + + + + + +打印 + +
+ + +
+ + ${poVal.goodsName } + +
+ ${poVal.barCode } +
+
+
+
+
+ diff --git a/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeHList.jsp b/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeHList.jsp index ea6add09..3cb02abf 100644 --- a/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeHList.jsp +++ b/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeHList.jsp @@ -31,19 +31,21 @@ - <%----%> - + + - - + + + <%-- --%> <%-- --%> + @@ -106,6 +108,14 @@ // window.open(url); } + function doPrintgoods(id){ + var url = "wmImNoticeHController.do?doPrintgoods&id="+id; + createdetailwindow("商品打印(60*40)", url, 250, 600); + + // window.open(url); + } + + function addorder(){ var url = "wmImNoticeHController.do?goAdd&orderTypeCode=01"; openwindow("添加",url,"进货",770,500);