UID010060.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <formData>
  10. <LOV>G</LOV>
  11. <slab_wth>0.2</slab_wth>
  12. <METHOD>2</METHOD>
  13. </formData>
  14. <reqData>
  15. </reqData>
  16. <resData>
  17. <EmpListResult_VO/>
  18. </resData>
  19. <gridData1>
  20. <EmpListResult1_VO>
  21. <EmpListResult1_Row/>
  22. </EmpListResult1_VO>
  23. </gridData1>
  24. <gridData2>
  25. <EmpListResult2_VO>
  26. <EmpListResult2_Row/>
  27. </EmpListResult2_VO>
  28. </gridData2>
  29. <gridData3>
  30. <EmpListResult3_VO>
  31. <EmpListResult3_Row/>
  32. </EmpListResult3_VO>
  33. </gridData3>
  34. </root>
  35. </instance>
  36. <script type="javascript" src="../../js/boaMsg.js"/>
  37. <script type="javascript" src="../../js/boaCommon.js"/>
  38. <script type="javascript" src="../../js/dCommon.js"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. datagrid1.visible = true;
  42. datagrid2.visible = false;
  43. datagrid3.visible = false;
  44. caption5.visible = true;
  45. caption1.visible = false;
  46. caption2.visible = false;
  47. caption4.visible = true;
  48. combo1.visible = true;
  49. ]]>
  50. </script>
  51. <script type="javascript">
  52. <![CDATA[
  53. function lpad(str, len, fill) {
  54. if (fill == null) fill = " ";
  55. str = str + "";
  56. while( str.length < len ) str = fill + str;
  57. return str;
  58. }
  59. //1、获取用户登录信息,只能在页面初始化函数中调用
  60. function InitParams(node)
  61. {
  62. if (typeof node == "undefined" && typeof node != "object") return;
  63. model.removenode("/root/initData/rcvInfo");
  64. model.makeNode("/root/initData/rcvInfo");
  65. var nodeList = node.childNodes;
  66. for (var i = 0; i < nodeList.length; i++)
  67. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  68. }
  69. //2. 页面初始化函数(必须)
  70. function Init(node)
  71. {
  72. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  73. // 在程序中会重建该节点,最好不要重名
  74. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  75. //...
  76. }
  77. //3、页面标题
  78. function setTitle()
  79. {
  80. return "工序计划 >> 板坯设计 >> 板坯设计结果分析"; // 如:return "进程管理 >> 订单进程现况查询";
  81. }
  82. //4. 页面按键动作
  83. // 查询按键
  84. function find()
  85. {
  86. //var LOV = model.getValue("/root/formData/LOV");
  87. var SLABWTH = model.getValue("/root/formData/slab_wth");
  88. var METHOD = model.getValue("/root/formData/METHOD");
  89. model.removenode("/root/reqData");
  90. model.makeValue("/root/reqData/SLABWTH",SLABWTH);
  91. model.makeValue("/root/reqData/METHOD",METHOD);
  92. commSubmit("UID010060-service","findMessage","glueAction.do");
  93. var count = model.getXPathValue("count(/root/resData/EmpListResult1_VO/EmpListResult1_Row)");
  94. for(var i = 1; i <= count; i++)
  95. {
  96. var F_VAL = model.getValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/FR_VALUE");
  97. var T_VAL = model.getValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/TO_VALUE");
  98. var VAL = "";
  99. if(F_VAL == "" && T_VAL == "")
  100. VAL = "合计";
  101. else
  102. VAL = lpad(F_VAL, 4, " ") +" ~ "+ lpad(T_VAL, 4, " ");
  103. model.makeValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/VAL",VAL);
  104. }
  105. model.copyNode("/root/gridData1/EmpListResult1_VO","/root/resData/EmpListResult1_VO");
  106. model.copyNode("/root/gridData2/EmpListResult2_VO","/root/resData/EmpListResult2_VO");
  107. model.copyNode("/root/gridData3/EmpListResult3_VO","/root/resData/EmpListResult3_VO");
  108. model.refresh();
  109. }
  110. function remove()
  111. {
  112. }
  113. ]]>
  114. </script>
  115. </model>
  116. </xhtml:head>
  117. <xhtml:body overflow="hidden" guideline="1,979;2,620;">
  118. <datagrid id="datagrid3" nodeset="/root/gridData3/EmpListResult3_VO/EmpListResult3_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="牌号组\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|牌号组\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
  119. <col ref="FAC_STL_GRPNM" style="text-align:left; "/>
  120. <col ref="CNT_01" format="#,###" style="text-align:right; "/>
  121. <col ref="CNT_02" format="#,###" style="text-align:right; "/>
  122. <col ref="CNT_03" format="#,###" style="text-align:right; "/>
  123. <col ref="CNT_04" format="#,###" style="text-align:right; "/>
  124. <col ref="CNT_05" format="#,###" style="text-align:right; "/>
  125. <col ref="CNT_06" format="#,###" style="text-align:right; "/>
  126. <col ref="CNT_07" format="#,###" style="text-align:right; "/>
  127. <col ref="CNT_08" format="#,###" style="text-align:right; "/>
  128. <col ref="CNT_09" format="#,###" style="text-align:right; "/>
  129. <col ref="CNT_10" format="#,###" style="text-align:right; "/>
  130. <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
  131. </datagrid>
  132. <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult2_VO/EmpListResult2_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="去向\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|去向\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
  133. <col ref="PRODNM_NM" style="text-align:left; "/>
  134. <col ref="CNT_01" format="#,###" style="text-align:right; "/>
  135. <col ref="CNT_02" format="#,###" style="text-align:right; "/>
  136. <col ref="CNT_03" format="#,###" style="text-align:right; "/>
  137. <col ref="CNT_04" format="#,###" style="text-align:right; "/>
  138. <col ref="CNT_05" format="#,###" style="text-align:right; "/>
  139. <col ref="CNT_06" format="#,###" style="text-align:right; "/>
  140. <col ref="CNT_07" format="#,###" style="text-align:right; "/>
  141. <col ref="CNT_08" format="#,###" style="text-align:right; "/>
  142. <col ref="CNT_09" format="#,###" style="text-align:right; "/>
  143. <col ref="CNT_10" format="#,###" style="text-align:right; "/>
  144. <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
  145. </datagrid>
  146. <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult1_VO/EmpListResult1_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="钢卷厚度\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|钢卷厚度\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
  147. <col ref="VAL" style="text-align:left; "/>
  148. <col ref="CNT_01" format="#,###" style="text-align:right; "/>
  149. <col ref="CNT_02" format="#,###" style="text-align:right; "/>
  150. <col ref="CNT_03" format="#,###" style="text-align:right; "/>
  151. <col ref="CNT_04" format="#,###" style="text-align:right; "/>
  152. <col ref="CNT_05" format="#,###" style="text-align:right; "/>
  153. <col ref="CNT_06" format="#,###" style="text-align:right; "/>
  154. <col ref="CNT_07" format="#,###" style="text-align:right; "/>
  155. <col ref="CNT_08" format="#,###" style="text-align:right; "/>
  156. <col ref="CNT_09" format="#,###" style="text-align:right; "/>
  157. <col ref="CNT_10" format="#,###" style="text-align:right; "/>
  158. <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
  159. </datagrid>
  160. <line id="line1" style="x1:0px; y1:-30px; x2:1005px; y2:-30px; "/>
  161. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  162. <caption id="caption5" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各厚度钢卷分析</caption>
  163. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  164. <caption id="caption1" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各去向分析</caption>
  165. <caption id="caption2" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各牌号组分析</caption>
  166. <caption id="caption3" class="cell" style="left:0px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">分析区分</caption>
  167. <select1 id="combo2" ref="/root/formData/LOV" appearance="minimal" style="left:102px; top:5px; width:110px; height:20px; background-color:#ffffff; border-color:#000000; ">
  168. <choices>
  169. <item>
  170. <label>钢卷厚度</label>
  171. <value>G</value>
  172. </item>
  173. <item>
  174. <label>去向</label>
  175. <value>GO</value>
  176. </item>
  177. <item>
  178. <label>牌号组</label>
  179. <value>GOO</value>
  180. </item>
  181. </choices>
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. var LOV = model.getValue("/root/formData/LOV");
  185. if(LOV == "G")
  186. {
  187. datagrid1.visible = true;
  188. datagrid2.visible = false;
  189. datagrid3.visible = false;
  190. caption5.visible = true;
  191. caption1.visible = false;
  192. caption2.visible = false;
  193. caption4.visible = true;
  194. combo1.visible = true;
  195. }
  196. else if(LOV == "GO")
  197. {
  198. datagrid1.visible = false;
  199. datagrid2.visible = true;
  200. datagrid3.visible = false;
  201. caption5.visible = false;
  202. caption1.visible = true;
  203. caption2.visible = false;
  204. caption4.visible = false;
  205. combo1.visible = false;
  206. }
  207. else if(LOV == "GOO")
  208. {
  209. datagrid1.visible = false;
  210. datagrid2.visible = false;
  211. datagrid3.visible = true;
  212. caption5.visible = false;
  213. caption1.visible = false;
  214. caption2.visible = true;
  215. caption4.visible = false;
  216. combo1.visible = false;
  217. }
  218. ]]>
  219. </script>
  220. </select1>
  221. <caption id="caption4" class="cell" style="left:450px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷厚度</caption>
  222. <select1 id="combo1" ref="/root/formData/slab_wth" appearance="minimal" style="left:552px; top:5px; width:110px; height:20px; background-color:#ffffff; border-color:#000000; ">
  223. <choices>
  224. <item>
  225. <label>0.1</label>
  226. <value>0.1</value>
  227. </item>
  228. <item>
  229. <label>0.2</label>
  230. <value>0.2</value>
  231. </item>
  232. <item>
  233. <label>0.5</label>
  234. <value>0.5</value>
  235. </item>
  236. <item>
  237. <label>1.0</label>
  238. <value>1.0</value>
  239. </item>
  240. <item>
  241. <label>2.0</label>
  242. <value>2.0</value>
  243. </item>
  244. </choices>
  245. </select1>
  246. <caption id="caption7" class="cell" style="left:225px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">统计方法</caption>
  247. <select1 id="combo4" ref="/root/formData/METHOD" appearance="minimal" style="left:327px; top:5px; width:110px; height:20px; border-color:#000000; ">
  248. <choices>
  249. <item>
  250. <label>板坯数量</label>
  251. <value>1</value>
  252. </item>
  253. <item>
  254. <label>板坯重量</label>
  255. <value>2</value>
  256. </item>
  257. </choices>
  258. </select1>
  259. <button id="button1" visibility="hidden" style="left:900px; top:5px; width:74px; height:20px; background-color:#c0c0c0; ">
  260. <caption>FIND</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. find();
  264. ]]>
  265. </script>
  266. </button>
  267. </xhtml:body>
  268. </xhtml:html>