2b9fa58c81ff30ab92c3e5f4f48b8b2cbcb9a522.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. <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. <SLAB_NO/>
  22. <STL_GRD/>
  23. <ORD_NO_M/>
  24. <ORD_SEQ_M/>
  25. <NONORD_CAUSE_CD/>
  26. <DEL_FR_DATE/>
  27. <DEL_TO_DATE/>
  28. <PRODNM_CD/>
  29. <RCVORD_CLF/>
  30. <ORD_THK_MIN>0</ORD_THK_MIN>
  31. <ORD_THK_MAX>230</ORD_THK_MAX>
  32. <ORD_WTH_MIN>0</ORD_WTH_MIN>
  33. <ORD_WTH_MAX>1580</ORD_WTH_MAX>
  34. </searchInfo>
  35. <searchInfo3>
  36. <NONORD_CAUSE_CD/>
  37. <MAT_NOS/>
  38. </searchInfo3>
  39. </formData>
  40. <gridData>
  41. </gridData>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. if (window.parent == null) Init();
  47. datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript" src="../../js/boaCommon.js"/>
  52. <script type="javascript" src="../../js/boaMsg.js"/>
  53. <script type="javascript" src="../../js/mesCommon.js">
  54. <![CDATA[
  55. submitID = "UIE031080-service";
  56. function Init(node) {
  57. InitParams(node);
  58. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
  59. "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
  60. model.setValue("/root/formData/searchInfo/DEL_FR_DATE", commFirstDay());
  61. model.setValue("/root/formData/searchInfo/DEL_TO_DATE", commCurDate());
  62. pageInit();
  63. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  64. }
  65. function pageInit(refresh) {
  66. model.removenode("/root/reqData");
  67. model.removenode("/root/resData");
  68. model.refresh();
  69. var datagrid = datagrid2;
  70. datagrid.rebuild();
  71. var rows = (datagrid.rows < 30) ? datagrid.rows : 30;
  72. for (var i = datagrid.fixedRows + 1; i < 30; i += 2)
  73. datagrid.rowStyle(i, "data", "background-color") = "#F7F9F9";
  74. rows = datagrid.rows;
  75. var colChk = datagrid.colRef("CHK");
  76. for (var i=datagrid.fixedRows; i<rows; i++)
  77. datagrid.valueMatrix(i, colChk) = "false";
  78. colStyle(datagrid, "CHK");
  79. }
  80. function find() {
  81. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  82. pageInit();
  83. //rowchanged();
  84. }
  85. function save() {}
  86. function create() {}
  87. function remove() {}
  88. var onrowchanged = false;
  89. function fowardUID010031(gridID) {
  90. if(gridID.col == gridID.colRef("INGR_YN")) {
  91. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  92. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  93. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  94. var java = window.parent.javaScript;
  95. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  96. }
  97. }
  98. function rowchanged() {
  99. datagrid = datagrid2;
  100. commGridLevel2(datagrid);
  101. colStyle(datagrid, "CHK");
  102. removeProgressBar();
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  108. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="物料号^类型^降级^合同号^订单号^物料厚度^物料宽度^物料长度^物料重量^物料内径^物料外径^堆放位置^钢号^交货期^合同类型^产品名称^生产日期^等级^物料进程^前物料进程^ 钢卷流水号" colsep="^" colwidth="105, 35, 37, 80, 35, 80, 80, 80, 80, 80, 80, 80, 150, 100, 100, 100, 100, 40, 150, 150, 100" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="45" rowsep="|" style="left:0px; top:80px; width:980px; height:525px; ">
  109. <col key="false" ref="DSP_NO"/>
  110. <col key="false" ref="MAT_NAME"/>
  111. <col checkvalue="Y,N" key="false" ref="CHK" type="checkbox"/>
  112. <col key="false" ref="ORD_NO"/>
  113. <col key="false" ref="ORD_SEQ"/>
  114. <col key="false" ref="MAT_THK" format="#,###.#" style="text-align:right; "/>
  115. <col key="false" ref="MAT_WTH" format="#,###.#" style="text-align:right; "/>
  116. <col key="false" ref="MAT_LEN" format="#,###.#" style="text-align:right; "/>
  117. <col key="false" ref="MAT_WGT" format="#,###" style="text-align:right; "/>
  118. <col key="false" ref="COIL_INDIA" format="#,###.#" style="text-align:right; "/>
  119. <col key="false" ref="COIL_OUTDIA" format="#,###.#" style="text-align:right; "/>
  120. <col key="false" ref="CUR_LOAD_LOC"/>
  121. <col key="false" ref="STL_GRD" style="text-align:left; "/>
  122. <col ref="DEL_TO_DATE"/>
  123. <col ref="RCVORD_CLF"/>
  124. <col ref="PRODNM_CD"/>
  125. <col key="false" ref="MAT_DTIME" format="yyyy-mm-dd"/>
  126. <col key="false" ref="MAT_GRD"/>
  127. <col key="false" ref="CUR_PROG_CD" style="text-align:left; "/>
  128. <col key="false" ref="BEF_PROG_CD" style="text-align:left; "/>
  129. <col ref="MAT_NO" visibility="visible"/>
  130. <script type="javascript" ev:event="ondblclick">
  131. <![CDATA[
  132. var datagrid = datagrid2;
  133. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  134. ]]>
  135. </script>
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. var datagrid = datagrid2;
  139. var colChk = datagrid.colRef("CHK");
  140. var row = datagrid.row;
  141. if (datagrid.valueMatrix(row, colChk) == "N") {
  142. datagrid.rowStatus(row) = 0;
  143. }
  144. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  145. ]]>
  146. </script>
  147. </datagrid>
  148. <input id="input1092" ref="/root/formData/searchInfo/ORD_THK_MAX" maxlength="6" format="#,###.#" style="left:591px; top:30px; width:63px; height:20px; text-align:right; "/>
  149. <caption id="caption103" class="cell" style="left:225px; top:5px; width:90px; height:20px; ">牌号</caption>
  150. <button id="button2" style="left:200px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  151. <caption/>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. rightClick();
  155. ]]>
  156. </script>
  157. </button>
  158. <caption id="caption203" class="cell" style="left:675px; top:5px; width:90px; height:20px; ">余材原因</caption>
  159. <caption id="caption104" class="cell" style="left:435px; top:5px; width:90px; height:20px; ">合同号</caption>
  160. <button id="button3" style="left:175px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  161. <caption/>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. leftClick();
  165. ]]>
  166. </script>
  167. </button>
  168. <input id="input1041" ref="/root/formData/searchInfo/ORD_NO_M" maxlength="12" style="left:527px; top:5px; width:80px; height:20px; ">
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. model.setValue("/root/formData/searchInfo/ORD_SEQ_M", "");
  172. // if (model.getValue("/root/formData/searchInfo/ORD_NO_M").length == 12) {
  173. exec("/root/formData/searchInfo/ORD_NO_M", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  174. model.removenode("/root/reqData");
  175. model.removenode("/root/resData");
  176. // } else {
  177. // model.removenode("/root/codeData/ORD_SEQ/ListResult_0_VO");
  178. // }
  179. model.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <select id="checkbox2" ref="/root/formData/searchInfo/RCVORD_CLF" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:765px; top:50px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
  184. <choices>
  185. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'A01001']">
  186. <label ref="SM_CFNM"/>
  187. <value ref="SM_CD"/>
  188. </itemset>
  189. </choices>
  190. </select>
  191. <input id="input10" ref="/root/formData/searchInfo/RCVORD_CLF" inputtype="button" appearance="minimal" style="left:767px; top:30px; width:111px; height:20px; ">
  192. <script type="javascript" ev:event="onclick">
  193. <![CDATA[
  194. checkbox2.visible = (checkbox2.visible == false);
  195. ]]>
  196. </script>
  197. </input>
  198. <caption id="caption1" class="cell" style="left:0px; top:30px; width:90px; height:20px; ">产品</caption>
  199. <caption id="caption109" class="cell" style="left:435px; top:30px; width:90px; height:20px; ">成品厚度</caption>
  200. <select1 id="combo1" ref="/root/formData/searchInfo/MAT_NO" appearance="minimal" editmode="input" style="left:62px; top:5px; width:110px; height:20px; border-color:#000000; ">
  201. <choices>
  202. <itemset nodeset="/root/comboData/slab_no/SLAB_NO_INIT_RES_Row">
  203. <label ref="LABEL"/>
  204. <value ref="VALUE"/>
  205. </itemset>
  206. </choices>
  207. </select1>
  208. <caption id="caption3" class="cell" style="left:675px; top:30px; width:90px; height:20px; ">订货区分</caption>
  209. <input id="input1101" ref="/root/formData/searchInfo/ORD_WTH_MIN" maxlength="6" format="#,###.#" style="left:317px; top:30px; width:48px; height:20px; text-align:right; "/>
  210. <input id="input1102" ref="/root/formData/searchInfo/ORD_WTH_MAX" maxlength="6" format="#,###.#" style="left:370px; top:30px; width:44px; height:20px; text-align:right; "/>
  211. <select1 id="combo1042" ref="/root/formData/searchInfo/ORD_SEQ_M" appearance="minimal" style="left:609px; top:5px; width:45px; height:20px; ">
  212. <choices>
  213. <itemset nodeset="/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row">
  214. <label ref="ORD_SEQ"/>
  215. <value ref="ORD_SEQ"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption110" class="cell" style="left:225px; top:30px; width:90px; height:20px; ">坯料宽度</caption>
  220. <select1 id="combo103" ref="/root/formData/searchInfo/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:317px; top:5px; width:110px; height:20px; ">
  221. <choices>
  222. <itemset nodeset="/root/codeData/ListResult_2_VO/ListResult_2_Row">
  223. <label ref="STL_GRD"/>
  224. <value ref="STL_GRD"/>
  225. </itemset>
  226. </choices>
  227. </select1>
  228. <select1 id="combo203" ref="/root/formData/searchInfo/NONORD_CAUSE_CD" appearance="minimal" style="left:765px; top:5px; width:107px; height:20px; ">
  229. <choices>
  230. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'E01010']">
  231. <label ref="SM_CFNM"/>
  232. <value ref="SM_CD"/>
  233. </itemset>
  234. </choices>
  235. </select1>
  236. <input id="input1091" ref="/root/formData/searchInfo/ORD_THK_MIN" maxlength="6" format="#,###.#" style="left:527px; top:30px; width:62px; height:20px; text-align:right; "/>
  237. <caption id="caption101" class="cell" style="left:0px; top:5px; width:60px; height:20px; ">物料号</caption>
  238. <button id="button202" class="sw" style="left:875px; top:5px; width:100px; height:20px; ">
  239. <caption>降级余材处理</caption>
  240. <script type="javascript" ev:event="onclick">
  241. <![CDATA[
  242. // NIE031051、NIE031052
  243. if (model.getValue("/root/formData/searchInfo/NONORD_CAUSE_CD") == "") {
  244. alert("请选取余材原因!");
  245. return;
  246. }
  247. var datagrid = datagrid2;
  248. var rowSep = (datagrid.attribute("rowsep")=='')?'|':datagrid.attribute('rowsep');
  249. var colSep = (datagrid.attribute("colsep")=='')?'^':datagrid.attribute('colsep');
  250. for(var i = 0 ; i<datagrid2.rows;i++)
  251. {
  252. if(datagrid2.valueMatrix( i , datagrid2.colRef("CHK") ) == "Y" )
  253. {
  254. datagrid2.addStatus(i , "update");
  255. }
  256. }
  257. var data = datagrid.getUpdateData();
  258. var up_data = data.split(rowSep);
  259. var rows = up_data.length - 1;
  260. var colRef = datagrid.colRef("MAT_NO");
  261. var colChk = datagrid.colRef("CHK");
  262. var mat_nos = "";
  263. for (var i=1; i<rows; i++) {
  264. var vRow = up_data[i].split(colSep);
  265. var Idx = Number(vRow[1]);
  266. if (datagrid.valueMatrix(Idx, colChk) == "Y")
  267. mat_nos += "," + datagrid.valueMatrix(Idx, colRef);
  268. }
  269. if (mat_nos != "") {
  270. //alert(mat_nos);
  271. //alert(mat_nos.substring(1));
  272. model.setValue("/root/formData/searchInfo3/MAT_NOS", mat_nos.substring(1));
  273. exec("/root/formData", "", "replace2", "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  274. pageInit();
  275. commGridLevel2(datagrid);
  276. colStyle(datagrid, "CHK");
  277. }
  278. ]]>
  279. </script>
  280. </button>
  281. <input id="input1061" ref="/root/formData/searchInfo/DEL_FR_DATE" inputtype="date" style="left:92px; top:55px; width:100px; height:20px; "/>
  282. <input id="input1062" ref="/root/formData/searchInfo/DEL_TO_DATE" inputtype="date" style="left:194px; top:55px; width:100px; height:20px; "/>
  283. <caption id="caption106" class="cell" style="left:0px; top:55px; width:90px; height:20px; ">交货日期</caption>
  284. <select id="checkbox1" ref="/root/formData/searchInfo/PRODNM_CD" visibility="hidden" overflow="visible" appearance="full" sep="," style="left:90px; top:50px; width:110px; height:20px; background-color:#ffff99; border-color:#ff9900; border-width:1px; ">
  285. <choices>
  286. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD = 'A01004']">
  287. <label ref="SM_CFNM"/>
  288. <value ref="SM_CD"/>
  289. </itemset>
  290. </choices>
  291. </select>
  292. <input id="input1" ref="/root/formData/searchInfo/PRODNM_CD" inputtype="button" appearance="minimal" style="left:90px; top:30px; width:125px; height:20px; ">
  293. <script type="javascript" ev:event="onclick">
  294. <![CDATA[
  295. checkbox1.visible = (checkbox1.visible == false);
  296. ]]>
  297. </script>
  298. </input>
  299. <button id="button1" style="left:395px; top:55px; width:60px; height:20px; ">
  300. <caption>button1</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. find();
  304. ]]>
  305. </script>
  306. </button>
  307. </xhtml:body>
  308. </xhtml:html>