f2eb76a2995aee4bcdd5fa7d6bd7486384688594.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <?xml-stylesheet href="../css/bCommon.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>
  7. <![CDATA[统计管理>>现况分析>>板坯现况查询]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <formData>
  13. <StDate/>
  14. <EndDate/>
  15. <StlGrd/>
  16. <CHARGE_NO/>
  17. <SHEN_STIME/>
  18. <SHEN_ETIME/>
  19. <stlgrd/>
  20. <chargeNo1/>
  21. </formData>
  22. <reqData/>
  23. <resData/>
  24. <datagrid1/>
  25. <datagrid2/>
  26. <datagrid3/>
  27. <aaa>
  28. <a/>
  29. <b/>
  30. <c/>
  31. <d/>
  32. <e/>
  33. <f/>
  34. </aaa>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. if(window.parent==null) Init();
  40. ]]>
  41. </script>
  42. </model>
  43. <script type="javascript" src="../../js/boaCommon.js"/>
  44. <script type="javascript" src="../../js/b01.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function Init(node)
  48. {
  49. input2.value = commCurDate();
  50. input3.value = commCurDate();
  51. }
  52. function find()
  53. {
  54. if(commDiffDay(input2value,input3.value)>10)
  55. {
  56. window.alert("查询时间不能超过10天");
  57. return;
  58. }
  59. model.removenode("/root/reqData");
  60. model.makeNode("/root/reqData");
  61. commSendReq("/root/formData");
  62. model.makeValue("/root/reqData/CHARGENO" , input1.value.Trim());//炉号
  63. if(input7.value.Trim() == "")
  64. {
  65. model.makeValue("/root/reqData/CHARGENO1" , input1.value.Trim());//炉号
  66. }
  67. else
  68. {
  69. model.makeValue("/root/reqData/CHARGENO1" , input7.value.Trim());
  70. }
  71. model.makeValue("/root/reqData/SHEN_SDTIME", input2.value.Trim()+"0000");//生产开始时间
  72. model.makeValue("/root/reqData/SHEN_EDTIME", input3.value.Trim()+"9999");//生产结束时间
  73. model.makeValue("/root/reqData/STLGRD" , input5.value.Trim());
  74. commSubmit("UIB030201-service", "find", "glueAction.do");
  75. model.copyNode("/root/datagrid1" , "/root/resData/ListResult_1_VO");
  76. model.copyNode("/root/datagrid2" , "/root/resData/ListResult_2_VO");
  77. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  78. model.refresh();
  79. tongji();
  80. }
  81. function tongji()
  82. {
  83. datagrid1.rebuildStyle();
  84. datagrid2.rebuildStyle();
  85. datagrid3.rebuildStyle();
  86. datagrid1.rebuild();
  87. datagrid2.rebuild();
  88. datagrid3.rebuild();
  89. input4.value = datagrid1.rows-datagrid1.fixedRows;
  90. /////////////--------------------------------------------
  91. input6.value = datagrid2.rows-datagrid2.fixedRows;
  92. /////////////--------------------------------------------
  93. input8.value = datagrid3.rows-datagrid3.fixedRows;
  94. datagrid1.subtotal("sum", -1, datagrid1.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
  95. datagrid2.subtotal("sum", -1, datagrid2.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
  96. datagrid3.subtotal("sum", -1, datagrid3.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
  97. // datagrid1.subtotal("count", -1, datagrid1.colRef("ORD_NO"), "#,###", "background-color:#99ff99", 1, "统计");
  98. }
  99. ]]>
  100. </script>
  101. </xhtml:head>
  102. <xhtml:body pagewidth="980" pageheight="620">
  103. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  104. <line id="line3" style="x1:0px; y1:27px; x2:980px; y2:27px; "/>
  105. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
  106. <input id="input1" ref="/root/formData/CHARGE_NO" style="left:80px; top:5px; width:100px; height:20px; "/>
  107. <caption id="caption1" class="cell" style="left:310px; top:5px; width:100px; height:20px; ">生产日期</caption>
  108. <input id="input2" ref="/root/formData/SHEN_STIME" inputtype="date" style="left:410px; top:5px; width:100px; height:20px; "/>
  109. <line id="line2" style="x1:510px; y1:15px; x2:530px; y2:15px; "/>
  110. <input id="input3" ref="/root/formData/SHEN_ETIME" inputtype="date" style="left:535px; top:5px; width:100px; height:20px; "/>
  111. <caption id="caption2" class="cell" style="left:0px; top:5px; width:80px; height:20px; ">炉号</caption>
  112. <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_1_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:50px; width:979px; height:181px; ">
  113. <col ref="SLAB_NO"/>
  114. <col ref="ORD_NO"/>
  115. <col ref="ORD_SEQ"/>
  116. <col ref="INSTR_TWL"/>
  117. <col ref="TWL"/>
  118. <col ref="STL_GRD"/>
  119. <col ref="BEF_STL_GRD"/>
  120. <col ref="SLAB_WGT" format="#,###"/>
  121. <col ref="EXTSHAPE_GRD" visibility="hidden"/>
  122. <col disabled="true" ref="SF_METHOD" type="combo">
  123. <choices>
  124. <item>
  125. <label/>
  126. <value/>
  127. </item>
  128. <item>
  129. <label>全面精整</label>
  130. <value>A</value>
  131. </item>
  132. <item>
  133. <label>待精整</label>
  134. <value>D</value>
  135. </item>
  136. <item>
  137. <label>精整完成</label>
  138. <value>E</value>
  139. </item>
  140. <item>
  141. <label>无精整</label>
  142. <value>N</value>
  143. </item>
  144. <item>
  145. <label>部分精整</label>
  146. <value>P</value>
  147. </item>
  148. </choices>
  149. </col>
  150. <col disabled="true" ref="ORD_FL" type="combo">
  151. <choices>
  152. <item>
  153. <label>订单材</label>
  154. <value>1</value>
  155. </item>
  156. <item>
  157. <label>余材</label>
  158. <value>2</value>
  159. </item>
  160. </choices>
  161. </col>
  162. <col ref="LAST_SLAB_YN"/>
  163. </datagrid>
  164. <caption id="caption3" class="cell" style="left:0px; top:30px; width:100px; height:20px; ">生产总量</caption>
  165. <caption id="caption4" class="cell" style="left:0px; top:234px; width:100px; height:20px; ">在库量</caption>
  166. <caption id="caption5" class="cell" style="left:0px; top:439px; width:100px; height:20px; ">出库量</caption>
  167. <datagrid id="datagrid2" nodeset="/root/datagrid2/ListResult_2_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:254px; width:979px; height:181px; ">
  168. <col ref="SLAB_NO"/>
  169. <col ref="ORD_NO"/>
  170. <col ref="ORD_SEQ"/>
  171. <col ref="INSTR_TWL"/>
  172. <col ref="TWL"/>
  173. <col ref="STL_GRD"/>
  174. <col ref="BEF_STL_GRD"/>
  175. <col ref="SLAB_WGT" format="#,###"/>
  176. <col ref="EXTSHAPE_GRD" visibility="hidden"/>
  177. <col disabled="true" ref="SF_METHOD" type="combo">
  178. <choices>
  179. <item>
  180. <label/>
  181. <value/>
  182. </item>
  183. <item>
  184. <label>全面精整</label>
  185. <value>A</value>
  186. </item>
  187. <item>
  188. <label>待精整</label>
  189. <value>D</value>
  190. </item>
  191. <item>
  192. <label>精整完成</label>
  193. <value>E</value>
  194. </item>
  195. <item>
  196. <label>无精整</label>
  197. <value>N</value>
  198. </item>
  199. <item>
  200. <label>部分精整</label>
  201. <value>P</value>
  202. </item>
  203. </choices>
  204. </col>
  205. <col disabled="true" ref="ORD_FL" type="combo">
  206. <choices>
  207. <item>
  208. <label>订单材</label>
  209. <value>1</value>
  210. </item>
  211. <item>
  212. <label>余材</label>
  213. <value>2</value>
  214. </item>
  215. </choices>
  216. </col>
  217. <col ref="LAST_SLAB_YN"/>
  218. </datagrid>
  219. <datagrid id="datagrid3" nodeset="/root/datagrid3/ListResult_3_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:459px; width:979px; height:158px; ">
  220. <col ref="SLAB_NO"/>
  221. <col ref="ORD_NO"/>
  222. <col ref="ORD_SEQ"/>
  223. <col ref="INSTR_TWL"/>
  224. <col ref="TWL"/>
  225. <col ref="STL_GRD"/>
  226. <col ref="BEF_STL_GRD"/>
  227. <col ref="SLAB_WGT" format="#,###"/>
  228. <col ref="EXTSHAPE_GRD" visibility="hidden"/>
  229. <col disabled="true" ref="SF_METHOD" type="combo">
  230. <choices>
  231. <item>
  232. <label/>
  233. <value/>
  234. </item>
  235. <item>
  236. <label>全面精整</label>
  237. <value>A</value>
  238. </item>
  239. <item>
  240. <label>待精整</label>
  241. <value>D</value>
  242. </item>
  243. <item>
  244. <label>精整完成</label>
  245. <value>E</value>
  246. </item>
  247. <item>
  248. <label>无精整</label>
  249. <value>N</value>
  250. </item>
  251. <item>
  252. <label>部分精整</label>
  253. <value>P</value>
  254. </item>
  255. </choices>
  256. </col>
  257. <col disabled="true" ref="ORD_FL" type="combo">
  258. <choices>
  259. <item>
  260. <label>订单材</label>
  261. <value>1</value>
  262. </item>
  263. <item>
  264. <label>余材</label>
  265. <value>2</value>
  266. </item>
  267. </choices>
  268. </col>
  269. <col ref="LAST_SLAB_YN"/>
  270. </datagrid>
  271. <input id="input4" ref="/root/aaa/a" style="left:195px; top:30px; width:100px; height:20px; "/>
  272. <caption id="caption7" class="cell" style="left:115px; top:30px; width:80px; height:20px; ">总快数:</caption>
  273. <caption id="caption9" class="cell" style="left:110px; top:235px; width:80px; height:20px; ">总快数:</caption>
  274. <input id="input6" ref="/root/aaa/c" style="left:190px; top:235px; width:100px; height:20px; "/>
  275. <input id="input8" ref="/root/aaa/f" style="left:185px; top:440px; width:100px; height:20px; "/>
  276. <caption id="caption11" class="cell" style="left:105px; top:440px; width:80px; height:20px; ">总快数:</caption>
  277. <caption id="caption6" class="cell" style="left:650px; top:5px; width:100px; height:20px; ">牌号</caption>
  278. <input id="input5" ref="/root/formData/stlgrd" style="left:750px; top:5px; width:100px; height:20px; "/>
  279. <line id="line4" style="x1:180px; y1:15px; x2:190px; y2:15px; "/>
  280. <input id="input7" ref="/root/formData/chargeNo1" style="left:190px; top:5px; width:100px; height:20px; "/>
  281. </xhtml:body>
  282. </xhtml:html>