UIK010020.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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[非计划卷管理>>转运管理>>非计划热卷入库回退及实绩维护(UIK010020)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <COIL_NO/>
  13. <CUR_LOAD_LOC/>
  14. <STL_GRD/>
  15. <COIL_WTH_MIN/>
  16. <COIL_THK_MIN/>
  17. <CUR_PROG_CD/>
  18. <COIL_THK_MAX/>
  19. <COIL_WTH_MAX/>
  20. <COIL_STAT>1</COIL_STAT>
  21. <ZD_STIME/>
  22. <ZD_ETIME/>
  23. </formData>
  24. <sumData>
  25. <SUM_COILRST_CNT/>
  26. <SUM_COILRST_WGT/>
  27. </sumData>
  28. <reqData/>
  29. <resData/>
  30. <boolData>
  31. <qk_yn/>
  32. <ord_fl/>
  33. </boolData>
  34. <datagrid1/>
  35. <BugResult>
  36. <BugResult_Row>
  37. <LABEL/>
  38. <VALUE/>
  39. </BugResult_Row>
  40. </BugResult>
  41. <StlResult>
  42. <StlResult_Row>
  43. <LABEL/>
  44. <VALUE/>
  45. </StlResult_Row>
  46. </StlResult>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. if(window.parent==null) Init();
  52. ]]>
  53. </script>
  54. </model>
  55. <script type="javascript">
  56. <![CDATA[
  57. function Init(node)
  58. {
  59. model.removenode("/root/reqData");
  60. model.makeNode("/root/reqData");
  61. commSubmit("UIK010020-service", "success", "glueAction.do");
  62. model.copyNode("/root/BugResult" , "/root/resData/BugResult_VO");
  63. model.refresh();
  64. model.removenode("/root/reqData");
  65. model.makeNode("/root/reqData");
  66. commSubmit("UIK010020-service", "success", "glueAction.do");
  67. model.copyNode("/root/StlResult" , "/root/resData/StlResult_VO");
  68. model.refresh();
  69. }
  70. function excelExport() {
  71. return datagrid1;
  72. }
  73. function find()
  74. {
  75. model.removenode("/root/reqData");
  76. model.makeValue("/root/reqData/OLD_SAMPL_NO" , input1.value);
  77. model.makeValue("/root/reqData/STL_GRD" , combo1.value);
  78. model.makeValue("/root/reqData/COIL_THK_MIN" , input7.value);
  79. model.makeValue("/root/reqData/COIL_THK_MAX" , input8.value);
  80. model.makeValue("/root/reqData/COIL_WTH_MIN" , input4.value);
  81. model.makeValue("/root/reqData/COIL_WTH_MAX" , input9.value);
  82. model.makeValue("/root/reqData/CUR_PROG_CD" , combo2.value);
  83. model.makeValue("/root/reqData/ZD_STIME" , input3.value);
  84. model.makeValue("/root/reqData/ZD_ETIME" , input5.value);
  85. model.makeValue("/root/reqData/CUR_LOAD_LOC" , input2.value);
  86. model.makeValue("/root/reqData/COIL_STAT" , combo6.value);
  87. commSubmit("UIK010020-service" , "find" , "glueAction.do");
  88. model.copyNode("/root/datagrid1" , "/root/resData/bjfjhResult_VO");
  89. model.refresh();
  90. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  91. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  92. model.refresh();
  93. getSumWGT();
  94. }
  95. function getSumWGT()
  96. {
  97. var totalWGT = 0;
  98. var totalCnt = 0;
  99. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  100. {
  101. totalCnt = totalCnt + 1;
  102. if(datagrid1.valueMatrix(i ,datagrid1.colRef("ACT_WGT")) == "")
  103. {
  104. }else{
  105. totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("ACT_WGT")));
  106. }
  107. }
  108. model.setValue("/root/sumData/SUM_COILRST_CNT",totalCnt);
  109. model.setValue("/root/sumData/SUM_COILRST_WGT",totalWGT/1000);
  110. output1.refresh();
  111. output2.refresh();
  112. }
  113. function edit()
  114. {
  115. model.removenode("/root/reqData");
  116. model.makeNode("/root/reqData");
  117. for(var i=0;i<datagrid1.rows;i++){
  118. datagrid1.rowStatus(i) = 2;
  119. }
  120. model.refresh();
  121. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  122. commSubmit("UIK010020-service","edit","glueAction.do");
  123. datagrid1.clearStatus();
  124. }
  125. function Save1()
  126. {
  127. model.removenode("/root/reqData");
  128. model.makeNode("/root/reqData");
  129. for(var i=0;i<datagrid1.rows;i++){
  130. datagrid1.rowStatus(i) = 2;
  131. }
  132. model.refresh();
  133. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  134. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  135. commSubmit("UIK010020-service","SaveIN","glueAction.do");
  136. datagrid1.clearStatus();
  137. }
  138. function Save2()
  139. {
  140. model.removenode("/root/reqData");
  141. model.makeNode("/root/reqData");
  142. for(var i=0;i<datagrid1.rows;i++){
  143. datagrid1.rowStatus(i) = 2;
  144. }
  145. model.refresh();
  146. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  147. commSubmit("UIK010020-service","SaveOUT","glueAction.do");
  148. datagrid1.clearStatus();
  149. }
  150. function Update1()
  151. {
  152. model.removenode("/root/reqData");
  153. model.makeNode("/root/reqData");
  154. for(var i=0;i<datagrid1.rows;i++){
  155. datagrid1.rowStatus(i) = 2;
  156. }
  157. model.refresh();
  158. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  159. commSubmit("UIK010020-service","update1","glueAction.do");
  160. datagrid1.clearStatus();
  161. }
  162. function DeleteBJ2()
  163. {
  164. model.removenode("/root/reqData");
  165. model.makeNode("/root/reqData");
  166. for(var i=0;i<datagrid1.rows;i++){
  167. datagrid1.rowStatus(i) = 2;
  168. }
  169. model.refresh();
  170. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  171. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  172. commSubmit("UIK010020-service","deleteBJ2","glueAction.do");
  173. datagrid1.clearStatus();
  174. }
  175. ]]>
  176. </script>
  177. <script type="javascript" src="../js/boaCommon.js"/>
  178. <script type="javascript" src="../../js/boaCommon.js"/>
  179. <script type="javascript" src="../../js/b01.js"/>
  180. </xhtml:head>
  181. <xhtml:body visibility="visible" guideline="1,1000;2,601;" style="font-weight:980; font-style:620; ">
  182. <input id="input7" ref="/root/formData/COIL_THK_MIN" style="left:385px; top:0px; width:30px; height:20px; "/>
  183. <input id="input8" ref="/root/formData/COIL_THK_MAX" style="left:430px; top:0px; width:30px; height:20px; "/>
  184. <input id="input9" ref="/root/formData/COIL_WTH_MAX" style="left:575px; top:0px; width:45px; height:20px; "/>
  185. <caption id="caption1" class="cell" style="left:631px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">垛 位</caption>
  186. <caption id="caption10" class="cell" style="left:780px; top:50px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  187. <caption id="caption2" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  188. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:235px; top:0px; width:91px; height:20px; text-align:left; ">
  189. <choices>
  190. <itemset nodeset="/root/StlResult/StlResult_Row">
  191. <label ref="LABEL"/>
  192. <value ref="VALUE"/>
  193. </itemset>
  194. </choices>
  195. </select1>
  196. <caption id="caption11" style="left:745px; top:50px; width:20px; height:20px; font-weight:bold; ">卷</caption>
  197. <select1 id="combo2" ref="/root/formData/CUR_PROG_CD" appearance="minimal" editmode="inputsearch" style="left:70px; top:25px; width:113px; height:20px; text-align:left; ">
  198. <choices>
  199. <item>
  200. <label>入库待机</label>
  201. <value>SDB</value>
  202. </item>
  203. <item>
  204. <label>发货指示待机</label>
  205. <value>SFA</value>
  206. </item>
  207. <item>
  208. <label>充当待机</label>
  209. <value>SRC</value>
  210. </item>
  211. <item>
  212. <label/>
  213. <value/>
  214. </item>
  215. </choices>
  216. </select1>
  217. <caption id="caption3" class="cell" style="left:167px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
  218. <caption id="caption12" style="left:920px; top:50px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  219. <caption id="caption4" class="cell" style="left:465px; top:0px; width:50px; height:20px; font-weight:bold; border-color:#000000; ">宽 度</caption>
  220. <line id="line1" style="x1:415px; y1:10px; x2:430px; y2:10px; "/>
  221. <caption id="caption5" class="cell" style="left:336px; top:0px; width:49px; height:20px; font-weight:bold; border-color:#000000; ">厚 度</caption>
  222. <caption id="caption6" class="cell" style="left:0px; top:25px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">进程状态</caption>
  223. <input id="input1" ref="/root/formData/COIL_NO" style="left:71px; top:0px; width:90px; height:20px; "/>
  224. <input id="input2" ref="/root/formData/CUR_LOAD_LOC" style="left:702px; top:0px; width:83px; height:20px; "/>
  225. <line id="line5" style="x1:560px; y1:10px; x2:575px; y2:10px; "/>
  226. <input id="input4" ref="/root/formData/COIL_WTH_MIN" style="left:515px; top:0px; width:45px; height:20px; "/>
  227. <caption id="caption9" class="cell" style="left:625px; top:50px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  228. <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:685px; top:50px; width:60px; height:20px; text-align:center; "/>
  229. <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:840px; top:50px; width:75px; height:20px; text-align:center; "/>
  230. <datagrid id="datagrid1" nodeset="/root/datagrid1/bjfjhResult_Row" caption="选择^钢卷号^指定状态^冶炼炉号^钢种^热轧实际^热轧实际^热轧实际^热轧实际^热轧实际^订单厚度^订单宽度^判定厚度^判定宽度^重量^堆放位置^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^订单区分^合同号^订单号^综合判定^成份判定^材质判定^尺寸判定^外观判定^重量判定^判定时间^收货单位^发货方式^指定人^指定时间^指定备注|选择^钢卷号^指定状态^冶炼炉号^钢种^厚度^宽度^长度^内径^外径^订单厚度^订单宽度^判定厚度^判定宽度^重量^堆放位置^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^订单区分^合同号^订单号^综合判定^成份判定^材质判定^尺寸判定^外观判定^重量判定^判定时间^收货单位^发货方式^指定人^指定时间^指定备注" colsep="^" colwidth="40, 100, 40, 65, 50, 40, 40, 40, 40, 40, 40, 40, 40, 40, 50, 60, 145, 60, 60, 60, 60, 35, 70, 50, 40, 40, 40, 40, 40, 40, 60, 100, 100, 55, 80, 200" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:80px; width:950px; height:505px; ">
  231. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  232. <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
  233. <col ref="APPOINT_YN"/>
  234. <col ref="CHARGE_NO"/>
  235. <col editable="false" ref="SPEC_STL_GRD" type="combo" style="background-color:#ffff99; ">
  236. <choices>
  237. <itemset nodeset="/root/StlResult/StlResult_Row">
  238. <label ref="LABEL"/>
  239. <value ref="VALUE"/>
  240. </itemset>
  241. </choices>
  242. </col>
  243. <col ref="COIL_THK" type="input" style="background-color:#ffff99; "/>
  244. <col ref="COIL_WTH" type="input" style="background-color:#ffff99; "/>
  245. <col ref="COIL_LEN" type="input" style="background-color:#ffff99; "/>
  246. <col ref="COIL_INDIA" type="input" style="background-color:#ffff99; "/>
  247. <col ref="COIL_OUTDIA" type="input" style="background-color:#ffff99; "/>
  248. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffff99; "/>
  249. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffff99; "/>
  250. <col ref="DCS_THK" type="input" style="background-color:#ffff99; "/>
  251. <col ref="DCS_WTH" type="input" style="background-color:#ffff99; "/>
  252. <col ref="ACT_WGT" type="input" style="background-color:#ffff99; "/>
  253. <col ref="CUR_LOAD_LOC" type="input" style="background-color:#ffff99; "/>
  254. <col ref="CRK_CD1" type="combo" style="background-color:#ffff99; ">
  255. <choices>
  256. <itemset nodeset="/root/BugResult/BugResult_Row">
  257. <label ref="LABEL"/>
  258. <value ref="VALUE"/>
  259. </itemset>
  260. </choices>
  261. </col>
  262. <col ref="CRK_CD2" type="combo" style="background-color:#ffff99; ">
  263. <choices>
  264. <itemset nodeset="/root/BugResult/BugResult_Row">
  265. <label ref="LABEL"/>
  266. <value ref="VALUE"/>
  267. </itemset>
  268. </choices>
  269. </col>
  270. <col ref="CRK_CD3" type="combo" style="background-color:#ffff99; ">
  271. <choices>
  272. <itemset nodeset="/root/BugResult/BugResult_Row">
  273. <label ref="LABEL"/>
  274. <value ref="VALUE"/>
  275. </itemset>
  276. </choices>
  277. </col>
  278. <col ref="CRK_CD4" type="combo" style="background-color:#ffff99; ">
  279. <choices>
  280. <itemset nodeset="/root/BugResult/BugResult_Row">
  281. <label ref="LABEL"/>
  282. <value ref="VALUE"/>
  283. </itemset>
  284. </choices>
  285. </col>
  286. <col ref="CRK_CD5" type="combo" style="background-color:#ffff99; ">
  287. <choices>
  288. <itemset nodeset="/root/BugResult/BugResult_Row">
  289. <label ref="LABEL"/>
  290. <value ref="VALUE"/>
  291. </itemset>
  292. </choices>
  293. </col>
  294. <col disabled="true" ref="ORD_FL"/>
  295. <col editable="false" ref="ORD_NO" type="input"/>
  296. <col editable="false" ref="ORD_SEQ" type="input"/>
  297. <col ref="TOT_DEC_GRD"/>
  298. <col ref="INGR_DEC_GRD"/>
  299. <col ref="MATLQLTY_DEC_GRD"/>
  300. <col ref="SIZE_DEC_RST"/>
  301. <col ref="EXTSHAPE_DEC_GRD"/>
  302. <col ref="WGT_DEC_RST"/>
  303. <col ref="TOT_DEC_DTIME" format="yyyy-mm-dd hh:nn"/>
  304. <col ref="ORDCUST_CD"/>
  305. <col ref="DLIV_TP"/>
  306. <col ref="APPOINT_ID"/>
  307. <col ref="APPOINT_DTIME"/>
  308. <col ref="APPOINT_NOTE" type="input"/>
  309. </datagrid>
  310. <button id="button1" class="cell" style="left:520px; top:55px; width:75px; height:20px; background-color:#ffffff; background-image:F:\1\xgmes3\WebContents\images\btn_exit.gif; ">
  311. <caption>退回</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. Save2();
  315. DeleteBJ2();
  316. find();
  317. ]]>
  318. </script>
  319. </button>
  320. <select1 id="combo6" ref="/root/formData/COIL_STAT" appearance="minimal" style="left:855px; top:0px; width:80px; height:20px; ">
  321. <choices>
  322. <item>
  323. <label>未入库</label>
  324. <value>1</value>
  325. </item>
  326. <item>
  327. <label>已在库</label>
  328. <value>2</value>
  329. </item>
  330. <item>
  331. <label>已出库</label>
  332. <value>3</value>
  333. </item>
  334. <item>
  335. <label>全部</label>
  336. <value/>
  337. </item>
  338. </choices>
  339. </select1>
  340. <caption id="caption18" class="cell" style="left:795px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">库存状态</caption>
  341. <button id="button3" visibility="visible" style="left:190px; top:50px; width:100px; height:20px; ">
  342. <caption>查询</caption>
  343. <script type="javascript" ev:event="onclick">
  344. <![CDATA[
  345. find();
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="button4" visibility="visible" style="left:275px; top:50px; width:100px; height:20px; ">
  350. <caption>保存</caption>
  351. <script type="javascript" ev:event="onclick">
  352. <![CDATA[
  353. edit();
  354. find();
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="button5" class="cell" style="left:430px; top:55px; width:75px; height:20px; background-color:#ffffff; background-image:F:\1\xgmes3\WebContents\images\save.gif; ">
  359. <caption>入库</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. Save1();
  363. Update1();
  364. find();
  365. ]]>
  366. </script>
  367. </button>
  368. <caption id="caption8" class="cell" style="left:260px; top:25px; width:86px; height:20px; font-weight:bold; border-color:#000000; ">移送时间</caption>
  369. <input id="input3" ref="/root/formData/ZD_STIME" inputtype="date" style="left:345px; top:25px; width:100px; height:20px; "/>
  370. <input id="input5" ref="/root/formData/ZD_ETIME" inputtype="date" style="left:460px; top:25px; width:100px; height:20px; "/>
  371. <line id="line2" style="x1:445px; y1:35px; x2:460px; y2:35px; "/>
  372. </xhtml:body>
  373. </xhtml:html>