UIG020900.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <searchData>
  10. <STL_GRD>%</STL_GRD>
  11. <SLAB_MIN_WTH>0</SLAB_MIN_WTH>
  12. <SLAB_MAX_WTH>400</SLAB_MAX_WTH>
  13. <LINE_PROC_CD/>
  14. <SLAB_RT/>
  15. <INGR_DEC_GRD>%</INGR_DEC_GRD>
  16. <DEL_TO_DATE_YN>0</DEL_TO_DATE_YN>
  17. <CUT_FROM_DATE/>
  18. <CUT_TO_DATE/>
  19. <CC_DEVNO/>
  20. <CAST_NO/>
  21. <SLAB_NO/>
  22. <CHARGE_NO/>
  23. <ORD_NO/>
  24. <NO_ORD/>
  25. <NONORD_CAUSE_CD/>
  26. <SLAB_TOT_DEC_GRD/>
  27. <CJHQ>0</CJHQ>
  28. <SLAB_STAT/>
  29. <L2_SCH_NO/>
  30. <SLAB_THK_FRM>0</SLAB_THK_FRM>
  31. <SLAB_THK_TO>3000</SLAB_THK_TO>
  32. <SLAB_WTH_FRM>0</SLAB_WTH_FRM>
  33. <SLAB_WTH_TO>3000</SLAB_WTH_TO>
  34. </searchData>
  35. <grid/>
  36. <totalData>
  37. <slabCnt/>
  38. <slabWgt/>
  39. </totalData>
  40. <initData>
  41. <LG_CD>F01002,F01002,E01010,E01007,D01003,D01001,G04001,B01136</LG_CD>
  42. </initData>
  43. <codeData/>
  44. <combData/>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. commSendReq("/root/initData");
  50. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  51. model.copyNode("/root/codeData","/root/resData");
  52. commSendReq("root/reqData");
  53. commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");
  54. model.copyNode("/root/combData","/root/resData");
  55. model.refresh();
  56. var curDate = CurentDate();
  57. model.setValue("/root/searchData/CUT_FROM_DATE",curDate);
  58. model.setValue("/root/searchData/CUT_TO_DATE",curDate);
  59. model.refresh();
  60. ]]>
  61. </script>
  62. </model>
  63. <script type="javascript" src="../../js/boaCommon.js"/>
  64. <script type="javascript" src="../../js/boaMsg.js"/>
  65. <script type="javascript" src="../../js/mesCommon.js"/>
  66. <script type="javascript" src="../../js/G02.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. function excelExport(){
  70. return datagrid1;
  71. }
  72. function find(){
  73. if(commDiffDay(input1.value,input2.value)>10)
  74. {
  75. window.alert("查询时间不能超过10天");
  76. return;
  77. }
  78. commSendReq("/root/searchData");
  79. commSubmit("UIG020900-service","find","glueAction.do");
  80. commAppendData("/root/grid/rs1_VO","/root/resData/rs1_VO");
  81. datagrid1.refresh();
  82. var slabCnt = 0;
  83. var slabWgt = 0;
  84. datagrid1.refresh();
  85. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++){
  86. slabCnt = slabCnt + 1;
  87. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT")));
  88. //成份不合格为QQ
  89. if(parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("CJHQ"))) > 4)
  90. {
  91. datagrid1.cellStyle("background-color" , i ,datagrid1.colRef("SLAB_NO")) = "#ff0000";
  92. //成份不合格的情况在图型栏中给出红色提示
  93. }
  94. }
  95. model.setValue("/root/totalData/slabCnt",slabCnt);
  96. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  97. output1.refresh();
  98. output2.refresh();
  99. }
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body>
  104. <datagrid id="datagrid1" nodeset="/root/grid/rs1_VO/rs1_Row" caption="切割时间^浇次管理号^订单号^炉号^板坯号^在库时间^计划号^炼钢牌号^实际钢种^成品钢种^厚^宽^长^重量^称重重量^垛位^LF^RH^原钢种是否命中^交货期^生产工艺^生产工艺^判定时间^出库时间^计划炼钢时间^交货期^板坯流向^连铸机号^切割班组^表面检查结果^成分放行结果^成分内控结果^是否红送^下线原因^成分降级^炼钢非计划^余材原因|切割时间^浇次管理号^订单号^炉号^板坯号^在库时间^计划号^炼钢牌号^实际钢种^成品钢种^厚^宽^长^重量^称重重量^垛位^LF^RH^原钢种是否命中^交货期^生产工艺^生产工艺^判定时间^出库时间^计划炼钢时间^交货期^板坯流向^连铸机号^切割班组^表面检查结果^成分放行结果^成分内控结果^是否红送^下线原因^成分降级^炼钢非计划^余材原因" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 50, 50, 50, 70, 100, 100, 50, 50, 100, 100, 100, 100, 95, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:175px; width:960px; height:405px; ">
  105. <col editable="false" ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn"/>
  106. <col editable="false" ref="CAST_NO"/>
  107. <col ref="ORD_NO"/>
  108. <col ref="CHARGE_NO" type="input"/>
  109. <col ref="SLAB_NO" type="input"/>
  110. <col ref="CJHQ"/>
  111. <col ref="L2_SCH_NO"/>
  112. <col ref="BEF_STL_GRD" type="input"/>
  113. <col ref="STL_GRD" type="input"/>
  114. <col ref="SPEC_STL_GRD" style="left:920px; top:41px; width:50px; height:21px; "/>
  115. <col editable="false" ref="SLAB_THK"/>
  116. <col editable="false" ref="SLAB_WTH"/>
  117. <col editable="false" ref="SLAB_LEN"/>
  118. <col editable="false" ref="SLAB_WGT"/>
  119. <col editable="false" ref="WEIGHT_WGT"/>
  120. <col ref="CUR_LOAD_LOC"/>
  121. <col editable="false" ref="LF"/>
  122. <col editable="false" ref="RH"/>
  123. <col editable="false" ref="SFMZ"/>
  124. <col editable="false" ref="L2_SENDBEGINDATE"/>
  125. <col editable="false" ref="LINE_PROC_CD" visibility="hidden"/>
  126. <col editable="false" ref="LINE_PROC_CD" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
  127. <col ref="SLAB_INGR_DEC_DTIME" format="yyyy-mm-dd hh:nn"/>
  128. <col ref="SMS_YARD_EXT_DTIME"/>
  129. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn"/>
  130. <col ref="DEL_TO_DATE" visibility="hidden"/>
  131. <col ref="SLAB_RT" type="combo">
  132. <choices>
  133. <item>
  134. <label>卷板</label>
  135. <value>H</value>
  136. </item>
  137. <item>
  138. <label>中板</label>
  139. <value>Z</value>
  140. </item>
  141. <item>
  142. <label>厚板</label>
  143. <value>P</value>
  144. </item>
  145. </choices>
  146. </col>
  147. <col ref="CC_DEVNO"/>
  148. <col ref="CUT_WKGROUP"/>
  149. <col ref="EXTSHAPE_GRD"/>
  150. <col ref="SLAB_INGR_DEC_KIND"/>
  151. <col ref="INGR_DEC_GRD"/>
  152. <col ref="HCR_CLF"/>
  153. <col ref="XXYY"/>
  154. <col ref="NOORDER2" visibility="hidden"/>
  155. <col ref="NOORDER"/>
  156. <col ref="NONORD_CAUSE_CD"/>
  157. </datagrid>
  158. <caption id="caption21" class="cell" style="left:0px; top:50px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">连铸号</caption>
  159. <input id="input2" ref="/root/searchData/CUT_TO_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:175px; top:25px; width:115px; height:20px; "/>
  160. <caption id="caption1" class="cell" style="left:0px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">切割时间</caption>
  161. <input id="input1" ref="/root/searchData/CUT_FROM_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:60px; top:25px; width:115px; height:20px; "/>
  162. <caption id="caption2" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">超交货期</caption>
  163. <caption id="caption3" class="cell" style="left:0px; top:75px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">浇次号</caption>
  164. <caption id="caption4" class="cell" style="left:0px; top:100px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">合同号</caption>
  165. <caption id="caption5" class="cell" style="left:0px; top:150px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
  166. <caption id="caption6" class="cell" style="left:0px; top:125px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">炉次号</caption>
  167. <caption id="caption7" class="cell" style="left:340px; top:25px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">炼钢非计划</caption>
  168. <caption id="caption9" class="cell" style="left:340px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">综合判定</caption>
  169. <caption id="caption10" class="cell" style="left:340px; top:50px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">余材原因</caption>
  170. <caption id="caption12" class="cell" style="left:340px; top:75px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">板坯流向</caption>
  171. <caption id="caption19" class="cell" style="left:635px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">炼钢牌号</caption>
  172. <select1 id="combo1" ref="/root/searchData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:720px; top:0px; width:115px; height:20px; text-align:left; ">
  173. <choices>
  174. <itemset nodeset="/root/combData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  175. <label ref="FAC_STL_GRD"/>
  176. <value ref="FAC_CODE"/>
  177. </itemset>
  178. </choices>
  179. </select1>
  180. <select1 id="combo4" ref="/root/searchData/SLAB_RT" appearance="minimal" editmode="inputsearch" style="left:410px; top:75px; width:115px; height:20px; text-align:left; ">
  181. <choices>
  182. <item>
  183. <label>卷板</label>
  184. <value>H</value>
  185. </item>
  186. <item>
  187. <label>中板</label>
  188. <value>Z</value>
  189. </item>
  190. <item>
  191. <label>厚板</label>
  192. <value>P</value>
  193. </item>
  194. <item>
  195. <label>-----</label>
  196. <value/>
  197. </item>
  198. </choices>
  199. </select1>
  200. <select1 id="combo5" ref="/root/searchData/CJHQ" appearance="minimal" editmode="inputsearch" style="left:60px; top:0px; width:115px; height:20px; text-align:left; ">
  201. <choices>
  202. <item>
  203. <label>是</label>
  204. <value>4</value>
  205. </item>
  206. <item>
  207. <label>--全部--</label>
  208. <value>0</value>
  209. </item>
  210. </choices>
  211. </select1>
  212. <input id="input3" ref="/root/searchData/CAST_NO" style="left:60px; top:75px; width:115px; height:20px; "/>
  213. <input id="input5" ref="/root/searchData/ORD_NO" style="left:60px; top:100px; width:115px; height:20px; "/>
  214. <input id="input6" ref="/root/searchData/CHARGE_NO" style="left:60px; top:125px; width:115px; height:20px; "/>
  215. <input id="input7" ref="/root/searchData/SLAB_NO" style="left:60px; top:150px; width:115px; height:20px; "/>
  216. <select1 id="combo6" ref="/root/searchData/NO_ORD" appearance="minimal" editmode="inputsearch" style="left:410px; top:25px; width:115px; height:20px; text-align:left; ">
  217. <choices>
  218. <item>
  219. <label>是</label>
  220. <value>Y</value>
  221. </item>
  222. <item>
  223. <label>否</label>
  224. <value>N</value>
  225. </item>
  226. <item>
  227. <label>--全部--</label>
  228. <value>%</value>
  229. </item>
  230. </choices>
  231. </select1>
  232. <select1 id="combo7" ref="/root/searchData/NONORD_CAUSE_CD" appearance="minimal" editmode="inputsearch" style="left:410px; top:50px; width:115px; height:20px; text-align:left; ">
  233. <choices>
  234. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'E01010']">
  235. <label ref="SM_CFNM"/>
  236. <value ref="SM_CD"/>
  237. </itemset>
  238. </choices>
  239. </select1>
  240. <select1 id="combo20" ref="/root/searchData/SLAB_TOT_DEC_GRD" appearance="minimal" style="left:410px; top:0px; width:115px; height:20px; ">
  241. <choices>
  242. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'B01136' or LG_CD ='A']">
  243. <label ref="SM_CFNM"/>
  244. <value ref="SM_CD"/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <caption id="caption8" class="cell" style="left:820px; top:115px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  249. <caption id="caption11" style="left:805px; top:116px; width:20px; height:20px; font-weight:bold; ">块</caption>
  250. <caption id="caption13" style="left:945px; top:115px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  251. <line id="line2" style="x1:755px; y1:135px; x2:815px; y2:135px; "/>
  252. <line id="line3" style="x1:865px; y1:135px; x2:945px; y2:135px; "/>
  253. <output id="output1" ref="/root/totalData/slabCnt" style="left:765px; top:115px; width:40px; height:20px; text-align:center; "/>
  254. <output id="output2" ref="/root/totalData/slabWgt" style="left:880px; top:115px; width:65px; height:20px; text-align:center; "/>
  255. <caption id="caption16" class="cell" style="left:705px; top:115px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
  256. <caption id="caption17" class="cell" style="left:340px; top:100px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">是否出库</caption>
  257. <select1 id="combo8" ref="/root/searchData/SLAB_STAT" appearance="minimal" editmode="inputsearch" style="left:410px; top:100px; width:115px; height:20px; text-align:left; ">
  258. <choices>
  259. <item>
  260. <label>出库</label>
  261. <value>3</value>
  262. </item>
  263. <item>
  264. <label>在库</label>
  265. <value>2</value>
  266. </item>
  267. <item>
  268. <label>---</label>
  269. <value/>
  270. </item>
  271. </choices>
  272. </select1>
  273. <caption id="caption14" class="cell" style="left:635px; top:25px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">计划号</caption>
  274. <input id="input8" ref="/root/searchData/L2_SCH_NO" style="left:720px; top:25px; width:115px; height:20px; "/>
  275. <input id="input9" ref="/root/searchData/SLAB_WTH_FRM" style="left:720px; top:75px; width:115px; height:20px; "/>
  276. <caption id="caption15" class="cell" style="left:635px; top:75px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">坯料宽度</caption>
  277. <caption id="caption18" class="cell" style="left:635px; top:50px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">坯料厚度</caption>
  278. <input id="input10" ref="/root/searchData/SLAB_THK_FRM" style="left:720px; top:50px; width:115px; height:20px; "/>
  279. <input id="input11" ref="/root/searchData/SLAB_WTH_TO" style="left:845px; top:75px; width:115px; height:20px; "/>
  280. <input id="input12" ref="/root/searchData/SLAB_THK_TO" style="left:845px; top:50px; width:115px; height:20px; "/>
  281. <select1 id="combo2" ref="/root/searchData/CC_DEVNO" appearance="minimal" editmode="inputsearch" style="left:60px; top:50px; width:115px; height:20px; text-align:left; ">
  282. <choices>
  283. <item>
  284. <label>1#</label>
  285. <value>J1</value>
  286. </item>
  287. <item>
  288. <label>2#</label>
  289. <value>J2</value>
  290. </item>
  291. <item>
  292. <label>3#</label>
  293. <value>J3</value>
  294. </item>
  295. <item>
  296. <label>-----</label>
  297. <value/>
  298. </item>
  299. </choices>
  300. </select1>
  301. </xhtml:body>
  302. </xhtml:html>