ec5d77cac8a41b902a2a65fabb3976dcfd96cfed.svn-base 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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[炼钢作业 >> 板坯库管理 >> 炼钢板坯库入库明细查询(UIG040300)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <SLAB_NO/>
  13. <STL_GRD/>
  14. <REG_END_TIME/>
  15. <REG_FROM_TIME/>
  16. <SLAB_RT/>
  17. </formData>
  18. <grid/>
  19. <initResult/>
  20. <reqData/>
  21. <resData/>
  22. <totalData>
  23. <slabCnt/>
  24. <slabWgt/>
  25. </totalData>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");//提交服务
  31. model.duplicate("/root/initResult","/root/resData");//复制结点
  32. model.refresh();
  33. ]]>
  34. </script>
  35. </model>
  36. <script type="javascript">
  37. <![CDATA[
  38. function excelExport(){
  39. return datagrid1;
  40. }
  41. function find(){
  42. if(input4.value == "")
  43. {
  44. if(commDiffDay(input5.value,input6.value)>10)
  45. {
  46. window.alert("查询时间不能超过10天");
  47. return;
  48. }
  49. }
  50. 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") == ""){
  51. var curDate = CurentDate();
  52. model.setValue("/root/formData/REG_END_TIME",curDate);
  53. model.setValue("/root/formData/REG_FROM_TIME",curDate);
  54. }
  55. commSendReq("/root/formData");
  56. commSubmit("UIG040300-service","find","glueAction.do");
  57. commAppendData("/root/grid/SLAB_TAKEIN_RESULT_VO","/root/resData/SLAB_TAKEIN_RESULT_VO");
  58. datagrid1.refresh();
  59. var slabCnt = 0;
  60. var slabWgt = 0;
  61. datagrid1.refresh();
  62. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  63. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  64. slabCnt = slabCnt + 1;
  65. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i+1,datagrid1.colRef("SLAB_WGT")));
  66. }
  67. model.setValue("/root/totalData/slabCnt",slabCnt);
  68. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  69. output1.refresh();
  70. output2.refresh();
  71. }
  72. ]]>
  73. </script>
  74. <script type="javascript" src="../../js/boaCommon.js"/>
  75. <script type="javascript" src="../../js/G02.js"/>
  76. </xhtml:head>
  77. <xhtml:body>
  78. <caption id="caption1" class="cell" style="left:0px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">板 坯 号</caption>
  79. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:525px; top:0px; width:113px; height:20px; text-align:left; ">
  80. <choices>
  81. <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  82. <label ref="FAC_STL_GRD"/>
  83. <value ref="FAC_CODE"/>
  84. </itemset>
  85. </choices>
  86. </select1>
  87. <caption id="caption5" class="cell" style="left:437px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
  88. <input id="input4" ref="/root/formData/SLAB_NO" style="left:86px; top:0px; width:100px; height:20px; "/>
  89. <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" disabled="false" caption="板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^去向^冶炼时间^入库时间^合同号(中厚板)^备注|板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^去向^冶炼时间^入库时间^合同号(中厚板)^备注" colsep="^" colwidth="100, 100, 50, 50, 50, 70, 70, 100, 57, 100, 120, 107, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:50px; width:980px; height:550px; ">
  90. <col editable="false" ref="SLAB_NO" type="input"/>
  91. <col editable="false" ref="STL_GRD" type="input"/>
  92. <col editable="false" ref="SLAB_THK" type="input"/>
  93. <col editable="false" ref="SLAB_WTH" type="input"/>
  94. <col editable="false" ref="SLAB_LEN" type="input"/>
  95. <col editable="false" ref="SLAB_WGT" type="input"/>
  96. <col ref="WEIGHT_WGT"/>
  97. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  98. <col ref="SLAB_RT" type="combo">
  99. <choices>
  100. <item>
  101. <label>卷板</label>
  102. <value>H</value>
  103. </item>
  104. <item>
  105. <label>中板</label>
  106. <value>Z</value>
  107. </item>
  108. <item>
  109. <label>厚板</label>
  110. <value>P</value>
  111. </item>
  112. </choices>
  113. </col>
  114. <col ref="BOF_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
  115. <col editable="false" ref="SMS_YARD_ENT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
  116. <col editable="false" ref="ORD_NO" type="input"/>
  117. <col ref="REMARKS" type="input"/>
  118. </datagrid>
  119. <caption id="caption13" class="cell" style="left:195px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
  120. <input id="input5" ref="/root/formData/REG_FROM_TIME" class="input" inputtype="date" style="left:256px; 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:345px; 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. <line id="line4" style="x1:341px; y1:10px; x2:346px; y2:10px; "/>
  143. <caption id="caption10" class="cell" style="left:835px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  144. <caption id="caption11" style="left:820px; top:6px; width:20px; height:20px; font-weight:bold; ">块</caption>
  145. <caption id="caption12" style="left:960px; top:5px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  146. <line id="line2" style="x1:730px; y1:25px; x2:790px; y2:25px; "/>
  147. <line id="line3" style="x1:880px; y1:25px; x2:960px; y2:25px; "/>
  148. <caption id="caption9" class="cell" style="left:720px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
  149. <output id="output1" ref="/root/totalData/slabCnt" style="left:780px; top:5px; width:40px; height:20px; text-align:center; "/>
  150. <output id="output2" ref="/root/totalData/slabWgt" style="left:895px; top:5px; width:65px; height:20px; text-align:center; "/>
  151. <select1 id="combo2" ref="/root/formData/SLAB_RT" appearance="minimal" editmode="inputsearch" style="left:61px; top:25px; width:83px; height:20px; text-align:left; ">
  152. <choices>
  153. <item>
  154. <label>卷板</label>
  155. <value>H</value>
  156. </item>
  157. <item>
  158. <label>中板</label>
  159. <value>Z</value>
  160. </item>
  161. <item>
  162. <label>厚板</label>
  163. <value>P</value>
  164. </item>
  165. <item>
  166. <label>---全部---</label>
  167. <value/>
  168. </item>
  169. </choices>
  170. </select1>
  171. <caption id="caption2" class="cell" style="left:0px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯去向</caption>
  172. </xhtml:body>
  173. </xhtml:html>