e120d04d84a24bbf3627c5d02775777c85497a47.svn-base 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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>A01001,A01004,A01007,B01001,E01010</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. <ORD_SEQ/>
  18. </codeData>
  19. <formData>
  20. <searchInfo>
  21. <PRODNM_CD/>
  22. <CUST_CD/>
  23. <STL_GRD/>
  24. <ORD_NO_M/>
  25. <ORD_SEQ_M/>
  26. <RCVORD_CLF/>
  27. <DEL_FR_DATE/>
  28. <DEL_TO_DATE/>
  29. <ORD_USEAGE_CD/>
  30. <SPEC_ABBSYM/>
  31. <ORD_THK_MIN>0</ORD_THK_MIN>
  32. <ORD_THK_MAX>999.999</ORD_THK_MAX>
  33. <ORD_WTH_MIN>0</ORD_WTH_MIN>
  34. <ORD_WTH_MAX>99999.9</ORD_WTH_MAX>
  35. </searchInfo>
  36. <searchInfo2>
  37. <MAT_TP/>
  38. <ORD_NO/>
  39. <ORD_SEQ/>
  40. </searchInfo2>
  41. <searchInfo3>
  42. <NONORD_CAUSE_CD/>
  43. <MAT_NOS/>
  44. <COIL_CNT/>
  45. </searchInfo3>
  46. </formData>
  47. <gridData>
  48. </gridData>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. if (window.parent == null) Init();
  54. ]]>
  55. </script>
  56. </model>
  57. <script type="javascript" src="../../js/boaCommon.js"/>
  58. <script type="javascript" src="../../js/boaMsg.js"/>
  59. <script type="javascript" src="../../js/mesCommon.js">
  60. <![CDATA[
  61. submitID = "UIE031050-service";
  62. function Init(node) {
  63. InitParams(node);
  64. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
  65. "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
  66. model.setValue("/root/formData/searchInfo/DEL_FR_DATE", commFirstDay());
  67. model.setValue("/root/formData/searchInfo/DEL_TO_DATE", commCurDate());
  68. pageInit();
  69. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  70. }
  71. function pageInit(refresh) {
  72. model.removenode("/root/reqData");
  73. model.removenode("/root/resData");
  74. model.refresh();
  75. if (typeof refresh == "undefined") {
  76. isReadOnly(datagrid1, "CUST_CD,PRODNM_CD,ORD_USEAGE_CD,RCVORD_CLF");
  77. }
  78. var datagrid = datagrid2;
  79. datagrid.rebuild();
  80. var rows = (datagrid.rows < 30) ? datagrid.rows : 30;
  81. for (var i = datagrid.fixedRows + 1; i < 30; i += 2)
  82. datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
  83. rows = datagrid.rows;
  84. var colChk = datagrid.colRef("CHK");
  85. for (var i=datagrid.fixedRows; i<rows; i++)
  86. datagrid.valueMatrix(i, colChk) = "false";
  87. colStyle(datagrid, "CHK");
  88. }
  89. function find() {
  90. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  91. pageInit();
  92. }
  93. function save() {}
  94. function create() {}
  95. function remove() {}
  96. var onrowchanged = false;
  97. function rowchanged() {
  98. showProgressBar();
  99. var datagrid = datagrid1;
  100. var row = datagrid.row;
  101. model.setValue("/root/formData/searchInfo2/ORD_NO", datagrid.valueMatrix(row, datagrid.colRef("ORD_NO")));
  102. model.setValue("/root/formData/searchInfo2/ORD_SEQ", datagrid.valueMatrix(row, datagrid.colRef("ORD_SEQ")));
  103. exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO");
  104. pageInit(false);
  105. datagrid = datagrid2;
  106. commGridLevel2(datagrid);
  107. colStyle(datagrid, "CHK");
  108. removeProgressBar();
  109. }
  110. function fowardUID010031(gridID) {
  111. if(gridID.col == gridID.colRef("INGR_YN")) {
  112. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  113. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  114. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  115. var java = window.parent.javaScript;
  116. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  123. <group id="group1" overflow="hidden" ref="/root/formData/searchInfo" style="left:0px; top:0px; width:980px; height:80px; ">
  124. <line id="line2" style="x1:0px; y1:73px; x2:980px; y2:73px; "/>
  125. <caption id="caption101" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">产品</caption>
  126. <select1 id="combo101" ref="PRODNM_CD" appearance="minimal" style="left:92px; top:5px; width:127px; height:20px; ">
  127. <choices>
  128. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
  129. <label ref="SM_CFNM"/>
  130. <value ref="SM_CD"/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="caption102" class="cell" style="left:229px; top:5px; width:90px; height:20px; ">客户</caption>
  135. <select1 id="combo102" ref="CUST_CD" appearance="minimal" style="left:321px; top:5px; width:127px; height:20px; ">
  136. <choices>
  137. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  138. <label ref="CUST_NM"/>
  139. <value ref="CUST_CD"/>
  140. </itemset>
  141. </choices>
  142. </select1>
  143. <caption id="caption103" class="cell" style="left:458px; top:5px; width:90px; height:20px; ">钢号</caption>
  144. <select1 id="combo103" ref="STL_GRD" appearance="minimal" style="left:550px; top:5px; width:110px; height:20px; ">
  145. <choices>
  146. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  147. <label ref="STL_GRD"/>
  148. <value ref="STL_GRD"/>
  149. </itemset>
  150. </choices>
  151. </select1>
  152. <caption id="caption104" class="cell" style="left:0px; top:27px; width:90px; height:20px; ">合同号</caption>
  153. <input id="input1041" ref="ORD_NO_M" maxlength="12" style="left:92px; top:27px; width:80px; height:20px; ">
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. model.setValue("/root/formData/searchInfo/ORD_SEQ_M", "");
  157. // if (model.getValue("/root/formData/searchInfo/ORD_NO_M").length == 12) {
  158. exec("/root/formData/searchInfo/ORD_NO_M", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  159. model.removenode("/root/reqData");
  160. model.removenode("/root/resData");
  161. // } else {
  162. // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  163. // }
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </input>
  168. <select1 id="combo1042" ref="ORD_SEQ_M" appearance="minimal" style="left:174px; top:27px; width:45px; height:20px; ">
  169. <choices>
  170. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row">
  171. <label ref="ORD_SEQ"/>
  172. <value ref="ORD_SEQ"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <caption id="caption105" class="cell" style="left:229px; top:27px; width:90px; height:20px; ">订货区分</caption>
  177. <select1 id="combo105" ref="RCVORD_CLF" appearance="minimal" style="left:321px; top:27px; width:127px; height:20px; ">
  178. <choices>
  179. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01001' or LG_CD='A']">
  180. <label ref="SM_CFNM"/>
  181. <value ref="SM_CD"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <caption id="caption106" class="cell" style="left:458px; top:27px; width:90px; height:20px; ">交货日期</caption>
  186. <input id="input1061" ref="DEL_FR_DATE" inputtype="date" style="left:550px; top:27px; width:100px; height:20px; "/>
  187. <input id="input1062" ref="DEL_TO_DATE" inputtype="date" style="left:652px; top:27px; width:100px; height:20px; "/>
  188. <caption id="caption107" class="cell" style="left:762px; top:27px; width:90px; height:20px; ">订单用途</caption>
  189. <select1 id="combo107" ref="ORD_USEAGE_CD" appearance="minimal" style="left:854px; top:27px; width:110px; height:20px; ">
  190. <choices>
  191. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD='A']">
  192. <label ref="SM_CFNM"/>
  193. <value ref="SM_CD"/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <caption id="caption108" class="cell" style="left:0px; top:49px; width:90px; height:20px; ">标准号</caption>
  198. <select1 id="combo108" ref="SPEC_ABBSYM" appearance="minimal" style="left:92px; top:49px; width:127px; height:20px; ">
  199. <choices>
  200. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='B01001' or LG_CD = 'A']">
  201. <label ref="SM_CD"/>
  202. <value ref="SM_CD"/>
  203. </itemset>
  204. </choices>
  205. </select1>
  206. <caption id="caption109" class="cell" style="left:229px; top:49px; width:90px; height:20px; ">厚度</caption>
  207. <input id="input1091" ref="ORD_THK_MIN" maxlength="6" format="#,###.#" style="left:321px; top:49px; width:62px; height:20px; text-align:right; "/>
  208. <input id="input1092" ref="ORD_THK_MAX" maxlength="6" format="#,###.#" style="left:385px; top:49px; width:63px; height:20px; text-align:right; "/>
  209. <caption id="caption110" class="cell" style="left:458px; top:49px; width:90px; height:20px; ">宽度</caption>
  210. <input id="input1101" ref="ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:550px; top:49px; width:62px; height:20px; text-align:right; "/>
  211. <input id="input1102" ref="ORD_WTH_MAX" maxlength="6" format="#,###.#" style="left:614px; top:49px; width:63px; height:20px; text-align:right; "/>
  212. <button id="button1" visibility="hidden" style="left:880px; top:5px; width:100px; height:20px; ">
  213. <caption>find</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. find();
  217. ]]>
  218. </script>
  219. </button>
  220. </group>
  221. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="合同号^订单号^客户^产品类型^热轧交货状态^冷轧交货状态^钢号^标准号^订单用途^订单厚度^订单宽度^订单长度^订单内径^订单外径^订单单重下限^订单单重上限^紧急材^交货期结束^订货区分^订单重量^进程量^欠量^发货完重量^发货方式^客户特殊要求" colsep="^" colwidth="80, 30, 150, 59, 44, 52, 150, 150, 150, 80, 80, 80, 80, 80, 100, 100, 35, 100, 100, 80, 80, 80, 80, 100, 100" explorerbar="sortshow" extendlastcol="false" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="45" rowsep="|" style="left:0px; top:78px; width:980px; height:210px; ">
  222. <col ref="ORD_NO"/>
  223. <col ref="ORD_SEQ"/>
  224. <col ref="CUST_CD" type="combo" style="text-align:left; ">
  225. <choices>
  226. <itemset nodeset="/root/codeData/ListResult_1_VO/ListResult_1_Row">
  227. <label ref="CUST_NM"/>
  228. <value ref="CUST_CD"/>
  229. </itemset>
  230. </choices>
  231. </col>
  232. <col ref="PRD_TY" type="combo">
  233. <choices>
  234. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004']">
  235. <label ref="SM_CFNM"/>
  236. <value ref="SM_CD"/>
  237. </itemset>
  238. </choices>
  239. </col>
  240. <col ref="PRODNM_CD"/>
  241. <col ref="C_PRODNM_CD"/>
  242. <col ref="STL_GRD" style="text-align:left; "/>
  243. <col ref="SPEC_ABBSYM" style="text-align:left; "/>
  244. <col ref="ORD_USEAGE_CD" type="combo" style="text-align:left; ">
  245. <choices>
  246. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01007' or LG_CD='A']">
  247. <label ref="SM_CFNM"/>
  248. <value ref="SM_CD"/>
  249. </itemset>
  250. </choices>
  251. </col>
  252. <col ref="ORD_THK" format="#,###.#" style="text-align:right; "/>
  253. <col ref="ORD_WTH" format="#,###.#" style="text-align:right; "/>
  254. <col ref="ORD_LEN" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  255. <col ref="ORD_INDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  256. <col ref="ORD_OUTDIA" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  257. <col ref="ORD_UNIT_WGT_MIN" format="#,###.#" style="text-align:right; "/>
  258. <col ref="ORD_UNIT_WGT_MAX" format="#,###.#" style="text-align:right; "/>
  259. <col ref="EMGMTR_NMG_CLF"/>
  260. <col ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
  261. <col ref="RCVORD_CLF" type="combo">
  262. <choices>
  263. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01001']">
  264. <label ref="SM_CFNM"/>
  265. <value ref="SM_CD"/>
  266. </itemset>
  267. </choices>
  268. </col>
  269. <col ref="ORD_WGT" format="#,###.#" style="text-align:right; "/>
  270. <col ref="ORD_PRC_WGT" format="#,###.#" style="text-align:right; "/>
  271. <col ref="ORD_REM_WGT" format="(-)#,###.#" style="text-align:right; "/>
  272. <col ref="SHIP_END_WGT" format="#,###.#" style="text-align:right; "/>
  273. <col ref="DLIV_TP" style="text-align:left; "/>
  274. <col ref="INGR_YN" style="text-decoration:underline; color:#0000ff; cursor:hand; ">
  275. <script type="javascript" ev:event="onclick">
  276. <![CDATA[
  277. fowardUID010031(datagrid1);
  278. ]]>
  279. </script>
  280. </col>
  281. <script type="javascript" ev:event="onclick">
  282. <![CDATA[
  283. if(datagrid1.col != datagrid1.colRef("INGR_YN")) {
  284. if (!onrowchanged) return;
  285. rowchanged();
  286. onrowchanged = false;
  287. }
  288. ]]>
  289. </script>
  290. <script type="javascript" ev:event="onrowchanged">
  291. <![CDATA[
  292. onrowchanged = true;
  293. ]]>
  294. </script>
  295. <script type="javascript" ev:event="ondblclick">
  296. <![CDATA[
  297. var datagrid = datagrid1;
  298. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  299. ]]>
  300. </script>
  301. </datagrid>
  302. <group id="group2" overflow="hidden" ref="/root/formData/searchInfo2" style="left:0px; top:292px; width:980px; height:35px; ">
  303. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  304. <line id="line4" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  305. <caption id="caption201" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">物料类型</caption>
  306. <select1 id="combo201" ref="MAT_TP" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; ">
  307. <choices>
  308. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='A01004' or LG_CD='A']">
  309. <label ref="SM_CFNM"/>
  310. <value ref="SM_CD"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. rowchanged();
  316. ]]>
  317. </script>
  318. </select1>
  319. <button id="button202" class="sw" style="left:880px; top:5px; width:100px; height:20px; ">
  320. <caption>降级余材处理</caption>
  321. <script type="javascript" ev:event="onclick">
  322. <![CDATA[
  323. // NIE031051、NIE031052
  324. if (model.getValue("/root/formData/searchInfo3/NONORD_CAUSE_CD") == "") {
  325. alert("请选取余材原因!");
  326. return;
  327. }
  328. var datagrid = datagrid2;
  329. var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
  330. var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
  331. var data = datagrid.getUpdateData();
  332. var up_data = data.split(rowSep);
  333. var rows = up_data.length - 1;
  334. var colRef = datagrid.colRef("MAT_NO");
  335. var colChk = datagrid.colRef("CHK");
  336. var mat_nos = "";
  337. for (var i=1; i<rows; i++) {
  338. var vRow = up_data[i].split(colSep);
  339. var Idx = Number(vRow[1]);
  340. if (datagrid.valueMatrix(Idx, colChk) == "Y")
  341. mat_nos += "," + datagrid.valueMatrix(Idx, colRef);
  342. }
  343. if (mat_nos != "") {
  344. model.setValue("/root/formData/searchInfo3/MAT_NOS", mat_nos.substring(1));
  345. exec("/root/formData", "", "replace", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  346. pageInit();
  347. commGridLevel2(datagrid);
  348. colStyle(datagrid, "CHK");
  349. }
  350. ]]>
  351. </script>
  352. </button>
  353. <caption id="caption203" class="cell" style="left:666px; top:5px; width:90px; height:20px; ">余材原因</caption>
  354. <select1 id="combo203" ref="/root/formData/searchInfo3/NONORD_CAUSE_CD" appearance="minimal" style="left:758px; top:5px; width:120px; height:20px; ">
  355. <choices>
  356. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'E01010']">
  357. <label ref="SM_CFNM"/>
  358. <value ref="SM_CD"/>
  359. </itemset>
  360. </choices>
  361. </select1>
  362. </group>
  363. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="物料号^类型^降级^合同号^订单号^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^堆放位置^钢号^生产日期^等级^物料进程^前物料进程^ 钢卷流水号" colsep="^" colwidth="105, 35, 35, 80, 35, 80, 80, 80, 80, 80, 80, 80, 150, 100, 40, 150, 150, 100" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="45" rowsep="|" style="left:0px; top:326px; width:980px; height:294px; ">
  364. <col key="false" ref="DSP_NO"/>
  365. <col key="false" ref="MAT_NAME"/>
  366. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
  367. <col key="false" ref="ORD_NO"/>
  368. <col key="false" ref="ORD_SEQ"/>
  369. <col key="false" ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  370. <col key="false" ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  371. <col key="false" ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  372. <col key="false" ref="MAT_WGT" format="#,###" style="text-align:right; "/>
  373. <col key="false" ref="COIL_INDIA" format="#,###.#" style="text-align:right; "/>
  374. <col key="false" ref="COIL_OUTDIA" format="#,###.#" style="text-align:right; "/>
  375. <col key="false" ref="CUR_LOAD_LOC"/>
  376. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  377. <col key="false" ref="MAT_DTIME" format="yyyy-mm-dd"/>
  378. <col key="false" ref="MAT_GRD"/>
  379. <col key="false" ref="CUR_PROG_CD" style="text-align:left; "/>
  380. <col key="false" ref="BEF_PROG_CD" style="text-align:left; "/>
  381. <col ref="MAT_NO" visibility="hidden"/>
  382. <script type="javascript" ev:event="ondblclick">
  383. <![CDATA[
  384. var datagrid = datagrid2;
  385. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  386. ]]>
  387. </script>
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. var datagrid = datagrid2;
  391. var colChk = datagrid.colRef("CHK");
  392. var row = datagrid.row;
  393. if (datagrid.valueMatrix(row, colChk) == "N") {
  394. datagrid.rowStatus(row) = 0;
  395. }
  396. ]]>
  397. </script>
  398. </datagrid>
  399. </xhtml:body>
  400. </xhtml:html>