29b76d7d12d34560e3c97787e88c4a0d96bef327.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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[炼钢作业 >> 板坯库管理 >> 热轧原料库入出库明细查询(UIG040800)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <SLAB_NO/>
  13. <REG_FROM_TIME/>
  14. <STL_GRD/>
  15. <REG_END_TIME/>
  16. <FROM_DATE/>
  17. <FROM_TIME>000000</FROM_TIME>
  18. <END_DATE/>
  19. <END_TIME>235959</END_TIME>
  20. <SLAB_FAC/>
  21. <SLAB_STOCK_TYPE/>
  22. <SLAB_MIN_LEN>0</SLAB_MIN_LEN>
  23. <SLAB_MAX_LEN>100000</SLAB_MAX_LEN>
  24. <SLAB_MIN_WTH>0</SLAB_MIN_WTH>
  25. <SLAB_MAX_WTH>100000</SLAB_MAX_WTH>
  26. <IGR_LAG_FROM_DTIME>-999999999</IGR_LAG_FROM_DTIME>
  27. <IGR_LAG_TO_DTIME>999999999</IGR_LAG_TO_DTIME>
  28. <CUT_LAG_FROM_DTIME>-999999999</CUT_LAG_FROM_DTIME>
  29. <CUT_LAG_TO_DTIME>999999999</CUT_LAG_TO_DTIME>
  30. <ORD_NO/>
  31. <ORD_SEQ/>
  32. <TYPE/>
  33. <SLAB_STOCK_EXT_TYPE/>
  34. <ROLL_MANA_NO/>
  35. </formData>
  36. <grid/>
  37. <reqData/>
  38. <resData/>
  39. <initResult/>
  40. <totalData>
  41. <slabCnt/>
  42. <slabWgt/>
  43. </totalData>
  44. <initData>
  45. <LG_CD>D01003,D01001,G04001,G04002</LG_CD>
  46. </initData>
  47. <codeData>
  48. <ORD_SEQ/>
  49. </codeData>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. initPage();
  55. ]]>
  56. </script>
  57. </model>
  58. <script type="javascript">
  59. <![CDATA[
  60. function excelExport(){
  61. return datagrid1;
  62. }
  63. function initPage(){
  64. commSendReq("/root/initData");
  65. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  66. model.copyNode("/root/codeData","/root/resData");
  67. commSendReq("root/reqData");
  68. commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");//提交服务
  69. model.duplicate("/root/initResult","/root/resData");//复制结点
  70. model.refresh();
  71. }
  72. function find(){
  73. if(input4.value == "")
  74. {
  75. if(commDiffDay(input5.value,input6.value)>10)
  76. {
  77. window.alert("查询时间不能超过10天");
  78. return;
  79. }
  80. }
  81. if(model.getValue("/root/formData/END_DATE") == null || model.getValue("/root/formData/END_DATE") == "" || model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""){
  82. var curDate = CurentDate();
  83. model.setValue("/root/formData/END_DATE",curDate);
  84. model.setValue("/root/formData/FROM_DATE",curDate);
  85. }
  86. model.setValue("/root/formData/REG_END_TIME",model.getValue("/root/formData/END_DATE") + model.getValue("/root/formData/END_TIME"));
  87. model.setValue("/root/formData/REG_FROM_TIME",model.getValue("/root/formData/FROM_DATE") + model.getValue("/root/formData/FROM_TIME"));
  88. commSendReq("/root/formData");
  89. if(model.getValue("/root/formData/TYPE") == "enter"){
  90. commSubmit("UIG040800-service","enter","glueAction.do");
  91. }else if (model.getValue("/root/formData/TYPE") == "exit"){
  92. commSubmit("UIG040800-service","exit","glueAction.do");
  93. }else{
  94. model.setValue("/root/formData/TYPE","enter");
  95. commSubmit("UIG040800-service","enter","glueAction.do");
  96. }
  97. //alert("a");
  98. commAppendData("/root/grid/SLAB_TAKEIN_RESULT_VO","/root/resData/SLAB_TAKEIN_RESULT_VO");
  99. datagrid1.refresh();
  100. var slabCnt = 0;
  101. var slabWgt = 0;
  102. datagrid1.refresh();
  103. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  104. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  105. slabCnt = slabCnt + 1;
  106. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i+1,datagrid1.colRef("SLAB_WGT")));
  107. }
  108. model.setValue("/root/totalData/slabCnt",slabCnt);
  109. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  110. output1.refresh();
  111. output2.refresh();
  112. }
  113. ]]>
  114. </script>
  115. <script type="javascript" src="../../js/boaCommon.js"/>
  116. <script type="javascript" src="../../js/G02.js"/>
  117. <script type="javascript" src="../../js/boaCommon.js"/>
  118. <script type="javascript" src="../../js/mesCommon.js"/>
  119. </xhtml:head>
  120. <xhtml:body>
  121. <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" caption="序号^板坯号^钢种^厚^宽^长^重量^堆垛位置^入库时间^合同号^工序^工序^工序^订单号^开浇时间^浇铸结束时间^判定时间^caption1^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^备注|序号^板坯号^钢种^厚^宽^长^重量^堆垛位置^入库时间^合同号^RH^LF^坑冷^订单号^开浇时间^浇铸结束时间^判定时间^caption1^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^备注" colsep="^" colwidth="38, 100, 100, 50, 50, 50, 70, 100, 120, 100, 31, 32, 43, 100, 100, 100, 100, 100, 100, 100, 100, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:980px; height:525px; ">
  122. <col ref="SEQ"/>
  123. <col editable="false" ref="SLAB_NO" type="input"/>
  124. <col editable="false" ref="STL_GRD" type="input"/>
  125. <col editable="false" ref="SLAB_THK" type="input"/>
  126. <col editable="false" ref="SLAB_WTH" type="input"/>
  127. <col editable="false" ref="SLAB_LEN" type="input"/>
  128. <col editable="false" ref="SLAB_WGT" type="input"/>
  129. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  130. <col editable="false" ref="SLAB_STOCK_ENT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
  131. <col ref="ORD_NO"/>
  132. <col ref="RH"/>
  133. <col ref="LF"/>
  134. <col ref="KL"/>
  135. <col ref="ORD_SEQ"/>
  136. <col ref="CASTING_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
  137. <col ref="CASTING_END_DTIME" format="yyyy-mm-dd hh:nn"/>
  138. <col ref="INGR_DEC_DTIME" format="yyyy-mm-dd hh:nn"/>
  139. <col/>
  140. <col ref="CUT_LAG_DTIME"/>
  141. <col ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn"/>
  142. <col ref="CUT_LAG_DTIME"/>
  143. <col ref="REMARKS" type="input"/>
  144. </datagrid>
  145. <caption id="caption10" class="cell" style="left:835px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  146. <caption id="caption11" style="left:820px; top:6px; width:20px; height:20px; font-weight:bold; ">块</caption>
  147. <caption id="caption12" style="left:960px; top:5px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  148. <line id="line2" style="x1:730px; y1:25px; x2:790px; y2:25px; "/>
  149. <line id="line3" style="x1:880px; y1:25px; x2:960px; y2:25px; "/>
  150. <caption id="caption9" class="cell" style="left:720px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
  151. <output id="output1" ref="/root/totalData/slabCnt" style="left:780px; top:5px; width:40px; height:20px; text-align:center; "/>
  152. <output id="output2" ref="/root/totalData/slabWgt" style="left:895px; top:5px; width:65px; height:20px; text-align:center; "/>
  153. <caption id="caption1" class="cell" style="left:0px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
  154. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:489px; top:0px; width:90px; height:20px; text-align:left; ">
  155. <choices>
  156. <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  157. <label ref="FAC_STL_GRD"/>
  158. <value ref="FAC_CODE"/>
  159. </itemset>
  160. </choices>
  161. </select1>
  162. <select1 id="combo2" ref="/root/formData/SLAB_FAC" appearance="minimal" editmode="inputsearch" style="left:215px; top:25px; width:90px; height:20px; text-align:left; ">
  163. <choices>
  164. <item>
  165. <label>一钢厂</label>
  166. <value>一钢</value>
  167. </item>
  168. <item>
  169. <label>二钢厂</label>
  170. <value>二钢</value>
  171. </item>
  172. <item>
  173. <label>三钢厂</label>
  174. <value>三钢</value>
  175. </item>
  176. <item>
  177. <label>全部</label>
  178. <value/>
  179. </item>
  180. </choices>
  181. </select1>
  182. <caption id="caption3" class="cell" style="left:155px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">产 地</caption>
  183. <caption id="caption13" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
  184. <caption id="caption4" class="cell" style="left:429px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
  185. <input id="input2" ref="/root/formData/FROM_TIME" class="input" format="hh:nn:ss" style="left:205px; top:0px; width:65px; height:20px; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. if(model.getValue("/root/formData/REG_END_TIME") == null || model.getValue("/root/formData/REG_END_TIME") == ""||
  189. model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
  190. model.setValue("/root/formData/REG_END_TIME",model.getValue("/root/formData/REG_FROM_TIME"));
  191. input6.refresh();
  192. }
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="input3" ref="/root/formData/END_TIME" class="input" format="hh:nn:ss" style="left:369px; top:0px; width:56px; height:20px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. if(model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""||
  200. model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
  201. model.setValue("/root/formData/REG_FROM_TIME",model.getValue("/root/formData/REG_END_TIME"));
  202. input5.refresh();
  203. }
  204. ]]>
  205. </script>
  206. </input>
  207. <line id="line4" style="x1:269px; y1:10px; x2:279px; y2:10px; "/>
  208. <input id="input4" ref="/root/formData/SLAB_NO" style="left:60px; top:25px; width:90px; height:20px; "/>
  209. <input id="input5" ref="/root/formData/FROM_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:115px; top:0px; width:90px; height:20px; ">
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. if(model.getValue("/root/formData/END_DATE") == null || model.getValue("/root/formData/END_DATE") == ""||
  213. model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/END_DATE")){
  214. model.setValue("/root/formData/END_DATE",model.getValue("/root/formData/FROM_DATE"));
  215. input6.refresh();
  216. }
  217. ]]>
  218. </script>
  219. </input>
  220. <input id="input6" ref="/root/formData/END_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:279px; top:0px; width:90px; height:20px; ">
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. if(model.getValue("/root/formData/FROM_DATE") == null || model.getValue("/root/formData/FROM_DATE") == ""||
  224. model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/END_DATE")){
  225. model.setValue("/root/formData/FROM_DATE",model.getValue("/root/formData/END_DATE"));
  226. input5.refresh();
  227. }
  228. ]]>
  229. </script>
  230. </input>
  231. <caption id="caption2" class="cell" style="left:584px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库类型</caption>
  232. <select1 id="combo8" ref="/root/formData/SLAB_STOCK_TYPE" appearance="minimal" style="left:644px; top:0px; width:60px; height:20px; ">
  233. <choices>
  234. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G04001' or LG_CD = 'A']">
  235. <label ref="SM_CFNM"/>
  236. <value ref="SM_CD"/>
  237. </itemset>
  238. </choices>
  239. </select1>
  240. <select1 id="combo3" ref="/root/formData/SLAB_MIN_LEN" appearance="minimal" editmode="input" style="left:370px; top:25px; width:60px; height:20px; text-align:left; ">
  241. <choices>
  242. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01003']">
  243. <label ref="SM_CD"/>
  244. <value ref="SM_CD"/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <select1 id="combo4" ref="/root/formData/SLAB_MAX_LEN" appearance="minimal" editmode="input" style="left:437px; top:25px; width:65px; height:20px; text-align:left; ">
  249. <choices>
  250. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01003']">
  251. <label ref="SM_CD"/>
  252. <value ref="SM_CD"/>
  253. </itemset>
  254. </choices>
  255. </select1>
  256. <caption id="caption5" class="cell" style="left:310px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">长度范围</caption>
  257. <line id="line1" style="x1:431px; y1:35px; x2:436px; y2:35px; "/>
  258. <caption id="caption15" class="cell" style="left:507px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">宽度范围</caption>
  259. <select1 id="combo11" ref="/root/formData/SLAB_MIN_WTH" appearance="minimal" editmode="input" style="left:567px; top:25px; width:60px; height:20px; text-align:left; ">
  260. <choices>
  261. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01001']">
  262. <label ref="SM_CD"/>
  263. <value ref="SM_CD"/>
  264. </itemset>
  265. </choices>
  266. </select1>
  267. <select1 id="combo12" ref="/root/formData/SLAB_MAX_WTH" appearance="minimal" editmode="input" style="left:634px; top:25px; width:65px; height:20px; text-align:left; ">
  268. <choices>
  269. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01001']">
  270. <label ref="SM_CD"/>
  271. <value ref="SM_CD"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <line id="line6" style="x1:628px; y1:35px; x2:633px; y2:35px; "/>
  276. <input id="input7" ref="/root/formData/CUT_LAG_FROM_DTIME" visibility="hidden" style="left:606px; top:50px; width:63px; height:20px; "/>
  277. <input id="input8" ref="/root/formData/IGR_LAG_TO_DTIME" visibility="hidden" style="left:456px; top:50px; width:63px; height:20px; "/>
  278. <input id="input9" ref="/root/formData/CUT_LAG_TO_DTIME" visibility="hidden" style="left:670px; top:50px; width:58px; height:20px; "/>
  279. <caption id="caption26" class="cell" visibility="hidden" style="left:310px; top:50px; width:82px; height:20px; font-weight:bold; border-color:#000000; ">判定滞后时间</caption>
  280. <caption id="caption27" class="cell" visibility="hidden" style="left:520px; top:50px; width:86px; height:20px; font-weight:bold; border-color:#000000; ">切割滞后时间</caption>
  281. <input id="input1" ref="/root/formData/IGR_LAG_FROM_DTIME" visibility="hidden" style="left:392px; top:50px; width:63px; height:20px; "/>
  282. <caption id="caption6" class="cell" style="left:0px; top:50px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
  283. <select1 id="combo5" ref="/root/formData/ORD_SEQ" appearance="minimal" editmode="search" style="left:174px; top:50px; width:45px; height:20px; ">
  284. <choices>
  285. <itemset nodeset="/root/codeData/ORD_SEQ/rs_VO/rs_Row">
  286. <label ref="ORD_SEQ"/>
  287. <value ref="ORD_SEQ"/>
  288. </itemset>
  289. </choices>
  290. </select1>
  291. <input id="input10" ref="/root/formData/ORD_NO" maxlength="12" style="left:92px; top:50px; width:80px; height:20px; ">
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. model.setValue("/root/formData/ORD_SEQ", "");
  295. commSendReq("/root/formData");
  296. commSubmit("UIG040200-service","seq","glueAction.do");
  297. //model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  298. model.copyNode("/root/codeData/ORD_SEQ","/root/resData");
  299. ]]>
  300. </script>
  301. </input>
  302. <select1 id="combo6" ref="/root/formData/TYPE" appearance="minimal" style="left:60px; top:0px; width:55px; height:20px; ">
  303. <choices>
  304. <item>
  305. <label>入库</label>
  306. <value>enter</value>
  307. </item>
  308. <item>
  309. <label>出库</label>
  310. <value>exit</value>
  311. </item>
  312. </choices>
  313. </select1>
  314. <caption id="caption7" class="cell" style="left:720px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">出库类型</caption>
  315. <select1 id="combo7" ref="/root/formData/SLAB_STOCK_EXT_TYPE" appearance="minimal" style="left:780px; top:25px; width:60px; height:20px; ">
  316. <choices>
  317. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G04002' or LG_CD = 'A']">
  318. <label ref="SM_EFNM"/>
  319. <value ref="SM_CD"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. </xhtml:body>
  324. </xhtml:html>