From bab2c34fdce2c33d97c51b675c3081ed250ed5b1 Mon Sep 17 00:00:00 2001 From: cez Date: Mon, 22 Nov 2021 18:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=BC=E5=BC=8F=20SAP=20RF?= =?UTF-8?q?C=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/test/JeecgOneGUI.java | 21 +++++++- .../com/zzjee/wm/print/imnoticerkd-print.jsp | 48 ++++++++++--------- 2 files changed, 44 insertions(+), 25 deletions(-) diff --git a/src/main/java/test/JeecgOneGUI.java b/src/main/java/test/JeecgOneGUI.java index 9d8166d4..6007f966 100644 --- a/src/main/java/test/JeecgOneGUI.java +++ b/src/main/java/test/JeecgOneGUI.java @@ -1,8 +1,12 @@ package test; +import com.sap.conn.jco.JCoTable; +import com.zzjee.sap.SapRFC; import org.jeecgframework.codegenerate.window.CodeWindow; import java.sql.SQLOutput; +import java.util.HashMap; +import java.util.Map; /** @@ -14,7 +18,20 @@ import java.sql.SQLOutput; public class JeecgOneGUI { public static void main(String[] args) { - CodeWindow codeWindow = new CodeWindow(); - codeWindow.pack(); +// CodeWindow codeWindow = new CodeWindow(); +// codeWindow.pack(); + Map result = new HashMap(); + try { + SapRFC saprfc = SapRFC.getInstance(); + saprfc.prepare("ZZKMES_FM_PP112"); + saprfc.execCall(); +// saprfc.getParamTableList() + JCoTable tab = saprfc.getParamTableList("IT_OUT"); + System.out.print("rows:" + tab.getNumRows()); + result.put("IT_OUT", tab); + } catch (Exception e) { + System.out.print(e.getMessage()); + } + } } diff --git a/src/main/webapp/webpage/com/zzjee/wm/print/imnoticerkd-print.jsp b/src/main/webapp/webpage/com/zzjee/wm/print/imnoticerkd-print.jsp index 9b89c78d..1d8d1c5c 100644 --- a/src/main/webapp/webpage/com/zzjee/wm/print/imnoticerkd-print.jsp +++ b/src/main/webapp/webpage/com/zzjee/wm/print/imnoticerkd-print.jsp @@ -100,9 +100,8 @@ collapse;table-layout:fixed;width:800pt;margin-left: 30px;margin-top: -30px'> - <%----%> - - + + @@ -125,30 +124,33 @@ <%--<%– –%>--%> <%-- --%> - ${printHeader.header04} - ${printHeader.header05} +<%-- ${printHeader.header04}--%> + ${printHeader.header05} + ${printHeader.header16} + - ${printHeader.header08} - ${printHeader.header09} + ${printHeader.header09} + ${printHeader.header14} + - ${printHeader.header14} - ${printHeader.header16} + ${printHeader.header08} + - 序号 + 序号 - 商品编码 + 商品编码 <%--商品编码--%> - 商品 - 生产日期 + 商品 + 生产日期 <%-- 收货温度--%> - 单位 - 数量 + 单位 + 数量 <%-- 重量--%> <%-- 容积--%> @@ -163,16 +165,16 @@ - ${poVal.item20 }  + ${poVal.item20 }  <%-- ${poVal.goodsCode }--%> ${poVal.item01 } - ${poVal.item02 } + ${poVal.item02 } - ${poVal.item03 } + ${poVal.item03 } <%-- ${poVal.item04 }--%> - ${poVal.item05 } + ${poVal.item05 } - ${poVal.item06 } + ${poVal.item06 } <%-- ${poVal.item07 }--%> <%-- ${poVal.item08 }--%> @@ -185,11 +187,11 @@ - 主管:主管:                      - 制单人:${printHeader.header15} 仓管签字(盖章):制单人:${printHeader.header15} 仓管签字(盖章):                        - 合计数量:${printHeader.header12} + 合计数量:${printHeader.header12}