b331b45da82fd60933aab34856191596c0e7c6dc.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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>
  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. <DLIV_TP/>
  37. <XSQY/>
  38. <INS_FROM_DTIME/>
  39. <INS_TO_DTIME/>
  40. <REG_ID/>
  41. </searchData>
  42. <totalData>
  43. <slabCnt/>
  44. <slabWgt/>
  45. </totalData>
  46. <newElement/>
  47. <gridData/>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. if (window.parent == null) Init();
  53. ]]>
  54. </script>
  55. </model>
  56. <script type="javascript" src="../../js/boaCommon.js"/>
  57. <script type="javascript" src="../../js/boaMsg.js"/>
  58. <script type="javascript" src="../../js/boaMsg.js"/>
  59. <script type="javascript" src="../../js/G02.js"/>
  60. <script type="javascript">
  61. <![CDATA[
  62. submitID = "UIF013050-service";
  63. function excelExport(){
  64. return datagrid1;
  65. }
  66. function Init(node) {
  67. if (window.parent != null) {
  68. var java = window.parent.javaScript;
  69. var node = java.getInitDataNode();
  70. if (node != null) {
  71. copyNode(node, "/root/formData/searchInfo");
  72. }
  73. }
  74. commSendReq("/root/searchData");
  75. commSubmit("UIF013040-service","success","glueAction.do");
  76. model.copyNode("/root/codeData/SPEC_STL_GRD","/root/resData/rs3_VO");
  77. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  78. }
  79. //1、获取用户登录信息,只能在页面初始化函数中调用
  80. function InitParams(node)
  81. {
  82. if (typeof node == "undefined" && typeof node != "object")
  83. {
  84. alert("sdf");
  85. return;
  86. }
  87. alert("getid");
  88. model.removenode("/root/initData/rcvInfo");
  89. model.makeNode("/root/initData/rcvInfo");
  90. var nodeList = node.childNodes;
  91. for (var i = 0; i < nodeList.length; i++)
  92. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  93. model.refresh();
  94. alert(instance1.selectSingleNode("/root/initData").xml);
  95. }
  96. //3、页面标题
  97. function setTitle()
  98. {
  99. return "炼钢管制 >> 作业进程现状 >> 冶炼计划情况汇总表"; // 如:return "进程管理 >> 订单进程现况查询";
  100. }
  101. //4. 页面按键动作
  102. // 查询按键
  103. function find()
  104. {
  105. if(input5.value == "" || input6.value == ""){
  106. input5.value = CurentDate();
  107. input6.value = CurentDate();
  108. }
  109. commSendReq("/root/searchData");
  110. commSubmit("UIF013050-service","find","glueAction.do");
  111. model.copyNode("/root/gridData/rs1_VO","/root/resData/rs1_VO");
  112. var slabCnt = 0;
  113. var chargeWGT = 0;
  114. var ordWGT = 0;
  115. var noorderWGT = 0;
  116. datagrid1.refresh();
  117. for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
  118. chargeWGT = chargeWGT + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("PREV_CHARGE_WGT")));
  119. ordWGT = ordWGT + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ORD_WGT1")));
  120. noorderWGT = noorderWGT + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ORD_WGT2")));
  121. }
  122. datagrid1.addRow();
  123. datagrid1.valueMatrix(datagrid1.rows-(datagrid1.fixedRows-1),datagrid1.colRef("PREV_CHARGE_WGT")) = chargeWGT;
  124. datagrid1.valueMatrix(datagrid1.rows-(datagrid1.fixedRows-1),datagrid1.colRef("ORD_WGT1")) = ordWGT;
  125. datagrid1.valueMatrix(datagrid1.rows-(datagrid1.fixedRows-1),datagrid1.colRef("ORD_WGT2")) = noorderWGT;
  126. model.refresh();
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="980" pageheight="620">
  132. <datagrid id="datagrid1" nodeset="/root/gridData/rs1_VO/rs1_Row" caption="下发时间^计划炼钢起始时间^计划炼钢结束时间^浇次管理号^浇次内顺序^合同号^订单号^板坯规格^板坯规格^成品牌号^厂内牌号^预订出钢量^订单材重量^余材重量^炉次管理号^炼钢作业时间^交货期^销售区域^运输方式^是否坑冷^产线^订单用途^编制人|下发时间^计划炼钢起始时间^计划炼钢结束时间^浇次管理号^浇次内顺序^合同号^订单号^厚度^宽度^成品牌号^厂内牌号^预订出钢量^订单材重量^余材重量^炉次管理号^炼钢作业时间^交货期^销售区域^运输方式^是否坑冷^产线^订单用途^编制人" colsep="^" colwidth="102, 100, 100, 45, 45, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" ckcoloralternate="#f7f9f9" style="left:0px; top:60px; width:980px; height:550px; text-align:center; ">
  133. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  134. <col ref="INS_CHARGE_STR_DTIME" format="yyyy-mm-dd"/>
  135. <col ref="INS_CHARGE_END_DTIME" format="yyyy-mm-dd"/>
  136. <col ref="CAST_MANA_NO"/>
  137. <col ref="CAST_CHARGE_SEQ"/>
  138. <col ref="ORD_NO"/>
  139. <col ref="ORD_SEQ"/>
  140. <col ref="SLAB_THK"/>
  141. <col ref="SLAB_WTH"/>
  142. <col ref="SPEC_STL_GRD"/>
  143. <col ref="STL_GRD"/>
  144. <col ref="PREV_CHARGE_WGT" format="#,###"/>
  145. <col ref="ORD_WGT1" format="#,###"/>
  146. <col ref="ORD_WGT2" format="#,###"/>
  147. <col ref="CHARGE_MANA_NO"/>
  148. <col ref="SMS_DUE_DATE"/>
  149. <col ref="DEL_TO_DATE" format="yyyy-mm-dd"/>
  150. <col ref="XSQY"/>
  151. <col ref="DLIV_TP" type="combo">
  152. <choices>
  153. <item>
  154. <label>汽运</label>
  155. <value>C</value>
  156. </item>
  157. <item>
  158. <label>火运</label>
  159. <value>T</value>
  160. </item>
  161. </choices>
  162. </col>
  163. <col ref="KEEPWARM_YN"/>
  164. <col ref="SLAB_RT" type="combo">
  165. <choices>
  166. <item>
  167. <label>热轧</label>
  168. <value>H</value>
  169. </item>
  170. <item>
  171. <label>中板</label>
  172. <value>Z</value>
  173. </item>
  174. <item>
  175. <label>厚板</label>
  176. <value>P</value>
  177. </item>
  178. <item>
  179. <label>冷轧</label>
  180. <value>C</value>
  181. </item>
  182. </choices>
  183. </col>
  184. <col ref="ORD_USEAGE_CD"/>
  185. <col ref="REG_ID"/>
  186. </datagrid>
  187. <caption id="caption1" class="cell" style="left:0px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">下发时间</caption>
  188. <caption id="caption28" class="cell" style="left:745px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">成品牌号</caption>
  189. <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; ">
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. if(model.getValue("/root/searchData/REG_TO_DTIME") == null || model.getValue("/root/searchData/REG_TO_DTIME") == ""||
  193. model.getValue("/root/searchData/REG_FROM_DTIME") > model.getValue("/root/searchData/REG_TO_DTIME")){
  194. model.setValue("/root/searchData/REG_TO_DTIME",model.getValue("/root/searchData/REG_FROM_DTIME"));
  195. input6.refresh();
  196. }
  197. ]]>
  198. </script>
  199. </input>
  200. <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; ">
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. if(model.getValue("/root/searchData/REG_FROM_DTIME") == null || model.getValue("/root/searchData/REG_FROM_DTIME") == ""||
  204. model.getValue("/root/searchData/REG_FROM_DTIME") > model.getValue("/root/searchData/REG_TO_DTIME")){
  205. model.setValue("/root/searchData/REG_FROM_DTIME",model.getValue("/root/searchData/REG_TO_DTIME"));
  206. input5.refresh();
  207. }
  208. ]]>
  209. </script>
  210. </input>
  211. <select1 id="combo21" ref="/root/searchData/SPEC_STL_GRD" appearance="minimal" style="left:805px; top:5px; width:85px; height:20px; ">
  212. <choices>
  213. <itemset nodeset="/root/codeData/SPEC_STL_GRD/rs3_Row">
  214. <label ref="STL_GRD"/>
  215. <value ref="STL_GRD"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption2" class="cell" style="left:255px; top:5px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
  220. <select1 id="combo1" ref="/root/searchData/ORD_SEQ" appearance="minimal" editmode="search" style="left:429px; top:5px; width:45px; height:20px; ">
  221. <choices>
  222. <itemset nodeset="/root/codeData/ORD_SEQ/rs2_Row">
  223. <label ref="ORD_SEQ"/>
  224. <value ref="ORD_SEQ"/>
  225. </itemset>
  226. </choices>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. // if (model.getXPathValue("count(/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row)") == 0) {
  230. // exec("/root/formData/searchInfo/ORD_NO", "", "seq", "/root/codeData/ORD_SEQ/ListResult_0_VO");
  231. // model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
  232. // }
  233. ]]>
  234. </script>
  235. </select1>
  236. <input id="input1" ref="/root/searchData/ORD_NO" maxlength="12" style="left:347px; top:5px; width:80px; height:20px; ">
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. commSendReq("/root/searchData");
  240. commSubmit("UIF013040-service","seq","glueAction.do");
  241. model.copyNode("/root/codeData/ORD_SEQ","/root/resData/rs2_VO");
  242. //pageInit();
  243. model.refresh();
  244. ]]>
  245. </script>
  246. </input>
  247. <caption id="caption3" class="cell" style="left:484px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">交货期</caption>
  248. <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; ">
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. if(model.getValue("/root/searchData/TO_DEL_TO_DATE") == null || model.getValue("/root/searchData/TO_DEL_TO_DATE") == ""||
  252. model.getValue("/root/searchData/FROM_DEL_TO_DATE") > model.getValue("/root/searchData/TO_DEL_TO_DATE")){
  253. model.setValue("/root/searchData/TO_DEL_TO_DATE",model.getValue("/root/searchData/FROM_DEL_TO_DATE"));
  254. input3.refresh();
  255. }
  256. ]]>
  257. </script>
  258. </input>
  259. <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; ">
  260. <script type="javascript" ev:event="xforms-value-changed">
  261. <![CDATA[
  262. if(model.getValue("/root/searchData/FROM_DEL_TO_DATE") == null || model.getValue("/root/searchData/FROM_DEL_TO_DATE") == ""||
  263. model.getValue("/root/searchData/FROM_DEL_TO_DATE") > model.getValue("/root/searchData/TO_DEL_TO_DATE")){
  264. model.setValue("/root/searchData/FROM_DEL_TO_DATE",model.getValue("/root/searchData/TO_DEL_TO_DATE"));
  265. input2.refresh();
  266. }
  267. ]]>
  268. </script>
  269. </input>
  270. <select1 id="combo2" ref="/root/searchData/SLAB_RT" appearance="minimal" style="left:315px; top:30px; width:65px; height:20px; ">
  271. <choices>
  272. <item>
  273. <label>热轧</label>
  274. <value>H</value>
  275. </item>
  276. <item>
  277. <label>中板</label>
  278. <value>Z</value>
  279. </item>
  280. <item>
  281. <label>厚板</label>
  282. <value>P</value>
  283. </item>
  284. <item>
  285. <label>冷轧</label>
  286. <value>C</value>
  287. </item>
  288. <item>
  289. <label>全部</label>
  290. <value/>
  291. </item>
  292. </choices>
  293. </select1>
  294. <caption id="caption4" class="cell" style="left:255px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">产线</caption>
  295. <select1 id="combo3" ref="/root/searchData/ORD_FL" appearance="minimal" style="left:460px; top:30px; width:85px; height:20px; ">
  296. <choices>
  297. <item>
  298. <label>全部</label>
  299. <value/>
  300. </item>
  301. <item>
  302. <label>订单材</label>
  303. <value>1</value>
  304. </item>
  305. <item>
  306. <label>余材</label>
  307. <value>2</value>
  308. </item>
  309. </choices>
  310. </select1>
  311. <caption id="caption5" class="cell" style="left:400px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">订单区分</caption>
  312. <caption id="caption6" class="cell" style="left:555px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
  313. <input id="input4" ref="/root/searchData/SLAB_WTH" style="left:615px; top:30px; width:70px; height:20px; "/>
  314. <caption id="caption7" class="cell" style="left:695px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">销售区域</caption>
  315. <input id="input7" ref="/root/searchData/XSQY" style="left:755px; top:30px; width:70px; height:20px; "/>
  316. <caption id="caption8" class="cell" style="left:840px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">运输方式</caption>
  317. <caption id="caption9" class="cell" style="left:0px; top:30px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">计划时间</caption>
  318. <input id="input9" ref="/root/searchData/INS_FROM_DTIME" class="input" inputtype="date" format="yyyy-mm-dd" style="left:59px; top:30px; width:90px; height:20px; "/>
  319. <input id="input10" ref="/root/searchData/INS_TO_DTIME" class="input" inputtype="date" format="yyyy-mm-dd" style="left:150px; top:30px; width:90px; height:20px; "/>
  320. <select1 id="combo4" ref="/root/searchData/DLIV_TP" appearance="minimal" style="left:900px; top:30px; width:65px; height:20px; ">
  321. <choices>
  322. <item>
  323. <label>汽运</label>
  324. <value>C</value>
  325. </item>
  326. <item>
  327. <label>火运</label>
  328. <value>T</value>
  329. </item>
  330. <item>
  331. <label>全部</label>
  332. <value/>
  333. </item>
  334. </choices>
  335. </select1>
  336. </xhtml:body>
  337. </xhtml:html>