5d4ded14b84b70f97b29cc4aa1e2024a6a675432.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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[热轧作业>>钢卷库管理>>生产实际查询(UIH051700)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <FROM_DATE/>
  13. <TO_DATE/>
  14. <MILL_DTIMEF_HMS>000000</MILL_DTIMEF_HMS>
  15. <MILL_DTIMET_HMS>235959</MILL_DTIMET_HMS>
  16. <MILL_DTIMEF/>
  17. <MILL_DTIMET/>
  18. <ORG_ORD/>
  19. <ORG_SEQ/>
  20. <millshift/>
  21. <millgroup/>
  22. </formData>
  23. <reqData/>
  24. <resData/>
  25. <datagrid1/>
  26. <sumData>
  27. <SUM_COILRST_CNT/>
  28. <SUM_COILRST_WGT/>
  29. </sumData>
  30. </root>
  31. </instance>
  32. </model>
  33. <script type="javascript" src="../../js/boaCommon.js"/>
  34. <script type="javascript" src="../../js/mesCommon.js"/>
  35. <script type="javascript">
  36. <![CDATA[
  37. function excelExport(){
  38. return datagrid1;
  39. }
  40. function Init(node) {
  41. InitParams(node);
  42. //这里取出系统时间,把从年头到年尾的情况依次添入
  43. var sysDtimeF = commCurDate();
  44. var sysDtimeT = commCurDate();
  45. model.setValue("/root/formData/MILL_DTIMEF",sysDtimeF);
  46. model.setValue("/root/formData/MILL_DTIMET",sysDtimeT);
  47. model.refresh();
  48. }
  49. //调用公共的初始化方法获得登录用户名
  50. function InitParams(node) {
  51. if (typeof node == "undefined" && typeof node != "object") return;
  52. model.removenode("/root/initData/rcvInfo");
  53. model.makeNode("/root/initData/rcvInfo");
  54. var nodeList = node.childNodes;
  55. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  56. for (var i = 0; i < nodeList.length; i++)
  57. node.appendChild(nodeList.item(i));
  58. }
  59. function save()
  60. {
  61. model.removenode("/root/reqData");
  62. model.makeNode("/root/reqData");
  63. var nRows = 1;
  64. var nCnt = datagrid1.rows - datagrid1.fixedRows + 1;
  65. for( var i = datagrid1.fixedRows ; i <= nCnt ; i++ ) {
  66. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  67. if( datagrid1.valueMatrix(i, datagrid1.colRef("CHK")) == "Y" ) {
  68. //钢卷号
  69. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , datagrid1.valueMatrix(i, datagrid1.colRef("OLD_SAMPL_NO" )) );
  70. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CHK" , datagrid1.valueMatrix(i, datagrid1.colRef("CHK" )) );
  71. nRows++;
  72. }
  73. }
  74. model.duplicate("/root/reqData","/root/formData/millshift");
  75. model.duplicate("/root/reqData","/root/formData/millgroup");
  76. //这里加入登录用户名,会不会与已有的initData冲突
  77. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  78. commSubmit("UIH051700-service", "save", "glueAction.do");
  79. model.refresh();
  80. find();
  81. }
  82. function find()
  83. {
  84. if(commDiffDay(input5.value,input6.value)>180)
  85. {
  86. alert(" 查询时间过长,请重新选择六个月内数据查询!! ");
  87. return;
  88. }
  89. model.removenode("/root/reqData");
  90. model.makeNode("/root/reqData");
  91. var MILL_DTIMEF = null;
  92. var MILL_DTIMET = null;
  93. var MILL_DTIMEF_HMS = null;
  94. var MILL_DTIMET_HMS = null;
  95. MILL_DTIMEF = model.getValue("/root/formData/MILL_DTIMEF");
  96. MILL_DTIMET = model.getValue("/root/formData/MILL_DTIMET");
  97. MILL_DTIMEF_HMS = model.getValue("/root/formData/MILL_DTIMEF_HMS");
  98. MILL_DTIMET_HMS = model.getValue("/root/formData/MILL_DTIMET_HMS");
  99. MILL_DTIMEF = MILL_DTIMEF + MILL_DTIMEF_HMS;
  100. MILL_DTIMET = MILL_DTIMET + MILL_DTIMET_HMS;
  101. model.setValue("/root/formData/FROM_DATE",MILL_DTIMEF);
  102. model.setValue("/root/formData/TO_DATE",MILL_DTIMET);
  103. model.refresh();
  104. //时间必须输入
  105. if(model.getValue("/root/formData/FROM_DATE") == "" || model.getValue("/root/formData/TO_DATE") == ""){
  106. alert(" 轧钢时间必须输入,请输入相应的轧钢时间再点击查询按钮! ");
  107. return;
  108. }
  109. commSendReq("/root/formData");
  110. commSubmit("UIH051700-service","find","glueAction.do");
  111. commAppendData("/root/datagrid1/COIL_IN_RESULT_VO","/root/resData/COIL_IN_RESULT_VO");
  112. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  113. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  114. var nRows = 1;
  115. var nCnt = datagrid1.rows - datagrid1.fixedRows + 1;
  116. for( var i = datagrid1.fixedRows ; i <= nCnt ; i++ ) {
  117. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  118. if( datagrid1.valueMatrix(i, datagrid1.colRef("CHK")) == "Y" ) {
  119. datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) = "";
  120. nRows++;
  121. }
  122. }
  123. model.refresh();
  124. }
  125. ]]>
  126. </script>
  127. </xhtml:head>
  128. <xhtml:body>
  129. <caption id="caption10" class="cell" style="left:810px; top:0px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  130. <caption id="caption11" style="left:790px; top:1px; width:30px; height:20px; font-weight:bold; ">卷</caption>
  131. <caption id="caption12" style="left:960px; top:0px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  132. <caption id="caption13" class="cell" style="left:0px; top:0px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">轧钢时间</caption>
  133. <line id="line2" style="x1:730px; y1:20px; x2:790px; y2:20px; "/>
  134. <line id="line3" style="x1:880px; y1:20px; x2:960px; y2:20px; "/>
  135. <line id="line4" style="x1:215px; y1:10px; x2:220px; y2:10px; "/>
  136. <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:730px; top:0px; width:60px; height:20px; text-align:center; "/>
  137. <caption id="caption9" class="cell" style="left:660px; top:0px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  138. <input id="input5" ref="/root/formData/MILL_DTIMEF" class="input" inputtype="date" style="left:75px; top:0px; width:85px; height:20px; "/>
  139. <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:880px; top:0px; width:80px; height:20px; text-align:center; "/>
  140. <input id="input6" ref="/root/formData/MILL_DTIMET" class="input" inputtype="date" style="left:220px; top:0px; width:85px; height:20px; "/>
  141. <datagrid id="datagrid1" nodeset="/root/datagrid1/COIL_IN_RESULT_VO/COIL_IN_RESULT_Row" caption="选择^批号^产品类型^钢卷号^班次^班组^冶炼炉号^合同号^订单号^原合同号^原订单号^钢种^板坯规格^板坯规格^板坯规格^订单规格^订单规格^成品规格^成品规格^钢卷磅重^平均单重^垛位^来料时间^轧钢时间^交货期^轧钢班次^轧钢班组^轧钢录入人^轧钢录入时间^钢卷状态^垛位录入人^垛位输机时间^合同单位|选择^批号^产品类型^钢卷号^班次^班组^冶炼炉号^合同号^订单号^原合同号^原订单号^钢种^厚度^宽度^长度^厚度^宽度^厚度^宽度^钢卷磅重^平均单重^垛位^来料时间^轧钢时间^交货期^轧钢班次^轧钢班组^轧钢录入人^轧钢录入时间^钢卷状态^垛位录入人^垛位输机时间^合同单位" colsep="^" colwidth="51, 80, 84, 90, 42, 44, 90, 90, 50, 78, 81, 90, 49, 56, 55, 56, 53, 46, 41, 80, 73, 90, 78, 100, 74, 100, 100, 100, 100, 100, 100, 100, 144" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:50px; width:965px; height:565px; ">
  142. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  143. <col editable="false" ref="SPM_NO" type="input" style="background-color:#ffffff; "/>
  144. <col editable="false" ref="PRD_TY" type="input" style="background-color:#ffffff; "/>
  145. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
  146. <col editable="false" ref="MILL_SHIFT" type="input" style="color:#ffff00; background-color:#ffffff; "/>
  147. <col editable="false" ref="MILL_GROUP" type="input" style="color:#ffff00; background-color:#ffffff; "/>
  148. <col editable="false" ref="CHARGE_NO" type="input" style="background-color:#ffffff; "/>
  149. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  150. <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
  151. <col editable="false" ref="ORG_ORD_NO" type="input" style="background-color:#ffffff; "/>
  152. <col editable="false" ref="ORG_ORD_SEQ" type="input" style="background-color:#ffffff; "/>
  153. <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
  154. <col editable="false" ref="SLAB_THK" type="input" style="background-color:#ffffff; "/>
  155. <col editable="false" ref="SLAB_WTH" type="input" style="background-color:#ffffff; "/>
  156. <col editable="false" ref="SLAB_LEN" type="input" style="background-color:#ffffff; "/>
  157. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
  158. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
  159. <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
  160. <col editable="false" ref="COIL_WTH" type="input" style="background-color:#ffffff; "/>
  161. <col editable="false" ref="ACT_WGT" type="input" style="background-color:#ffffff; "/>
  162. <col editable="false" ref="CAL_WGT" type="input" style="background-color:#ffffff; "/>
  163. <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
  164. <col editable="false" ref="SLAB_STOCK_ENT_DTIME" type="input" style="background-color:#ffffff; "/>
  165. <col editable="false" ref="MILL_DTIME" type="input" style="background-color:#ffffff; "/>
  166. <col editable="false" ref="DEL_TO_DATE" type="input" style="background-color:#ffffff; "/>
  167. <col editable="false" ref="WKSHIFT" type="input" style="background-color:#ffffff; "/>
  168. <col editable="false" ref="WKGROUP" type="input" style="background-color:#ffffff; "/>
  169. <col editable="false" ref="WK_EMP_USE_NO" type="input" style="background-color:#ffffff; "/>
  170. <col editable="false" ref="WK_EMP_USE_DTIME" type="input" style="background-color:#ffffff; "/>
  171. <col editable="false" ref="COIL_STAT" type="input" style="background-color:#ffffff; "/>
  172. <col editable="false" ref="YARD_ENTRY_REG" type="input" style="background-color:#ffffff; "/>
  173. <col editable="false" ref="YARD_ENTRY_USE_TIME" type="input" style="background-color:#ffffff; "/>
  174. <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
  175. </datagrid>
  176. <input id="input7" ref="/root/formData/MILL_DTIMEF_HMS" format="hh:nn:ss" style="left:160px; top:0px; width:55px; height:20px; "/>
  177. <input id="input8" ref="/root/formData/MILL_DTIMET_HMS" format="hh:nn:ss" style="left:305px; top:0px; width:60px; height:20px; "/>
  178. <button id="button1" visibility="visible" style="left:555px; top:25px; width:40px; height:20px; ">
  179. <caption>查询</caption>
  180. <script type="javascript" ev:event="onclick">
  181. <![CDATA[
  182. find();
  183. ]]>
  184. </script>
  185. </button>
  186. <input id="input1" ref="/root/formData/ORG_ORD" style="left:435px; top:0px; width:100px; height:20px; "/>
  187. <caption id="caption1" class="cell" style="left:370px; top:0px; width:65px; height:20px; font-weight:bold; border-color:#000000; ">原合同号</caption>
  188. <caption id="caption2" class="cell" style="left:540px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">原订单号</caption>
  189. <input id="input2" ref="/root/formData/ORG_SEQ" style="left:600px; top:0px; width:45px; height:20px; "/>
  190. <caption id="caption3" class="cell" style="left:0px; top:25px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">班次</caption>
  191. <caption id="caption4" class="cell" style="left:160px; top:25px; width:55px; height:20px; font-weight:bold; border-color:#000000; ">班组</caption>
  192. <button id="button2" visibility="visible" style="left:310px; top:25px; width:75px; height:20px; ">
  193. <caption>保存</caption>
  194. <script type="javascript" ev:event="onclick">
  195. <![CDATA[
  196. save();
  197. ]]>
  198. </script>
  199. </button>
  200. <select1 id="combo1" ref="/root/formData/millshift" appearance="minimal" style="left:75px; top:25px; width:85px; height:20px; ">
  201. <choices>
  202. <item>
  203. <label>早</label>
  204. <value>1</value>
  205. </item>
  206. <item>
  207. <label>中</label>
  208. <value>2</value>
  209. </item>
  210. <item>
  211. <label>晚</label>
  212. <value>3</value>
  213. </item>
  214. <item>
  215. <label>常白班</label>
  216. <value>0</value>
  217. </item>
  218. </choices>
  219. </select1>
  220. <select1 id="combo2" ref="/root/formData/millgroup" appearance="minimal" style="left:215px; top:25px; width:90px; height:20px; ">
  221. <choices>
  222. <item>
  223. <label>甲</label>
  224. <value>1</value>
  225. </item>
  226. <item>
  227. <label>乙</label>
  228. <value>2</value>
  229. </item>
  230. <item>
  231. <label>丙</label>
  232. <value>3</value>
  233. </item>
  234. <item>
  235. <label>丁</label>
  236. <value>4</value>
  237. </item>
  238. </choices>
  239. </select1>
  240. </xhtml:body>
  241. </xhtml:html>