3ac2b88b5b9b48ab7aef091c3b0006126e8d69b1.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. </reqData>
  13. <gridData>
  14. <param>
  15. <SLAB_THK/>
  16. <SLAB_CNT1450/>
  17. <SLAB_CNT1500/>
  18. <SLAB_CNT1550/>
  19. <SLAB_CNT1600/>
  20. <SLAB_CNT1650/>
  21. <SUM_CNT/>
  22. </param>
  23. <grid3>
  24. <SLAB_MANA_NO/>
  25. <STL_GRD/>
  26. <SLAB_THK/>
  27. <SLAB_WTH/>
  28. <SLAB_LEN/>
  29. <SLAB_WGT/>
  30. <PROG_CD/>
  31. <SLAB_RT/>
  32. <DSN_SLAB_NO/>
  33. <L2_SEND/>
  34. </grid3>
  35. </gridData>
  36. <resData/>
  37. <formData>
  38. <searchForm>
  39. <SLAB_RT/>
  40. <STL_GRD/>
  41. <PROG_CD/>
  42. <JHFF>K</JHFF>
  43. <P_WTH/>
  44. <P_THK/>
  45. </searchForm>
  46. </formData>
  47. <initResult/>
  48. <g1Data/>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. commSubmit("UIF012010-service","success","glueAction.do");//提交服务
  54. model.duplicate("/root/initResult","/root/resData");//复制结点
  55. model.refresh();
  56. if (window.parent == null) Init();//无父窗口 进行初始化结点
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. var m = 0;
  62. var totalRows;//行记录数
  63. ]]>
  64. </script>
  65. </model>
  66. <script type="javascript" src="../../js/boaMsg.js"/>
  67. <script type="javascript" src="../../js/boaCommon.js"/>
  68. <script type="javascript" src="../../js/F.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function InitParams(node) {
  72. if (typeof node == "undefined" && typeof node != "object") return;
  73. model.removenode("/root/initData/rcvInfo");
  74. model.makeNode("/root/initData/rcvInfo");
  75. var nodeList = node.childNodes;
  76. for (var i = 0; i < nodeList.length; i++)
  77. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  78. }
  79. function setTitle()
  80. {
  81. return "炼钢管制 >> 作业进程现状 >> 出钢参数接收现况分析(中厚板)"; // 如:return "进程管理 >> 订单进程现况查询";
  82. }
  83. function Init(node) {
  84. InitParams(node);
  85. }
  86. function find() {
  87. if(m != 0)
  88. {
  89. datagrid2.rowstyle(m, "data", "background-color") = "#ffffff";
  90. datagrid2.rowstyle(m, "data", "color") = "#000000";
  91. }
  92. model.removenode("/root/reqData");
  93. model.makeNode("/root/reqData");
  94. commSendReq("/root/formData/searchForm");
  95. if(combo4.value == 'K') {
  96. datagrid2.nodeset = "/root/g1Data/rs_VO/rs_Row";
  97. commSubmit("UIF012010-service","findByK","glueAction.do");
  98. model.removenode("/root/g1Data");
  99. model.makeNode("/root/g1Data");
  100. commAppendData("/root/g1Data/rs_VO","/root/resData/rs_VO");
  101. }else {
  102. datagrid2.nodeset = "/root/g1Data/rs1_VO/rs1_Row";
  103. commSubmit("UIF012010-service","findByW","glueAction.do");
  104. model.removenode("/root/g1Data");
  105. model.makeNode("/root/g1Data");
  106. commAppendData("/root/g1Data/rs1_VO","/root/resData/rs1_VO");
  107. }
  108. model.refresh();
  109. if(datagrid2.rows> 1) {
  110. m= datagrid2.rows-1;
  111. datagrid2.rowstyle(datagrid2.rows-1, "data", "background-color") = "#ffffcc";
  112. datagrid2.rowstyle(datagrid2.rows-1, "data", "color") = "red";
  113. datagrid2.colstyle(datagrid2.cols-1, "data", "background-color") = "#ffffcc";
  114. datagrid2.colstyle(datagrid2.cols-1, "data", "color") = "red";
  115. model.refresh();
  116. }
  117. // model.refresh();
  118. }
  119. //添加全部选项到combo头部
  120. function addAllOption(srcpath,targetpath,lable,value,allvalue) {
  121. model.duplicate(srcpath,targetpath);
  122. model.setValue(targetpath + "/" +lable,allvalue);
  123. model.setValue(targetpath + "/" +value,"");
  124. }
  125. function close() {
  126. window.close();//关闭窗口
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="980" pageheight="620" guideline="1,1;1,893;" style="font-family:宋体; border-color:#000000; ">
  132. <line id="line3" style="x1:0px; y1:29px; x2:980px; y2:29px; border-color:#ff00ff; "/>
  133. <caption id="caption1" class="cell" style="left:1px; top:6px; width:90px; height:20px; text-align:center; border-style:solid; ">去向</caption>
  134. <select1 id="combo2" ref="/root/formData/searchForm/SLAB_RT" appearance="minimal" style="left:92px; top:6px; width:110px; height:20px; ">
  135. <choices>
  136. <item>
  137. <label>--全部--</label>
  138. <value/>
  139. </item>
  140. <item>
  141. <label>中板厂</label>
  142. <value>Z</value>
  143. </item>
  144. <item>
  145. <label>厚板厂</label>
  146. <value>P</value>
  147. </item>
  148. </choices>
  149. </select1>
  150. <caption id="caption2" class="cell" style="left:211px; top:6px; width:90px; height:20px; text-align:center; border-style:solid; ">牌号</caption>
  151. <select1 id="combo1" ref="/root/formData/searchForm/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:302px; top:6px; width:248px; height:20px; ">
  152. <choices>
  153. <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row">
  154. <label ref="FAC_STL_GRD"/>
  155. <value ref="FAC_CODE"/>
  156. </itemset>
  157. </choices>
  158. </select1>
  159. <select1 id="combo3" ref="/root/formData/searchForm/PROG_CD" appearance="minimal" style="left:652px; top:6px; width:110px; height:20px; padding-left:20px; ">
  160. <choices>
  161. <item>
  162. <label>--全部--</label>
  163. <value/>
  164. </item>
  165. <item>
  166. <label>出钢指示待机</label>
  167. <value>JBA</value>
  168. </item>
  169. <item>
  170. <label>出钢待机</label>
  171. <value>JBB</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <caption id="caption3" class="cell" style="left:561px; top:6px; width:90px; height:20px; text-align:center; border-style:solid; ">查询范围</caption>
  176. <caption id="caption4" class="cell" style="left:771px; top:6px; width:90px; height:20px; text-align:center; border-style:solid; ">集合方法</caption>
  177. <select1 id="combo4" ref="/root/formData/searchForm/JHFF" appearance="minimal" style="left:862px; top:6px; width:110px; height:20px; ">
  178. <choices>
  179. <item>
  180. <label>块</label>
  181. <value>K</value>
  182. </item>
  183. <item>
  184. <label>重量</label>
  185. <value>W</value>
  186. </item>
  187. </choices>
  188. </select1>
  189. <line id="line1" style="x1:0px; y1:188px; x2:980px; y2:188px; border-color:#ff00ff; "/>
  190. <datagrid id="datagrid2" nodeset="/root/g1Data/rs_VO/rs_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="板坯厚度 \ 板坯宽度^≤1450^≤1500^≤1550^≤1600^≤1650^≤2400^合计|板坯厚度 \ 板坯宽度^≤1450^≤1500^≤1550^≤1600^≤1650^≤2400^合计" colsep="^" colwidth="136, 118, 117, 106, 111, 149, 100, 131" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:33px; width:980px; height:152px; font-family:宋体; text-align:center; ">
  191. <col ref="SLAB_THK" format="#,##0" style="left:0px; top:21px; width:134px; height:21px; text-align:center; "/>
  192. <col ref="SLAB_CNT1450" format="#,##0" style="left:134px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  193. <col ref="SLAB_CNT1500" format="#,##0" style="left:268px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  194. <col ref="SLAB_CNT1550" format="#,##0" style="left:402px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  195. <col ref="SLAB_CNT1600" format="#,##0" style="left:536px; top:21px; width:134px; height:21px; font-family:宋体; text-decoration:underline; color:#0000ff; text-align:right; "/>
  196. <col ref="SLAB_CNT1650" format="#,##0" style="left:670px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  197. <col ref="SLAB_CNT2400" format="#,##0" style="left:670px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  198. <col ref="SUM_CNT" format="#,##0" style="left:670px; top:21px; width:134px; height:21px; text-decoration:underline; color:#0000ff; text-align:right; "/>
  199. <script type="javascript" ev:event="onclick">
  200. <![CDATA[
  201. if(datagrid2.col== 0) return;
  202. if(datagrid2.row <= 1) return;
  203. if (!datagrid2.isCell(event.target)) return;
  204. var v_wth_title = "";
  205. var v_thk_title = "";
  206. var v_wth = "";
  207. var v_thk = "";
  208. v_wth_title = datagrid2.valueMatrix(0,datagrid2.col);
  209. v_thk_title = datagrid2.valueMatrix(datagrid2.row,0);
  210. v_wth = v_wth_title == "合计" ? "":v_wth_title.substring(1,v_wth_title.length);
  211. v_thk = v_thk_title == "合计" ? "":v_thk_title;
  212. model.setValue("/root/formData/searchForm/P_WTH",v_wth);
  213. model.setValue("/root/formData/searchForm/P_THK",v_thk);
  214. model.removenode("/root/reqData");
  215. model.makeNode("/root/reqData");
  216. commSendReq("/root/formData/searchForm");
  217. commSubmit("UIF012010-service","onclick","glueAction.do");
  218. ]]>
  219. </script>
  220. </datagrid>
  221. <datagrid id="datagrid3" nodeset="/root/resData/rs2_VO/rs2_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:192px; width:980px; height:428px; font-family:宋体; text-align:center; ">
  222. <col ref="SLAB_MANA_NO" format="#,##0" style="left:0px; top:21px; width:134px; height:21px; text-align:center; "/>
  223. <col ref="STL_GRD" format="#,##0" style="left:134px; top:21px; width:134px; height:21px; text-align:left; "/>
  224. <col ref="SLAB_THK" format="#,##0" style="left:268px; top:21px; width:134px; height:21px; text-align:right; "/>
  225. <col ref="SLAB_WTH" format="#,##0" style="left:402px; top:21px; width:134px; height:21px; text-align:right; "/>
  226. <col ref="SLAB_LEN" format="#,##0" style="left:536px; top:21px; width:134px; height:21px; text-align:right; "/>
  227. <col ref="SLAB_WGT" format="#,##0" style="left:670px; top:21px; width:134px; height:21px; text-align:right; "/>
  228. <col ref="PROG_CD" style="left:804px; top:21px; width:134px; height:21px; text-align:left; "/>
  229. <col ref="SLAB_RT" style="text-align:left; "/>
  230. <col ref="DSN_SLAB_NO" style="text-align:center; "/>
  231. <col ref="L2_SEND" style="text-align:center; "/>
  232. </datagrid>
  233. </xhtml:body>
  234. </xhtml:html>