UIE012040.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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. <searchInfo>
  13. <LG_CD>E01002</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. <ORD_SEQ/>
  18. </codeData>
  19. <formData>
  20. <searchInfo>
  21. <ORD_NO/>
  22. <ORD_SEQ/>
  23. <MAT_PROC/>
  24. <MAT_TP/>
  25. </searchInfo>
  26. </formData>
  27. <gridData>
  28. </gridData>
  29. <fwdData>
  30. <UIE012110>
  31. <URL/>
  32. <MAT_NOS/>
  33. <NONORD_CAUSE_CD/>
  34. </UIE012110>
  35. <UIE012120>
  36. <URL/>
  37. <MAT_NOS/>
  38. <NONORD_CAUSE_CD/>
  39. </UIE012120>
  40. </fwdData>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. if (window.parent == null) Init();
  46. ]]>
  47. </script>
  48. </model>
  49. <script type="javascript" src="../../js/boaCommon.js"/>
  50. <script type="javascript" src="../../js/boaMsg.js"/>
  51. <script type="javascript" src="../../js/mesCommon.js"/>
  52. <script type="javascript">
  53. <![CDATA[
  54. submitID = "UIE012040-service";
  55. function Init(node) {
  56. if (window.parent != null) {
  57. var java = window.parent.javaScript;
  58. var node = java.getInitDataNode();
  59. if (node != null) {
  60. copyNode(node, "/root/formData/searchInfo");
  61. exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  62. var proc = model.getValue("/root/formData/searchInfo/MAT_PROC");
  63. model.makeValue("/root/formData/searchInfo/MAT_TP", proc.substring(0, 1));
  64. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  65. }
  66. }
  67. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO");
  68. // if (model.getValue("/root/formData/searchInfo/MAT_PROC") == "") {
  69. // model.setValue("/root/formData/searchInfo/MAT_PROC", model.getValue("/root/codeData/ListResult_0_VO/ListResult_0_Row[2]/SM_CD"));
  70. // }
  71. pageInit();
  72. }
  73. function pageInit() {
  74. model.removenode("/root/reqData");
  75. model.removenode("/root/resData");
  76. model.refresh();
  77. var datagrid = datagrid1;
  78. datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
  79. }
  80. function find() {
  81. // var ordno = model.getValue("/root/formData/searchInfo/ORD_NO");
  82. // if (ordno.length < 12) {
  83. // alert("合同号少于 12 位!");
  84. // model.removenode("/root/gridData/ListResult_0_VO");
  85. // return;
  86. // }
  87. var proc = model.getValue("/root/formData/searchInfo/MAT_PROC");
  88. if (proc != "") model.setValue("/root/formData/searchInfo/MAT_TP", proc.substring(0, 1));
  89. else model.setValue("/root/formData/searchInfo/MAT_TP", "");
  90. exec("/root/formData/searchInfo", "", "ord");
  91. model.setValue("/root/formData/searchInfo/ORD_NO", model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/ORD_NO"));
  92. model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/resData/ListResult_0_VO/ListResult_0_Row/ORD_SEQ"));
  93. model.removenode("/root/reqData");
  94. model.removenode("/root/resData");
  95. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  96. if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  97. model.removenode("/root/reqData");
  98. model.removenode("/root/resData");
  99. exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  100. }
  101. pageInit();
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  107. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:35px; ">
  108. <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  109. <caption id="caption3" class="cell" style="left:229px; top:5px; width:90px; height:20px; vertical-align:middle; ">物料进程</caption>
  110. <select1 id="combo1" ref="MAT_PROC" appearance="minimal" style="left:321px; top:5px; width:160px; height:20px; ">
  111. <choices>
  112. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row">
  113. <label ref="SM_CFNM"/>
  114. <value ref="SM_CD"/>
  115. </itemset>
  116. </choices>
  117. <script type="javascript" ev:event="xforms-value-changed">
  118. <![CDATA[
  119. find();
  120. ]]>
  121. </script>
  122. </select1>
  123. <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
  124. <select1 id="combo2" ref="ORD_SEQ" appearance="minimal" editmode="search" style="left:174px; top:5px; width:45px; height:20px; ">
  125. <choices>
  126. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']">
  127. <label ref="ORD_SEQ"/>
  128. <value ref="ORD_SEQ"/>
  129. </itemset>
  130. </choices>
  131. <script type="javascript" ev:event="onclick">
  132. <![CDATA[
  133. if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  134. exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  135. model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  136. }
  137. ]]>
  138. </script>
  139. </select1>
  140. <input id="input1" ref="ORD_NO" maxlength="12" style="left:92px; top:5px; width:80px; height:20px; ">
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. model.setValue("/root/formData/searchInfo/ORD_SEQ", "");
  144. // var ordno = model.getValue("/root/formData/searchInfo/ORD_NO");
  145. // if (ordno.length == 12) {
  146. exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  147. model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  148. // } else {
  149. // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  150. // }
  151. pageInit();
  152. ]]>
  153. </script>
  154. </input>
  155. </group>
  156. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="物料进程^区分^物料号^ 成品对应板坯号^厚度^宽度^长度^物料重量^产品重量^堆置位置^生产日期^发货日期" colsep="^" colwidth="150, 40, 100, 100, 80, 80, 80, 80, 80, 135, 120, 100" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="42" rowsep="|" style="left:0px; top:34px; width:980px; height:586px; ">
  157. <col ref="PROG_CD" type="combo" style="text-align:left; ">
  158. <choices>
  159. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'E01002']">
  160. <label ref="SM_CFNM"/>
  161. <value ref="SM_CD"/>
  162. </itemset>
  163. </choices>
  164. </col>
  165. <col ref="MAT_TP"/>
  166. <col ref="MAT_NO" style="text-decoration:underline; color:#0000ff; cursor:hand; "/>
  167. <col ref="SLAB_NO" style="text-align:left; "/>
  168. <col ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  169. <col ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  170. <col ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  171. <col ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
  172. <col ref="WGT" format="#,###.#" style="text-align:right; "/>
  173. <col ref="CUR_LOAD_LOC"/>
  174. <col explorerbar="sortshow" ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
  175. <col explorerbar="sortshow" ref="TRNF_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  176. <script type="javascript" ev:event="onclick">
  177. <![CDATA[
  178. var datagrid = datagrid1;
  179. if (!datagrid.isCell(event.target) || datagrid.row < datagrid.fixedRows ) return;
  180. if (datagrid.col != datagrid.colRef("MAT_NO")) return;
  181. //add by sjw 090803
  182. model.property("V_ORD_NO") = input1.value;
  183. model.property("V_ORD_SEQ") = combo2.value;
  184. //add by sjw 090803
  185. var java = window.parent.javaScript;
  186. switch (datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_TP"))) {
  187. case "板坯":
  188. model.setValue("/root/fwdData/UIE012110/URL", "./UIE012110.xrw");
  189. model.setValue("/root/fwdData/UIE012110/MAT_NOS", datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_NO")));
  190. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIE012110"));
  191. break;
  192. case "钢卷":
  193. model.setValue("/root/fwdData/UIE012120/URL", "./UIE012120.xrw");
  194. model.setValue("/root/fwdData/UIE012120/MAT_NOS", datagrid.valueMatrix(datagrid.row, datagrid.colRef("MAT_NO")));
  195. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIE012120"));
  196. break;
  197. default: return;
  198. }
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="ondblclick">
  202. <![CDATA[
  203. var datagrid = datagrid1;
  204. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  205. ]]>
  206. </script>
  207. </datagrid>
  208. </xhtml:body>
  209. </xhtml:html>