ae0816b94175f4c60d2efdde5de22c84119e9286.svn-base 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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[炼钢作业 >> 板坯库管理 >> 炼钢板坯库出库明细查询]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <SLAB_NO/>
  13. <SLAB_RT/>
  14. <STL_GRD/>
  15. <REG_FROM_TIME/>
  16. <REG_END_TIME/>
  17. <ORD_NO/>
  18. <SLAB_WTH_MIN>0</SLAB_WTH_MIN>
  19. <SLAB_WTH_MAX>10000</SLAB_WTH_MAX>
  20. </formData>
  21. <grid/>
  22. <initResult/>
  23. <reqData/>
  24. <resData/>
  25. <totalData>
  26. <slabCnt/>
  27. <slabWgt/>
  28. </totalData>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");//提交服务
  34. model.duplicate("/root/initResult","/root/resData");//复制结点
  35. model.refresh();
  36. input5.value = commCurDate();
  37. input6.value = commCurDate();
  38. ]]>
  39. </script>
  40. </model>
  41. <script type="javascript">
  42. <![CDATA[
  43. function excelExport(){
  44. return datagrid1;
  45. }
  46. function find(){
  47. if(commDiffDay(input5.value,input6.value)>10)
  48. {
  49. window.alert("查询时间不能超过10天");
  50. return;
  51. }
  52. if(model.getValue("/root/formData/REG_END_TIME") == null || model.getValue("/root/formData/REG_END_TIME") == "" || model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""){
  53. var curDate = CurentDate();
  54. model.setValue("/root/formData/REG_END_TIME",curDate);
  55. model.setValue("/root/formData/REG_FROM_TIME",curDate);
  56. }
  57. commSendReq("/root/formData");
  58. commSubmit("UIG040301-service","find","glueAction.do");
  59. commAppendData("/root/grid/SLAB_TAKEIN_RESULT_VO","/root/resData/SLAB_TAKEIN_RESULT_VO");
  60. datagrid1.refresh();
  61. var slabCnt = 0;
  62. var slabWgt = 0;
  63. datagrid1.refresh();
  64. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  65. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  66. slabCnt = slabCnt + 1;
  67. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i+1,datagrid1.colRef("SLAB_WGT")));
  68. }
  69. datagrid1.refresh();
  70. //出库时间为空时则是炼钢入库时间,字体特殊显示
  71. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  72. {
  73. var actCol = datagrid1.colRef("YARD_EXT_DTIME");
  74. datagrid1.cellStyle("color" , i , actCol) = "#000000";
  75. var isnull = datagrid1.valueMatrix(i,datagrid1.colRef("SMS_YARD_EXT_DTIME"));
  76. if(null == isnull || "" == isnull) {
  77. datagrid1.cellStyle("color" , i , actCol) = "#696969";
  78. }
  79. }
  80. model.setValue("/root/totalData/slabCnt",slabCnt);
  81. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  82. output1.refresh();
  83. output2.refresh();
  84. }
  85. ]]>
  86. </script>
  87. <script type="javascript" src="../../js/boaCommon.js"/>
  88. <script type="javascript" src="../../js/G02.js"/>
  89. </xhtml:head>
  90. <xhtml:body>
  91. <caption id="caption1" class="cell" style="left:242px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板 坯 号</caption>
  92. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:470px; top:0px; width:113px; height:20px; text-align:left; ">
  93. <choices>
  94. <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  95. <label ref="FAC_STL_GRD"/>
  96. <value ref="FAC_CODE"/>
  97. </itemset>
  98. </choices>
  99. </select1>
  100. <caption id="caption4" class="cell" style="left:409px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
  101. <caption id="caption5" class="cell" style="left:590px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯去向</caption>
  102. <input id="input4" ref="/root/formData/SLAB_NO" style="left:303px; top:0px; width:100px; height:20px; "/>
  103. <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" caption="板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^冶炼时间^出库时间^SMS_YARD_EXT_DTIMERE^合同号^备注|板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^冶炼时间^出库时间^SMS_YARD_EXT_DTIMERE^合同号^备注" colsep="^" colwidth="100, 100, 50, 50, 50, 70, 66, 100, 100, 100,120, 100, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:45px; width:980px; height:555px; ">
  104. <col editable="false" ref="SLAB_NO" type="input"/>
  105. <col editable="false" ref="STL_GRD" type="input"/>
  106. <col editable="false" ref="SLAB_THK" type="input"/>
  107. <col editable="false" ref="SLAB_WTH" type="input"/>
  108. <col editable="false" ref="SLAB_LEN" type="input"/>
  109. <col editable="false" ref="SLAB_WGT" type="input"/>
  110. <col ref="WEIGHT_WGT"/>
  111. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  112. <col ref="BOF_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
  113. <col editable="false" ref="YARD_EXT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
  114. <col ref="SMS_YARD_EXT_DTIME" visibility="hidden"/>
  115. <col editable="false" ref="ORD_NO" type="input"/>
  116. <col ref="REMARKS" type="input"/>
  117. </datagrid>
  118. <caption id="caption13" class="cell" style="left:0px; top:0px; width:64px; height:20px; font-weight:bold; border-color:#000000; ">出库时间</caption>
  119. <line id="line4" style="x1:146px; y1:10px; x2:151px; y2:10px; "/>
  120. <input id="input5" ref="/root/formData/REG_FROM_TIME" class="input" inputtype="date" style="left:61px; top:0px; width:85px; height:20px; ">
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. if(model.getValue("/root/formData/REG_END_TIME") == null || model.getValue("/root/formData/REG_END_TIME") == ""||
  124. model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
  125. model.setValue("/root/formData/REG_END_TIME",model.getValue("/root/formData/REG_FROM_TIME"));
  126. input6.refresh();
  127. }
  128. ]]>
  129. </script>
  130. </input>
  131. <input id="input6" ref="/root/formData/REG_END_TIME" class="input" inputtype="date" style="left:150px; top:0px; width:85px; height:20px; ">
  132. <script type="javascript" ev:event="xforms-value-changed">
  133. <![CDATA[
  134. if(model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""||
  135. model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
  136. model.setValue("/root/formData/REG_FROM_TIME",model.getValue("/root/formData/REG_END_TIME"));
  137. input5.refresh();
  138. }
  139. ]]>
  140. </script>
  141. </input>
  142. <caption id="caption2" class="cell" style="left:740px; top:0px; width:61px; height:20px; font-weight:bold; border-color:#000000; ">合同号</caption>
  143. <input id="input1" ref="/root/formData/ORD_NO" style="left:802px; top:0px; width:95px; height:20px; "/>
  144. <select1 id="combo2" ref="/root/formData/SLAB_RT" appearance="minimal" editmode="inputsearch" style="left:651px; top:0px; width:83px; height:20px; text-align:left; ">
  145. <choices>
  146. <item>
  147. <label>卷板</label>
  148. <value>H</value>
  149. </item>
  150. <item>
  151. <label>中板</label>
  152. <value>Z</value>
  153. </item>
  154. <item>
  155. <label>厚板</label>
  156. <value>P</value>
  157. </item>
  158. <item>
  159. <label>外销</label>
  160. <value>W</value>
  161. </item>
  162. <item>
  163. <label>---全部---</label>
  164. <value/>
  165. </item>
  166. </choices>
  167. </select1>
  168. <button id="button2" visibility="hidden" style="left:900px; top:2px; width:100px; height:20px; ">
  169. <caption>查询</caption>
  170. <script type="javascript" ev:event="onclick">
  171. <![CDATA[
  172. find();
  173. ]]>
  174. </script>
  175. </button>
  176. <caption id="caption10" class="cell" style="left:835px; top:25px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  177. <caption id="caption11" style="left:820px; top:26px; width:20px; height:20px; font-weight:bold; ">块</caption>
  178. <caption id="caption12" style="left:960px; top:25px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  179. <line id="line2" style="x1:780px; y1:43px; x2:820px; y2:43px; "/>
  180. <line id="line3" style="x1:895px; y1:43px; x2:960px; y2:43px; "/>
  181. <output id="output1" ref="/root/totalData/slabCnt" style="left:780px; top:25px; width:40px; height:20px; text-align:center; "/>
  182. <caption id="caption9" class="cell" style="left:720px; top:25px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
  183. <output id="output2" ref="/root/totalData/slabWgt" style="left:895px; top:25px; width:65px; height:20px; text-align:center; "/>
  184. <caption id="caption3" class="cell" style="left:0px; top:22px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
  185. <input id="input2" ref="/root/formData/SLAB_WTH_MIN" style="left:60px; top:22px; width:85px; height:20px; "/>
  186. <input id="input3" ref="/root/formData/SLAB_WTH_MAX" style="left:150px; top:22px; width:85px; height:20px; "/>
  187. </xhtml:body>
  188. </xhtml:html>