UIB020040.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. <formData>
  12. <chargeNo/>
  13. <DORD/>
  14. <DORDSEQ/>
  15. <CHKORD>1</CHKORD>
  16. </formData>
  17. <ChargeComm>
  18. <ListResult_Row>
  19. <THE_STL_GRD/>
  20. <LST_INGR_CD/>
  21. <TIME/>
  22. <INGR_DEC/>
  23. <ORD/>
  24. <ORD_FL/>
  25. <CUR_PROG_CD/>
  26. <EXTSHAPE_GRD/>
  27. <SLAB_INGR_DEC_KIND/>
  28. </ListResult_Row>
  29. </ChargeComm>
  30. <datagrid1/>
  31. <flag>UIB020040</flag>
  32. <shuoming>说明:点击“内控标准”,实绩值(修约后)将与“内控牌号”标准进行比较,不合格显示红色;点击“炼钢放行”,实绩值将与“炼钢放行”标准进行比较,依此类推,不合格显示红色;无实绩的均显示紫色。默认情况下判定结果为“2”的显示红色。</shuoming>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. if(window.parent==null) Init();
  38. ]]>
  39. </script>
  40. </model>
  41. <script type="javascript" src="../../js/b01.js"/>
  42. <script type="javascript" src="../../js/boaCommon.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. function Init(node)
  46. {
  47. InitParams(node);
  48. input40.value = document.readIniFile("session1" , "UIB020040" , "" , "c:\\WINDOWS\\xgmes3.ini");
  49. input5.value = document.readIniFile("session1" , "UIB020040_ORDNO" , "" , "c:\\WINDOWS\\xgmes3.ini");
  50. input10.value = document.readIniFile("session1" , "UIB020040_ORDSEQ" , "" , "c:\\WINDOWS\\xgmes3.ini");
  51. }
  52. function find()
  53. {
  54. if(input40.value.Trim()=="") return;
  55. document.writeIniFile("session1" , "UIB020040" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  56. document.writeIniFile("session1" , "UIB020040_ORDNO" , input5.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  57. document.writeIniFile("session1" , "UIB020040_ORDSEQ" , input10.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  58. model.removenode("/root/reqData");
  59. model.makeNode("/root/reqData");
  60. document.writeIniFile("session1" , "UIB020040" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  61. var length = input40.value.length;
  62. if( checkbox1.value == 1 )
  63. {
  64. if(input5.value.Trim() == "" )
  65. {
  66. window.alert("请输入对比合同号及订单号!", "提示");
  67. return;
  68. }
  69. if(length > 10)//板坯号时提示用户不要勾选合同对比查询
  70. {
  71. window.alert("请输入10位数炉号来选择合同对比查询,否则可能查不到数据!", "提示");
  72. }
  73. model.makeValue("/root/reqData/QQ" , input40.value.Trim());
  74. model.makeValue("/root/reqData/DORD" , input5.value.Trim());
  75. model.makeValue("/root/reqData/DSEQ" , input10.value.Trim());
  76. commSubmit("UIB020040-service" , "findCharge" , "glueAction.do");
  77. }
  78. else if(length > 10)//按板坯号查询
  79. {
  80. model.makeValue("/root/reqData/QQ" , input40.value.Trim());
  81. commSubmit("UIB020040-service" , "findSlab" , "glueAction.do");
  82. }
  83. else//按炉次号查询
  84. {
  85. model.makeValue("/root/reqData/QQ" , input40.value.Trim());
  86. commSubmit("UIB020040-service" , "findCharge" , "glueAction.do");
  87. }
  88. model.copyNode("/root/ChargeComm" , "/root/resData/ListResult_VO");//厂内钢号等信息
  89. model.copyNode("/root/datagrid1" , "/root/resData/CHEMINFO_VO");
  90. model.refresh();
  91. setColor();
  92. }
  93. function setColor()
  94. {
  95. var rstCol = datagrid1.colRef("CHEM_DCS_RST");
  96. datagrid1.rebuildStyle();
  97. for(var i = 1; i < datagrid1.rows; i++)
  98. {
  99. if(datagrid1.valueMatrix(i , rstCol)=="2")
  100. {
  101. datagrid1.cellstyle("background-color", i, rstCol) = "#ff0000";
  102. }
  103. }
  104. }
  105. function setColorX()
  106. {
  107. var valCol = datagrid1.colRef("CHEM_VAL");
  108. var minCol;
  109. var maxCol ;
  110. datagrid1.colstyle(valCol, "data", "background-color") = "#ffffff";//恢复初始的白色再染色
  111. if(datagrid1.col == datagrid1.colRef("CHEM_MIN1") || datagrid1.col == datagrid1.colRef("CHEM_MAX1"))
  112. {
  113. minCol = datagrid1.colRef("CHEM_MIN1");//实绩值做在列
  114. maxCol = datagrid1.colRef("CHEM_MAX1");//最小值的列
  115. }
  116. else if (datagrid1.col == datagrid1.colRef("CHEM_MIN2") || datagrid1.col == datagrid1.colRef("CHEM_MAX2"))
  117. {
  118. minCol = datagrid1.colRef("CHEM_MIN2");//实绩值做在列
  119. maxCol = datagrid1.colRef("CHEM_MAX2");//最小值的列
  120. }
  121. else if (datagrid1.col == datagrid1.colRef("CHEM_MIN3") || datagrid1.col == datagrid1.colRef("CHEM_MAX3"))
  122. {
  123. minCol = datagrid1.colRef("CHEM_MIN3");//实绩值做在列
  124. maxCol = datagrid1.colRef("CHEM_MAX4");//最小值的列
  125. }
  126. else if (datagrid1.col == datagrid1.colRef("CHEM_MIN4") || datagrid1.col == datagrid1.colRef("CHEM_MAX4"))
  127. {
  128. minCol = datagrid1.colRef("CHEM_MIN4");//实绩值做在列
  129. maxCol = datagrid1.colRef("CHEM_MAX4");//最小值的列
  130. }
  131. var min = "";
  132. var max = "";
  133. var val = "";
  134. for(var i = 1; i < datagrid1.rows; i++)
  135. {
  136. min = datagrid1.valueMatrix(i , minCol);//成分最小
  137. max = datagrid1.valueMatrix(i , maxCol);//最大
  138. val= datagrid1.valueMatrix(i , valCol);//实绩
  139. if(val != "" && min !="" && parseFloat(min) > parseFloat(val) )//实绩值应大于等于指示最小值,否则不合格
  140. {
  141. datagrid1.cellStyle("background-color" , i , valCol) = "#ff0000";
  142. }
  143. if(val != "" && max != "" && parseFloat(max) < parseFloat(val))//实绩值应小于等于指示最大值,否则不合格
  144. {
  145. datagrid1.cellStyle("background-color" , i , valCol) = "#ff0000";
  146. }
  147. if(val =="" && (max != "" || min !="") )
  148. {
  149. datagrid1.cellStyle("background-color" , i , valCol) = "#cc99ff";
  150. }
  151. }
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body accesskey="f2" pagewidth="980" pageheight="620" style="font-family:黑体; font-size:12px; ">
  157. <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">炉次号/板坯号</caption>
  158. <caption id="caption2" class="cell" style="left:0px; top:35px; width:975px; height:55px; "/>
  159. <caption id="caption3" class="cell" style="left:0px; top:40px; width:88px; height:20px; text-align:left; ">计划/实际钢号</caption>
  160. <caption id="caption4" class="cell" style="left:240px; top:40px; width:101px; height:20px; text-align:left; ">判定方式</caption>
  161. <caption id="caption5" class="cell" style="left:490px; top:40px; width:88px; height:20px; text-align:left; ">判定时间</caption>
  162. <caption id="caption6" class="cell" style="left:738px; top:40px; width:100px; height:20px; text-align:left; ">成分判定等级</caption>
  163. <caption id="caption7" class="cell" style="left:0px; top:65px; width:88px; height:20px; text-align:left; ">计划/实际合同</caption>
  164. <caption id="caption8" class="cell" style="left:240px; top:65px; width:101px; height:20px; text-align:left; ">余材区分</caption>
  165. <caption id="caption10" class="cell" visibility="visible" style="left:490px; top:65px; width:88px; height:20px; text-align:left; ">进程状态</caption>
  166. <caption id="caption11" class="cell" visibility="visible" style="left:738px; top:65px; width:100px; height:20px; text-align:left; ">板坯外观等级</caption>
  167. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  168. <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  169. <script type="javascript" ev:event="onaccesskey">
  170. <![CDATA[
  171. openWindow("UIB020040");
  172. ]]>
  173. </script>
  174. <input id="input40" ref="/root/formData/chargeNo" style="left:102px; top:5px; width:113px; height:20px; ">
  175. <hint>
  176. <![CDATA[按炉号查询信息模糊,需要详细信息请按板坯号查询]]>
  177. </hint>
  178. </input>
  179. <input id="input1" ref="/root/ChargeComm/ListResult_Row/THE_STL_GRD" editable="false" style="left:90px; top:40px; width:125px; height:20px; "/>
  180. <input id="input2" ref="/root/ChargeComm/ListResult_Row/SLAB_INGR_DEC_KIND" editable="false" style="left:343px; top:40px; width:125px; height:20px; text-align:left; "/>
  181. <input id="input3" ref="/root/ChargeComm/ListResult_Row/TIME" editable="false" format="yyyy-mm-dd hh:nn:ss" style="left:580px; top:40px; width:135px; height:20px; text-align:left; "/>
  182. <input id="input4" ref="/root/ChargeComm/ListResult_Row/INGR_DEC" editable="false" style="left:840px; top:40px; width:125px; height:20px; text-align:left; "/>
  183. <input id="input6" ref="/root/ChargeComm/ListResult_Row/ORD" editable="false" style="left:90px; top:65px; width:125px; height:20px; text-align:left; ">
  184. <hint>
  185. <![CDATA[板坯为余材时,显示的为计划合同]]>
  186. </hint>
  187. </input>
  188. <input id="input7" ref="/root/ChargeComm/ListResult_Row/ORD_FL" editable="false" style="left:343px; top:65px; width:125px; height:20px; text-align:left; "/>
  189. <input id="input8" ref="/root/ChargeComm/ListResult_Row/CUR_PROG_CD" visibility="visible" editable="false" style="left:580px; top:65px; width:135px; height:20px; text-align:left; "/>
  190. <input id="input9" ref="/root/ChargeComm/ListResult_Row/EXTSHAPE_GRD" visibility="visible" editable="false" style="left:840px; top:65px; width:125px; height:20px; text-align:left; "/>
  191. <datagrid id="datagrid1" nodeset="/root/datagrid1/CHEMINFO_Row" caption="元素名称^原始实绩^修约实绩^判定结果^成品放行标准^成品放行标准^客户成分要求^客户成分要求^炼钢内控标准^炼钢内控标准^炼钢放行标准^炼钢放行标准|元素名称^原始实绩^修约实绩^判定结果^最小^最大^最小^最大^最小^最大^最小^最大" colsep="^" colwidth="100, 70, 70, 70, 80, 80, 80, 80, 80, 80, 80, 80" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:95px; width:975px; height:483px; ">
  192. <col ref="CHEM_CD" style="text-align:left; "/>
  193. <col ref="CHEM_L2_VAL" style="text-align:right; "/>
  194. <col ref="CHEM_VAL" style="text-align:right; "/>
  195. <col ref="CHEM_DCS_RST" visibility="hidden" style="text-align:right; "/>
  196. <col ref="CHEM_MIN4" style="text-align:right; "/>
  197. <col ref="CHEM_MAX4" style="text-align:right; "/>
  198. <col ref="CHEM_MIN1" style="text-align:right; "/>
  199. <col ref="CHEM_MAX1" style="text-align:right; "/>
  200. <col ref="CHEM_MIN2" style="text-align:right; "/>
  201. <col ref="CHEM_MAX2" style="text-align:right; "/>
  202. <col ref="CHEM_MIN3" style="text-align:right; "/>
  203. <col ref="CHEM_MAX3" style="text-align:right; "/>
  204. <script type="javascript" ev:event="onclick">
  205. <![CDATA[
  206. if(datagrid1.row > datagrid1.fixedRows
  207. || datagrid1.col < datagrid1.colRef("CHEM_DCS_RST")+1
  208. ) return;
  209. setColorX();
  210. ]]>
  211. </script>
  212. </datagrid>
  213. <textarea id="textarea1" ref="/root/shuoming" scroll="auto" editable="false" style="left:0px; top:580px; width:975px; height:35px; vertical-align:top; "/>
  214. <caption id="caption9" class="cell" style="left:240px; top:5px; width:100px; height:20px; ">选择对比合同</caption>
  215. <input id="input5" ref="/root/formData/DORD" style="left:340px; top:5px; width:100px; height:20px; ">
  216. <hint>
  217. <![CDATA[按炉号查询信息模糊,]]>
  218. </hint>
  219. </input>
  220. <input id="input10" ref="/root/formData/DORDSEQ" style="left:455px; top:5px; width:60px; height:20px; "/>
  221. <line id="line1" style="x1:440px; y1:15px; x2:455px; y2:15px; "/>
  222. <select id="checkbox1" ref="/root/formData/CHKORD" overflow="visible" appearance="full" style="left:240px; top:7px; width:24px; height:20px; border-style:none; ">
  223. <choices>
  224. <item>
  225. <label/>
  226. <value>1</value>
  227. </item>
  228. </choices>
  229. <script type="javascript" ev:event="onclick">
  230. <![CDATA[
  231. if(checkbox1.value != 1)
  232. {
  233. input5.disabled = true;
  234. input10.disabled = true;
  235. }
  236. else
  237. {
  238. input5.disabled = false;
  239. input10.disabled = false;
  240. var length = input40.value.length;
  241. if(length > 10)//板坯号时提示用户不要勾选合同对比查询
  242. {
  243. window.alert("请输入10位数炉号来选择合同对比查询,否则可能查不到数据!", "提示");
  244. }
  245. }
  246. ]]>
  247. </script>
  248. </select>
  249. </xhtml:body>
  250. </xhtml:html>