05663d66c9c38fb52ae835a3f0a10a36fd00fed6.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <reqData/>
  10. <resData/>
  11. <formData>
  12. <gatherMethod>K</gatherMethod>
  13. <SLAB_RT/>
  14. <STL_GRD/>
  15. <P_WTH/>
  16. <P_THK/>
  17. <P_CUR_PROG_CD/>
  18. </formData>
  19. <gridData>
  20. <INSTR_COIL_THK/>
  21. <SLAB_CNT750/>
  22. <SLAB_CNT800/>
  23. <SLAB_CNT850/>
  24. <SLAB_CNT900/>
  25. <SLAB_CNT950/>
  26. <SLAB_CNT1000/>
  27. <SLAB_CNT1050/>
  28. <SLAB_CNT1100/>
  29. <SLAB_CNT1150/>
  30. <SLAB_CNT1200/>
  31. <SLAB_CNT1250/>
  32. <SLAB_CNT1300/>
  33. <SLAB_CNT1350/>
  34. <SLAB_CNT1400/>
  35. <SLAB_CNT1450/>
  36. <SUM_CNT>0</SUM_CNT>
  37. </gridData>
  38. <initResult/>
  39. <g1Data/>
  40. </root>
  41. </instance>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. commSubmit("UIF022010-service","success","glueAction.do");
  45. model.duplicate("/root/initResult","/root/resData");//复制结点
  46. //插入空串到第一个结点
  47. //addAllOption("/root/initResult/resData/resultkey0_VO","/root/initResult/resData/resultkey0_VO/resultkey0_Row","FAC_STL_GRD","FAC_CODE","--全部--");
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <script type="javascript" src="../../js/boaMsg.js"/>
  52. <script type="javascript" src="../../js/boaCommon.js"/>
  53. <script type="javascript" src="../../js/dCommon.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. var m = 0;
  57. //1、获取用户登录信息,只能在页面初始化函数中调用
  58. function InitParams(node)
  59. {
  60. if (typeof node == "undefined" && typeof node != "object") return;
  61. model.removenode("/root/initData/rcvInfo");
  62. model.makeNode("/root/initData/rcvInfo");
  63. var nodeList = node.childNodes;
  64. for (var i = 0; i < nodeList.length; i++)
  65. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  66. }
  67. //2. 页面初始化函数(必须)
  68. function Init(node)
  69. {
  70. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  71. // 在程序中会重建该节点,最好不要重名
  72. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  73. //...
  74. }
  75. //3、页面标题
  76. function setTitle()
  77. {
  78. return "热轧管制 >> 作业进程现状 >> 各钢卷厚度板坯宽度物料分析现况"; // 如:return "进程管理 >> 订单进程现况查询";
  79. }
  80. //4. 页面按键动作
  81. // 查询按键
  82. function find()
  83. {
  84. if(m != 0)
  85. {
  86. datagrid1.rowstyle(m, "data", "background-color") = "#ffffff";
  87. datagrid1.rowstyle(m, "data", "color") = "#000000";
  88. }
  89. model.removenode("/root/reqData");
  90. model.makeNode("/root/reqData");
  91. commSendReq("/root/formData");
  92. if(combo3.value == 'K') {
  93. datagrid1.nodeset = "/root/g1Data/rs1_VO/rs1_Row";
  94. commSubmit("UIF022010-service","countMaterielCoilThkSlabWthByK","glueAction.do");
  95. model.removenode("/root/g1Data");
  96. model.makeNode("/root/g1Data");
  97. commAppendData("/root/g1Data/rs1_VO","/root/resData/rs1_VO");
  98. }
  99. else {
  100. datagrid1.nodeset = "/root/g1Data/rs2_VO/rs2_Row";
  101. commSubmit("UIF022010-service","countMaterielCoilThkSlabWthByW","glueAction.do");
  102. model.removenode("/root/g1Data");
  103. model.makeNode("/root/g1Data");
  104. commAppendData("/root/g1Data/rs2_VO","/root/resData/rs2_VO");
  105. }
  106. model.refresh();
  107. if(datagrid1.rows> 1) {
  108. m= datagrid1.rows-1;
  109. datagrid1.rowstyle(datagrid1.rows-1, "data", "background-color") = "#ffffcc";
  110. datagrid1.rowstyle(datagrid1.rows-1, "data", "color") = "red";
  111. datagrid1.colstyle(datagrid1.cols-1, "data", "background-color") = "#ffffcc";
  112. datagrid1.colstyle(datagrid1.cols-1, "data", "color") = "red";
  113. }
  114. }
  115. //添加全部选项到combo头部
  116. function addAllOption(srcpath,targetpath,lable,value,allvalue) {
  117. model.duplicate(srcpath,targetpath);
  118. model.setValue(targetpath + "/" +lable,allvalue);
  119. model.setValue(targetpath + "/" +value,"");
  120. }
  121. ]]>
  122. </script>
  123. </model>
  124. </xhtml:head>
  125. <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;2,620;" style="font-family:宋体; ">
  126. <line id="line3" style="x1:1px; y1:29px; x2:980px; y2:29px; border-color:#ff00ff; "/>
  127. <datagrid id="datagrid1" nodeset="/root/g1Data/rs1_VO/rs1_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="轧制厚度\板坏宽度^≤750^≤800^≤850^≤900^≤950^≤1000^≤1050^≤1100^≤1150^≤1200^≤1250^≤1300^≤1350^≤1400^≤1450^&gt;1450^合计|轧制厚度\板坏宽度^≤750^≤800^≤850^≤900^≤950^≤1000^≤1050^≤1100^≤1150^≤1200^≤1250^≤1300^≤1350^≤1400^≤1450^&gt;1450^合计" colsep="^" colwidth="84, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 94" defaultrows="0" extendlastcol="false" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:33px; width:980px; height:316px; ">
  128. <col ref="INSTR_COIL_THK" format="#,##0"/>
  129. <col ref="SLAB_CNT750" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  130. <col ref="SLAB_CNT800" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  131. <col ref="SLAB_CNT850" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  132. <col ref="SLAB_CNT900" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  133. <col ref="SLAB_CNT950" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  134. <col ref="SLAB_CNT1000" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  135. <col ref="SLAB_CNT1050" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  136. <col ref="SLAB_CNT1100" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  137. <col ref="SLAB_CNT1150" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  138. <col ref="SLAB_CNT1200" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  139. <col ref="SLAB_CNT1250" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  140. <col ref="SLAB_CNT1300" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  141. <col ref="SLAB_CNT1350" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  142. <col ref="SLAB_CNT1400" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  143. <col ref="SLAB_CNT1450" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  144. <col ref="SLAB_CNT_BIG1450" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  145. <col ref="SUM_CNT" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  146. <script type="javascript" ev:event="onclick">
  147. <![CDATA[
  148. if(datagrid1.col== 0) return;
  149. if(datagrid1.row <= 1) return;
  150. if (!datagrid1.isCell(event.target)) return;
  151. var v_wth_title = "";
  152. var v_thk_title = "";
  153. v_wth_title = datagrid1.valueMatrix(0,datagrid1.col);
  154. v_thk_title = datagrid1.valueMatrix(datagrid1.row,0);
  155. // alert( "v_wth_title:" + v_wth_title + "---v_thk_title:"+v_thk_title);
  156. model.setValue("/root/formData/P_WTH",v_wth_title);
  157. model.setValue("/root/formData/P_THK",v_thk_title);
  158. model.removenode("/root/reqData");
  159. model.makeNode("/root/reqData");
  160. commSendReq("/root/formData");
  161. commSubmit("UIF022010-service","onclick","glueAction.do");
  162. ]]>
  163. </script>
  164. </datagrid>
  165. <caption id="caption2" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">去向</caption>
  166. <caption id="caption1" class="cell" style="left:212px; top:5px; width:90px; height:20px; ">钢号</caption>
  167. <caption id="caption3" class="cell" style="left:561px; top:5px; width:90px; height:20px; ">集合方法</caption>
  168. <select1 id="combo1" ref="/root/formData/SLAB_RT" scroll="auto" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; ">
  169. <choices>
  170. <item>
  171. <label>--全部--</label>
  172. <value/>
  173. </item>
  174. <item>
  175. <label>热轧</label>
  176. <value>H</value>
  177. </item>
  178. <item>
  179. <label>冷轧</label>
  180. <value>C</value>
  181. </item>
  182. </choices>
  183. </select1>
  184. <select1 id="combo2" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:304px; top:5px; width:248px; height:20px; ">
  185. <choices>
  186. <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row">
  187. <label ref="FAC_STL_GRD"/>
  188. <value ref="FAC_CODE"/>
  189. </itemset>
  190. </choices>
  191. </select1>
  192. <select1 id="combo3" ref="/root/formData/gatherMethod" appearance="minimal" style="left:653px; top:5px; width:110px; height:20px; ">
  193. <choices>
  194. <item>
  195. <label>块数</label>
  196. <value>K</value>
  197. </item>
  198. <item>
  199. <label>重量</label>
  200. <value>W</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <line id="line1" style="x1:0px; y1:352px; x2:979px; y2:352px; border-color:#ff00ff; "/>
  205. <datagrid id="datagrid2" nodeset="/root/resData/rs_VO/rs_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="板坯号^板坯^板坯^板坯^板坯^订单^订单^轧制^轧制^轧制^轧制^轧制^轧制^轧制^轧制^进程^堆置位置^热送代号^合同号^订单号^钢号^标准号^订单用途^交货期^紧急材^去向^去向|板坯号^厚度^宽度^长度^重量^厚度^宽度^目标厚度^厚度下限^厚度上限^目标宽度^宽度下限^宽度上限^长度^重量^进程^堆置位置^热送代号^合同号^订单号^钢号^标准号^订单用途^交货期^紧急材^去向^去向" colsep="^" colwidth="100, 50, 50, 50, 50, 50, 50, 55, 55, 55, 55, 55, 55, 55, 55, 55, 37, 35, 67, 44, 54, 43, 110, 100, 42, 55" defaultrows="0" explorerbar="sortshowmove" extendlastcol="false" fixedcols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:356px; width:980px; height:264px; ">
  206. <col editable="false" ref="SLAB_NO" type="input" style="left:336px; top:40px; width:285px; height:20px; text-align:center; "/>
  207. <col ref="SLAB_THK" format="#,##0" style="text-align:right; "/>
  208. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
  209. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  210. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
  211. <col ref="ORD_THK" format="#.##0" style="text-align:right; "/>
  212. <col ref="ORD_WTH" format="#,##0" style="text-align:right; "/>
  213. <col editable="false" ref="HOT_THK_AIM" type="input" format="#.##0" style="text-align:right; "/>
  214. <col ref="HOT_THK_MIN" format="#.##0" style="text-align:right; "/>
  215. <col ref="HOT_THK_MAX" format="#.##0" style="text-align:right; "/>
  216. <col editable="false" ref="WTH_AIM" type="input" format="#,##0" style="text-align:right; "/>
  217. <col ref="WTH_MIN" format="#,##0" style="text-align:right; "/>
  218. <col ref="WTH_MAX" format="#,##0" style="text-align:right; "/>
  219. <col editable="false" ref="MILL_LEN" type="input" format="#,##0" style="text-align:right; "/>
  220. <col ref="MILL_WGT" format="#,##0" style="text-align:right; "/>
  221. <col ref="CUR_PROG_CD" style="text-align:left; "/>
  222. <col editable="false" ref="CUR_LOAD_LOC" type="input" style="text-align:center; "/>
  223. <col disabled="true" editmode="search" ref="HCR_CLF" style="text-align:center; "/>
  224. <col editable="false" ref="ORD_NO" type="input" style="text-align:center; "/>
  225. <col editable="false" ref="ORD_SEQ" type="input" style="text-align:center; "/>
  226. <col editable="false" editmode="search" ref="STL_GRD" type="input" style="text-align:left; "/>
  227. <col ref="SPEC_ABBSYM" style="text-align:left; "/>
  228. <col disabled="true" editmode="search" ref="ORD_USEAGE_CD" style="text-align:left; "/>
  229. <col ref="DEL_TO_DATE" format="yyyy-mm-dd" style="text-align:center; "/>
  230. <col ref="EMGMTR_NMG_CLF"/>
  231. <col disabled="true" editmode="search" ref="SLAB_RT" style="text-align:center; "/>
  232. <script type="javascript" ev:event="onclick">
  233. <![CDATA[
  234. RollManaNo = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ROLL_MANA_NO"));
  235. slab_no = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SLAB_NO"));
  236. ]]>
  237. </script>
  238. </datagrid>
  239. <caption id="caption4" class="cell" style="left:772px; top:5px; width:90px; height:20px; ">进程状态</caption>
  240. <select1 id="combo4" ref="/root/formData/P_CUR_PROG_CD" appearance="minimal" style="left:864px; top:5px; width:110px; height:20px; ">
  241. <choices>
  242. <item>
  243. <label>全部</label>
  244. <value/>
  245. </item>
  246. <item>
  247. <label>轧制指示待机</label>
  248. <value>RBA</value>
  249. </item>
  250. <item>
  251. <label>加热炉入炉待机</label>
  252. <value>RBB</value>
  253. </item>
  254. <item>
  255. <label>精整作业待机</label>
  256. <value>RAB</value>
  257. </item>
  258. <item>
  259. <label>板坯充当待机</label>
  260. <value>RRC</value>
  261. </item>
  262. </choices>
  263. </select1>
  264. </xhtml:body>
  265. </xhtml:html>