a05e3c1d74853c9e176d3d6317dbc57a84c4321c.svn-base 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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. <datagrid1/>
  12. <formData>
  13. <startTime/>
  14. <endTime/>
  15. <zongliang/>
  16. <buhege/>
  17. <hege/>
  18. <coilNO1/>
  19. <coilNO2/>
  20. <stlgrd/>
  21. <zapihetong>1</zapihetong>
  22. </formData>
  23. <datagrid2/>
  24. <datagrid3/>
  25. <fwdData>
  26. <UIB020236>
  27. <ORD_NO/>
  28. <ORD_SEQ/>
  29. <URL/>
  30. </UIB020236>
  31. </fwdData>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. if(window.parent==null) Init();
  37. ]]>
  38. </script>
  39. </model>
  40. <script type="javascript" src="../../js/boaCommon.js"/>
  41. <script type="javascript" src="../../js/b01.js"/>
  42. <script type="javascript">
  43. <![CDATA[
  44. function Init(node)
  45. {
  46. input1.value = commCurDate();
  47. input2.value = commCurDate();
  48. input6.value = document.readIniFile("session1" , "uib020236_1" , "" , "c:\\WINDOWS\\xgmes3.ini");
  49. input7.value = document.readIniFile("session1" , "uib020236_2" , "" , "c:\\WINDOWS\\xgmes3.ini");
  50. setFontColor();
  51. }
  52. function find()
  53. {
  54. model.removenode("/root/reqData");
  55. document.writeIniFile("session1" , "uib020236_1" , input6.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  56. document.writeIniFile("session1" , "uib020236_2" , input7.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  57. if(switch1.selectedIndex == 0)
  58. {
  59. find1();//综合判定结果查询
  60. }
  61. else if(switch1.selectedIndex == 1)
  62. {
  63. find2();//未判定钢卷
  64. }
  65. else if(switch1.selectedIndex == 2)
  66. {
  67. find3();//判定历史记录查询
  68. }
  69. }
  70. function find1()//综合判定结果查询
  71. {
  72. //获取被判定的钢卷号信息
  73. model.makeValue("/root/reqData/S_TIME" , input1.value+"0000");
  74. model.makeValue("/root/reqData/E_TIME" , input2.value+"9999");
  75. model.makeValue("/root/reqData/COILNO1", input6.value.Trim());
  76. model.makeValue("/root/reqData/STLGRD" , input8.value.Trim());//牌号
  77. if(input7.value.Trim() =="")
  78. {
  79. model.makeValue("/root/reqData/COILNO2", input6.value.Trim());
  80. }
  81. else
  82. {
  83. model.makeValue("/root/reqData/COILNO2", input7.value.Trim());
  84. }
  85. if(input6.value.Trim() != "" && combo1.value == "1")//按轧批号查询
  86. {
  87. commSubmit("UIB020236-service" , "findCOIL" , "glueAction.do");
  88. }
  89. else if(input6.value.Trim() != "" && combo1.value == "2")//按合同号进行查
  90. {
  91. commSubmit("UIB020236-service" , "findORDNO" , "glueAction.do");
  92. }
  93. else//按日期查询
  94. {
  95. commSubmit("UIB020236-service" , "find" , "glueAction.do");
  96. }
  97. model.copyNode("/root/datagrid1" , "/root/resData/TotDecResult_VO");
  98. model.refresh();
  99. setColor();
  100. }
  101. function find2()//未判定钢卷
  102. {
  103. model.makeNode("/root/reqData");
  104. model.makeValue("/root/reqData/XX" , "UIB020236_02");
  105. commSubmit("UIB020236-service" , "findProc" , "glueAction.do");
  106. model.copyNode("/root/datagrid2" , "/root/resData/NotTotDecResult_VO");
  107. model.refresh();
  108. datagrid2.rebuildStyle();
  109. for(var i = datagrid2.fixedRows; i < datagrid2.rows ; i++)
  110. {
  111. if(datagrid2.valueMatrix( i , datagrid2.colRef("WXXX")) >= 3)
  112. {
  113. datagrid2.rowStyle(i , "data" , "color") = "#ff0000";
  114. }
  115. }
  116. }
  117. function find3()//综合判定历史
  118. {
  119. model.makeNode("/root/reqData");
  120. model.makeValue("/root/reqData/STIME" , input1.value+"000000");
  121. model.makeValue("/root/reqData/ETIME" , input2.value+"999999");
  122. model.makeValue("/root/reqData/COILNO1" , input6.value.Trim());
  123. if(input7.value.Trim()=="")
  124. {
  125. model.makeValue("/root/reqData/COILNO2" , input6.value.Trim());
  126. }
  127. else
  128. {
  129. model.makeValue("/root/reqData/COILNO2" , input7.value.Trim());
  130. }
  131. if(input6.value.Trim() == "")
  132. {
  133. commSubmit("UIB030204-service", "find1", "glueAction.do");
  134. }
  135. else
  136. {
  137. commSubmit("UIB030204-service", "find2", "glueAction.do");
  138. }
  139. model.copyNode("/root/datagrid3" , "/root/resData/HisDcsResult_VO");
  140. model.refresh();
  141. }
  142. //被选择的按钮变颜色
  143. function setFontColor()
  144. {
  145. button2.attribute("color") = "#000000";
  146. button3.attribute("color") = "#000000";
  147. button4.attribute("color") = "#000000";
  148. if(switch1.selectedIndex == 0)
  149. {
  150. button2.attribute("color") = "#0000ff";
  151. }
  152. else if(switch1.selectedIndex == 1)
  153. {
  154. button3.attribute("color") = "#0000ff";
  155. }
  156. else if(switch1.selectedIndex == 2)
  157. {
  158. button4.attribute("color") = "#0000ff";
  159. }
  160. }
  161. var unqulCol = 0;
  162. function setColor()
  163. {
  164. datagrid1.rebuildStyle();
  165. var col = datagrid1.colRef("TOT_DEC_GRD");
  166. unqulCol = 0;
  167. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  168. {
  169. if(datagrid1.valueMatrix(i , col) >= "2")
  170. {
  171. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";
  172. unqulCol++;
  173. }
  174. }
  175. }
  176. function save()
  177. {
  178. if(switch1.selectedIndex != 0)//SAVE只针对综合判定查询有效果
  179. return;
  180. if(commComfirmBox("确认取消综合判定?","提示")=="0") return;
  181. var dcsCol = datagrid1.colRef("TOT_OVER");
  182. var id = model.getValue("");
  183. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  184. {
  185. if(datagrid1.valueMatrix(i , dcsCol) == "Y")
  186. {
  187. datagrid1.addStatus(i , "update");
  188. }
  189. }
  190. model.removenode("/root/reqData");
  191. model.makeNode("/root/reqData");
  192. commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
  193. model.makeValue("/root/reqData/XX" , "UIB020236");
  194. getLoggingInInfo();
  195. commSubmit("UIB020236-service" , "save" , "glueAction.do");
  196. find();
  197. }
  198. ]]>
  199. </script>
  200. </xhtml:head>
  201. <xhtml:body pagewidth="980" pageheight="620" guideline="1,982;1,980;1,980;">
  202. <line id="line1" style="x1:0px; y1:20px; x2:977px; y2:20px; "/>
  203. <line id="line2" style="x1:0px; y1:50px; x2:970px; y2:50px; "/>
  204. <caption id="caption1" class="cell" style="left:0px; top:23px; width:100px; height:20px; ">判定时间</caption>
  205. <input id="input1" ref="/root/formData/startTime" inputtype="date" style="left:100px; top:23px; width:100px; height:20px; "/>
  206. <input id="input2" ref="/root/formData/endTime" inputtype="date" style="left:215px; top:23px; width:100px; height:20px; "/>
  207. <line id="line3" style="x1:200px; y1:32px; x2:215px; y2:32px; "/>
  208. <button id="button1" visibility="hidden" style="left:825px; top:25px; width:75px; height:20px; ">
  209. <caption>FIND</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. find();
  213. ]]>
  214. </script>
  215. </button>
  216. <input id="input6" ref="/root/formData/coilNO1" style="left:410px; top:23px; width:100px; height:20px; "/>
  217. <line id="line5" style="x1:510px; y1:35px; x2:525px; y2:35px; "/>
  218. <input id="input7" ref="/root/formData/coilNO2" style="left:525px; top:24px; width:100px; height:20px; "/>
  219. <caption id="caption6" class="cell" style="left:640px; top:23px; width:80px; height:20px; ">牌号</caption>
  220. <input id="input8" ref="/root/formData/stlgrd" style="left:720px; top:23px; width:105px; height:20px; "/>
  221. <switch id="switch1" style="left:0px; top:50px; width:980px; height:566px; ">
  222. <case id="case1" selected="true">
  223. <datagrid id="datagrid1" nodeset="/root/datagrid1/TotDecResult_Row" caption="生产流水号^钢卷号^板坯号^合同号^订单号^是否有特殊要求^标准号^标准钢号^进程状态^综合等级^判定结果^判定结果^判定结果^判定结果^判定结果^判定结果^判定取消^综合判定人^综合判定时间^轧辊单元号|生产流水号^钢卷号^板坯号^合同号^订单号^是否有特殊要求^标准号^标准钢号^进程状态^综合等级^成分^材质^尺寸^重量^工序^外观^判定取消^综合判定人^综合判定时间^轧辊单元号" colsep="^" colwidth="38, 88, 93, 83, 37, 39, 125, 106, 82, 33, 37, 37, 36, 35, 36, 37, 62, 69, 100, 54" explorerbar="sortshowmove" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="label" style="left:2px; top:0px; width:978px; height:560px; ">
  224. <col editable="false" ref="COIL_NO" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  225. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  226. <col editable="false" ref="SLAB_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  227. <col editable="false" ref="ORD_NO" type="input" visibility="visible" style="text-align:right; background-color:#ffffff; "/>
  228. <col ref="ORD_SEQ" visibility="visible" style="text-align:right; "/>
  229. <col ref="CUST_SPEC_NO" style="text-align:left; cursor:hand; "/>
  230. <col editable="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; background-color:#ffffff; "/>
  231. <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
  232. <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
  233. <choices>
  234. <item>
  235. <label>钢卷包装待机</label>
  236. <value>SBB</value>
  237. </item>
  238. <item>
  239. <label>平整分卷作业待机</label>
  240. <value>SCB</value>
  241. </item>
  242. <item>
  243. <label>钢卷入库待机</label>
  244. <value>SDB</value>
  245. </item>
  246. <item>
  247. <label>综合判定待机</label>
  248. <value>SED</value>
  249. </item>
  250. <item>
  251. <label>发货指示待机</label>
  252. <value>SFA</value>
  253. </item>
  254. <item>
  255. <label>运送待机</label>
  256. <value>SFB</value>
  257. </item>
  258. <item>
  259. <label>运送完成</label>
  260. <value>SFF</value>
  261. </item>
  262. <item>
  263. <label>钢卷充当待机</label>
  264. <value>SRC</value>
  265. </item>
  266. <item>
  267. <label>移送指示待机</label>
  268. <value>SGA</value>
  269. </item>
  270. <item>
  271. <label>移送待机</label>
  272. <value>SGB</value>
  273. </item>
  274. <item>
  275. <label>移送完成</label>
  276. <value>SGF</value>
  277. </item>
  278. </choices>
  279. </col>
  280. <col ref="TOT_DEC_GRD" style="text-align:right; "/>
  281. <col editable="false" ref="INGR_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  282. <col editable="false" ref="MATLQLTY_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  283. <col editable="false" ref="SIZE_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  284. <col editable="false" ref="WGT_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  285. <col editable="false" ref="PROC_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  286. <col editable="false" ref="EXTSHAPE_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  287. <col checkvalue="Y,N" ref="TOT_OVER" type="checkbox"/>
  288. <col ref="TOT_DEC_EMP_ID" style="text-align:left; "/>
  289. <col ref="TOT_DEC_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  290. <col ref="ROLL_MANA_NO" style="text-align:left; "/>
  291. <script type="javascript" ev:event="onentercell">
  292. <![CDATA[
  293. datagrid1.editCell();
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="onclick">
  297. <![CDATA[
  298. var overCol = datagrid1.colRef("TOT_OVER");
  299. if(overCol == datagrid1.col)
  300. {
  301. var curCol = datagrid1.colRef("CUR_PROG_CD");
  302. var id = model.getValue("/root/reqData/REG_ID");
  303. var totStat = datagrid1.valueMatrix(datagrid1.row , curCol);
  304. if(totStat == "SRC" || totStat == "SFA"|| totStat == "SGB")
  305. {
  306. }
  307. else if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPEC_ABBSYM")) == "")
  308. {
  309. window.alert("已降余材,不可取消判定!","警告");
  310. return;
  311. }
  312. else
  313. {
  314. datagrid1.valueMatrix(datagrid1.row , overCol) = "N"
  315. window.alert("非发货待机状态或充当状态或移送待机,不可取消判定!","警告");
  316. return;
  317. }
  318. var selected = datagrid1.valueMatrix(datagrid1.row ,datagrid1.col);
  319. var actCol = datagrid1.colRef("OLD_SAMPL_NO");//钢卷号所在的列
  320. }
  321. if(datagrid1.colRef("CUST_SPEC_NO") == datagrid1.col)
  322. {
  323. model.setValue("/root/fwdData/UIB020236/ORD_NO", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_NO")));
  324. model.setValue("/root/fwdData/UIB020236/ORD_SEQ", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_SEQ")));
  325. model.setValue("/root/fwdData/UIB020236/URL", "./../../B/B01/UIB015020.xrw");
  326. var java = window.parent.javaScript;
  327. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB020236"));
  328. }
  329. ]]>
  330. </script>
  331. <script type="javascript" ev:event="ondblclick">
  332. <![CDATA[
  333. if(datagrid1.row < datagrid1.fixedRows) return;
  334. if(datagrid1.col == datagrid1.colRef("OLD_SAMPL_NO")) return;
  335. //// alert(datagrid1.row +"=----"+ datagrid1.fixedRows);
  336. model.removenode("/root/cao");
  337. model.makeValue("/root/cao/coil" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("COIL_NO")));//流水号
  338. model.makeValue("/root/cao/SLAB" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SLAB_NO")));
  339. model.makeValue("/root/cao/ORDNO", datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("ORD_NO")));
  340. model.makeValue("/root/cao/ORDSEQ",datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("ORD_SEQ")));
  341. window.load("./_020235INGR.xrw", "modal", "modalWin", "left:400; top:40; width:480px; height:600px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/initChargeData" , "/root/RadioResult");
  342. ]]>
  343. </script>
  344. </datagrid>
  345. </case>
  346. <case id="case2">
  347. <datagrid id="datagrid2" nodeset="/root/datagrid2/NotTotDecResult_Row" caption="生产流水号^钢卷号^板坯号^生产日期^交货期^试样进程状态^标准号^标准钢号^钢卷异常信息^超过天数^进程状态^判定结果^判定结果^判定结果^判定结果^判定结果^判定结果|生产流水号^钢卷号^板坯号^生产日期^交货期^试样进程状态^标准号^标准钢号^钢卷异常信息^超过天数^进程状态^成分^材质^尺寸^重量^工序^外观" colsep="^" colwidth="32, 88, 82, 71, 65, 72, 82, 76, 42, 38, 68, 40, 39, 36, 40, 42, 40" explorerbar="sortshowmove" extendlastcol="false" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="label" style="left:0px; top:0px; width:980px; height:560px; ">
  348. <col editable="false" ref="COIL_NO" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  349. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  350. <col editable="false" ref="SLAB_NO" type="input" visibility="visible" style="text-align:left; background-color:#ffffff; "/>
  351. <col ref="MILL_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  352. <col ref="ORD_DEVLMT_DATE" format="yyyy-mm-dd" style="text-align:left; "/>
  353. <col disabled="true" ref="SMP_PROG_CD" type="combo" style="text-align:left; ">
  354. <choices>
  355. <item>
  356. <label>试样采集待机</label>
  357. <value>A</value>
  358. </item>
  359. <item>
  360. <label>试样入库待机</label>
  361. <value>B</value>
  362. </item>
  363. <item>
  364. <label>试样检验待机</label>
  365. <value>C</value>
  366. </item>
  367. <item>
  368. <label>试样判定待机</label>
  369. <value>D</value>
  370. </item>
  371. <item>
  372. <label>试样判定完成</label>
  373. <value>E</value>
  374. </item>
  375. </choices>
  376. </col>
  377. <col editable="false" ref="SPEC_ABBSYM" style="text-align:left; background-color:#ffffff; "/>
  378. <col editable="false" ref="SPEC_STL_GRD" style="text-align:left; background-color:#ffffff; "/>
  379. <col ref="MISSNO_CLF_CD" style="text-align:left; "/>
  380. <col ref="WXXX" format="0.99" style="text-align:right; "/>
  381. <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
  382. <choices>
  383. <item>
  384. <label>钢卷包装待机</label>
  385. <value>SBB</value>
  386. </item>
  387. <item>
  388. <label>平整分卷作业待机</label>
  389. <value>SCB</value>
  390. </item>
  391. <item>
  392. <label>钢卷入库待机</label>
  393. <value>SDB</value>
  394. </item>
  395. <item>
  396. <label>综合判定待机</label>
  397. <value>SED</value>
  398. </item>
  399. <item>
  400. <label>发货指示待机</label>
  401. <value>SFA</value>
  402. </item>
  403. <item>
  404. <label>运送待机</label>
  405. <value>SFB</value>
  406. </item>
  407. <item>
  408. <label>运送完成</label>
  409. <value>SFF</value>
  410. </item>
  411. <item>
  412. <label>钢卷充当待机</label>
  413. <value>SRC</value>
  414. </item>
  415. </choices>
  416. </col>
  417. <col editable="false" ref="INGR_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  418. <col editable="false" ref="MATLQLTY_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  419. <col editable="false" ref="SIZE_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  420. <col editable="false" ref="WGT_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  421. <col editable="false" ref="PROC_DEC_RST" style="text-align:right; background-color:#ffffff; "/>
  422. <col editable="false" ref="EXTSHAPE_DEC_GRD" style="text-align:right; background-color:#ffffff; "/>
  423. <script type="javascript" ev:event="onentercell">
  424. <![CDATA[
  425. datagrid1.editCell();
  426. ]]>
  427. </script>
  428. <script type="javascript" ev:event="onclick">
  429. <![CDATA[
  430. ]]>
  431. </script>
  432. <script type="javascript" ev:event="ondblclick">
  433. <![CDATA[
  434. ]]>
  435. </script>
  436. </datagrid>
  437. </case>
  438. <case id="case3">
  439. <datagrid id="datagrid3" nodeset="/root/datagrid3/HisDcsResult_Row" caption="钢卷号^状态区分^合同号^订单号^原始合同号^原始订单号^材质等级^成分等级^重量等级^外观等级^尺寸等级^综合等级^操作程序^操作人^操作时间" colsep="^" colwidth="81, 63, 87, 45, 84, 44, 50, 50, 50, 50, 50, 50,71,50, 140" explorerbar="sortshowmove" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="40" rowsep="|" tooltip="label" style="left:0px; top:0px; width:975px; height:560px; ">
  440. <col ref="MATERIAL_NO" style="text-align:left; "/>
  441. <col disabled="true" ref="DCS_FLAG" type="combo" style="text-align:left; ">
  442. <choices>
  443. <item>
  444. <label>综合判定</label>
  445. <value>D</value>
  446. </item>
  447. <item>
  448. <label>取消判定</label>
  449. <value>C</value>
  450. </item>
  451. </choices>
  452. </col>
  453. <col ref="ORD_NO" style="text-align:right; "/>
  454. <col ref="ORD_SEQ" style="text-align:right; "/>
  455. <col ref="ORG_ORD_NO" style="text-align:right; "/>
  456. <col ref="ORG_ORD_SEQ" style="text-align:right; "/>
  457. <col ref="MATLQLTY_DEC_GRD" style="text-align:right; "/>
  458. <col ref="INGR_DEC_GRD" style="text-align:right; "/>
  459. <col ref="WGT_DEC_RST" style="text-align:right; "/>
  460. <col ref="EXTSHAPE_DEC_GRD" style="text-align:right; "/>
  461. <col ref="SIZE_DEC_RST" style="text-align:right; "/>
  462. <col ref="TOT_DEC_GRD" style="text-align:right; "/>
  463. <col ref="REG_PGM_ID" style="text-align:left; "/>
  464. <col ref="REG_ID" style="text-align:left; "/>
  465. <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  466. </datagrid>
  467. </case>
  468. <case id="case4"/>
  469. <case id="case5"/>
  470. </switch>
  471. <button id="button2" style="left:0px; top:0px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  472. <caption>综合判定结果</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. model.toggle("case1");
  476. caption1.value = "判定时间";
  477. input1.disabled = false;
  478. input2.disabled = false;
  479. input6.disabled = false;
  480. if(combo1.value=="1")
  481. {
  482. input7.disabled = false;
  483. }
  484. else
  485. {
  486. input7.disabled = true;
  487. }
  488. input8.disabled = false;
  489. combo1.disabled = false;
  490. setFontColor();
  491. ]]>
  492. </script>
  493. </button>
  494. <button id="button3" style="left:110px; top:0px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  495. <caption>未判定钢卷</caption>
  496. <script type="javascript" ev:event="DOMActivate">
  497. <![CDATA[
  498. model.toggle("case2");
  499. input1.disabled = true;
  500. input2.disabled = true;
  501. input6.disabled = true;
  502. input7.disabled = true;
  503. input8.disabled = true;
  504. combo1.disabled = true;
  505. setFontColor();
  506. ]]>
  507. </script>
  508. </button>
  509. <button id="button4" style="left:220px; top:0px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
  510. <caption>判定历史记录</caption>
  511. <script type="javascript" ev:event="DOMActivate">
  512. <![CDATA[
  513. model.toggle("case3");
  514. caption1.value = "操作时间";
  515. input1.disabled = false;
  516. input2.disabled = false;
  517. input6.disabled = false;
  518. input7.disabled = false;
  519. input8.disabled = true;
  520. combo1.value = 1;
  521. combo1.disabled = true;
  522. setFontColor();
  523. ]]>
  524. </script>
  525. </button>
  526. <select1 id="combo1" ref="/root/formData/zapihetong" appearance="minimal" style="left:325px; top:23px; width:85px; height:20px; background-color:#e4ecf5; ">
  527. <choices>
  528. <item>
  529. <label>轧批号</label>
  530. <value>1</value>
  531. </item>
  532. <item>
  533. <label>合同号</label>
  534. <value>2</value>
  535. </item>
  536. </choices>
  537. <script type="javascript" ev:event="xforms-value-changed">
  538. <![CDATA[
  539. if(combo1.value =="2")
  540. {
  541. input7.disabled = true;
  542. }
  543. else
  544. {
  545. input7.disabled = false;
  546. }
  547. ]]>
  548. </script>
  549. </select1>
  550. </xhtml:body>
  551. </xhtml:html>