dfe9e21c7bf5b3f1fd01d717f845921cae185624.svn-base 14 KB

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