7b21c758d93e55fe7456de55bc2d7e6b6e324a93.svn-base 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  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. <initData>
  12. </initData>
  13. <datagrid1/>
  14. <formData>
  15. <no/>
  16. <seq/>
  17. <sd/>
  18. <changeFlag/>
  19. <PROG/>
  20. </formData>
  21. <info>
  22. <DesignRKeyResult_Row>
  23. </DesignRKeyResult_Row>
  24. </info>
  25. <query/>
  26. <findData>
  27. <no/>
  28. <seq/>
  29. <fac/>
  30. <ord/>
  31. </findData>
  32. <comboData>
  33. <ordNo/>
  34. <ordSeq/>
  35. <ordProcess/>
  36. </comboData>
  37. <resData/>
  38. <searchInfo/>
  39. <Cust>
  40. <CustInfoResult_Row/>
  41. </Cust>
  42. <grid>
  43. <datagrid1/>
  44. <datagrid2/>
  45. <datagrid3/>
  46. <datagrid4/>
  47. <datagrid5/>
  48. <datagrid6/>
  49. <datagrid7/>
  50. <datagrid8/>
  51. <datagrid9/>
  52. <datagrid10/>
  53. <datagrid11/>
  54. </grid>
  55. </root>
  56. </instance>
  57. </model>
  58. <script type="javascript" src="../../js/boaCommon.js"/>
  59. <script type="javascript" src="../../js/b01.js"/>
  60. <script type="javascript" src="../../js/mesCommon.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. var flag;
  64. var initFlag = 0;
  65. var viewFlag = "single";
  66. var ord;//区分订单为品质设计待机或者其他状态
  67. function InitParams(node)
  68. {
  69. if (typeof node != "object" || typeof node != "undefined") return;
  70. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  71. }
  72. function Init(node)
  73. {
  74. InitParams(node);
  75. if (window.parent != null) {
  76. var java = window.parent.javaScript;
  77. var node = java.getInitDataNode();
  78. if (node != null) {
  79. copyNode(node, "/root/searchInfo");
  80. model.setValue("/root/formData/no" , model.getValue("/root/searchInfo/ORD_NO"));
  81. model.setValue("/root/formData/seq" , model.getValue("/root/searchInfo/ORD_SEQ"));
  82. find();
  83. }
  84. }
  85. }
  86. function find()
  87. {
  88. model.removenode("/root/reqData");
  89. model.makeNode("/root/reqData");
  90. commSendReq("/root/formData");
  91. ord = model.getValue("/root/formData/PROG");
  92. if(ord=="A"){
  93. commSubmit("UIB015020-service", "findA", "glueAction.do");
  94. }
  95. else{
  96. commSubmit("UIB015020-service", "findB", "glueAction.do");
  97. }
  98. model.copyNode("/root/info","/root/resData/DesignRKeyResult_VO");
  99. model.copyNode("/root/query","/root/resData/SelectResult_VO");
  100. model.copyNode("/root/Cust" , "/root/resData/CustInfoResult_VO");
  101. model.makeValue("/root/findData/ord",ord);
  102. model.removenode("/root/reqData");
  103. model.makeNode("/root/reqData");
  104. commSendReq("/root/formData");
  105. if(ord=="A"){
  106. commSubmit("UIB015020-service", "findD", "glueAction.do");
  107. }
  108. else{
  109. commSubmit("UIB015020-service", "findO", "glueAction.do");
  110. }
  111. model.copyNode("/root/grid/datagrid2" , "/root/resData/SingleResult_VO");
  112. model.removenode("/root/resData");
  113. model.refresh();
  114. setButtonColor();//设置button颜色,区分是否有特殊要求
  115. model.toggle("case2");
  116. }
  117. //设置颜色
  118. function setButtonColor()
  119. {
  120. button1.attribute("color") ="#000000";
  121. button2.attribute("color") ="#000000";
  122. button3.attribute("color") ="#000000";
  123. button4.attribute("color") ="#000000";
  124. button5.attribute("color") ="#000000";
  125. var ingr = model.getValue("/root/Cust/CustInfoResult_Row/INGR");
  126. var qlty = model.getValue("/root/Cust/CustInfoResult_Row/QLTY");
  127. var del = model.getValue("/root/Cust/CustInfoResult_Row/DEL");
  128. //交付条件
  129. if( del == "1")
  130. {
  131. button1.attribute("color") = "#0000ff";
  132. }
  133. else if(del == "X")
  134. {
  135. button1.attribute("color") = "#ff0000";
  136. }
  137. //成分
  138. if( ingr == "1")
  139. {
  140. button2.attribute("color") = "#0000ff";
  141. button5.attribute("color") = "#0000ff";
  142. }
  143. else if(ingr == "X")
  144. {
  145. button2.attribute("color") = "#ff0000";
  146. button5.attribute("color") = "#ff0000";
  147. }
  148. //材质特殊要求
  149. if( qlty == "1")
  150. {
  151. button4.attribute("color") = "#0000ff";
  152. }
  153. else if(qlty == "X")
  154. {
  155. button4.attribute("color") = "#ff0000";
  156. }
  157. }
  158. ]]>
  159. </script>
  160. </xhtml:head>
  161. <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;">
  162. <caption id="caption2" class="cell" style="left:225px; top:5px; width:90px; height:20px; vertical-align:middle; border-style:solid; ">订单序号</caption>
  163. <caption id="caption4" class="cell" style="left:0px; top:5px; width:85px; height:20px; vertical-align:middle; border-style:solid; ">订单进程</caption>
  164. <line id="line1" style="x1:415px; y1:15px; x2:430px; y2:15px; "/>
  165. <button id="button1" class="sw" group="select" groupalign="user" style="left:0px; top:190px; width:100px; height:20px; ">
  166. <caption>交付条件</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. model.toggle("case1");
  170. model.removenode("/root/reqData");
  171. model.makeNode("/root/reqData");
  172. commSendReq("/root/formData");
  173. if(ord=="A"){
  174. commSubmit("UIB015010-service", "findA", "glueAction.do");
  175. }
  176. else{
  177. commSubmit("UIB015010-service", "findB", "glueAction.do");
  178. }
  179. model.copyNode("/root/grid/datagrid1" , "/root/resData/ConditionResult_VO");
  180. model.refresh();
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="button2" class="sw" group="select" groupalign="user" selected="true" style="left:100px; top:190px; width:100px; height:20px; ">
  185. <caption>单一元素</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. model.toggle("case2");
  189. model.makeValue("/root/findData/ord",ord);
  190. model.removenode("/root/reqData");
  191. model.makeNode("/root/reqData");
  192. commSendReq("/root/formData");
  193. if(ord=="A"){
  194. commSubmit("UIB015020-service", "findD", "glueAction.do");
  195. }
  196. else{
  197. commSubmit("UIB015020-service", "findO", "glueAction.do");
  198. }
  199. model.copyNode("/root/grid/datagrid2" , "/root/resData/SingleResult_VO");
  200. model.removenode("/root/resData");
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </button>
  205. <button id="button3" class="sw" group="select" groupalign="user" style="left:400px; top:190px; width:100px; height:20px; ">
  206. <caption>制造标准</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. model.toggle("case5");
  210. model.removenode("/root/reqData");
  211. model.makeNode("/root/reqData");
  212. commSendReq("/root/formData");
  213. if(ord=="A"){
  214. commSubmit("UIB015050-service", "findA", "glueAction.do");
  215. }
  216. else{
  217. commSubmit("UIB015050-service", "findB", "glueAction.do");
  218. }
  219. model.copyNode("/root/grid/datagrid6" , "/root/resData/SMSResult_VO");
  220. model.copyNode("/root/grid/datagrid7" , "/root/resData/MILLResult_VO");
  221. model.copyNode("/root/grid/datagrid8" , "/root/resData/MILLINFOResult_VO");
  222. model.copyNode("/root/grid/datagrid9" , "/root/resData/ColdResult_VO");
  223. model.refresh();
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="button4" class="sw" group="select" groupalign="user" style="left:300px; top:190px; width:100px; height:20px; ">
  228. <caption>材质检查</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. model.toggle("case4");
  232. model.removenode("/root/reqData");
  233. model.makeNode("/root/reqData");
  234. commSendReq("/root/formData");
  235. if(ord=="A"){
  236. commSubmit("UIB015040-service", "findA", "glueAction.do");
  237. }
  238. else{
  239. commSubmit("UIB015040-service", "findB", "glueAction.do");
  240. }
  241. model.copyNode("/root/grid/datagrid4" , "/root/resData/QltyResult_VO");
  242. model.copyNode("/root/grid/datagrid5" , "/root/resData/SMPResult_VO");
  243. model.refresh();
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button11" class="sw" visibility="hidden" group="select" groupalign="user" style="left:500px; top:190px; width:100px; height:20px; ">
  248. <caption>生产规范</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. model.toggle("case6");
  252. model.removenode("/root/reqData");
  253. model.makeNode("/root/reqData");
  254. commSendReq("/root/formData");
  255. if(ord=="A"){
  256. commSubmit("UIB015060-service", "findA", "glueAction.do");
  257. }
  258. else{
  259. commSubmit("UIB015060-service", "findB", "glueAction.do");
  260. }
  261. model.copyNode("/root/grid/datagrid11" , "/root/resData/ConditionResult_VO");
  262. model.refresh();
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="button5" class="sw" group="select" groupalign="user" style="left:200px; top:190px; width:100px; height:20px; ">
  267. <caption>复合元素</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. model.toggle("case3");
  271. model.removenode("/root/reqData");
  272. model.makeNode("/root/reqData");
  273. commSendReq("/root/formData");
  274. if(ord=="A"){
  275. commSubmit("UIB015030-service", "findA", "glueAction.do");
  276. }
  277. else{
  278. commSubmit("UIB015030-service", "findB", "glueAction.do");
  279. }
  280. model.copyNode("/root/grid/datagrid3" , "/root/resData/Complex_VO");
  281. model.removenode("/root/resData");
  282. model.refresh();
  283. ]]>
  284. </script>
  285. </button>
  286. <select1 id="combo2" ref="/root/formData/PROG" appearance="minimal" style="left:85px; top:5px; width:120px; height:20px; border-style:solid; ">
  287. <choices>
  288. <item>
  289. <label/>
  290. <value/>
  291. </item>
  292. <item>
  293. <label>品质设计待机</label>
  294. <value>A</value>
  295. </item>
  296. <item>
  297. <label>订单关闭</label>
  298. <value>B</value>
  299. </item>
  300. <item>
  301. <label>品质再设计待机</label>
  302. <value>C</value>
  303. </item>
  304. <item>
  305. <label>投入确定</label>
  306. <value>D</value>
  307. </item>
  308. <item>
  309. <label>生产进行</label>
  310. <value>E</value>
  311. </item>
  312. <item>
  313. <label>生产完成</label>
  314. <value>F</value>
  315. </item>
  316. <item>
  317. <label>发货完成</label>
  318. <value>G</value>
  319. </item>
  320. <item>
  321. <label>生产保留</label>
  322. <value>H</value>
  323. </item>
  324. <item>
  325. <label>订单完成</label>
  326. <value>X</value>
  327. </item>
  328. <item>
  329. <label>订单取消</label>
  330. <value>N</value>
  331. </item>
  332. </choices>
  333. <script type="javascript" ev:event="xforms-select">
  334. <![CDATA[
  335. model.removenode("/root/reqData");
  336. model.makeNode("/root/reqData");
  337. commSendReq("/root/formData");
  338. if(combo2.value == "A")
  339. {
  340. commSubmit("UIB015020-service", "findDSNORD", "glueAction.do");
  341. }
  342. else
  343. {
  344. commSubmit("UIB015020-service", "findord", "glueAction.do");
  345. }
  346. model.copyNode("/root/grid/datagrid10","/root/resData/ORDNOResult_VO");
  347. model.resetInstanceNode("/root/comboData/ordSeq");
  348. model.makeValue("/root/formData/seq","");
  349. model.makeValue("/root/formData/no","");
  350. model.refresh();
  351. ]]>
  352. </script>
  353. </select1>
  354. <line id="line6" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  355. <line id="line7" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  356. <caption id="caption5" class="cell" style="left:0px; top:35px; width:980px; height:155px; vertical-align:middle; border-style:solid; "/>
  357. <caption id="caption12" class="cell" style="left:5px; top:65px; width:80px; height:20px; vertical-align:middle; ">订单交货期</caption>
  358. <caption id="caption14" class="cell" style="left:390px; top:65px; width:85px; height:20px; vertical-align:middle; ">热卷状态/牌号</caption>
  359. <caption id="caption6" class="cell" style="left:390px; top:140px; width:85px; height:20px; vertical-align:middle; ">热卷标准号</caption>
  360. <caption id="caption37" class="cell" style="left:5px; top:115px; width:80px; height:20px; vertical-align:middle; ">生产规范</caption>
  361. <caption id="caption38" class="cell" style="left:5px; top:90px; width:80px; height:20px; vertical-align:middle; ">客户参数号</caption>
  362. <caption id="caption7" class="cell" style="left:390px; top:40px; width:85px; height:20px; vertical-align:middle; ">热卷厚度/宽度</caption>
  363. <caption id="caption39" class="cell" style="left:5px; top:40px; width:80px; height:20px; vertical-align:middle; ">订单进程</caption>
  364. <caption id="caption8" class="cell" style="left:390px; top:90px; width:85px; height:20px; vertical-align:middle; ">热卷产品名称</caption>
  365. <caption id="caption9" class="cell" style="left:390px; top:115px; width:85px; height:20px; vertical-align:middle; ">热卷标准牌号</caption>
  366. <input id="input3" ref="root/info/DesignRKeyResult_Row/ORD_PROG_CD" editable="false" style="left:85px; top:40px; width:95px; height:20px; "/>
  367. <input id="input4" ref="root/info/DesignRKeyResult_Row/PRDNM_CD" editable="false" style="left:475px; top:65px; width:100px; height:20px; "/>
  368. <input id="input5" ref="root/info/DesignRKeyResult_Row/ORD_DEVLMT_DATE" editable="false" format="yyyy-mm-dd" style="left:85px; top:65px; width:95px; height:20px; "/>
  369. <input id="input6" ref="root/info/DesignRKeyResult_Row/CUST_SPEC_NO" editable="false" style="left:85px; top:90px; width:70px; height:20px; "/>
  370. <input id="input7" ref="root/info/DesignRKeyResult_Row/SPEC_STL_GRD" editable="false" style="left:475px; top:115px; width:205px; height:20px; "/>
  371. <input id="input8" ref="root/info/DesignRKeyResult_Row/SPEC_ABBSYM" editable="false" style="left:475px; top:140px; width:205px; height:20px; "/>
  372. <input id="input9" ref="root/info/DesignRKeyResult_Row/ORD_USE_TP" editable="false" style="left:475px; top:90px; width:205px; height:20px; "/>
  373. <input id="input10" ref="root/info/DesignRKeyResult_Row/ORD_THK" editable="false" style="left:475px; top:40px; width:99px; height:20px; "/>
  374. <input id="input11" ref="root/info/DesignRKeyResult_Row/ORD_WTH" editable="false" style="left:585px; top:40px; width:96px; height:20px; "/>
  375. <input id="input16" ref="root/info/DesignRKeyResult_Row/SMS_STD_NO" editable="false" style="left:85px; top:115px; width:95px; height:20px; "/>
  376. <input id="input17" ref="root/info/DesignRKeyResult_Row/MILL_STD_NO" editable="false" style="left:195px; top:115px; width:85px; height:20px; "/>
  377. <input id="input18" ref="root/info/DesignRKeyResult_Row/FAC_STL_GRD" editable="false" style="left:585px; top:65px; width:95px; height:20px; "/>
  378. <line id="line2" style="x1:575px; y1:50px; x2:586px; y2:50px; "/>
  379. <line id="line5" style="x1:185px; y1:125px; x2:195px; y2:125px; "/>
  380. <switch id="switch1" style="left:0px; top:210px; width:980px; height:405px; ">
  381. <case id="case1">
  382. <datagrid id="datagrid1" nodeset="/root/grid/datagrid1/ConditionResult_Row" caption="交付条件公差^客户(热轧)^客户(热轧)^客户(热轧)^标准(热轧)^标准(热轧)^标准(热轧)^客户(冷轧)^客户(冷轧)^客户(冷轧)^标准(冷轧)^标准(冷轧)^标准(冷轧)^Type 说明|交付条件公差^最小^最大^单位^最小^最大^单位^最小 ^最大^单位^最小 ^最大^单位^Type 说明" colsep="^" colwidth="142, 74, 70, 65, 70, 68, 66, 73, 71, 63, 69, 68, 100" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:976px; height:400px; border-style:solid; ">
  383. <col editable="false" ref="LABEL" type="input" style="text-align:left; background-color:#ffffff; "/>
  384. <col editable="false" ref="MIN1" type="input" style="text-align:right; background-color:#ffffff; "/>
  385. <col editable="false" ref="MAX1" type="input" style="text-align:right; background-color:#ffffff; "/>
  386. <col ref="UNIT1" visibility="hidden" style="text-align:left; "/>
  387. <col editable="false" ref="MIN2" type="input" style="text-align:right; background-color:#ffffff; "/>
  388. <col editable="false" ref="MAX2" type="input" style="text-align:right; background-color:#ffffff; "/>
  389. <col editable="false" ref="UNIT2" type="input" style="text-align:left; background-color:#ffffff; "/>
  390. <col ref="MIN4"/>
  391. <col ref="MAX4"/>
  392. <col ref="UNIT4"/>
  393. <col ref="MIN3"/>
  394. <col ref="MAX3"/>
  395. <col ref="UNIT3"/>
  396. <script type="javascript" ev:event="onclick">
  397. <![CDATA[
  398. //alert(datagrid1.row);
  399. if(datagrid1.row == "4"||datagrid1.row == "5"||datagrid1.row == "6")
  400. {
  401. //alert(1);
  402. datagrid1.colAttribute(1,"editable")= "false";
  403. }
  404. if(datagrid1.row == "2"||datagrid1.row == "3")
  405. {
  406. //alert(1);
  407. datagrid1.colAttribute(1,"editable")= "true";
  408. }
  409. ]]>
  410. </script>
  411. </datagrid>
  412. </case>
  413. <case id="case2">
  414. <datagrid id="datagrid2" nodeset="/root/grid/datagrid2/SingleResult_Row" caption="元素名^内控^内控^成品放行^成品放行^成品放行^炼钢放行^炼钢放行^炼钢放行^冷轧客户要求^冷轧客户要求^冷轧成品放行^冷轧成品放行^冷轧成品放行^上限&#xA;|元素名^最小^最大^最小^最大^类型^目标^最小^最大^最小^最大^最小^最大^类型^符号" colsep="^" colwidth="123, 67, 52, 70, 64, 53, 59, 53, 76, 69, 61, 64, 76, 100" defaultrows="40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:5px; width:977px; height:395px; border-style:solid; ">
  415. <col editable="false" ref="CHEM_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
  416. <col editable="false" ref="MIN1" type="input" style="text-align:right; background-color:#ffffff; "/>
  417. <col editable="false" ref="MAX1" type="input" style="text-align:right; background-color:#ffffff; "/>
  418. <col editable="false" ref="MIN2" type="input" style="text-align:right; background-color:#ffffff; "/>
  419. <col editable="false" ref="MAX2" type="input" style="text-align:right; background-color:#ffffff; "/>
  420. <col ref="CHEM_DEC_CD2"/>
  421. <col editable="false" ref="AIM3" type="input" style="text-align:right; background-color:#ffffff; "/>
  422. <col editable="false" ref="MIN3" type="input" style="text-align:right; background-color:#ffffff; "/>
  423. <col editable="false" ref="MAX3" type="input" style="text-align:right; background-color:#ffffff; "/>
  424. <col ref="MIN5"/>
  425. <col ref="MAX5"/>
  426. <col ref="MIN4"/>
  427. <col ref="MAX4"/>
  428. <col ref="CHEM_DEC_CD4"/>
  429. <script type="javascript" ev:event="onstartedit">
  430. <![CDATA[
  431. if(model.getValue("/root/findData/ord") != "A"){
  432. event.preventDefault();
  433. }
  434. ]]>
  435. </script>
  436. </datagrid>
  437. </case>
  438. <case id="case3">
  439. <datagrid id="datagrid3" nodeset="/root/grid/datagrid3/Complex_Row" caption="复合元素^复合元素计算式^内控^内控^成品放行^成品放行^成品放行^炼钢放行^炼钢放行^炼钢放行^冷轧特殊要求^冷轧特殊要求^冷轧成品放行^冷轧成品放行^冷轧成品放行|复合元素^复合元素计算式^最小^最大^最小^最大^类型^目标^最小^最大^最小^最大^最小^最大^类型" colsep="^" colwidth="72, 160, 52, 59, 55, 51, 65, 56, 49, 57, 70, 60, 62, 58, 58" defaultrows="40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:0px; width:977px; height:400px; border-style:solid; ">
  440. <col editable="false" ref="COMP_DETAIL" type="input" style="text-align:left; background-color:#ffffff; "/>
  441. <col editable="false" ref="COMP_CAL" type="input" style="text-align:left; background-color:#ffffff; "/>
  442. <col editable="false" ref="MIN1" type="input" style="text-align:right; background-color:#ffffff; "/>
  443. <col editable="false" ref="MAX1" type="input" style="text-align:right; background-color:#ffffff; "/>
  444. <col editable="false" ref="MIN2" type="input" style="text-align:right; background-color:#ffffff; "/>
  445. <col editable="false" ref="MAX2" type="input" style="text-align:right; background-color:#ffffff; "/>
  446. <col ref="CHEM_DEC_CD2"/>
  447. <col editable="false" ref="AIM3" type="input" style="text-align:right; background-color:#ffffff; "/>
  448. <col editable="false" ref="MIN3" type="input" style="text-align:right; background-color:#ffffff; "/>
  449. <col editable="false" ref="MAX3" type="input" style="text-align:right; background-color:#ffffff; "/>
  450. <col ref="MIN5"/>
  451. <col ref="MAX5"/>
  452. <col ref="MIN4"/>
  453. <col ref="MAX4"/>
  454. <col ref="CHEM_DEC_CD4"/>
  455. </datagrid>
  456. </case>
  457. <case id="case4">
  458. <datagrid id="datagrid4" nodeset="/root/grid/datagrid4/QltyResult_Row" caption="材质代码^材质项目^热轧客户要求^热轧客户要求^热轧客户要求^热轧标准^热轧标准^热轧标准^冷轧客户要求^冷轧客户要求^冷轧客户要求^冷轧标准^冷轧标准^冷轧标准|材质代码^材质项目^最小^最大^检验类型^最小^最大^检验类型^最小^最大^检验类型^最小^最大^检验类型" colsep="^" colwidth="63, 185, 63, 58, 55, 60, 54, 59, 58, 53, 56, 69, 59, 61" defaultrows="30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:980px; height:285px; border-style:solid; ">
  459. <col editable="false" ref="QLTY_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
  460. <col editable="false" ref="QLTY_CD_CFNM" type="input" style="text-align:left; background-color:#ffffff; "/>
  461. <col editable="false" ref="MIN1" type="input" style="text-align:right; background-color:#ffffff; "/>
  462. <col editable="false" ref="MAX1" type="input" style="text-align:right; background-color:#ffffff; "/>
  463. <col ref="QLTY_DEC_CD1"/>
  464. <col editable="false" ref="MIN2" type="input" style="text-align:right; background-color:#ffffff; "/>
  465. <col editable="false" ref="MAX2" type="input" style="text-align:right; background-color:#ffffff; "/>
  466. <col ref="QLTY_DEC_CD2"/>
  467. <col ref="MIN5"/>
  468. <col ref="MAX5"/>
  469. <col ref="QLTY_DEC_CD5"/>
  470. <col ref="MIN4"/>
  471. <col ref="MAX4"/>
  472. <col ref="QLTY_DEC_CD4"/>
  473. <script type="javascript" ev:event="onclick">
  474. <![CDATA[
  475. var QLTY_MIN_TP = datagrid1.valueMatrix(datagrid1.row,10);
  476. var QLTY_MAX_TP = datagrid1.valueMatrix(datagrid1.row,11);
  477. if(QLTY_MIN_TP == "Y")
  478. {
  479. datagrid1.colAttribute(1,"editable")= "true";
  480. }
  481. else
  482. {
  483. datagrid1.colAttribute(1,"editable")= "false";
  484. }
  485. if(QLTY_MAX_TP == "Y")
  486. {
  487. datagrid1.colAttribute(2,"editable")= "true";
  488. }
  489. else
  490. {
  491. datagrid1.colAttribute(2,"editable")= "false";
  492. }
  493. ]]>
  494. </script>
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. if(datagrid1.col == 4)
  498. {
  499. var QLTY_TYPE_TP = datagrid1.valueMatrix(datagrid1.row,12);
  500. if(QLTY_TYPE_TP == "Y"){
  501. }
  502. else{
  503. datagrid1.valueMatrix(datagrid1.row,4) = "";
  504. alert("该材质项目不允许输入材质类型");
  505. }
  506. }
  507. ]]>
  508. </script>
  509. </datagrid>
  510. <caption id="caption18" class="cell" visibility="visible" style="left:5px; top:295px; width:146px; height:25px; vertical-align:middle; border-style:solid; ">采样方法</caption>
  511. <datagrid id="datagrid5" nodeset="/root/grid/datagrid5/SMPResult_Row" caption="热轧取样^热轧取样^热轧取样^冷轧取样^冷轧取样^冷轧取样|取样LOT^长度方向位置^宽度方向位置^取样LOT^长度方向位置^宽度方向位置" colsep="^" colwidth="150, 150, 150, 150, 150, 150" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:320px; width:970px; height:65px; ">
  512. <col ref="SMP_LOT_CD"/>
  513. <col ref="SMP_LEN_LOC"/>
  514. <col ref="SMP_WTH_LOC"/>
  515. <col ref="SMP_LOT_CD1"/>
  516. <col ref="SMP_LEN_LOC1"/>
  517. <col ref="SMP_WTH_LOC1"/>
  518. </datagrid>
  519. </case>
  520. <case id="case5" selected="true">
  521. <datagrid id="datagrid7" nodeset="/root/grid/datagrid7/MILLResult_Row" caption="区分^探伤^平整分卷^涂油^交货状态^特别管理 MSG 1^特别管理 MSG 2" colsep="^" colwidth="125, 135, 135, 135, 135, 135, 134" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:980px; height:44px; ">
  522. <col/>
  523. <col editable="false" ref="UST_DEF" style="text-align:left; background-color:#ffffff; "/>
  524. <col editable="false" ref="SPM_DEF" style="text-align:left; background-color:#ffffff; "/>
  525. <col editable="false" ref="OIL_DEF" style="text-align:left; background-color:#ffffff; "/>
  526. <col editable="false" ref="MET_DEF" style="text-align:left; background-color:#ffffff; "/>
  527. <col editable="false" ref="SPECIALMGMT_MSG1" style="text-align:left; background-color:#ffffff; "/>
  528. <col editable="false" ref="SPECIALMGMT_MSG2" style="text-align:left; background-color:#ffffff; "/>
  529. </datagrid>
  530. <datagrid id="datagrid8" nodeset="/root/grid/datagrid8/MILLINFOResult_Row" caption="区分^厚度^厚度^厚度^厚度^宽度^宽度^宽度|区分^厚度目标^热轧 厚度目标^热轧 厚度下限^热轧 厚度上限^宽度目标^宽度下限^宽度上限" colsep="^" colwidth="125, 100, 101, 109, 109, 150, 132, 121" defaultrows="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:160px; width:980px; height:64px; ">
  531. <col/>
  532. <col editable="false" ref="THK_AIM" style="text-align:left; background-color:#ffffff; "/>
  533. <col editable="false" ref="HOT_THK_AIM" style="text-align:left; background-color:#ffffff; "/>
  534. <col editable="false" ref="HOT_THK_MIN" style="text-align:left; background-color:#ffffff; "/>
  535. <col editable="false" ref="HOT_THK_MAX" style="text-align:left; background-color:#ffffff; "/>
  536. <col editable="false" ref="WTH_AIM" style="text-align:left; background-color:#ffffff; "/>
  537. <col editable="false" ref="WTH_MIN" style="text-align:left; background-color:#ffffff; "/>
  538. <col editable="false" ref="WTH_MAX" style="text-align:left; background-color:#ffffff; "/>
  539. </datagrid>
  540. <caption id="caption15" class="cell" visibility="visible" style="left:0px; top:102px; width:127px; height:21px; vertical-align:middle; ">轧钢制造标准</caption>
  541. <caption id="caption16" class="cell" visibility="visible" style="left:0px; top:201px; width:127px; height:22px; vertical-align:middle; ">热轧制造标准</caption>
  542. <caption id="caption17" class="cell" visibility="visible" style="left:0px; top:21px; width:125px; height:21px; vertical-align:middle; ">炼钢制造标准</caption>
  543. <datagrid id="datagrid6" nodeset="/root/grid/datagrid6/SMSResult_Row" scroll="autovscroll" caption="区分^CAS指定^LF指定^RH指定^板坯修整指定^板坯修整方法^是否冷装^保温指定" colsep="^" colwidth="125, 100, 111, 115, 99, 130, 150, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:980px; height:44px; ">
  544. <col/>
  545. <col editable="false" ref="CAS_DEF" style="text-align:left; background-color:#ffffff; "/>
  546. <col editable="false" ref="LF_DEF" style="text-align:left; background-color:#ffffff; "/>
  547. <col editable="false" ref="RH_DEF" style="text-align:left; background-color:#ffffff; "/>
  548. <col editable="false" ref="SF_DEF" style="text-align:left; background-color:#ffffff; "/>
  549. <col editable="false" ref="SF_METHOD" style="text-align:left; background-color:#ffffff; "/>
  550. <col disabled="true" editable="false" ref="SMS_HCR_DEF" type="combo" style="text-align:left; background-color:#ffffff; ">
  551. <choices>
  552. <item>
  553. <label/>
  554. <value/>
  555. </item>
  556. <item>
  557. <label>Y</label>
  558. <value>C</value>
  559. </item>
  560. </choices>
  561. </col>
  562. <col editable="false" ref="SMS_7_DEF" style="text-align:left; background-color:#ffffff; "/>
  563. </datagrid>
  564. <caption id="caption19" class="cell" visibility="visible" style="left:0px; top:22px; width:126px; height:21px; vertical-align:middle; ">炼钢制造标准</caption>
  565. <datagrid id="datagrid9" nodeset="/root/grid/datagrid9/ColdResult_Row" caption="区分^酸洗^酸轧^退火^镀锌^涂层^重卷^平整^工序路径" colsep="^" colwidth="125, 102, 86, 86, 87, 89, 91, 103, 100" mergecellsfixedrows="bycolrec" rowheight="30" rowsep="|" style="left:0px; top:245px; width:980px; height:55px; ">
  566. <col/>
  567. <col ref="ONLY_WASH"/>
  568. <col ref="PICK_TP"/>
  569. <col ref="ANNE_TP"/>
  570. <col ref="GALV_TP"/>
  571. <col ref="COAT_TP"/>
  572. <col ref="REWG_TP"/>
  573. <col ref="C_SPM_TP"/>
  574. <col ref="ACID_PROD_PATH"/>
  575. </datagrid>
  576. <caption id="caption1" class="cell" visibility="visible" style="left:0px; top:275px; width:127px; height:22px; vertical-align:middle; ">冷轧制造标准</caption>
  577. </case>
  578. <case id="case6">
  579. <datagrid id="datagrid11" nodeset="/root/grid/datagrid11/ConditionResult_Row" caption="生产规范类型^生产规范代码^中文名称^判定符号^值^备注" colsep="^" colwidth="100, 100, 120, 80, 90, 120," defaultrows="30" mergecellsfixedrows="bycolrec" style="left:0px; top:0px; width:976px; height:400px; border-style:solid; ">
  580. <col editable="false" ref="PROD_TYPE" type="input" style="text-align:left; background-color:#ffffff; "/>
  581. <col editable="false" ref="PROD_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
  582. <col editable="false" ref="PROD_CD_CFNM" type="input" style="text-align:left; background-color:#ffffff; "/>
  583. <col editable="false" ref="DCS_SYM" type="input" style="text-align:left; background-color:#ffffff; "/>
  584. <col editable="false" ref="PROD_VAL" type="input" style="text-align:right; background-color:#ffffff; "/>
  585. <col editable="false" ref="MEMO" type="input" style="text-align:left; background-color:#ffffff; "/>
  586. <col editable="false" ref="PROD_VAL_EXP1" visibility="hidden" style="text-align:right; background-color:#ffffff; "/>
  587. <col editable="false" ref="PROD_VAL_EXP2" visibility="hidden" style="text-align:right; background-color:#ffffff; "/>
  588. <col editable="false" ref="PROD_VAL_EXP3" visibility="hidden" style="text-align:right; background-color:#ffffff; "/>
  589. <script type="javascript" ev:event="onclick">
  590. <![CDATA[
  591. //alert(datagrid1.row);
  592. /*
  593. if(datagrid11.row == "4"||datagrid11.row == "5"||datagrid11.row == "6")
  594. {
  595. //alert(1);
  596. datagrid11.colAttribute(1,"editable")= "false";
  597. }
  598. if(datagrid11.row == "2"||datagrid11.row == "3")
  599. {
  600. //alert(1);
  601. datagrid11.colAttribute(1,"editable")= "true";
  602. }
  603. */
  604. ]]>
  605. </script>
  606. </datagrid>
  607. </case>
  608. </switch>
  609. <caption id="caption20" class="cell" style="left:5px; top:140px; width:80px; height:20px; vertical-align:middle; ">客户名称</caption>
  610. <input id="input19" ref="root/info/DesignRKeyResult_Row/CUST_NM" editable="false" style="left:85px; top:140px; width:290px; height:20px; "/>
  611. <caption id="caption21" class="cell" style="left:205px; top:40px; width:80px; height:20px; vertical-align:middle; ">生产线</caption>
  612. <input id="input20" ref="root/info/DesignRKeyResult_Row/PROD_LINE" editable="false" style="left:285px; top:40px; width:90px; height:20px; "/>
  613. <caption id="caption22" class="cell" style="left:205px; top:65px; width:80px; height:20px; vertical-align:middle; ">设计日期</caption>
  614. <input id="input21" ref="root/info/DesignRKeyResult_Row/DSN_CMT_DATE" editable="false" format="yyyy-mm-dd" style="left:285px; top:65px; width:90px; height:20px; "/>
  615. <input id="input1" ref="root/info/DesignRKeyResult_Row/COLD_STD_NO" editable="false" style="left:290px; top:115px; width:85px; height:20px; "/>
  616. <input id="input2" ref="root/info/DesignRKeyResult_Row/CUST_SPEC_NO_INGR" editable="false" style="left:160px; top:90px; width:65px; height:20px; "/>
  617. <input id="input22" ref="root/info/DesignRKeyResult_Row/CUST_SPEC_NO_QLTY" editable="false" style="left:230px; top:90px; width:70px; height:20px; "/>
  618. <input id="input23" ref="root/info/DesignRKeyResult_Row/CUST_SPEC_NO_DEL" editable="false" style="left:305px; top:90px; width:70px; height:20px; "/>
  619. <line id="line9" style="x1:575px; y1:75px; x2:586px; y2:75px; "/>
  620. <caption id="caption3" class="cell" style="left:700px; top:40px; width:85px; height:20px; vertical-align:middle; ">冷卷厚度/宽度</caption>
  621. <input id="input12" ref="root/info/DesignRKeyResult_Row/C_ORD_THK" editable="false" style="left:785px; top:40px; width:85px; height:20px; "/>
  622. <input id="input13" ref="root/info/DesignRKeyResult_Row/C_ORD_WTH" editable="false" style="left:880px; top:40px; width:90px; height:20px; "/>
  623. <line id="line3" style="x1:870px; y1:50px; x2:881px; y2:50px; "/>
  624. <caption id="caption10" class="cell" style="left:700px; top:65px; width:85px; height:20px; vertical-align:middle; ">冷卷交货状态</caption>
  625. <caption id="caption11" class="cell" style="left:700px; top:90px; width:85px; height:20px; vertical-align:middle; ">冷卷产品名称</caption>
  626. <caption id="caption13" class="cell" style="left:700px; top:115px; width:85px; height:20px; vertical-align:middle; ">冷卷标准牌号</caption>
  627. <caption id="caption23" class="cell" style="left:700px; top:140px; width:85px; height:20px; vertical-align:middle; ">冷卷标准号</caption>
  628. <line id="line4" style="x1:280px; y1:125px; x2:290px; y2:125px; "/>
  629. <input id="input14" ref="root/info/DesignRKeyResult_Row/C_PRDNM_CD" editable="false" style="left:785px; top:65px; width:185px; height:20px; "/>
  630. <input id="input15" ref="root/info/DesignRKeyResult_Row/C_ORD_USE_TP" editable="false" style="left:785px; top:90px; width:185px; height:20px; "/>
  631. <input id="input24" ref="root/info/DesignRKeyResult_Row/C_SPEC_STL_GRD" editable="false" style="left:785px; top:115px; width:185px; height:20px; "/>
  632. <input id="input25" ref="root/info/DesignRKeyResult_Row/C_SPEC_ABBSYM" editable="false" style="left:785px; top:140px; width:185px; height:20px; "/>
  633. <input id="input26" ref="/root/formData/no" style="left:315px; top:5px; width:100px; height:20px; ">
  634. <script type="javascript" ev:event="onkeydown">
  635. <![CDATA[
  636. if(event.keyCode==13)
  637. {
  638. if(combo2.value =="A" ||combo2.value == "C")
  639. return;
  640. model.setFocus("");
  641. model.removenode("/root/reqData");
  642. model.makeValue("/root/reqData/ORDNO" , input26.value);
  643. commSubmit("UIB015020-service", "findOrdLike", "glueAction.do");
  644. model.copyNode("/root/grid/datagrid10","/root/resData/ORDNOResult_VO");
  645. model.refresh();
  646. datagrid10.visible = true;
  647. }
  648. ]]>
  649. </script>
  650. <script type="javascript" ev:event="ondblclick">
  651. <![CDATA[
  652. datagrid10.visible = !datagrid10.visible;
  653. ]]>
  654. </script>
  655. </input>
  656. <input id="input27" ref="/root/formData/seq" style="left:430px; top:5px; width:55px; height:20px; ">
  657. <script type="javascript" ev:event="onkeydown">
  658. <![CDATA[
  659. if(event.keyCode == 13)
  660. {
  661. model.setFocus("");
  662. find();
  663. datagrid10.visible = false;
  664. }
  665. ]]>
  666. </script>
  667. </input>
  668. <datagrid id="datagrid10" nodeset="/root/grid/datagrid10/ORDNOResult_Row" visibility="hidden" caption="合同号^订单号" colsep="^" colwidth="79, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:315px; top:25px; width:190px; height:165px; ">
  669. <col ref="ORD_NO" style="text-align:left; "/>
  670. <col ref="ORD_SEQ" style="text-align:left; "/>
  671. <script type="javascript" ev:event="onclick">
  672. <![CDATA[
  673. if(datagrid10.row >= datagrid10.fixedRows
  674. && datagrid10.col == datagrid10.colRef("ORD_NO") )
  675. {
  676. input26.value = datagrid10.valueMatrix(datagrid10.row , datagrid10.colRef("ORD_NO"));
  677. input27.value = datagrid10.valueMatrix(datagrid10.row , datagrid10.colRef("ORD_SEQ"));
  678. datagrid10.col = datagrid10.colRef("ORD_SEQ");
  679. find();
  680. }
  681. ]]>
  682. </script>
  683. </datagrid>
  684. <caption id="caption24" class="cell" style="left:5px; top:165px; width:80px; height:20px; vertical-align:middle; ">是否切边</caption>
  685. <input id="input28" ref="root/info/DesignRKeyResult_Row/EDGE_PROC_YN" editable="false" style="left:85px; top:165px; width:100px; height:20px; "/>
  686. <caption id="caption25" visibility="hidden" style="left:190px; top:165px; width:146px; height:20px; ">切边时热轧宽度已增加40mm</caption>
  687. </xhtml:body>
  688. </xhtml:html>