UIE013020.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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>
  6. <![CDATA[进程管理 >> 订单/物料进程管理 >> 订单进程详细信息查询二]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. </initData>
  13. <searchData>
  14. <P_DSN_SLAB_NO>Z0905270054</P_DSN_SLAB_NO>
  15. <ORD_NO/>
  16. <ORD_SEQ/>
  17. <STL_GRD/>
  18. <LG_CD>F01001</LG_CD>
  19. <MAT_PROC/>
  20. </searchData>
  21. <formData/>
  22. <codeData/>
  23. <gridData>
  24. <grid1/>
  25. <grid2/>
  26. </gridData>
  27. </root>
  28. </instance>
  29. </model>
  30. <script type="javascript" src="../../js/boaCommon.js"/>
  31. <script type="javascript" src="../../js/boaMsg.js"/>
  32. <script type="javascript" src="../../js/mesCommon.js"/>
  33. <script type="javascript">
  34. <![CDATA[
  35. submitID = "UIE013010-service";
  36. function Init(node) {
  37. // if (window.parent != null) {
  38. // var java = window.parent.javaScript;
  39. // var node = java.getInitDataNode();
  40. // if (node != null) {
  41. // copyNode(node, "/root/formData/searchInfo");
  42. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  43. // exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  44. // }
  45. // }
  46. // exec("/root/searchData", "", "", "/root/codeData/ListResult_0_VO");
  47. // pageInit();
  48. // model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  49. }
  50. function pageInit() {
  51. model.removenode("/root/reqData");
  52. model.removenode("/root/resData");
  53. model.refresh();
  54. var datagrid = datagrid1;
  55. datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
  56. }
  57. function find() {
  58. commSendReq("/root/searchData");
  59. commSubmit("UIE013020-service","find","glueAction.do");
  60. commAppendData("/root/gridData/grid1/ListResult_0_VO","/root/resData/ListResult_0_VO");
  61. model.refresh();
  62. }
  63. function save() {}
  64. function create() {}
  65. function remove() {}
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="980" pageheight="620" style="font-family:宋体; ">
  70. <group id="group1" ref="/root/searchData" style="left:0px; top:0px; width:980px; height:25px; ">
  71. <caption id="caption2" class="cell" style="left:2px; top:3px; width:90px; height:20px; vertical-align:middle; ">计划号</caption>
  72. <caption id="caption1" class="cell" style="left:179px; top:3px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
  73. <caption id="caption3" class="cell" style="left:400px; top:3px; width:90px; height:20px; vertical-align:middle; ">牌 号</caption>
  74. <input id="input2" ref="P_DSN_SLAB_NO" maxlength="20" style="left:94px; top:3px; width:80px; height:20px; ">
  75. <hint>
  76. <![CDATA[计划号]]>
  77. </hint>
  78. </input>
  79. <input id="input1" ref="ORD_NO" maxlength="40" style="left:269px; top:3px; width:80px; height:20px; ">
  80. <script type="javascript" ev:event="xforms-value-changed">
  81. // <![CDATA[
  82. // model.setValue("/root/formData/searchInfo/ORD_SEQ", "");
  83. // // if (model.getValue("/root/formData/searchInfo/ORD_NO").length == 12) {
  84. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  85. // model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  86. // // } else {
  87. // // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  88. // // }
  89. // pageInit();
  90. ]]>
  91. </script>
  92. <hint>
  93. <![CDATA[中厚板合同号]]>
  94. </hint>
  95. </input>
  96. <select1 id="combo1" ref="STL_GRD" appearance="minimal" editmode="inputsearch" style="left:490px; top:3px; width:125px; height:20px; ">
  97. <choices>
  98. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']">
  99. <label ref="ORD_SEQ"/>
  100. <value ref="ORD_SEQ"/>
  101. </itemset>
  102. </choices>
  103. <script type="javascript" ev:event="onclick">
  104. <![CDATA[
  105. // if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  106. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  107. // model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  108. // }
  109. ]]>
  110. </script>
  111. </select1>
  112. <select1 id="combo2" ref="ORD_SEQ" appearance="minimal" editmode="inputsearch" style="left:350px; top:3px; width:45px; height:20px; ">
  113. <choices>
  114. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']">
  115. <label ref="ORD_SEQ"/>
  116. <value ref="ORD_SEQ"/>
  117. </itemset>
  118. </choices>
  119. <script type="javascript" ev:event="onclick">
  120. <![CDATA[
  121. // if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  122. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  123. // model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  124. // }
  125. ]]>
  126. </script>
  127. <hint>
  128. <![CDATA[序号]]>
  129. </hint>
  130. </select1>
  131. </group>
  132. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="计划号^品质设计待机^坯料设计待机^炉次设计待机^出钢指示待机^作业待机^移送待机^移送完成" colsep="^" colwidth="96, 77, 74, 69, 69, 75, 70, 83" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="42" style="left:0px; top:30px; width:980px; height:250px; ">
  133. <col ref="P_DSN_SLAB_NO" style="text-align:left; "/>
  134. <col ref="WGT07" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  135. <col ref="WGT01" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  136. <col ref="WGT02" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  137. <col ref="WGT03" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  138. <col ref="WGT04" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  139. <col ref="WGT05" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  140. <col ref="WGT06" format="#,###.#" style="text-decoration:underline; color:#0000ff; text-align:right; cursor:hand; "/>
  141. <script type="javascript" ev:event="onclick">
  142. <![CDATA[
  143. var datagrid = datagrid1;
  144. if (!datagrid.isCell(event.target) || datagrid.row < datagrid.fixedRows ) return;
  145. if (datagrid.valueMatrix(datagrid.row, datagrid.col) == "0") return;
  146. // alert("s");
  147. var MAT_PROC = datagrid.valueMatrix(datagrid.row, datagrid.colRef("PROC_CD"));
  148. switch (datagrid.col) {
  149. case datagrid.colRef("WGT07"): MAT_PROC += '07'; break;
  150. case datagrid.colRef("WGT01"): MAT_PROC += '01'; break;
  151. case datagrid.colRef("WGT02"): MAT_PROC += '02'; break;
  152. case datagrid.colRef("WGT03"): MAT_PROC += '03'; break;
  153. case datagrid.colRef("WGT04"): MAT_PROC += '04'; break;
  154. case datagrid.colRef("WGT05"): MAT_PROC += '05'; break;
  155. case datagrid.colRef("WGT06"): MAT_PROC += '06'; break;
  156. case datagrid.colRef("P_DSN_SLAB_NO"): MAT_PROC += ''; break;
  157. default: return;
  158. }
  159. model.setValue("/root/searchData/MAT_PROC",MAT_PROC);
  160. commSendReq("/root/searchData");
  161. commSubmit("UIE013020-service","find2","glueAction.do");
  162. commAppendData("/root/gridData/grid2/ListResult_0_VO","/root/resData/ListResult_0_VO");
  163. model.refresh();
  164. //model.duplicate("/root/gridData","/root/resData/ListResult_0_VO");
  165. // model.setValue("/root/fwdData/UIE012040/MAT_PROC", MAT_PROC);
  166. // model.setValue("/root/fwdData/UIE012040/ORD_NO", model.getValue("/root/formData/searchInfo/ORD_NO"));
  167. // model.setValue("/root/fwdData/UIE012040/ORD_SEQ", model.getValue("/root/formData/searchInfo/ORD_SEQ"));
  168. // model.setValue("/root/fwdData/UIE012040/URL", "./UIE012040.xrw");
  169. // var java = window.parent.javaScript;
  170. // java.open(model.instances(0).selectSingleNode("/root/fwdData/UIE012040"));
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="ondblclick">
  174. <![CDATA[
  175. var datagrid = datagrid1;
  176. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  177. ]]>
  178. </script>
  179. </datagrid>
  180. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/ListResult_0_VO/ListResult_0_Row" caption="物料号^厚度^宽度^长度^重量^堆置位置" colsep="^" colwidth="100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:285px; width:980px; height:225px; ">
  181. <col ref="MAT_NO"/>
  182. <col ref="SLAB_THK" format="#,###"/>
  183. <col ref="SLAB_WTH" format="#,###"/>
  184. <col ref="SLAB_LEN" format="#,###"/>
  185. <col ref="SLAB_WGT" format="#,###"/>
  186. <col/>
  187. </datagrid>
  188. </xhtml:body>
  189. </xhtml:html>