UIE031020.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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>A01004,A01007,B01001,E01010</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. </codeData>
  18. <formData>
  19. <searchInfo>
  20. <MAT_TP>TM</MAT_TP>
  21. <STL_GRD/>
  22. <LOC/>
  23. <WOO_RSN/>
  24. <SPEC_ABBSYM/>
  25. <ORD_USEAGE_CD/>
  26. <PROD_THK_MIN>0</PROD_THK_MIN>
  27. <PROD_THK_MAX>999.999</PROD_THK_MAX>
  28. <PROD_WTH_MIN>0</PROD_WTH_MIN>
  29. <PROD_WTH_MAX>99999.9</PROD_WTH_MAX>
  30. <PROD_WGT_MIN>0</PROD_WGT_MIN>
  31. <PROD_WGT_MAX>999999999</PROD_WGT_MAX>
  32. </searchInfo>
  33. </formData>
  34. <gridData>
  35. </gridData>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. if (window.parent == null) Init();
  41. ]]>
  42. </script>
  43. </model>
  44. <script type="javascript" src="../../js/boaCommon.js"/>
  45. <script type="javascript" src="../../js/boaMsg.js"/>
  46. <script type="javascript" src="../../js/mesCommon.js">
  47. <![CDATA[
  48. submitID = "UIE031020-service";
  49. function Init(node) {
  50. InitParams(node);
  51. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO", "/root/codeData/ListResult_1_VO");
  52. pageInit();
  53. model.duplicate("/root/formData/searchInfo", "/root/initData/rcvInfo/REG_ID");
  54. }
  55. function pageInit() {
  56. model.removenode("/root/reqData");
  57. model.removenode("/root/resData");
  58. model.refresh();
  59. var datagrid = datagrid1;
  60. datagrid.rebuild();
  61. commGridInit(datagrid);
  62. var rows = (datagrid.rows < 30) ? datagrid.rows : 30;
  63. for (var i = datagrid.fixedRows + 1; i < 30; i += 2)
  64. datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
  65. isReadOnly(datagrid, "WOO_RSN");
  66. colStyle(datagrid, "CHK");
  67. rows = datagrid.rows;
  68. var colChk = datagrid.colRef("CHK");
  69. var colRef = datagrid.colRef("ORD_NO");
  70. for (var i=datagrid.fixedRows; i<rows; i++) {
  71. datagrid.valueMatrix(i, colChk) = "N";
  72. if (datagrid.valueMatrix(i, colRef) != "") {
  73. datagrid.rowStyle(i, "data", "background-color") = deleteRowStyle;
  74. datagrid.isReadOnly(i, colChk, i, colChk) = true;
  75. }
  76. }
  77. }
  78. function find() {
  79. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  80. pageInit();
  81. }
  82. function save() {
  83. exec("/root/formData/searchInfo", datagrid1, "save", "/root/gridData/ListResult_0_VO");
  84. pageInit();
  85. }
  86. function create() {}
  87. function remove() {
  88. var datagrid = datagrid1;
  89. if (datagrid.fixedRows == datagrid.rows) {
  90. alert("网格中没有记录!!!");
  91. return;
  92. }
  93. if(commComfirmBox("确定要删除选定行,同时取消对未选定行的删除吗?", "删除确认") == '0') return;
  94. commDelRow(datagrid, "CHK", "", "WOO_RSN", "CHK");
  95. // 数据网格, 选取项, 删除后可变项, 撤消删除后的只读项, 撤消删除后的须变更单元格颜色的项目
  96. }
  97. ]]>
  98. </script>
  99. </xhtml:head>
  100. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  101. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:80px; ">
  102. <line id="line2" style="x1:0px; y1:74px; x2:980px; y2:74px; "/>
  103. <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">物料类型</caption>
  104. <select1 id="combo101" ref="MAT_TP" appearance="minimal" style="left:92px; top:5px; width:122px; height:20px; ">
  105. <choices>
  106. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
  107. <label ref="SM_CFNM"/>
  108. <value ref="SM_CD"/>
  109. </itemset>
  110. </choices>
  111. </select1>
  112. <caption id="caption102" class="cell" style="left:224px; top:5px; width:90px; height:20px; ">钢号</caption>
  113. <select1 id="combo102" ref="STL_GRD" appearance="minimal" style="left:316px; top:5px; width:200px; height:20px; ">
  114. <choices>
  115. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  116. <label ref="STL_GRD"/>
  117. <value ref="STL_GRD"/>
  118. </itemset>
  119. </choices>
  120. </select1>
  121. <caption id="caption103" class="cell" style="left:523px; top:5px; width:90px; height:20px; ">堆放位置</caption>
  122. <input id="input103" ref="LOC" style="left:615px; top:5px; width:122px; height:20px; "/>
  123. <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">余材原因</caption>
  124. <select1 id="combo104" ref="WOO_RSN" appearance="minimal" style="left:92px; top:27px; width:122px; height:20px; ">
  125. <choices>
  126. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='E01010' or LG_CD='A']">
  127. <label ref="SM_CFNM"/>
  128. <value ref="SM_CD"/>
  129. </itemset>
  130. </choices>
  131. </select1>
  132. <caption id="caption105" class="cell" style="left:0px; top:49px; width:90px; height:20px; ">厚度</caption>
  133. <input id="input1051" ref="PROD_THK_MIN" maxlength="6" format="#,###.#" style="left:92px; top:49px; width:60px; height:20px; text-align:right; "/>
  134. <input id="input1052" ref="PROD_THK_MAX" maxlength="6" format="#,###.#" style="left:154px; top:49px; width:60px; height:20px; text-align:right; "/>
  135. <caption id="caption106" class="cell" style="left:225px; top:49px; width:90px; height:20px; ">宽度</caption>
  136. <input id="input1061" ref="PROD_WTH_MIN" maxlength="6" format="#,###.#" style="left:317px; top:49px; width:65px; height:20px; text-align:right; "/>
  137. <input id="input1062" ref="PROD_WTH_MAX" maxlength="6" format="#,###.#" style="left:384px; top:49px; width:65px; height:20px; text-align:right; "/>
  138. <caption id="caption107" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">重量</caption>
  139. <input id="input1071" ref="PROD_WGT_MIN" maxlength="9" format="#,###" style="left:550px; top:49px; width:65px; height:20px; text-align:right; "/>
  140. <input id="input1072" ref="PROD_WGT_MAX" maxlength="9" format="#,###" style="left:617px; top:49px; width:75px; height:20px; text-align:right; "/>
  141. <button id="button1" class="sw" style="left:776px; top:5px; width:100px; height:20px; ">
  142. <caption>充当对象物料选定</caption>
  143. <script type="javascript" ev:event="onclick">
  144. <![CDATA[
  145. // NIE031020 ( NIE031021、NIE031022 )
  146. exec("/root/formData/searchInfo", "", "select", "/root/gridData/ListResult_0_VO");
  147. var allowed = model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row/Allowed");
  148. if (allowed == "False")
  149. alert("JOB管理中对订单充当作了限制,不允许操作!");
  150. else if (allowed == "Step")
  151. alert("请首先进行充当对象订单选定!");
  152. else pageInit();
  153. ]]>
  154. </script>
  155. </button>
  156. <button id="button2" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
  157. <caption>自动充当处理</caption>
  158. <script type="javascript" ev:event="onclick">
  159. <![CDATA[
  160. // NIE031023、NIE031024
  161. exec("/root/formData/searchInfo", "", "replace", "/root/gridData/ListResult_0_VO");
  162. pageInit();
  163. ]]>
  164. </script>
  165. </button>
  166. <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:615px; top:27px; width:122px; height:20px; ">
  167. <choices>
  168. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD = 'A']">
  169. <label ref="SM_CFNM"/>
  170. <value ref="SM_CD"/>
  171. </itemset>
  172. </choices>
  173. </select1>
  174. <select1 id="combo108" ref="SPEC_ABBSYM" appearance="minimal" style="left:316px; top:27px; width:200px; height:20px; ">
  175. <choices>
  176. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='B01001' or LG_CD = 'A']">
  177. <label ref="SM_CD"/>
  178. <value ref="SM_CD"/>
  179. </itemset>
  180. </choices>
  181. </select1>
  182. <caption id="caption1" class="cell" style="left:523px; top:27px; width:90px; height:20px; ">订单用途</caption>
  183. <caption id="caption108" class="cell" style="left:224px; top:27px; width:90px; height:20px; ">标准号</caption>
  184. </group>
  185. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="删除选取^物料类型^物料号^钢号^是否进保温坑^是否进行取样^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^合同号^订单号^订单厚度^订单宽度^订单长度^订单重量^生产日期^余材原因^堆放位置^最初合同号^最初订单号^WGT^ORD_FL" colsep="^" colwidth="35, 35, 100, 150, 45, 45, 80, 80, 80, 80, 80, 80, 80, 35, 80, 80, 80, 80, 100, 100, 100, 80, 45, 50, 50" explorerbar="sortshow" extendlastcol="false" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:85px; width:980px; height:535px; ">
  186. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
  187. <col key="false" ref="MAT_TP"/>
  188. <col ref="MAT_NO"/>
  189. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  190. <col key="false" ref="KEEPWARM_YN"/>
  191. <col key="false" ref="SAMPL_PICK_YN"/>
  192. <col key="false" ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  193. <col key="false" ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  194. <col key="false" ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  195. <col key="false" ref="MAT_WGT" format="#,###.#" style="text-align:right; "/>
  196. <col key="false" ref="MAT_INDIA" format="#,###.#" style="text-align:right; "/>
  197. <col key="false" ref="MAT_OUTDIA" format="#,###.#" style="text-align:right; "/>
  198. <col ref="ORD_NO"/>
  199. <col ref="ORD_SEQ"/>
  200. <col key="false" ref="PROD_THK" format="#,###.#" style="text-align:right; "/>
  201. <col key="false" ref="PROD_WTH" format="#,###.#" style="text-align:right; "/>
  202. <col key="false" ref="PROD_LEN" format="#,###.#" style="text-align:right; "/>
  203. <col key="false" ref="PROD_WGT" format="#,###.#" style="text-align:right; "/>
  204. <col key="false" ref="PROD_DTIME" format="yyyy-mm-dd"/>
  205. <col key="false" ref="WOO_RSN" type="combo" style="text-align:left; ">
  206. <choices>
  207. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='E01010']">
  208. <label ref="SM_CFNM"/>
  209. <value ref="SM_CD"/>
  210. </itemset>
  211. </choices>
  212. </col>
  213. <col key="false" ref="LOC" style="text-align:left; "/>
  214. <col key="false" ref="ORG_ORD_NO"/>
  215. <col key="false" ref="ORG_ORD_SEQ"/>
  216. <col ref="WGT" visibility="hidden"/>
  217. <col ref="ORD_FL" visibility="hidden"/>
  218. <script type="javascript" ev:event="ondblclick">
  219. <![CDATA[
  220. var datagrid = datagrid1;
  221. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  222. ]]>
  223. </script>
  224. </datagrid>
  225. </xhtml:body>
  226. </xhtml:html>