f06fe8020adcc47ce98e41b00c5d19f1f44c53ce.svn-base 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <?xml-stylesheet href="../css/bCommon.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>
  7. <![CDATA[品质判定>>成分判定>>炼钢成分判定及改判]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <formData>
  13. <StDate/>
  14. <EndDate/>
  15. <StlGrd/>
  16. <CHARGE_NO/>
  17. <INGR_DEC_ID/>
  18. <SHEN_STIME/>
  19. <SHEN_ETIME/>
  20. <DATETIME>S</DATETIME>
  21. <banci/>
  22. <banzu/>
  23. <XIUYUE>Y</XIUYUE>
  24. <IS_INGR_DCS>False</IS_INGR_DCS>
  25. </formData>
  26. <reqData/>
  27. <resData/>
  28. <datagrid1/>
  29. <datagrid2/>
  30. <datagrid3/>
  31. <fwdData>
  32. <UIB030202>
  33. <ORD_NO/>
  34. <ORD_SEQ/>
  35. <URL/>
  36. </UIB030202>
  37. </fwdData>
  38. <CHECKED>Y</CHECKED>
  39. <combData>
  40. <SlabTatus_Row/>
  41. </combData>
  42. <AGDcsCharge_Row/>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. if(window.parent==null) Init();
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript" src="../../js/boaCommon.js"/>
  52. <script type="javascript" src="../../js/b01.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. function Init(node)
  56. {
  57. model.removenode("/root/reqData");
  58. model.makeNode("/root/reqData");
  59. commSubmit("UIB030202-service", "success", "glueAction.do");
  60. model.copyNode("/root/combData" , "/root/resData/SlabTatus_VO");
  61. input2.value = commCurDate();
  62. input3.value = commCurDate();
  63. input1.value = document.readIniFile("session1" , "UIB030202" , "" , "c:\\WINDOWS\\xgmes3.ini");
  64. if(input1.value != "")
  65. {
  66. checkbox1.value = "";
  67. input2.disabled = true;
  68. input3.disabled = true;
  69. }
  70. }
  71. function find()
  72. {
  73. document.writeIniFile("session1" , "UIB030202" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  74. model.removenode("/root/reqData");
  75. model.makeNode("/root/reqData");
  76. if(model.getValue("/root/formData/CHARGE_NO") == "" && (input2.disabled == true || input2.value == "")) {
  77. alert("请输入炉号或时间参数!");
  78. return;
  79. }
  80. if(model.getValue("/root/formData/CHARGE_NO") == "")
  81. {
  82. model.makeValue("/root/reqData/CHARGENO" , "1");//炉号
  83. }
  84. else
  85. {
  86. model.makeValue("/root/reqData/CHARGENO" , input1.value.Trim());//炉号
  87. }
  88. if(input2.disabled == false)//是否允许时间查询
  89. {
  90. model.makeValue("/root/reqData/SHEN_SDTIME",input2.value.Trim()+"0000");//生产开始时间
  91. model.makeValue("/root/reqData/SHEN_EDTIME",input3.value.Trim()+"9999");//生产结束时间
  92. }
  93. else
  94. {
  95. model.makeValue("/root/reqData/SHEN_SDTIME","0000");//生产开始时间
  96. model.makeValue("/root/reqData/SHEN_EDTIME","9999");//生产结束时间
  97. }
  98. var dsc_id = input45.value.Trim();
  99. if( dsc_id == "")
  100. {
  101. dsc_id = "%";
  102. }
  103. model.makeValue("/root/reqData/IS_INGR_DCS" , model.getValue("/root/formData/IS_INGR_DCS"));
  104. model.makeValue("/root/reqData/INGR_DEC_ID" ,dsc_id);//判定人
  105. commSubmit("UIB030202-service", "find", "glueAction.do");
  106. model.copyNode("/root/datagrid1" , "/root/resData/ListResult_1_VO");
  107. model.removenode("/root/datagrid2");
  108. model.removenode("/root/datagrid3");
  109. model.makeNode("/root/datagrid2");
  110. model.makeNode("/root/datagrid3");
  111. model.refresh();
  112. setColor();
  113. }
  114. var facFlag = 0;
  115. function save()
  116. {
  117. if(commComfirmBox("确认判定?若已做改判操作,则不需要再点保存,否则会重新判定!","提示")=="0") return;
  118. model.removenode("/root/reqData");
  119. model.makeNode("/root/reqData");
  120. model.makeValue("/root/reqData/XIUYUE" , model.getValue("/root/formData/XIUYUE"));
  121. model.makeValue("/root/reqData/CHEM_SEQ" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHEM_SEQ")));
  122. model.makeValue("/root/reqData/CHARGE_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHARGE_NO")));
  123. model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));//getLoggingInInfo();//获取登录人信息
  124. model.makeValue("/root/reqData/XX" , "UIB030202_DCS");
  125. commSubmit("UIB030202-service", "save", "glueAction.do");
  126. find();
  127. }
  128. var unqualifiedFlag = 0;
  129. function setColor()
  130. {
  131. datagrid1.rebuildStyle();
  132. var seqCOL = datagrid1.colRef("CHEM_SEQ");
  133. var lstCOL = datagrid1.colRef("LST_INGR_CD");
  134. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  135. {
  136. if(datagrid1.valueMatrix(i , seqCOL)==datagrid1.valueMatrix(i , lstCOL).substr(2))
  137. {
  138. datagrid1.rowStyle(i , "data" , "color") = "#0000ff";
  139. }
  140. else
  141. {
  142. datagrid1.rowStyle(i , "data" , "color") = "#000000";
  143. }
  144. if(datagrid1.valueMatrix(i , datagrid1.colRef("STL_GRD")) != datagrid1.valueMatrix(i , datagrid1.colRef("BEF_STL_GRD")))
  145. {
  146. datagrid1.cellStyle("background-color" , i , datagrid1.colRef("STL_GRD")) = "#ff00ff";
  147. }
  148. }
  149. }
  150. function setColor1()
  151. {
  152. datagrid2.rebuildStyle();
  153. var COL = datagrid2.colRef("SLAB_INGR_DEC_GRD");
  154. for(var i = datagrid2.fixedRows; i < datagrid2.rows; i++)
  155. {
  156. if(datagrid2.valueMatrix(i , datagrid2.colRef("L2_MEMO")) != "")
  157. {
  158. datagrid2.rowstyle(i, "data", "color") = "#0000ff";
  159. }
  160. if(datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_INGR_DEC_GRD"))=="2")
  161. {
  162. datagrid2.cellStyle("background-color" , i , COL) = "#ff0000";
  163. }
  164. else if(datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_INGR_DEC_GRD"))=="")
  165. {
  166. datagrid2.cellStyle("background-color" , i , COL) = "#ff0000";
  167. }
  168. if(datagrid2.valueMatrix(i , datagrid2.colRef("STL_GRD")) != datagrid2.valueMatrix(i , datagrid2.colRef("BEF_STL_GRD")))
  169. {
  170. datagrid2.cellStyle("background-color" , i , datagrid2.colRef("STL_GRD")) = "#ff00ff";
  171. }
  172. }
  173. }
  174. //判定实绩值是否在成品放行范围内
  175. function setColor3()
  176. {
  177. var maxCol = datagrid3.colRef("CHEM_MAX3");
  178. var minCol = datagrid3.colRef("CHEM_MIN3");
  179. var valCol = datagrid3.colRef("CHEM_VAL");
  180. var max;
  181. var min;
  182. var val;
  183. //datagrid3.rebuildStyle();
  184. for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
  185. {
  186. max = datagrid3.valueMatrix(i , maxCol);
  187. min = datagrid3.valueMatrix(i , minCol);
  188. val = datagrid3.valueMatrix(i , valCol);
  189. if(val == "" && (max != "" || min != ""))//无标准
  190. {
  191. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  192. caption33.visible = true;
  193. //unqualifiedFlag++;
  194. }
  195. else if(max != "" && min != "")//最大最小值均存在
  196. {
  197. if(parseFloat(val) < parseFloat(min) ||parseFloat(val) > parseFloat(max))
  198. {
  199. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  200. caption33.visible = true;
  201. //unqualifiedFlag++;
  202. }
  203. }
  204. else if(max != "" )//仅有最大
  205. {
  206. if(parseFloat(val) > parseFloat(max))
  207. {
  208. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  209. caption33.visible = true;
  210. //unqualifiedFlag++;
  211. }
  212. }
  213. else if(min != "" )//仅有最小
  214. {
  215. if(parseFloat(val) < parseFloat(min))
  216. {
  217. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  218. caption33.visible = true;
  219. //unqualifiedFlag++;
  220. }
  221. }
  222. }
  223. model.refresh();
  224. }
  225. //各套标准与成分实绩比较,不合格显红色
  226. function setColor2(chemMax , chemMin)
  227. {
  228. var maxCol = datagrid3.colRef(chemMax);
  229. var minCol = datagrid3.colRef(chemMin);
  230. var valCol = datagrid3.colRef("CHEM_VAL");
  231. var max;
  232. var min;
  233. var val;
  234. datagrid3.rebuildStyle();
  235. for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
  236. {
  237. max = datagrid3.valueMatrix(i , maxCol);
  238. min = datagrid3.valueMatrix(i , minCol);
  239. val = datagrid3.valueMatrix(i , valCol);
  240. if(val == "" && (max != "" || min != ""))//无标准
  241. {
  242. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  243. caption33.visible = true;
  244. unqualifiedFlag++;
  245. }
  246. else if(max != "" && min != "")//最大最小值均存在
  247. {
  248. if(parseFloat(val) < parseFloat(min) ||parseFloat(val) > parseFloat(max))
  249. {
  250. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  251. caption33.visible = true;
  252. unqualifiedFlag++;
  253. }
  254. }
  255. else if(max != "" )//仅有最大
  256. {
  257. if(parseFloat(val) > parseFloat(max))
  258. {
  259. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  260. caption33.visible = true;
  261. unqualifiedFlag++;
  262. }
  263. }
  264. else if(min != "" )//仅有最小
  265. {
  266. if(parseFloat(val) < parseFloat(min))
  267. {
  268. datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
  269. caption33.visible = true;
  270. unqualifiedFlag++;
  271. }
  272. }
  273. }
  274. model.refresh();
  275. }
  276. var chemVal;
  277. var chemName;
  278. var count;
  279. ]]>
  280. </script>
  281. </xhtml:head>
  282. <xhtml:body accesskey="f2" pagewidth="980" pageheight="620" style="font-size:16pt; ">
  283. <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  284. <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  285. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
  286. <input id="input1" ref="/root/formData/CHARGE_NO" style="left:50px; top:5px; width:85px; height:20px; ">
  287. <script type="javascript" ev:event="onkeydown">
  288. <![CDATA[
  289. if(event.keyCode == 113)
  290. {
  291. model.setFocus("");
  292. model.setFocus("input1");
  293. find();
  294. }
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="DOMFocusIn">
  298. <![CDATA[
  299. checkbox1.value = "";
  300. input2.disabled = true;
  301. input3.disabled = true;
  302. ]]>
  303. </script>
  304. <script type="javascript" ev:event="DOMFocusOut">
  305. <![CDATA[
  306. if(input1.value == "")
  307. {
  308. checkbox1.value = "Y";
  309. input2.disabled = false;
  310. input3.disabled = false;
  311. }
  312. ]]>
  313. </script>
  314. <hint>
  315. <![CDATA[炉号格式为9位]]>
  316. </hint>
  317. </input>
  318. <input id="input2" ref="/root/formData/SHEN_STIME" inputtype="date" style="left:275px; top:5px; width:88px; height:20px; "/>
  319. <line id="line2" style="x1:362px; y1:15px; x2:370px; y2:15px; "/>
  320. <input id="input3" ref="/root/formData/SHEN_ETIME" inputtype="date" style="left:370px; top:5px; width:88px; height:20px; "/>
  321. <caption id="caption2" class="cell" style="left:0px; top:5px; width:50px; height:20px; ">炉 号</caption>
  322. <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_1_Row" caption="炉次号^工序代码^实际牌号^计划牌号^次数^判定工序^判定人^连铸机号" colsep="^" colwidth="82, 38, 52, 58, 33, 50, 55,38" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:35px; width:305px; height:537px; ">
  323. <col editable="false" ref="CHARGE_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
  324. <col ref="CHEM_L2_PROC_CD" style="text-align:left; "/>
  325. <col ref="STL_GRD" style="text-align:left; "/>
  326. <col ref="BEF_STL_GRD" style="text-align:left; "/>
  327. <col ref="CHEM_SEQ" visibility="visible" style="text-align:right; "/>
  328. <col ref="LST_INGR_CD" style="text-align:left; "/>
  329. <col ref="CHARGE_INGR_DEC_EMP_ID" style="text-align:left; "/>
  330. <col ref="ACT_CCM_RT" style="text-align:left; "/>
  331. <script type="javascript" ev:event="onclick">
  332. <![CDATA[
  333. if(datagrid1.row > 0 && datagrid1.col == datagrid1.colRef("CHARGE_NO") && datagrid1.row >= datagrid1.fixedRows){
  334. caption33.visible = false;
  335. model.removenode("/root/reqData");
  336. model.makeNode("/root/reqData");
  337. //datagrid1.col = 0;//转移焦点,以免拖动滚动条时又做了查询
  338. var row = datagrid1.row;
  339. model.makeValue("/root/reqData/CHARGE_NO" , datagrid1.valueMatrix(row , datagrid1.colRef("CHARGE_NO")));
  340. model.makeValue("/root/reqData/STL_GRD" , datagrid1.valueMatrix(row , datagrid1.colRef("STL_GRD")));
  341. model.makeValue("/root/reqData/CHEM_SEQ" , datagrid1.valueMatrix(row , datagrid1.colRef("CHEM_SEQ")));
  342. //commSendReq("/root/datagrid1/ListResult_1_Row["+datagrid1.row+"]");
  343. commSubmit("UIB030202-service", "findSlab", "glueAction.do");
  344. model.copyNode("/root/datagrid2" , "/root/resData/ListResult_2_VO");
  345. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  346. model.refresh();
  347. setColor1();
  348. setColor2("CHEM_MAX" , "CHEM_MIN");
  349. //保存元素值到数组
  350. chemVal = new Array();
  351. chemName= new Array();
  352. count = 0;
  353. for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
  354. {
  355. chemVal[count] = datagrid3.valueMatrix(i , datagrid3.colRef("CHEM_VAL"));
  356. chemName[count]= datagrid3.valueMatrix(i , datagrid3.colRef("CHEM_CD"));
  357. count++;
  358. }
  359. //设置字体大小
  360. datagrid3.allstyle( "data", "font-size" ) = "12pt";
  361. }
  362. ]]>
  363. </script>
  364. </datagrid>
  365. <datagrid id="datagrid2" nodeset="/root/datagrid2/ListResult_2_Row" caption="板坯号^SLAB_NO^炉号^板坯状态^是否有特殊要求^合同号^订单号^计划号^原始合同号^原始订单号^实际规格^实际牌号^计划牌号^成分等级^判定方式^外观等级^精整方法^余材区分^中厚板特殊要求^改判说明^申请进度^加热要求^轧制要求^取样要求^热处理要求^炼钢判定及处理要求^成品判定及处理要求" colsep="^" colwidth="98, 51, 42, 95, 37, 64, 34, 90,60, 32, 73, 72, 43, 61, 60, 56, 58, 51, 250, 100, 80, 120, 120, 120, 120, 128, 128" explorerbar="sortmove" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" selectionmode="free" tooltip="label" style="left:308px; top:35px; width:665px; height:265px; ">
  366. <col ref="SLAB_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
  367. <col ref="SLAB_NO" visibility="hidden"/>
  368. <col ref="CHARGE_NO" visibility="hidden"/>
  369. <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
  370. <choices>
  371. <itemset nodeset="/root/combData/SlabTatus_Row">
  372. <label ref="LABEL"/>
  373. <value ref="VALUE"/>
  374. </itemset>
  375. </choices>
  376. </col>
  377. <col editable="false" ref="CUST_SPEC_NO" type="input" style="text-align:left; "/>
  378. <col ref="ORD_NO" style="text-align:left; cursor:hand; "/>
  379. <col ref="ORD_SEQ" style="text-align:left; "/>
  380. <col ref="L2_SCH_NO"/>
  381. <col ref="ORG_ORD_NO" visibility="visible" style="text-align:left; cursor:hand; "/>
  382. <col ref="ORG_ORD_SEQ" visibility="visible" style="text-align:left; "/>
  383. <col ref="TWL" style="left:529px; top:30px; width:67px; height:21px; text-align:right; "/>
  384. <col ref="STL_GRD" style="text-align:left; "/>
  385. <col ref="BEF_STL_GRD" style="text-align:left; "/>
  386. <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
  387. <choices>
  388. <item>
  389. <label>待判</label>
  390. <value/>
  391. </item>
  392. <item>
  393. <label>合格</label>
  394. <value>1</value>
  395. </item>
  396. <item>
  397. <label>不合格</label>
  398. <value>2</value>
  399. </item>
  400. <item>
  401. <label>合格</label>
  402. <value>0</value>
  403. </item>
  404. <item>
  405. <label>化废</label>
  406. <value>3</value>
  407. </item>
  408. <item>
  409. <label>流转申请中</label>
  410. <value>4</value>
  411. </item>
  412. <item>
  413. <label>流转取消</label>
  414. <value>5</value>
  415. </item>
  416. <item>
  417. <label>流转申请成功</label>
  418. <value>6</value>
  419. </item>
  420. </choices>
  421. </col>
  422. <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo" style="text-align:left; ">
  423. <choices>
  424. <item>
  425. <label>内控判定</label>
  426. <value>1</value>
  427. </item>
  428. <item>
  429. <label>炼钢放行(订单材)</label>
  430. <value>2</value>
  431. </item>
  432. <item>
  433. <label>正常流转</label>
  434. <value>3</value>
  435. </item>
  436. <item>
  437. <label>成品放行</label>
  438. <value>4</value>
  439. </item>
  440. <item>
  441. <label>改判</label>
  442. <value>5</value>
  443. </item>
  444. <item>
  445. <label>判次</label>
  446. <value>6</value>
  447. </item>
  448. <item>
  449. <label>强制合格</label>
  450. <value>7</value>
  451. </item>
  452. <item>
  453. <label>炼钢放行(余材)</label>
  454. <value>8</value>
  455. </item>
  456. <item>
  457. <label>化废</label>
  458. <value>10</value>
  459. </item>
  460. <item>
  461. <label>流转申请中</label>
  462. <value>11</value>
  463. </item>
  464. <item>
  465. <label>流转申请取消</label>
  466. <value>12</value>
  467. </item>
  468. <item>
  469. <label>流转确认成功</label>
  470. <value>13</value>
  471. </item>
  472. <item>
  473. <label>手动充当</label>
  474. <value>14</value>
  475. </item>
  476. </choices>
  477. </col>
  478. <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
  479. <choices>
  480. <item>
  481. <label>合格</label>
  482. <value>1</value>
  483. </item>
  484. <item>
  485. <label>不合格</label>
  486. <value>2</value>
  487. </item>
  488. <item>
  489. <label>待判</label>
  490. <value>3</value>
  491. </item>
  492. <item>
  493. <label>未判定</label>
  494. <value/>
  495. </item>
  496. </choices>
  497. </col>
  498. <col disabled="true" ref="SF_METHOD" type="combo" visibility="hidden" style="text-align:left; ">
  499. <choices>
  500. <item>
  501. <label>全面精整</label>
  502. <value>A</value>
  503. </item>
  504. <item>
  505. <label>部分精整</label>
  506. <value>P</value>
  507. </item>
  508. <item>
  509. <label>无精整</label>
  510. <value>N</value>
  511. </item>
  512. <item>
  513. <label>待精整</label>
  514. <value>D</value>
  515. </item>
  516. <item>
  517. <label>精整完成</label>
  518. <value>E</value>
  519. </item>
  520. </choices>
  521. </col>
  522. <col disabled="true" ref="ORD_FL" type="combo" style="text-align:left; ">
  523. <choices>
  524. <item>
  525. <label>订单材</label>
  526. <value>1</value>
  527. </item>
  528. <item>
  529. <label>余材</label>
  530. <value>2</value>
  531. </item>
  532. </choices>
  533. </col>
  534. <col ref="L2_MEMO" style="text-align:left; "/>
  535. <col ref="SLAB_DCS_DETAIL" style="text-align:left; "/>
  536. <col ref="ASK_TP"/>
  537. <col ref="ASK_CFM_JR_DESC"/>
  538. <col ref="ASK_CFM_ZZ_DESC"/>
  539. <col ref="ASK_CFM_QY_DESC"/>
  540. <col ref="ASK_CFM_RCL_DESC"/>
  541. <col ref="ASK_CFM_LGPD_DESC"/>
  542. <col ref="CFPDYQ"/>
  543. <script type="javascript" ev:event="onclick">
  544. <![CDATA[
  545. //查询板坯成分及各套标准信息
  546. if(datagrid2.col == datagrid2.colRef("SLAB_NO") && datagrid2.row >= datagrid2.fixedRows)
  547. {
  548. caption33.visible = false;
  549. model.removenode("/root/reqData");
  550. var ordno;
  551. var ordseq;
  552. var stlgrd;
  553. if(datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_NO")) != "")
  554. {
  555. ordno = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_NO"));
  556. ordseq = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_SEQ"));
  557. model.makeValue("/root/reqData/ORDNO" , ordno);
  558. model.makeValue("/root/reqData/ORDSEQ", ordseq);
  559. commSubmit("UIB030202-service", "findS", "glueAction.do");
  560. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  561. model.refresh();
  562. }
  563. else if(datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_SEQ")) != "")
  564. {
  565. ordno = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_NO"));
  566. ordseq = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_SEQ"));
  567. model.makeValue("/root/reqData/ORDNO" , ordno);
  568. model.makeValue("/root/reqData/ORDSEQ", ordseq);
  569. commSubmit("UIB030202-service", "findS", "glueAction.do");
  570. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  571. model.refresh();
  572. }
  573. else
  574. {
  575. stlgrd = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("STL_GRD"));
  576. model.makeValue("/root/reqData/STLGRD" , stlgrd);
  577. commSubmit("UIB030202-service", "findTafac", "glueAction.do");
  578. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  579. model.refresh();
  580. }
  581. for(var i = 0; i < count; i++)
  582. {
  583. for(var j = datagrid3.fixedRows; j < datagrid3.rows; j++)
  584. {
  585. if(datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_CD")) == chemName[i])
  586. {
  587. datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_VAL")) = chemVal[i];
  588. }
  589. }
  590. }
  591. unqualifiedFlag = 0;
  592. caption33.visible = false;
  593. setColor2("CHEM_MAX" , "CHEM_MIN");//成分实绩与各套标准进行比较,不合格为红色
  594. setColor3();
  595. if(unqualifiedFlag > 0){
  596. window.alert("有"+unqualifiedFlag+"条元素成分不合格", "提示");
  597. }
  598. }
  599. if(datagrid2.colRef("STL_GRD") == datagrid2.col)//若点击的为合同号的列,则以合同为查询条件
  600. {
  601. model.removenode("/root/reqData");
  602. var stlgrd;
  603. stlgrd = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("STL_GRD"));
  604. model.makeValue("/root/reqData/STLGRD" , stlgrd);
  605. commSubmit("UIB030202-service", "findTafac", "glueAction.do");
  606. model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
  607. model.refresh();
  608. for(var i = 0; i < count; i++)
  609. {
  610. for(var j = datagrid3.fixedRows; j < datagrid3.rows; j++)
  611. {
  612. if(datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_CD")) == chemName[i])
  613. {
  614. datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_VAL")) = chemVal[i];
  615. }
  616. }
  617. }
  618. caption33.visible = false;
  619. setColor2("CHEM_MAX" , "CHEM_MIN");//成分实绩与各套标准进行比较,不合格为红色
  620. setColor3();
  621. }
  622. //链接到品质设计结果查询界面
  623. if(datagrid2.colRef("ORD_NO") == datagrid2.col)//若点击的为合同号的列,则以合同为查询条件
  624. {
  625. model.setValue("/root/fwdData/UIB030202/ORD_NO", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORD_NO")));
  626. model.setValue("/root/fwdData/UIB030202/ORD_SEQ", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORD_SEQ")));
  627. model.setValue("/root/fwdData/UIB030202/URL", "./../../B/B01/UIB015020.xrw");
  628. var java = window.parent.javaScript;
  629. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB030202"));
  630. }
  631. if(datagrid2.colRef("ORG_ORD_NO") == datagrid2.col)//若点击的为原始合同号的列,则以原始合同为查询条件
  632. {
  633. model.setValue("/root/fwdData/UIB030202/ORD_NO", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORG_ORD_NO")));
  634. model.setValue("/root/fwdData/UIB030202/ORD_SEQ", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORG_ORD_SEQ")));
  635. model.setValue("/root/fwdData/UIB030202/URL", "./../../B/B01/UIB015020.xrw");
  636. var java = window.parent.javaScript;
  637. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB030202"));
  638. }
  639. datagrid3.allstyle( "data", "font-size" ) = "12pt";
  640. ]]>
  641. </script>
  642. </datagrid>
  643. <datagrid id="datagrid3" nodeset="/root/datagrid3/ListResult_3_Row" caption="元素代码^实绩^炼钢放行标准^炼钢放行标准^成品放行标准^成品放行标准^内控标准^内控标准|元素代码^实绩^最小值^最大值^最小值^最大值^最小值^最大值" colsep="^" colwidth="143, 85, 67,67, 66, 66, 66, 66" dataheight="35" defaultrows="30" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:308px; top:305px; width:665px; height:315px; ">
  644. <col ref="CHEM_CD" style="font-weight:bold; text-align:left; border-style:solid; "/>
  645. <col editable="false" ref="CHEM_VAL" style="font-weight:bold; text-align:right; "/>
  646. <col ref="CHEM_MIN" style="font-weight:bold; text-align:right; "/>
  647. <col ref="CHEM_MAX" style="font-weight:bold; text-align:right; "/>
  648. <col ref="CHEM_MIN3" style="font-weight:bold; text-align:right; "/>
  649. <col ref="CHEM_MAX3" style="font-weight:bold; text-align:right; "/>
  650. <col ref="CHEM_MIN1" style="font-weight:bold; text-align:right; "/>
  651. <col ref="CHEM_MAX1" style="font-weight:bold; text-align:right; "/>
  652. <script type="javascript" ev:event="onclick">
  653. <![CDATA[
  654. //若点击的大于表头,则直接返回
  655. if(datagrid3.row > datagrid3.fixedRows-2)
  656. {
  657. return;
  658. }
  659. //屏蔽滚动条点击事件
  660. if(datagrid3.mouseCol == -1 || datagrid3.mouseCol == 8)
  661. {
  662. return;
  663. }
  664. datagrid3.allstyle( "data", "font-size" ) = "15pt";
  665. //点击“放行”、成分放行、内控、客户各套标准时,与实绩值进行比较
  666. if(datagrid3.col == datagrid3.colRef("CHEM_MAX") || datagrid3.col == datagrid3.colRef("CHEM_MIN") )
  667. {
  668. setColor2("CHEM_MAX" , "CHEM_MIN");
  669. }
  670. else if(datagrid3.col == datagrid3.colRef("CHEM_MAX3") || datagrid3.col == datagrid3.colRef("CHEM_MIN3"))
  671. {
  672. setColor2("CHEM_MAX3" , "CHEM_MIN3");
  673. }
  674. else if(datagrid3.col == datagrid3.colRef("CHEM_MAX2") || datagrid3.col == datagrid3.colRef("CHEM_MIN2"))
  675. {
  676. setColor2("CHEM_MAX2" , "CHEM_MIN2");
  677. }
  678. else if(datagrid3.col == datagrid3.colRef("CHEM_MAX1") || datagrid3.col == datagrid3.colRef("CHEM_MIN1"))
  679. {
  680. setColor2("CHEM_MAX1" , "CHEM_MIN1");
  681. }
  682. datagrid3.allstyle( "data", "font-size" ) = "12pt";
  683. ]]>
  684. </script>
  685. </datagrid>
  686. <button id="button1" style="left:0px; top:575px; width:110px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  687. <caption>炉次改判</caption>
  688. <script type="javascript" ev:event="DOMActivate">
  689. <![CDATA[
  690. if(datagrid1.row == 0 || datagrid1.row == -1)
  691. {
  692. window.alert("请选择需要改判的炉次!" , "提示");
  693. return;
  694. }
  695. if(facFlag==0)
  696. {
  697. model.removenode("/root/reqData");
  698. model.makeNode("/root/reqData");
  699. model.makeNode("/root/datagrid4");
  700. commSubmit("UIB020050-service", "findFacIngr", "glueAction.do");
  701. model.copyNode("/root/datagrid4" , "/root/resData/FacStlResult_VO");
  702. model.refresh();
  703. facFlag++;
  704. }
  705. window.load("./_0302CHARGENO.xrw", "modal", "modalWin", "left:400; top:40; width:800px; height:550px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/datagrid4" , "/root/datagrid4");
  706. ]]>
  707. </script>
  708. </button>
  709. <button id="button2" style="left:100px; top:575px; width:120px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  710. <caption>板坯改判</caption>
  711. <script type="javascript" ev:event="DOMActivate">
  712. <![CDATA[
  713. if(datagrid1.row == 0 || datagrid1.row == -1)
  714. {
  715. window.alert("请选择需要改判的炉次!" , "提示");
  716. return;
  717. }
  718. window.load("./_0302SLAB.xrw", "modal", "modalWin", "left:250; top:50; width:850px; height:580px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/datagrid2" , "/root/datagrid2");
  719. ]]>
  720. </script>
  721. </button>
  722. <select1 id="combo1" ref="/root/formData/DATETIME" appearance="minimal" style="left:190px; top:5px; width:85px; height:20px; ">
  723. <choices>
  724. <item>
  725. <label>生产日期</label>
  726. <value>S</value>
  727. </item>
  728. <item>
  729. <label>判定日期</label>
  730. <value>P</value>
  731. </item>
  732. </choices>
  733. </select1>
  734. <script type="javascript" ev:event="onaccesskey">
  735. <![CDATA[
  736. alert("dd");
  737. ]]>
  738. </script>
  739. <script type="javascript" ev:event="onkeydown">
  740. <![CDATA[
  741. if(event.keyCode == 13)
  742. {
  743. window.load("./UIB030203.xrw", "modal", "modalWin", "left:400; top:40; width:420px; height:420px;sysmenu:visible; min:visible; max:hidden; resize:false;");
  744. }
  745. ]]>
  746. </script>
  747. <button id="button3" style="left:0px; top:599px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  748. <caption>微量元素查询</caption>
  749. <script type="javascript" ev:event="DOMActivate">
  750. <![CDATA[
  751. window.load("./_UIB020030.xrw", "modeless", "modalWin", "left:150; top:50; width:1005px; height:680px;sysmenu:visible; min:visible; max:visible; resize:true;" );
  752. ]]>
  753. </script>
  754. </button>
  755. <button id="button4" style="left:135px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  756. <caption/>
  757. <script type="javascript" ev:event="DOMActivate">
  758. <![CDATA[
  759. if(matchChargeNo(input1.value.Trim()) == false) return;
  760. try
  761. {
  762. var cc = parseInt(input1.value.substr(4 , 8) , 10)-1+"";
  763. for(var i = 0; i <= 5; i++)
  764. {
  765. if(cc.length < 5)
  766. cc = "0"+cc;
  767. }
  768. input1.value = input1.value.substr(0 , 4)+cc;
  769. find();
  770. }
  771. catch(e)
  772. {
  773. }
  774. ]]>
  775. </script>
  776. </button>
  777. <button id="button5" style="left:150px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  778. <caption/>
  779. <script type="javascript" ev:event="DOMActivate">
  780. <![CDATA[
  781. if(matchChargeNo(input1.value.Trim()) == false) return;//判断炉号格式是否正确
  782. try
  783. {
  784. var cc = parseInt(input1.value.substr(4 , 8) , 10)+1+"";
  785. for(var i = 0; i <= 4; i++)
  786. {
  787. if(cc.length < 5)
  788. cc = "0"+cc;
  789. }
  790. input1.value = input1.value.substr(0 , 4)+cc;
  791. find();
  792. }
  793. catch(e)
  794. {
  795. }
  796. ]]>
  797. </script>
  798. </button>
  799. <caption id="caption1" class="cell" style="left:170px; top:5px; width:25px; height:20px; "/>
  800. <select id="checkbox1" ref="/root/CHECKED" overflow="visible" appearance="full" style="left:177px; top:7px; width:18px; height:20px; border-style:none; ">
  801. <choices>
  802. <item>
  803. <label/>
  804. <value>Y</value>
  805. </item>
  806. </choices>
  807. <script type="javascript" ev:event="onclick">
  808. <![CDATA[
  809. if(checkbox1.value == "Y")
  810. {
  811. input2.disabled = false;
  812. input3.disabled = false;
  813. }
  814. else
  815. {
  816. input2.disabled = true;
  817. input3.disabled = true;
  818. }
  819. ]]>
  820. </script>
  821. </select>
  822. <caption id="caption3" class="cell" style="left:705px; top:5px; width:55px; height:20px; ">是否修约</caption>
  823. <select1 id="combo2" ref="/root/formData/XIUYUE" appearance="minimal" style="left:760px; top:5px; width:45px; height:20px; ">
  824. <choices>
  825. <item>
  826. <label>是</label>
  827. <value>Y</value>
  828. </item>
  829. <item>
  830. <label>否</label>
  831. <value>N</value>
  832. </item>
  833. </choices>
  834. </select1>
  835. <caption id="caption26" class="cell" style="left:460px; top:5px; width:50px; height:20px; ">判定人</caption>
  836. <input id="input45" ref="/root/formData/INGR_DEC_ID" style="left:510px; top:5px; width:80px; height:20px; ">
  837. <hint>
  838. <![CDATA[指成分判定人]]>
  839. </hint>
  840. </input>
  841. <button id="button6" style="left:100px; top:600px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  842. <caption>复合元素计算</caption>
  843. <script type="javascript" ev:event="DOMActivate">
  844. <![CDATA[
  845. if(datagrid1.row < datagrid1.fixedRows)
  846. {
  847. window.alert("请选择炉次!" , "提示");
  848. return;
  849. }
  850. if(commComfirmBox("确认进行复合元素的计算?","提示")=="0") return;
  851. model.removenode("/root/reqData");
  852. model.makeValue("/root/reqData/XX" , "UIB020235_1");
  853. model.makeValue("/root/reqData/CHARGENO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHARGE_NO")));
  854. model.makeValue("/root/reqData/CHEMSEQ" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHEM_SEQ")));
  855. commSubmit("UIB020235-service" , "save" , "glueAction.do");
  856. model.refresh();
  857. ]]>
  858. </script>
  859. </button>
  860. <button id="button7" style="left:200px; top:575px; width:105px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  861. <caption>重判炉次</caption>
  862. <script type="javascript" ev:event="DOMActivate">
  863. <![CDATA[
  864. model.removenode("/root/reqData");
  865. model.makeNode("/root/reqData");
  866. commSubmit("UIB030202-service", "find4", "glueAction.do");
  867. var charge = "";
  868. var srcRef = "/root/resData/AGDcsCharge_VO/AGDcsCharge_Row/CHARGE_NO"
  869. var nodeList = instance1.selectNodes(srcRef);
  870. for(var i = 1 ; i<= nodeList.length ; i++)
  871. {
  872. charge = charge +"\n" +model.getValue("/root/resData/AGDcsCharge_VO/AGDcsCharge_Row["+i+"]/CHARGE_NO");
  873. }
  874. window.alert("重判炉次:"+charge , "提示");
  875. model.refresh();
  876. ]]>
  877. </script>
  878. <hint>
  879. <![CDATA[判定后,化验室重新发送成分数据的炉次]]>
  880. </hint>
  881. </button>
  882. <button id="button8" visibility="hidden" style="left:820px; top:5px; width:60px; height:20px; ">
  883. <caption>find</caption>
  884. <script type="javascript" ev:event="onclick">
  885. <![CDATA[
  886. find();
  887. ]]>
  888. </script>
  889. </button>
  890. <button id="button9" visibility="hidden" style="left:915px; top:5px; width:45px; height:20px; ">
  891. <caption>保存</caption>
  892. <script type="javascript" ev:event="onclick">
  893. <![CDATA[
  894. save();
  895. ]]>
  896. </script>
  897. </button>
  898. <caption id="caption4" class="cell" style="left:595px; top:5px; width:55px; height:20px; ">判定状态</caption>
  899. <select1 id="combo3" ref="/root/formData/IS_INGR_DCS" appearance="minimal" style="left:650px; top:5px; width:50px; height:20px; ">
  900. <choices>
  901. <item>
  902. <label>全部</label>
  903. <value>False</value>
  904. </item>
  905. <item>
  906. <label>待判</label>
  907. <value>True</value>
  908. </item>
  909. </choices>
  910. </select1>
  911. <caption id="caption33" visibility="hidden" style="left:560px; top:275px; width:175px; height:25px; font-size:14pt; font-weight:bold; color:#ff0000; ">请注意!有元素成分不合格!</caption>
  912. </xhtml:body>
  913. </xhtml:html>