1d17acff87d062f35bd52331cd0d06672534c2c7.svn-base 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. <searchForm>
  15. <JHFF>K</JHFF>
  16. <SLAB_RT/>
  17. <P_WTH/>
  18. <P_THK/>
  19. <P_PROG_CD/>
  20. </searchForm>
  21. <gridData>
  22. <SLAB_THK/>
  23. <SLAB_WTH/>
  24. <JBA_CNT/>
  25. <JBB_CNT/>
  26. <JJB_CNT/>
  27. <RGA_CNT/>
  28. <RGB_CNT/>
  29. <TOT_CNT/>
  30. </gridData>
  31. </formData>
  32. <g1Data/>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../js/boaMsg.js"/>
  36. <script type="javascript" src="../../js/boaCommon.js"/>
  37. <script type="javascript" src="../../js/F.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. var m = 0;
  41. //1、获取用户登录信息,只能在页面初始化函数中调用
  42. function InitParams(node)
  43. {
  44. if (typeof node == "undefined" && typeof node != "object") return;
  45. model.removenode("/root/initData/rcvInfo");
  46. model.makeNode("/root/initData/rcvInfo");
  47. var nodeList = node.childNodes;
  48. for (var i = 0; i < nodeList.length; i++)
  49. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  50. }
  51. //2. 页面初始化函数(必须)
  52. function Init(node)
  53. {
  54. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  55. // 在程序中会重建该节点,最好不要重名
  56. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  57. //...
  58. }
  59. //3、页面标题
  60. function setTitle()
  61. {
  62. return "炼钢管制 >> 作业进程现状 >> 中厚板炉次信息进程现况"; // 如:return "进程管理 >> 订单进程现况查询";
  63. }
  64. //4. 页面按键动作
  65. // 查询按键
  66. function find()
  67. {
  68. if(m != 0)
  69. {
  70. datagrid1.rowstyle(m, "data", "background-color") = "#ffffff";
  71. datagrid1.rowstyle(m, "data", "color") = "#000000";
  72. }
  73. model.removenode("/root/reqData");
  74. model.makeNode("/root/reqData");
  75. commSendReq("/root/formData/searchForm");
  76. if(combo2.value == 'K') {
  77. datagrid1.nodeset = "/root/g1Data/rs1_VO/rs1_Row";
  78. commSubmit("UIF013020-service","countSlabProcessByK","glueAction.do");
  79. model.removenode("/root/g1Data");
  80. model.makeNode("/root/g1Data");
  81. commAppendData("/root/g1Data/rs1_VO","/root/resData/rs1_VO");
  82. }
  83. else {
  84. datagrid1.nodeset = "/root/g1Data/rs2_VO/rs2_Row";
  85. commSubmit("UIF013020-service","countSlabProcessByW","glueAction.do");
  86. model.removenode("/root/g1Data");
  87. model.makeNode("/root/g1Data");
  88. commAppendData("/root/g1Data/rs2_VO","/root/resData/rs2_VO");
  89. }
  90. model.refresh();
  91. if(datagrid1.rows> 2) {
  92. m= datagrid1.rows-1;
  93. datagrid1.rowstyle(datagrid1.rows-1, "data", "background-color") = "#ffffcc";
  94. datagrid1.rowstyle(datagrid1.rows-1, "data", "color") = "red";
  95. datagrid1.colstyle(datagrid1.cols-1, "data", "background-color") = "#ffffcc";
  96. datagrid1.colstyle(datagrid1.cols-1, "data", "color") = "red";
  97. }
  98. }
  99. ]]>
  100. </script>
  101. </model>
  102. </xhtml:head>
  103. <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;">
  104. <line id="line3" style="x1:0px; y1:29px; x2:980px; y2:29px; border-color:#ff00ff; "/>
  105. <datagrid id="datagrid1" nodeset="/root/g1Data/rs1_VO/rs1_Row" backcoloralternate="#f7f9f9" caption="区分^区分^进程状态^进程状态^进程状态^进程状态^进程状态^合计|板坏厚度^板坏宽度^出钢指示待机^出钢待机^板坯切割待机^出库待机^出库指示^合计" colsep="^" colwidth="102, 116, 130, 130, 130, 130, 111, 117" extendlastcol="false" fixedcols="2" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:33px; width:980px; height:268px; ">
  106. <col ref="SLAB_THK" type="output" format="#,##0"/>
  107. <col ref="SLAB_WTH" type="output" format="#,##0"/>
  108. <col ref="JBA_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  109. <col ref="JBB_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  110. <col ref="JJB_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  111. <col ref="RGA_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  112. <col ref="RGB_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  113. <col ref="TOT_CNT" type="output" format="#,##0" style="text-decoration:underline; color:#0000ff; text-align:right; "/>
  114. <script type="javascript" ev:event="onclick">
  115. <![CDATA[
  116. if(datagrid1.col<= 1) return;
  117. if(datagrid1.row <= 1) return;
  118. if (!datagrid1.isCell(event.target)) return;
  119. var v_wth_title = "";
  120. var v_thk_title = "";
  121. v_prog_cd = datagrid1.valueMatrix(1,datagrid1.col);
  122. v_wth_title = datagrid1.valueMatrix(datagrid1.row,1);
  123. v_thk_title = datagrid1.valueMatrix(datagrid1.row,0);
  124. v_thk_title = (v_thk_title == "小计") ? datagrid1.valueMatrix(datagrid1.row-1,0) : v_thk_title;
  125. v_wth_title = (v_wth_title == "小计") ? '' : v_wth_title;
  126. model.setValue("/root/formData/searchForm/P_WTH",v_wth_title);
  127. model.setValue("/root/formData/searchForm/P_THK",v_thk_title);
  128. model.setValue("/root/formData/searchForm/P_PROG_CD",v_prog_cd);
  129. model.removenode("/root/reqData");
  130. model.makeNode("/root/reqData");
  131. commSendReq("/root/formData/searchForm");
  132. commSubmit("UIF013020-service","onclick","glueAction.do");
  133. model.refresh();
  134. ]]>
  135. </script>
  136. </datagrid>
  137. <select1 id="combo2" ref="/root/formData/searchForm/JHFF" appearance="minimal" style="left:303px; top:6px; width:110px; height:20px; ">
  138. <choices>
  139. <item>
  140. <label>重量</label>
  141. <value>W</value>
  142. </item>
  143. <item>
  144. <label>块数</label>
  145. <value>K</value>
  146. </item>
  147. </choices>
  148. </select1>
  149. <caption id="caption1" class="cell" style="left:211px; top:6px; width:90px; height:20px; ">集合方法</caption>
  150. <caption id="caption2" class="cell" style="left:1px; top:6px; width:90px; height:20px; text-align:center; border-style:solid; ">去向</caption>
  151. <select1 id="combo1" ref="/root/formData/searchForm/SLAB_RT" appearance="minimal" style="left:92px; top:6px; width:110px; height:20px; ">
  152. <choices>
  153. <item>
  154. <label>--全部--</label>
  155. <value/>
  156. </item>
  157. <item>
  158. <label>中板厂</label>
  159. <value>Z</value>
  160. </item>
  161. <item>
  162. <label>厚板厂</label>
  163. <value>P</value>
  164. </item>
  165. </choices>
  166. </select1>
  167. <line id="line1" style="x1:0px; y1:304px; x2:980px; y2:304px; border-color:#ff00ff; "/>
  168. <datagrid id="datagrid3" nodeset="/root/resData/rs_VO/rs_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="板坯管理号^钢号^板坯^板坯^板坯^板坯^进程^板坯去向^板坯申请号^L2传送|板坯管理号^钢号^厚度^宽度^长度^重量^进程^板坯去向^板坯申请号^L2传送" colsep="^" colwidth="134, 134, 55, 55, 55, 55, 84, 100, 100, 100" explorerbar="sortshowmove" extendlastcol="false" fixedcols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:308px; width:980px; height:312px; font-family:宋体; text-align:center; ">
  169. <col ref="SLAB_MANA_NO" format="#,##0" style="left:0px; top:21px; width:134px; height:21px; text-align:center; "/>
  170. <col ref="STL_GRD" format="#,##0" style="left:134px; top:21px; width:134px; height:21px; text-align:left; "/>
  171. <col ref="SLAB_THK" format="#,##0" style="left:268px; top:21px; width:134px; height:21px; text-align:right; "/>
  172. <col ref="SLAB_WTH" format="#,##0" style="left:402px; top:21px; width:134px; height:21px; text-align:right; "/>
  173. <col ref="SLAB_LEN" format="#,##0" style="left:536px; top:21px; width:134px; height:21px; text-align:right; "/>
  174. <col ref="SLAB_WGT" format="#,##0" style="left:670px; top:21px; width:134px; height:21px; text-align:right; "/>
  175. <col ref="PROG_CD" style="left:804px; top:21px; width:134px; height:21px; text-align:left; "/>
  176. <col ref="SLAB_RT" style="text-align:left; "/>
  177. <col ref="DSN_SLAB_NO" visibility="hidden" style="text-align:center; "/>
  178. <col ref="L2_SEND" style="text-align:center; "/>
  179. </datagrid>
  180. </xhtml:body>
  181. </xhtml:html>