580742fb45166703f7ff4f9b1f890a5a9c06d811.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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[热轧作业>>钢卷库管理>>入库品种规格说明表(UIH051800)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <datagrid1/>
  14. <fromData>
  15. <COIL_NO_F>R9-002206A010</COIL_NO_F>
  16. <COIL_NO_T>R9-999999A010</COIL_NO_T>
  17. <YARD_ENTRY_DTIMEF/>
  18. <YARD_ENTRY_DTIMET/>
  19. <MILL_DTIMEF/>
  20. <MILL_DTIMET/>
  21. <SHIFT/>
  22. <MILL_DTIMEF_HMS>000000</MILL_DTIMEF_HMS>
  23. <MILL_DTIMET_HMS>000000</MILL_DTIMET_HMS>
  24. <MILL_DF/>
  25. <MILL_DT/>
  26. </fromData>
  27. <GG/>
  28. <PH/>
  29. <ZC/>
  30. <sumData>
  31. <SUM_COILRST_CNT/>
  32. <SUM_COILRST_WGT/>
  33. </sumData>
  34. <DY/>
  35. </root>
  36. </instance>
  37. </model>
  38. <script type="javascript">
  39. <![CDATA[
  40. function Init(node) {
  41. InitParams(node);
  42. //这里取出系统时间,把从年头到年尾的情况依次添入
  43. var sysDate = new Date();
  44. var year = sysDate.getYear().toString();
  45. var sysDtimeF = year+"01"+"01";
  46. var sysDtimeT = year+"12"+"31";
  47. model.setValue("/root/fromData/YARD_ENTRY_DTIMEF",sysDtimeF);
  48. model.setValue("/root/fromData/YARD_ENTRY_DTIMET",sysDtimeT);
  49. model.setValue("/root/fromData/MILL_DF",sysDtimeF);
  50. model.setValue("/root/fromData/MILL_DT",sysDtimeT);
  51. model.refresh();
  52. }
  53. //调用公共的初始化方法获得登录用户名
  54. function InitParams(node) {
  55. if (typeof node == "undefined" && typeof node != "object") return;
  56. model.removenode("/root/initData/rcvInfo");
  57. model.makeNode("/root/initData/rcvInfo");
  58. var nodeList = node.childNodes;
  59. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  60. for (var i = 0; i < nodeList.length; i++)
  61. node.appendChild(nodeList.item(i));
  62. }
  63. function excelExport(){
  64. return datagrid1;
  65. }
  66. function find()
  67. {
  68. if(commDiffDay(input5.value,input6.value)>90)
  69. {
  70. alert(" 查询时间过长,请重新选择三个月内数据查询!! ");
  71. return;
  72. }
  73. if(commDiffDay(input1.value,input2.value)>90)
  74. {
  75. alert(" 查询时间过长,请重新选择三个月内数据查询!! ");
  76. return;
  77. }
  78. model.removenode("/root/reqData");
  79. model.makeNode("/root/reqData");
  80. var GG = model.getValue("/root/GG");
  81. var PH = model.getValue("/root/PH");
  82. var ZC = model.getValue("/root/ZC");
  83. var DY = model.getValue("/root/DY");
  84. var MILL_DTIMEF = null;
  85. var MILL_DTIMET = null;
  86. var MILL_DTIMEF_HMS = null;
  87. var MILL_DTIMET_HMS = null;
  88. MILL_DTIMEF = model.getValue("/root/fromData/MILL_DF");
  89. MILL_DTIMET = model.getValue("/root/fromData/MILL_DT");
  90. MILL_DTIMEF_HMS = model.getValue("/root/fromData/MILL_DTIMEF_HMS");
  91. MILL_DTIMET_HMS = model.getValue("/root/fromData/MILL_DTIMET_HMS");
  92. MILL_DTIMEF = MILL_DTIMEF + MILL_DTIMEF_HMS;
  93. MILL_DTIMET = MILL_DTIMET + MILL_DTIMET_HMS;
  94. model.setValue("/root/fromData/MILL_DTIMEF",MILL_DTIMEF);
  95. model.setValue("/root/fromData/MILL_DTIMET",MILL_DTIMET);
  96. model.refresh();
  97. if(GG == "1" && PH == "" && ZC == "" && DY == ""){
  98. commSendReq("/root/fromData");
  99. commSubmit("UIH051800-service","find1","glueAction.do");
  100. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  101. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  102. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  103. model.refresh();
  104. }else if(GG == "" && PH == "2" && ZC == "" && DY == ""){
  105. commSendReq("/root/fromData");
  106. commSubmit("UIH051800-service","find2","glueAction.do");
  107. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  108. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  109. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  110. model.refresh();
  111. }else if(GG == "" && PH == "" && ZC == "3" && DY == ""){
  112. commSendReq("/root/fromData");
  113. commSubmit("UIH051800-service","find3","glueAction.do");
  114. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  115. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  116. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  117. model.refresh();
  118. }else if(GG == "1" && PH == "2" && ZC == "" && DY == ""){
  119. commSendReq("/root/fromData");
  120. commSubmit("UIH051800-service","find4","glueAction.do");
  121. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  122. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  123. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  124. model.refresh();
  125. }else if(GG == "1" && PH == "" && ZC == "3" && DY == ""){
  126. commSendReq("/root/fromData");
  127. commSubmit("UIH051800-service","find5","glueAction.do");
  128. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  129. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  130. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  131. model.refresh();
  132. }else if(GG == "" && PH == "2" && ZC == "3" && DY == ""){
  133. commSendReq("/root/fromData");
  134. commSubmit("UIH051800-service","find6","glueAction.do");
  135. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  136. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  137. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  138. model.refresh();
  139. }else if(GG == "1" && PH == "2" && ZC == "3" && DY == ""){
  140. commSendReq("/root/fromData");
  141. commSubmit("UIH051800-service","find7","glueAction.do");
  142. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  143. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  144. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  145. model.refresh();
  146. }else if(GG == "" && PH == "" && ZC == "" && DY == "4"){
  147. commSendReq("/root/fromData");
  148. commSubmit("UIH051800-service","find8","glueAction.do");
  149. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  150. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  151. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  152. model.refresh();
  153. }else if(GG == "1" && PH == "" && ZC == "" && DY == "4"){
  154. commSendReq("/root/fromData");
  155. commSubmit("UIH051800-service","find9","glueAction.do");
  156. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  157. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  158. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  159. model.refresh();
  160. }else if(GG == "" && PH == "2" && ZC == "" && DY == "4"){
  161. commSendReq("/root/fromData");
  162. commSubmit("UIH051800-service","find10","glueAction.do");
  163. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  164. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  165. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  166. model.refresh();
  167. }else if(GG == "" && PH == "" && ZC == "3" && DY == "4"){
  168. commSendReq("/root/fromData");
  169. commSubmit("UIH051800-service","find11","glueAction.do");
  170. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  171. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  172. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  173. model.refresh();
  174. }else if(GG == "1" && PH == "2" && ZC == "" && DY == "4"){
  175. commSendReq("/root/fromData");
  176. commSubmit("UIH051800-service","find12","glueAction.do");
  177. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  178. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  179. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  180. model.refresh();
  181. }else if(GG == "1" && PH == "" && ZC == "3" && DY == "4"){
  182. commSendReq("/root/fromData");
  183. commSubmit("UIH051800-service","find13","glueAction.do");
  184. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  185. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  186. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  187. model.refresh();
  188. }else if(GG == "" && PH == "2" && ZC == "3" && DY == "4"){
  189. commSendReq("/root/fromData");
  190. commSubmit("UIH051800-service","find14","glueAction.do");
  191. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  192. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  193. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  194. model.refresh();
  195. }else if(GG == "1" && PH == "2" && ZC == "3" && DY == "4"){
  196. commSendReq("/root/fromData");
  197. commSubmit("UIH051800-service","find15","glueAction.do");
  198. commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_RESULT_VO");
  199. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  200. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  201. model.refresh();
  202. }else{
  203. }
  204. }
  205. ]]>
  206. </script>
  207. <script type="javascript" src="../../js/boaCommon.js"/>
  208. </xhtml:head>
  209. <xhtml:body>
  210. <caption id="caption2" class="cell" style="left:270px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
  211. <caption id="caption13" class="cell" style="left:565px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">轧钢时间</caption>
  212. <line id="line4" style="x1:798px; y1:10px; x2:803px; y2:10px; "/>
  213. <input id="input5" ref="/root/fromData/MILL_DF" class="input" inputtype="date" style="left:623px; top:0px; width:87px; height:20px; "/>
  214. <input id="input6" ref="/root/fromData/MILL_DT" class="input" inputtype="date" style="left:805px; top:0px; width:85px; height:20px; "/>
  215. <select1 id="combo2" ref="/root/fromData/SHIFT" appearance="minimal" editmode="inputsearch" style="left:482px; top:30px; width:91px; height:20px; text-align:left; ">
  216. <choices>
  217. <item>
  218. <label>早</label>
  219. <value>1</value>
  220. </item>
  221. <item>
  222. <label>中</label>
  223. <value>2</value>
  224. </item>
  225. <item>
  226. <label>晚</label>
  227. <value>3</value>
  228. </item>
  229. </choices>
  230. </select1>
  231. <caption id="caption1" class="cell" style="left:410px; top:30px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">出炉班次</caption>
  232. <line id="line1" style="x1:435px; y1:10px; x2:440px; y2:10px; "/>
  233. <input id="input1" ref="/root/fromData/YARD_ENTRY_DTIMEF" class="input" inputtype="date" style="left:330px; top:0px; width:102px; height:20px; "/>
  234. <input id="input2" ref="/root/fromData/YARD_ENTRY_DTIMET" class="input" inputtype="date" style="left:442px; top:0px; width:110px; height:20px; "/>
  235. <datagrid id="datagrid1" nodeset="/root/datagrid1/COIL_RESULT_VO/COIL_RESULT_Row" caption="订单材/余材^正次品汇总^厚度汇总^宽度汇总^牌号汇总^卷数(个)^卷重(吨)" colsep="^" colwidth="100, 150, 150, 150, 150, 200, 177" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:980px; height:515px; ">
  236. <col ref="ORD_FL"/>
  237. <col ref="EXTSHAPE_DEC_GRD"/>
  238. <col ref="INSTR_COIL_THK"/>
  239. <col ref="INSTR_COIL_WTH"/>
  240. <col ref="SPEC_STL_GRD"/>
  241. <col ref="COIL_CNT"/>
  242. <col ref="COIL_WGT"/>
  243. </datagrid>
  244. <caption id="caption3" class="cell" style="left:0px; top:30px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">分类汇总</caption>
  245. <select id="checkbox1" ref="/root/GG" overflow="visible" appearance="full" style="left:95px; top:30px; width:60px; height:15px; border-style:none; ">
  246. <choices>
  247. <item>
  248. <label>规格</label>
  249. <value>1</value>
  250. </item>
  251. </choices>
  252. </select>
  253. <select id="checkbox2" ref="/root/PH" overflow="visible" appearance="full" style="left:175px; top:30px; width:60px; height:15px; border-style:none; ">
  254. <choices>
  255. <item>
  256. <label>牌号</label>
  257. <value>2</value>
  258. </item>
  259. </choices>
  260. </select>
  261. <select id="checkbox3" ref="/root/ZC" overflow="visible" appearance="full" style="left:245px; top:30px; width:60px; height:15px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>正次品</label>
  265. <value>3</value>
  266. </item>
  267. </choices>
  268. </select>
  269. <caption id="caption4" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  270. <input id="input3" ref="/root/fromData/COIL_NO_F" maxlength="13" style="left:71px; top:0px; width:90px; height:20px; ">
  271. <hint>
  272. <![CDATA[钢卷号必须输全,否则查询不出数据]]>
  273. </hint>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. //这里要设置改变焦点
  277. model.setFocus("input2" , true);//设置焦点
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </input>
  282. <input id="input4" ref="/root/fromData/COIL_NO_T" maxlength="13" style="left:175px; top:0px; width:90px; height:20px; ">
  283. <hint>
  284. <![CDATA[钢卷号必须输全,否则查询不出数据]]>
  285. </hint>
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. //这里要设置改变焦点
  289. model.setFocus("input5" , true);//设置焦点
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </input>
  294. <line id="line6" style="x1:160px; y1:10px; x2:175px; y2:10px; "/>
  295. <caption id="caption10" class="cell" style="left:805px; top:35px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  296. <caption id="caption11" style="left:785px; top:36px; width:30px; height:20px; font-weight:bold; ">卷</caption>
  297. <caption id="caption12" style="left:955px; top:35px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  298. <line id="line2" style="x1:725px; y1:55px; x2:785px; y2:55px; "/>
  299. <line id="line3" style="x1:875px; y1:55px; x2:955px; y2:55px; "/>
  300. <caption id="caption9" class="cell" style="left:655px; top:35px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  301. <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:725px; top:35px; width:60px; height:20px; text-align:center; "/>
  302. <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:875px; top:35px; width:80px; height:20px; text-align:center; "/>
  303. <input id="input7" ref="/root/fromData/MILL_DTIMEF_HMS" format="hh:nn:ss" style="left:710px; top:0px; width:85px; height:20px; "/>
  304. <input id="input8" ref="/root/fromData/MILL_DTIMET_HMS" format="hh:nn:ss" style="left:890px; top:0px; width:85px; height:20px; "/>
  305. <select id="checkbox4" ref="/root/DY" overflow="visible" appearance="full" style="left:315px; top:30px; width:90px; height:15px; border-style:none; ">
  306. <choices>
  307. <item>
  308. <label>订单材/余材</label>
  309. <value>4</value>
  310. </item>
  311. </choices>
  312. </select>
  313. </xhtml:body>
  314. </xhtml:html>