9d6e9b9ea2716b669773c79fb0a8d18c309804d1.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. <formData>
  12. <CUSTCD/>
  13. <SSTLGRD/>
  14. <FSTLGRD/>
  15. <SelectedRadio/>
  16. <ABBSYM/>
  17. <TWOSPECSTLGRD/>
  18. <TWOSTLGRD/>
  19. </formData>
  20. <initCustData>
  21. <CustResult_VO>
  22. <CustResult_Row>
  23. <LABEL>---全部---</LABEL>
  24. <VALUE/>
  25. </CustResult_Row>
  26. </CustResult_VO>
  27. </initCustData>
  28. <initSpecData>
  29. </initSpecData>
  30. <initFacData>
  31. <FacResult_VO>
  32. <FacResult_Row>
  33. <LABEL>---全部---</LABEL>
  34. <VALUE/>
  35. </FacResult_Row>
  36. </FacResult_VO>
  37. </initFacData>
  38. <initABBSYMData>
  39. <ABBSYMRESULT_VO>
  40. <ABBSYMRESULT_Row>
  41. <LABEL>---全部---</LABEL>
  42. <VALUE>ALL</VALUE>
  43. </ABBSYMRESULT_Row>
  44. </ABBSYMRESULT_VO>
  45. </initABBSYMData>
  46. <datagridX/>
  47. <initSpecStl>
  48. <SpecResult_VO>
  49. <SpecResult_Row>
  50. <LABEL>--全部--</LABEL>
  51. <VALUE>ALL</VALUE>
  52. </SpecResult_Row>
  53. </SpecResult_VO>
  54. </initSpecStl>
  55. </root>
  56. </instance>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. if(window.parent==null) Init();
  60. ]]>
  61. </script>
  62. </model>
  63. <script type="javascript" src="../../js/boaCommon.js"/>
  64. <script type="javascript" src="../../js/b01.js"/>
  65. <script type="javascript">
  66. <![CDATA[
  67. function Init(node)
  68. {
  69. InitParams(node);
  70. commSubmit("UIB010020-service", "success" , "glueAction.do");
  71. // model.makeValue("/root/initData/SpecResult/key" , "---全部---");
  72. // model.makeValue("/root/initData/SpecResult/value" , "");
  73. // model.makeValue("/root/initData/FacResult/key" , "---全部---");
  74. // model.makeValue("/root/initData/FacResult/value" , "");
  75. // model.makeValue("/root/initData/CustResult/key" , "---全部---");
  76. // model.makeValue("/root/initData/CustResult/value" , "");
  77. // appendNode("/root/initData" , "/root/resData/SpecResult");
  78. // appendNode("/root/initData" , "/root/resData/FacResult");
  79. // appendNode("/root/initData" , "/root/resData/CustResult");
  80. model.duplicate("/root/initCustData" , "/root/resData/CustResult_VO");//客户
  81. model.duplicate("/root/initSpecStl" , "/root/resData/SpecResult_VO");// 标准
  82. model.duplicate("/root/initFacData" , "/root/resData/FacResult_VO");//厂内
  83. model.duplicate("/root/initABBSYMData" , "/root/resData/ABBSYMRESULT_VO");//标准号
  84. model.refresh();
  85. }
  86. function excelExport()
  87. {
  88. excelExport1();
  89. }
  90. function excelExport1()
  91. {
  92. if(radio1.value=="" )
  93. return;
  94. //向iviewer1的窗口中传入各参数
  95. var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  96. if(x1 == "") return;
  97. iviewer1.datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  98. window.alert("导出成功" + x1 + " !!!");
  99. }
  100. function find()
  101. {
  102. if(switch1.selectedIndex == 0)
  103. {
  104. find1();
  105. }
  106. else if(switch1.selectedIndex == 1)
  107. {
  108. find2();
  109. }
  110. }
  111. function find1()
  112. {
  113. //若无选择,则返回
  114. if(radio1.value=="" )
  115. return;
  116. //向iviewer1的窗口中传入各参数
  117. if(radio1.value==1)
  118. {
  119. iviewer1.src = "./_010020Cust.xrw";
  120. }
  121. if(radio1.value==2)
  122. {
  123. iviewer1.src = "./_010020Spec.xrw";
  124. }
  125. if(radio1.value==3)
  126. {
  127. iviewer1.src = "./_010020Fac.xrw";
  128. }
  129. if(radio1.value==4)
  130. {
  131. iviewer1.src = "./_010020Fac_1.xrw";
  132. }
  133. var mainWindow = iviewer1.window.javaScript;
  134. var custcd = model.getValue("/root/formData/CUSTCD");
  135. var sstlgrd = model.getValue("/root/formData/SSTLGRD");
  136. var fstlgrd = model.getValue("/root/formData/FSTLGRD");
  137. var radio = model.getValue("/root/formData/SelectedRadio");
  138. mainWindow.submit(custcd , sstlgrd , fstlgrd , radio);
  139. }
  140. function find2()
  141. {
  142. model.removenode("/root/reqData");
  143. model.makeValue("/root/reqData/SPECSTLGRD" , combo5.value);
  144. model.makeValue("/root/reqData/FACSTLGRD" , combo6.value);
  145. commSubmit("UIB010020-service", "find2" , "glueAction.do");
  146. model.copyNode("/root/datagridX" , "/root/resData/AllStlGrdResult_VO");
  147. model.refresh();
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body pagewidth="980" pageheight="620">
  153. <switch id="switch1" style="left:0px; top:30px; width:978px; height:590px; ">
  154. <case id="case1" selected="true" style="left:0px; top:0px; width:975px; height:565px; ">
  155. <button id="button3" visibility="hidden" style="left:470px; top:0px; width:100px; height:20px; ">
  156. <caption>FIND</caption>
  157. <script type="javascript" ev:event="onclick">
  158. <![CDATA[
  159. find();
  160. ]]>
  161. </script>
  162. </button>
  163. <iviewer id="iviewer1" src=".\_010020Cfs.xrw" style="left:0px; top:55px; width:969px; height:505px; "/>
  164. <caption id="caption1" class="cell" style="left:47px; top:5px; width:373px; height:20px; text-align:center; border-style:solid; "/>
  165. <select1 id="combo1" ref="/root/formData/SSTLGRD" appearance="minimal" cols="3" editmode="input" style="left:550px; top:30px; width:114px; height:20px; text-align:left; border-style:solid; ">
  166. <choices>
  167. <itemset nodeset="/root/initSpecData/SpecStlGrdResult_Row">
  168. <label ref="LABEL"/>
  169. <value ref="VALUE"/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="caption2" class="cell" style="left:460px; top:30px; width:85px; height:20px; ">标准钢号</caption>
  174. <caption id="caption3" class="cell" style="left:0px; top:5px; width:40px; height:20px; border-style:solid; ">选择</caption>
  175. <select1 id="combo2" ref="/root/formData/CUSTCD" appearance="minimal" cols="3" editmode="input" style="left:100px; top:30px; width:100px; height:20px; text-align:left; border-style:solid; ">
  176. <choices>
  177. <itemset nodeset="/root/initCustData/CustResult_VO/CustResult_Row">
  178. <label ref="LABEL"/>
  179. <value ref="VALUE"/>
  180. </itemset>
  181. </choices>
  182. </select1>
  183. <caption id="caption4" class="cell" style="left:0px; top:30px; width:95px; height:20px; text-align:center; border-style:solid; ">客户公司代码</caption>
  184. <select1 id="combo3" ref="/root/formData/FSTLGRD" appearance="minimal" cols="3" editmode="inputsearch" style="left:785px; top:30px; width:95px; height:20px; text-align:left; border-style:solid; ">
  185. <choices>
  186. <itemset nodeset="/root/initFacData/FacResult_VO/FacResult_Row">
  187. <label ref="LABEL"/>
  188. <value ref="VALUE"/>
  189. </itemset>
  190. </choices>
  191. </select1>
  192. <select1 id="radio1" ref="/root/formData/SelectedRadio" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:50px; top:7px; width:342px; height:17px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>客户成分</label>
  196. <value>1</value>
  197. </item>
  198. <item>
  199. <label>标准成分</label>
  200. <value>2</value>
  201. </item>
  202. <item>
  203. <label>内控成分</label>
  204. <value>3</value>
  205. </item>
  206. <item>
  207. <label>炼钢放行成分</label>
  208. <value>4</value>
  209. </item>
  210. </choices>
  211. <script type="javascript" ev:event="onclick">
  212. <![CDATA[
  213. if(radio1.value==1)
  214. {
  215. iviewer1.src = "./_010020Cust.xrw"; //选择客户成分时导入客户成分表
  216. combo2.disabled = false;
  217. combo1.disabled = true;
  218. combo3.disabled = true;
  219. combo4.disabled = true;
  220. }
  221. if(radio1.value==2)
  222. {
  223. iviewer1.src = "./_010020Spec.xrw";//选择标准成分时导入标准成分表
  224. combo2.disabled = true;
  225. combo1.disabled = false;
  226. combo4.disabled = false;
  227. combo3.disabled = true;
  228. }
  229. if(radio1.value==3)
  230. {
  231. iviewer1.src = "./_010020Fac.xrw";//选择厂内成分时导入厂内成分表
  232. combo2.disabled = true;
  233. combo1.disabled = true;
  234. combo3.disabled = false;
  235. combo4.disabled = true;
  236. }
  237. if(radio1.value==4)
  238. {
  239. iviewer1.src = "_010020Fac_1.xrw";//选择厂内成分时导入厂内成分表
  240. combo2.disabled = true;
  241. combo1.disabled = true;
  242. combo3.disabled = false;
  243. combo4.disabled = true;
  244. }
  245. ]]>
  246. </script>
  247. </select1>
  248. <line id="line1" style="x1:0px; y1:0px; x2:969px; y2:0px; "/>
  249. <caption id="caption5" class="cell" style="left:215px; top:30px; width:85px; height:20px; ">标准号</caption>
  250. <select1 id="combo4" ref="/root/formData/ABBSYM" appearance="minimal" cols="3" editmode="inputsearch" style="left:305px; top:30px; width:140px; height:20px; text-align:left; border-style:solid; ">
  251. <choices>
  252. <itemset nodeset="/root/initABBSYMData/ABBSYMRESULT_VO/ABBSYMRESULT_Row">
  253. <label ref="LABEL"/>
  254. <value ref="VALUE"/>
  255. </itemset>
  256. </choices>
  257. <script type="javascript" ev:event="xforms-select">
  258. <![CDATA[
  259. model.removenode("/root/reqData");
  260. model.makeNode("/root/reqData");
  261. commSendReq("/root/formData");
  262. commSubmit("UIB010020-service", "findSpecStlGrd", "glueAction.do");
  263. model.copyNode("/root/initSpecData" , "/root/resData/SpecStlGrdResult_VO");// 标准
  264. model.makeValue("/root/formData/SSTLGRD","");
  265. model.refresh();
  266. ]]>
  267. </script>
  268. </select1>
  269. <caption id="caption8" class="cell" style="left:675px; top:30px; width:105px; height:20px; text-align:center; border-style:solid; ">厂内钢号</caption>
  270. </case>
  271. <case id="case2">
  272. <datagrid id="datagrid1" nodeset="/root/datagridX/AllStlGrdResult_Row" caption="元素代码^内控^内控^内控^炼钢放行^炼钢放行^成品放行^成品放行^EXT|元素代码^目标值^最小值^最大值^最小值^最大值^最小值^最大值^EXT" colsep="^" colwidth="207, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:25px; width:975px; height:560px; ">
  273. <col ref="CHEMCD" style="text-align:left; "/>
  274. <col ref="CHEM_AIM" style="text-align:left; "/>
  275. <col ref="MIN1" style="text-align:left; "/>
  276. <col ref="MAX1" style="text-align:left; "/>
  277. <col ref="MIN2" style="text-align:left; "/>
  278. <col ref="MAX2" style="text-align:left; "/>
  279. <col ref="MIN3" style="text-align:left; "/>
  280. <col ref="MAX3" style="text-align:left; "/>
  281. <col/>
  282. </datagrid>
  283. <select1 id="combo5" ref="/root/formData/TWOSPECSTLGRD" appearance="minimal" editmode="inputsearch" style="left:100px; top:0px; width:100px; height:20px; ">
  284. <choices>
  285. <itemset nodeset="/root/initSpecStl/SpecResult_VO/SpecResult_Row">
  286. <label ref="LABEL"/>
  287. <value ref="VALUE"/>
  288. </itemset>
  289. </choices>
  290. </select1>
  291. <caption id="caption6" class="cell" style="left:0px; top:0px; width:100px; height:20px; ">成品牌号</caption>
  292. <caption id="caption7" class="cell" style="left:230px; top:0px; width:100px; height:20px; ">炼钢牌号</caption>
  293. <select1 id="combo6" ref="/root/formData/TWOSTLGRD" appearance="minimal" editmode="inputsearch" style="left:330px; top:0px; width:100px; height:20px; ">
  294. <choices>
  295. <itemset nodeset="/root/initFacData/FacResult_VO/FacResult_Row">
  296. <label ref="LABEL"/>
  297. <value ref="VALUE"/>
  298. </itemset>
  299. </choices>
  300. </select1>
  301. </case>
  302. </switch>
  303. <button id="button1" style="left:0px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  304. <caption>现况查询(1)</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. model.toggle("case1");
  308. ]]>
  309. </script>
  310. </button>
  311. <button id="button2" style="left:110px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  312. <caption>现况查询(2)</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. model.toggle("case2");
  316. ]]>
  317. </script>
  318. </button>
  319. <button id="button4" style="left:790px; top:5px; width:100px; height:20px; background-color:#ffff99; ">
  320. <caption>导出</caption>
  321. <script type="javascript" ev:event="onclick">
  322. <![CDATA[
  323. excelExport1();
  324. ]]>
  325. </script>
  326. </button>
  327. </xhtml:body>
  328. </xhtml:html>