8d1d739fa2dc1c55a508909167a612acaea6523c.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. <reqData/>
  12. <resData/>
  13. <formData/>
  14. <gridData>
  15. <rs1_VO/>
  16. </gridData>
  17. <initResult/>
  18. <initData>
  19. <LG_CD>E01002</LG_CD>
  20. </initData>
  21. <codeData>
  22. <ORD_SEQ/>
  23. <SPEC_STL_GRD/>
  24. </codeData>
  25. <searchData>
  26. <REG_FROM_DTIME/>
  27. <REG_TO_DTIME/>
  28. <ORD_NO/>
  29. <ORD_SEQ/>
  30. <FROM_DEL_TO_DATE/>
  31. <TO_DEL_TO_DATE/>
  32. <SPEC_STL_GRD/>
  33. <ORD_FL/>
  34. <SLAB_WTH/>
  35. <SLAB_RT/>
  36. </searchData>
  37. <totalData>
  38. <slabCnt/>
  39. <slabWgt/>
  40. </totalData>
  41. <newElement/>
  42. <gridData/>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. commSendReq("/root/searchData");
  48. commSubmit("UIF013040-service","success","glueAction.do");
  49. model.copyNode("/root/codeData/SPEC_STL_GRD","/root/resData/rs3_VO");
  50. //pageInit();
  51. model.refresh();
  52. ]]>
  53. </script>
  54. </model>
  55. <script type="javascript" src="../../js/boaCommon.js"/>
  56. <script type="javascript" src="../../js/boaMsg.js"/>
  57. <script type="javascript" src="../../js/boaMsg.js"/>
  58. <script type="javascript" src="../../js/G02.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. function excelExport(){
  62. return datagrid1;
  63. }
  64. //1、获取用户登录信息,只能在页面初始化函数中调用
  65. function InitParams(node)
  66. {
  67. if (typeof node == "undefined" && typeof node != "object") return;
  68. model.removenode("/root/initData/rcvInfo");
  69. model.makeNode("/root/initData/rcvInfo");
  70. var nodeList = node.childNodes;
  71. for (var i = 0; i < nodeList.length; i++)
  72. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  73. model.refresh();
  74. }
  75. //2. 页面初始化函数(必须)
  76. function Init(node)
  77. {
  78. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  79. // 在程序中会重建该节点,最好不要重名
  80. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  81. //...
  82. }
  83. //3、页面标题
  84. function setTitle()
  85. {
  86. return "炼钢管制 >> 作业进程现状 >> 冶炼计划情况汇总表"; // 如:return "进程管理 >> 订单进程现况查询";
  87. }
  88. //4. 页面按键动作
  89. // 查询按键
  90. function find()
  91. {
  92. if(input5.value == "" || input6.value == ""){
  93. input5.value = CurentDate();
  94. input6.value = CurentDate();
  95. }
  96. commSendReq("/root/searchData");
  97. commSubmit("UIF013040-service","find","glueAction.do");
  98. model.copyNode("/root/gridData/rs1_VO","/root/resData/rs1_VO");
  99. // model.removenode("/root/resData/rs1_VO");
  100. //
  101. var slabCnt = 0;
  102. var slabWgt = 0;
  103. datagrid1.refresh();
  104. for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
  105. slabCnt = slabCnt + 1;
  106. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT")));
  107. }
  108. datagrid1.addRow();
  109. datagrid1.valueMatrix(datagrid1.rows-(datagrid1.fixedRows-1),datagrid1.colRef("SLAB_WGT")) = slabWgt;
  110. datagrid1.valueMatrix(datagrid1.rows-(datagrid1.fixedRows-1),datagrid1.colRef("SLAB_WTH")) = slabCnt;
  111. model.refresh();
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="980" pageheight="620">
  117. <datagrid id="datagrid1" nodeset="/root/gridData/rs1_VO/rs1_Row" caption="下发时间^浇次管理号^浇次内顺序^合同号^订单号^订单规格^订单规格^成品牌号^炉次管理号^厂内牌号^板坯^板坯^板坯^板坯^预定出钢量^订单区分^指示炼钢起始时间^指示炼钢截止时间^交货期^是否坑冷^运输方式^板坯去向^订单用途^编制人|下发时间^浇次管理号^浇次内顺序^合同号^订单号^厚度^宽度^成品牌号^炉次管理号^厂内牌号^厚度^长度^宽度^重量^预定出钢量^订单区分^指示炼钢起始时间^指示炼钢截止时间^交货期^是否坑冷^运输方式^板坯去向^订单用途^编制人" colsep="^" colwidth="102, 45, 45, 80, 50, 45, 45, 80, 80, 90, 40, 40, 40, 50, 133, 61, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" ckcoloralternate="#f7f9f9" style="left:0px; top:55px; width:980px; height:560px; text-align:center; ">
  118. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  119. <col ref="CAST_MANA_NO"/>
  120. <col ref="CAST_EDT_SEQ"/>
  121. <col ref="ORD_NO"/>
  122. <col ref="ORD_SEQ"/>
  123. <col ref="ORD_THK"/>
  124. <col ref="ORD_WTH"/>
  125. <col ref="SPEC_STL_GRD"/>
  126. <col ref="CHARGE_MANA_NO"/>
  127. <col ref="STL_GRD"/>
  128. <col ref="SLAB_THK" style="text-align:right; "/>
  129. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  130. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
  131. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
  132. <col ref="PREV_CHARGE_WGT"/>
  133. <col disabled="true" ref="ORD_FL" type="combo">
  134. <choices>
  135. <item>
  136. <label>订单材</label>
  137. <value>1</value>
  138. </item>
  139. <item>
  140. <label>余材</label>
  141. <value>2</value>
  142. </item>
  143. </choices>
  144. </col>
  145. <col ref="INS_CHARGE_STR_DTIME" format="yyyy-mm-dd"/>
  146. <col ref="INS_CHARGE_END_DTIME" format="yyyy-mm-dd"/>
  147. <col ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
  148. <col ref="KEEPWARM_YN"/>
  149. <col disabled="true" ref="DLIV_TP" type="combo">
  150. <choices>
  151. <item>
  152. <label>汽运</label>
  153. <value>C</value>
  154. </item>
  155. <item>
  156. <label>火运</label>
  157. <value>T</value>
  158. </item>
  159. </choices>
  160. </col>
  161. <col disabled="true" ref="SLAB_RT" type="combo">
  162. <choices>
  163. <item>
  164. <label>热轧</label>
  165. <value>H</value>
  166. </item>
  167. <item>
  168. <label>中板</label>
  169. <value>Z</value>
  170. </item>
  171. <item>
  172. <label>厚板</label>
  173. <value>P</value>
  174. </item>
  175. <item>
  176. <label>冷轧</label>
  177. <value>C</value>
  178. </item>
  179. </choices>
  180. </col>
  181. <col ref="ORD_USEAGE_CD"/>
  182. <col ref="REG_ID"/>
  183. </datagrid>
  184. <caption id="caption1" class="cell" style="left:0px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">下发时间</caption>
  185. <caption id="caption28" class="cell" style="left:0px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">成品牌号</caption>
  186. <input id="input5" ref="/root/searchData/REG_FROM_DTIME" class="input" inputtype="date" format="yyyy-mm-dd" style="left:60px; top:5px; width:90px; height:20px; ">
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. if(model.getValue("/root/searchData/REG_TO_DTIME") == null || model.getValue("/root/searchData/REG_TO_DTIME") == ""||
  190. model.getValue("/root/searchData/REG_FROM_DTIME") > model.getValue("/root/searchData/REG_TO_DTIME")){
  191. model.setValue("/root/searchData/REG_TO_DTIME",model.getValue("/root/searchData/REG_FROM_DTIME"));
  192. input6.refresh();
  193. }
  194. ]]>
  195. </script>
  196. </input>
  197. <input id="input6" ref="/root/searchData/REG_TO_DTIME" class="input" inputtype="date" format="yyyy-mm-dd" style="left:151px; top:5px; width:90px; height:20px; ">
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(model.getValue("/root/searchData/REG_FROM_DTIME") == null || model.getValue("/root/searchData/REG_FROM_DTIME") == ""||
  201. model.getValue("/root/searchData/REG_FROM_DTIME") > model.getValue("/root/searchData/REG_TO_DTIME")){
  202. model.setValue("/root/searchData/REG_FROM_DTIME",model.getValue("/root/searchData/REG_TO_DTIME"));
  203. input5.refresh();
  204. }
  205. ]]>
  206. </script>
  207. </input>
  208. <select1 id="combo21" ref="/root/searchData/SPEC_STL_GRD" appearance="minimal" style="left:60px; top:30px; width:85px; height:20px; ">
  209. <choices>
  210. <itemset nodeset="/root/codeData/SPEC_STL_GRD/rs3_Row">
  211. <label ref="STL_GRD"/>
  212. <value ref="STL_GRD"/>
  213. </itemset>
  214. </choices>
  215. </select1>
  216. <caption id="caption2" class="cell" style="left:255px; top:5px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
  217. <select1 id="combo1" ref="/root/searchData/ORD_SEQ" appearance="minimal" editmode="search" style="left:429px; top:5px; width:45px; height:20px; ">
  218. <choices>
  219. <itemset nodeset="/root/codeData/ORD_SEQ/rs2_Row">
  220. <label ref="ORD_SEQ"/>
  221. <value ref="ORD_SEQ"/>
  222. </itemset>
  223. </choices>
  224. <script type="javascript" ev:event="onclick">
  225. <![CDATA[
  226. // if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  227. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  228. // model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  229. // }
  230. ]]>
  231. </script>
  232. </select1>
  233. <input id="input1" ref="/root/searchData/ORD_NO" maxlength="12" style="left:347px; top:5px; width:80px; height:20px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. commSendReq("/root/searchData");
  237. commSubmit("UIF013040-service","seq","glueAction.do");
  238. model.copyNode("/root/codeData/ORD_SEQ","/root/resData/rs2_VO");
  239. //pageInit();
  240. model.refresh();
  241. ]]>
  242. </script>
  243. </input>
  244. <caption id="caption3" class="cell" style="left:484px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">交货期</caption>
  245. <input id="input2" ref="/root/searchData/FROM_DEL_TO_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:544px; top:5px; width:90px; height:20px; ">
  246. <script type="javascript" ev:event="xforms-value-changed">
  247. <![CDATA[
  248. if(model.getValue("/root/searchData/TO_DEL_TO_DATE") == null || model.getValue("/root/searchData/TO_DEL_TO_DATE") == ""||
  249. model.getValue("/root/searchData/FROM_DEL_TO_DATE") > model.getValue("/root/searchData/TO_DEL_TO_DATE")){
  250. model.setValue("/root/searchData/TO_DEL_TO_DATE",model.getValue("/root/searchData/FROM_DEL_TO_DATE"));
  251. input3.refresh();
  252. }
  253. ]]>
  254. </script>
  255. </input>
  256. <input id="input3" ref="/root/searchData/TO_DEL_TO_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:635px; top:5px; width:90px; height:20px; ">
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. if(model.getValue("/root/searchData/FROM_DEL_TO_DATE") == null || model.getValue("/root/searchData/FROM_DEL_TO_DATE") == ""||
  260. model.getValue("/root/searchData/FROM_DEL_TO_DATE") > model.getValue("/root/searchData/TO_DEL_TO_DATE")){
  261. model.setValue("/root/searchData/FROM_DEL_TO_DATE",model.getValue("/root/searchData/TO_DEL_TO_DATE"));
  262. input2.refresh();
  263. }
  264. ]]>
  265. </script>
  266. </input>
  267. <select1 id="combo2" ref="/root/searchData/ORD_FL" appearance="minimal" style="left:220px; top:30px; width:85px; height:20px; ">
  268. <choices>
  269. <item>
  270. <label>订单材</label>
  271. <value>1</value>
  272. </item>
  273. <item>
  274. <label>余材</label>
  275. <value>2</value>
  276. </item>
  277. </choices>
  278. </select1>
  279. <caption id="caption4" class="cell" style="left:160px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">余材区分</caption>
  280. <caption id="caption5" class="cell" style="left:320px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
  281. <caption id="caption6" class="cell" style="left:480px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯去向</caption>
  282. <input id="input4" ref="/root/searchData/SLAB_WTH" style="left:380px; top:30px; width:85px; height:20px; "/>
  283. <select1 id="combo6" ref="/root/searchData/SLAB_RT" appearance="minimal" style="left:540px; top:30px; width:80px; height:20px; ">
  284. <choices>
  285. <item>
  286. <label>卷板</label>
  287. <value>H</value>
  288. </item>
  289. <item>
  290. <label>中板</label>
  291. <value>Z</value>
  292. </item>
  293. <item>
  294. <label>厚板</label>
  295. <value>P</value>
  296. </item>
  297. <item>
  298. <label>-----</label>
  299. <value/>
  300. </item>
  301. </choices>
  302. </select1>
  303. </xhtml:body>
  304. </xhtml:html>