2ef546a6538e2d01620baee4a4e789d2ac099ed3.svn-base 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. <qlty/>
  13. <custCD/>
  14. <spec/>
  15. <SpecStlGrd/>
  16. </formData>
  17. <initCustCD>
  18. <CustCD_VO>
  19. <CustCD_Row>
  20. <LABEL>---------</LABEL>
  21. <VALUE/>
  22. </CustCD_Row>
  23. </CustCD_VO>
  24. </initCustCD>
  25. <initSpecAbbsym>
  26. <SpecAbbsym_VO>
  27. <SpecAbbsym_Row>
  28. <LABEL>---------</LABEL>
  29. <VALUE/>
  30. </SpecAbbsym_Row>
  31. </SpecAbbsym_VO>
  32. </initSpecAbbsym>
  33. <initSpecStlGrd/>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. if(window.parent==null) Init();
  39. ]]>
  40. </script>
  41. </model>
  42. <script type="javascript" src="../../js/boaCommon.js"/>
  43. <script type="javascript" src="../../js/b01.js"/>
  44. <script type="javascript" src="../../js/mesCommon.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function Init(node)
  48. {
  49. InitParams(node);
  50. commSubmit("UIB010120-service" , "success" , "glueAction.do");
  51. model.duplicate("/root/initCustCD" , "/root/resData/CustCD_VO");
  52. model.duplicate("/root/initSpecAbbsym" , "/root/resData/SpecAbbsym_VO");
  53. model.refresh();
  54. combo1.select(0);
  55. combo2.select(0);
  56. }
  57. function excelExport()
  58. {
  59. excelExport();
  60. }
  61. function find()
  62. {
  63. if(radio1.value=="")//若无任何选择,则不能做查询,直接返回
  64. return;
  65. if(radio1.value==1)//若选择的是客户材质
  66. {
  67. iviewer1.src = "./_010120Cust.xrw"; //载入客户材质窗口
  68. }
  69. if(radio1.value==2)//若选择的是标准材质
  70. {
  71. iviewer1.src="./_010120Spec.xrw";//载入标准材质窗口
  72. }
  73. var mainWindow = iviewer1.window.javaScript;
  74. var qltyNumber = model.getValue("/root/formData/qlty");//选择的是客户材质或者标准材质,JAVA类中用于分辨
  75. var cust = combo1.value;
  76. var spec = model.getValue("/root/formData/spec");//标准号
  77. var SpecStlGrd = model.getValue("/root/formData/SpecStlGrd");//标准号
  78. mainWindow.submit(qltyNumber ,cust+"%" , spec+"%",SpecStlGrd+"%");
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body pagewidth="980" pageheight="620">
  84. <caption id="caption1" class="cell" style="left:0px; top:5px; width:200px; height:20px; text-align:left; border-color:#000000; border-style:solid; ">选择</caption>
  85. <caption id="caption2" class="cell" style="left:0px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">客户公司代码</caption>
  86. <select1 id="radio1" ref="/root/formData/qlty" class="cell" appearance="full" cellspacing="13" cols="2" overflow="visible" style="left:32px; top:7px; width:165px; height:18px; text-align:left; border-style:none; ">
  87. <choices>
  88. <item>
  89. <label>客户材质</label>
  90. <value>1</value>
  91. </item>
  92. <item>
  93. <label>标准材质</label>
  94. <value>2</value>
  95. </item>
  96. </choices>
  97. <script type="javascript" ev:event="xforms-value-changed">
  98. <![CDATA[
  99. if(radio1.value==1)//若选择的是客户材质
  100. {
  101. // iviewer1.src = "./_010120Cust.xrw"; //载入客户材质窗口
  102. combo2.disabled = true;
  103. combo3.disabled = true;
  104. combo1.disabled = false;
  105. }
  106. if(radio1.value==2)//若选择的是标准材质
  107. {
  108. // iviewer1.src="./_010120Spec.xrw";//载入标准材质窗口
  109. combo1.disabled = true;
  110. combo2.disabled = false;
  111. combo3.disabled = false;
  112. }
  113. ]]>
  114. </script>
  115. </select1>
  116. <select1 id="combo1" ref="/root/formData/custCD" appearance="minimal" editmode="inputsearch" style="left:105px; top:30px; width:95px; height:20px; border-color:#000000; border-style:solid; ">
  117. <choices>
  118. <itemset nodeset="/root/initCustCD/CustCD_VO/CustCD_Row">
  119. <label ref="LABEL"/>
  120. <value ref="VALUE"/>
  121. </itemset>
  122. </choices>
  123. </select1>
  124. <caption id="caption3" class="cell" style="left:210px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">标准号</caption>
  125. <select1 id="combo2" ref="/root/formData/spec" appearance="minimal" editmode="inputsearch" style="left:315px; top:30px; width:251px; height:20px; border-color:#000000; border-style:solid; ">
  126. <choices>
  127. <itemset nodeset="/root/initSpecAbbsym/SpecAbbsym_VO/SpecAbbsym_Row">
  128. <label ref="LABEL"/>
  129. <value ref="VALUE"/>
  130. </itemset>
  131. </choices>
  132. <script type="javascript" ev:event="xforms-select">
  133. <![CDATA[
  134. model.removenode("/root/reqData");
  135. model.makeNode("/root/reqData");
  136. commSendReq("/root/formData");
  137. commSubmit("UIB010120-service", "findS", "glueAction.do");//按计划刚号查询
  138. model.copyNode("/root/initSpecStlGrd","/root/resData/SpecStlGrdResult_VO");
  139. model.makeValue("/root/formData/SpecStlGrd","");
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </select1>
  144. <iviewer id="iviewer1" src=".\_010120CS.xrw" style="left:0px; top:65px; width:980px; height:555px; "/>
  145. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  146. <line id="line1" style="x1:0px; y1:65px; x2:980px; y2:65px; "/>
  147. <select1 id="combo3" ref="/root/formData/SpecStlGrd" appearance="minimal" editmode="inputsearch" style="left:680px; top:30px; width:251px; height:20px; border-color:#000000; border-style:solid; ">
  148. <choices>
  149. <itemset nodeset="/root/initSpecStlGrd/SpecStlGrdResult_Row">
  150. <label ref="LABEL"/>
  151. <value ref="VALUE"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="caption4" class="cell" style="left:575px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">标准钢号</caption>
  156. <button id="button1" visibility="visible" style="left:300px; top:5px; width:100px; height:20px; ">
  157. <caption>FIND</caption>
  158. <script type="javascript" ev:event="onclick">
  159. <![CDATA[
  160. excelExport();
  161. ]]>
  162. </script>
  163. </button>
  164. </xhtml:body>
  165. </xhtml:html>