875229c86d8d0f796b47deb0f2a17cda46d77012.svn-base 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  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. <grid/>
  12. <formData>
  13. <Pstove/>
  14. <extshape>
  15. </extshape>
  16. <crk/>
  17. <sfMethod/>
  18. <gaipan/>
  19. <startTime/>
  20. <endTime/>
  21. <EXTGRD1/>
  22. <transttime/>
  23. <tranentime/>
  24. <EXTSHAPE_DEC_ID/>
  25. <ccmid>%</ccmid>
  26. <SLABRTS>%</SLABRTS>
  27. <HCRCLFS>%</HCRCLFS>
  28. <GR_GROUPS>%</GR_GROUPS>
  29. <radiosele>Y</radiosele>
  30. <radio2/>
  31. <SpotChecking/>
  32. <CopingRemark/>
  33. <qbThick/>
  34. </formData>
  35. <datagrid1/>
  36. <datagrid2/>
  37. <datagrid3/>
  38. <datagrid4/>
  39. <datagrid5/>
  40. <initBug>
  41. <ComboBug_Row>
  42. <LABEL/>
  43. <VALUE/>
  44. </ComboBug_Row>
  45. </initBug>
  46. <initMend>
  47. <ComboMend_Row>
  48. <LABEL/>
  49. <VALUE/>
  50. </ComboMend_Row>
  51. </initMend>
  52. <initChargeData/>
  53. <initQueXian>
  54. <QueXian_Row>
  55. <LABEL/>
  56. <VALUE/>
  57. </QueXian_Row>
  58. </initQueXian>
  59. <timer>0</timer>
  60. <reflash/>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../js/boaCommon.js"/>
  64. <script type="javascript" src="../../js/b01.js"/>
  65. <script type="javascript" src="../../js/boaMsg.js"/>
  66. <script type="javascript" src="../../js/mesCommon.js"/>
  67. <script type="javascript" src="../../js/bCommon.js"/>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. if(window.parent==null) Init();
  71. ]]>
  72. </script>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. function Init(node)
  77. {
  78. InitParams(node);
  79. bInit();
  80. }
  81. function bInit()
  82. {
  83. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//进行全选操作
  84. datagrid1.colStatus(0)=false; //初始化时为非全选
  85. //input4.value = commCurDate();
  86. //input5.value = commCurDate();
  87. commSubmit("UIB020220-service" , "success" , "glueAction.do");
  88. input40.value = document.readIniFile("session1" , "UIB020220" , "" , "c:\\WINDOWS\\xgmes3.ini") ;
  89. input4.value = commCurDate();
  90. input5.value = commCurDate();
  91. //if(input40.value != ""){
  92. // checkbox1.value = "";
  93. // checkbox2.value = "";
  94. // input4.disabled = true;
  95. // input5.disabled = true;
  96. // input1.disabled = true;
  97. // input6.disabled = true;
  98. //}
  99. model.copyNode("/root/datagrid2" , "/root/resData/BugResult_VO");
  100. model.copyNode("/root/datagrid3" , "/root/resData/MendResult_VO");
  101. model.copyNode("/root/initBug" , "/root/resData/ComboBug_VO");
  102. model.copyNode("/root/initMend" , "/root/resData/ComboMend_VO");
  103. // model.duplicate("/root/initCharge" , "/root/resData/ChargeNo_VO");
  104. model.copyNode("/root/initChargeData" , "/root/resData/ChargeNOResult_VO");//炉次号
  105. model.copyNode("/root/initQueXian", "/root/resData/QueXian_VO");
  106. model.copyNode("/root/datagrid5" , "/root/resData/SpotResult_VO");
  107. model.copyNode("/root/datagrid4" , "/root/resData/CopeResult_VO");
  108. model.refresh();
  109. }
  110. function excelExport1()
  111. {
  112. //var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  113. //if(x1 == "") return;
  114. /*datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
  115. window.alert("导出成功" + x1 + " !!!");*/
  116. var jsonMerges="[{'name':'y','x':0,'y':0,'cnt':1}]";
  117. var _cnt = datagrid1.selectedRows;
  118. commonOutExcel('dataWGSJ',datagrid1.caption,'/root/grid/SlabResult_VO','UIH090060-service',jsonMerges,'xls');
  119. }
  120. function find()
  121. {
  122. caption18.visible = false;
  123. input9.visible = false;
  124. //按炉次号进行查询
  125. model.removenode("/root/reqData");
  126. model.makeNode("/root/reqData");
  127. document.writeIniFile("session1" , "UIB020220" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  128. if(input40.value == "" && input4.value == "" && input1.value == "")
  129. {
  130. window.alert("炉次号为空时,生产时间和出库时间至少选择一个进行查询" , "提示");
  131. return;
  132. }
  133. if(input40.value == "" && input4.disabled == true && input1.disabled == true)
  134. {
  135. window.alert("炉次号为空时,生产时间和出库时间至少选择一个进行查询" , "提示");
  136. return;
  137. }
  138. if(input40.value != "" && input40.value.length<9 )
  139. {
  140. window.alert("炉次号不得小于9位!" , "提示");
  141. return;
  142. }
  143. if(input4.disabled == false)//是否允许时间查询
  144. {
  145. model.makeValue("/root/reqData/STA_TIME",input4.value.Trim()+"0000");//生产开始时间
  146. model.makeValue("/root/reqData/END_TIME",input5.value.Trim()+"9999");//生产结束时间
  147. }
  148. else
  149. {
  150. model.makeValue("/root/reqData/STA_TIME","0000");//生产开始时间
  151. model.makeValue("/root/reqData/END_TIME","9999");//生产结束时间
  152. }
  153. if(input1.disabled == false)//是否允许时间查询
  154. {
  155. model.makeValue("/root/reqData/transttime",input1.value.Trim()+"0000");//出库开始时间
  156. model.makeValue("/root/reqData/tranentime",input6.value.Trim()+"9999");//出库结束时间
  157. }
  158. else
  159. {
  160. model.makeValue("/root/reqData/transttime","0000");//出库开始时间
  161. model.makeValue("/root/reqData/tranentime","9999");//出库结束时间
  162. }
  163. model.makeValue("/root/reqData/CHARGE_NO" , input40.value.Trim()+"%");//炉次号
  164. //model.makeValue("/root/reqData/STA_TIME" , input4.value+"0000");
  165. //model.makeValue("/root/reqData/END_TIME" , input5.value+"9999");
  166. //model.makeValue("/root/reqData/transttime" , input1.value+"0000");
  167. //model.makeValue("/root/reqData/tranentime" , input6.value+"9999");
  168. model.makeValue("/root/reqData/ccdivno" ,combo2.value );
  169. model.makeValue("/root/reqData/SLAB_RTS" ,combo20.value );
  170. model.makeValue("/root/reqData/HCR_CLFS" ,combo21.value );
  171. // if(input4.value.Trim() != "" && input5.value.Trim() != "")
  172. var empId = input45.value.Trim();
  173. if(empId != "" || combo25.value != '%')
  174. {
  175. if(empId == "" ) {
  176. empId = "%"
  177. }
  178. model.makeValue("/root/reqData/GR_GROUPS" ,combo25.value );
  179. model.makeValue("/root/reqData/EXTSHAPE_DEC_ID" ,empId );
  180. commSubmit("UIB020220-service" , "findEmpID" , "glueAction.do");
  181. model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
  182. datagrid1.clearStatus();//将更新的状态清除
  183. datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
  184. var str = datagrid1.children;
  185. model.refresh();
  186. setColor();
  187. return;
  188. }
  189. if(model.getValue("/root/reqData/STA_TIME") != "0000" )
  190. {
  191. var days = AddDate(input4.value.Trim(),10,"YYYYMMDD");
  192. if(days < input5.value.Trim())
  193. {
  194. window.alert("查询生产日期不可以超过10天,否则可能导致内存溢出!或生产结束日期不能小于开始日期!", "提示");
  195. return;
  196. }
  197. }
  198. if(model.getValue("/root/reqData/transttime") != "0000" )
  199. {
  200. var day2 = AddDate(input1.value.Trim(),10,"YYYYMMDD");
  201. if(day2 < input6.value.Trim())
  202. {
  203. window.alert("查询出库日期不可以超过10天,否则可能导致内存溢出!或出库结束日期不能小于开始日期!", "提示");
  204. return;
  205. }
  206. }
  207. commSubmit("UIB020220-service" , "find" , "glueAction.do");
  208. model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
  209. commAppendData("/root/grid/SlabResult_VO","/root/resData/SlabResult_VO");
  210. datagrid1.clearStatus();//将更新的状态清除
  211. datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
  212. var str = datagrid1.children;
  213. model.refresh();
  214. setColor();
  215. //setColorForRateAll();
  216. //setColorForRate();
  217. }
  218. function setColorForRate()
  219. {
  220. //datagrid1.rebuildStyle();
  221. var rate = datagrid1.colRef("WEIGHT_RATE");
  222. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  223. {
  224. if(parseFloat(datagrid1.valueMatrix(i , rate)) > 115)
  225. {
  226. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//超过浇铸重量15%的板坯显红
  227. }
  228. }
  229. }
  230. function setColorForRateAll()
  231. {
  232. //datagrid1.rebuildStyle();
  233. var rate = datagrid1.colRef("WEIGHT_RATE1");
  234. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  235. {
  236. if(parseFloat(datagrid1.valueMatrix(i , rate)) < 85)
  237. {
  238. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//超过浇铸重量15%的板坯显红
  239. }
  240. }
  241. }
  242. function save()
  243. {
  244. model.removenode("/root/reqData");
  245. model.makeNode("/root/reqData");
  246. //点击保存的时候隐藏表2和表3
  247. datagrid2.visible="false";
  248. datagrid3.visible="false";
  249. var colSlabStat = datagrid1.colRef("SLAB_STAT");
  250. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  251. {
  252. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) == "Y")
  253. {
  254. if(datagrid1.valueMatrix(i , colSlabStat) == "3")
  255. {
  256. window.alert("所选板坯中有已出库板坯,不允许进行外观实绩操作,请联系轧钢单位退回后再做处理!","提示");
  257. return;
  258. }
  259. }
  260. }
  261. if(input9.visible)
  262. {
  263. if(input9.value == null || input9.value == "" || input9.value == "0")
  264. {
  265. window.alert("全剥类修磨请输入修磨掉的全剥厚度!", "提示");
  266. return;
  267. }
  268. else
  269. {
  270. model.makeValue("/root/reqData/qbThick" , input9.value.Trim());//全剥厚度
  271. }
  272. }
  273. commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
  274. model.makeValue("/root/reqData/CHARGE_NO" , input40.value.Trim()+"%");//向请求中增加炉次号,因为保存后还要查询
  275. getLoggingInInfo();
  276. commSubmit("UIB020220-service" , "abc" , "glueAction.do");
  277. // model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
  278. find();
  279. datagrid1.clearStatus();//将更新的状态清除
  280. model.refresh();
  281. datagrid2.visible = false;
  282. }
  283. var clockTimer = 0;
  284. var facFlag = 0;//厂内钢号第一次查询标记
  285. var ingrDecFlag = "N";//板坯是否改判
  286. function setColor()
  287. {
  288. datagrid1.rebuildStyle();
  289. var colSlabStat = datagrid1.colRef("SLAB_STAT");
  290. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  291. {
  292. if(datagrid1.valueMatrix(i , colSlabStat) == "1")
  293. {
  294. datagrid1.rowStyle(i , "data" , "color") = "#00ccff";//计划状态
  295. }
  296. else if(datagrid1.valueMatrix(i , colSlabStat) == "3")
  297. {
  298. datagrid1.rowStyle(i , "data" , "color") = "#0000ff";
  299. }
  300. }
  301. }
  302. function wgt(i)
  303. {
  304. if(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")) == "")
  305. return 0;
  306. else return datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT"));
  307. }
  308. function getSumWGT()
  309. {
  310. var totalWGT = 0;
  311. var J1WGT=0;
  312. var J2WGT=0;
  313. var J3WGT=0;
  314. var J0WGT=0;
  315. var totalWGT1 = 0;
  316. var J1WGT1=0;
  317. var J2WGT1=0;
  318. var J3WGT1=0;
  319. var J0WGT1=0;
  320. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  321. {
  322. if(datagrid1.isSelected(i)==1)//datagrid1.valueMatrix(i ,datagrid1.isSelected) == "TURE".colRef("CHK")
  323. {
  324. // if(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")) == "")
  325. // {
  326. //
  327. // }
  328. // else
  329. // {
  330. //totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT"))); //总重量
  331. totalWGT = totalWGT + parseFloat(wgt(i));
  332. totalWGT1 = totalWGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
  333. if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J1")
  334. {
  335. J1WGT = J1WGT + parseFloat(wgt(i));
  336. J1WGT1 = J1WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
  337. } //1号铸机重量
  338. if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J2")
  339. {
  340. J2WGT = J2WGT + parseFloat(wgt(i));
  341. J2WGT1 = J2WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
  342. } //2号铸机重量
  343. if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J3")
  344. {
  345. J3WGT = J3WGT + parseFloat(wgt(i));
  346. J3WGT1 =J3WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
  347. } //3号铸机重量
  348. if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "")
  349. {
  350. J0WGT = J0WGT + parseFloat(wgt(i));
  351. J0WGT1 =J0WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;//空铸机号重量
  352. }
  353. // }
  354. }
  355. }
  356. //return totalWGT;
  357. output1.value=totalWGT;
  358. output2.value=J1WGT;
  359. output3.value=J2WGT;
  360. output4.value=J3WGT;
  361. output5.value=J0WGT;
  362. output6.value=totalWGT1;
  363. output7.value=J1WGT1;
  364. output8.value=J2WGT1;
  365. output9.value=J3WGT1;
  366. output10.value=J0WGT1;
  367. }
  368. ]]>
  369. </script>
  370. </xhtml:head>
  371. <xhtml:body accesskey="f2" pagewidth="980" pageheight="620">
  372. <datagrid id="datagrid1" nodeset="/root/datagrid1/SlabResult_Row" caption="确认^板坯号^板坯状态^指示厚度*宽度*长度^实际厚度*宽度*长度^理论重量^实际重量^实际牌号^计划牌号^板坯去向^热送区分^切割时间^出库时间^过渡坯^非计划坯^成分等级^判定依据^板坯外观等级^板坯精整方法^余材区分^是否存在^铸机号^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^抽查备注^修磨备注^备注录入时间^外观判定人^所属班组^外观判定时间^成分改判人^成分改判时间^精整待机操作人^精整待机时间^板坯精整检验^精整时间^精整完成操作人^精整完成时间^重量占比率^炉次总重占比^rowStatus3^rowStatus2^EXTSHAPE_GRD1^SF_METHOD1|确认^板坯号^板坯状态^指示厚度*宽度*长度^实际厚度*宽度*长度^理论重量^实际重量^实际牌号^计划牌号^板坯去向^热送区分^切割时间^出库时间^过渡坯^非计划坯^成分等级^判定依据^板坯外观等级^板坯精整方法^余材区分^是否存在^铸机号^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^缺陷6^缺陷7^缺陷8^缺陷9^缺陷10^抽查备注^修磨备注^备注录入时间^外观判定人^所属班组^外观判定时间^成分改判人^成分改判时间^精整待机操作人^精整待机时间^板坯精整检验^精整时间^精整完成操作人^精整完成时间^重量占比率^炉次总重占比^rowStatus3^rowStatus2^EXTSHAPE_GRD1^SF_METHOD1" colsep="^" colwidth="47, 93, 40, 86, 75, 50, 60, 75, 81, 40, 40, 64, 64, 45, 40, 48, 74, 50, 62, 37, 37, 30, 42, 42, 42, 42, 42, 26, 40, 40, 40, 40, 100, 100, 59, 45, 40, 55, 48, 80, 80, 46, 78, 69, 61, 56, 69, 77, 62, 68, 100, 100, 35" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:55px; width:980px; height:465px; ">
  373. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  374. <col editable="false" ref="SLAB_NO" type="input" style="background-color:#ffffff; "/>
  375. <col disabled="true" ref="SLAB_STAT" type="combo">
  376. <choices>
  377. <item>
  378. <label>计划</label>
  379. <value>1</value>
  380. </item>
  381. <item>
  382. <label>出库</label>
  383. <value>3</value>
  384. </item>
  385. <item>
  386. <label>在库</label>
  387. <value>2</value>
  388. </item>
  389. </choices>
  390. </col>
  391. <col editable="false" ref="INSTR_TWL" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  392. <col editable="false" ref="TWL" type="input" style="background-color:#ffffff; "/>
  393. <col editable="false" ref="SLAB_WGT" type="input" format="#,###" style="background-color:#ffffff; "/>
  394. <col editable="false" ref="WEIGHT_WGT" type="input" style="background-color:#ffffff; "/>
  395. <col editable="false" ref="STL_GRD" type="input" style="background-color:#ffffff; "/>
  396. <col editable="false" ref="BEF_STL_GRD" type="input" style="background-color:#ffffff; "/>
  397. <col disabled="true" editable="false" ref="SLAB_RT" type="combo" visibility="visible" style="background-color:#ffffff; ">
  398. <choices>
  399. <item>
  400. <label>热轧</label>
  401. <value>H</value>
  402. </item>
  403. <item>
  404. <label>冷轧</label>
  405. <value>C</value>
  406. </item>
  407. <item>
  408. <label>厚板</label>
  409. <value>P</value>
  410. </item>
  411. <item>
  412. <label>中板</label>
  413. <value>Z</value>
  414. </item>
  415. </choices>
  416. </col>
  417. <col disabled="true" editable="false" ref="HCR_CLF" type="combo" style="background-color:#ffffff; ">
  418. <choices>
  419. <item>
  420. <label>冷料</label>
  421. <value>C</value>
  422. </item>
  423. <item>
  424. <label>热料</label>
  425. <value>H</value>
  426. </item>
  427. </choices>
  428. </col>
  429. <col editable="false" ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  430. <col editable="false" ref="SMS_YARD_EXT_DTIME" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
  431. <col editable="false" ref="DIFF_STL_GRD_STA_END_YN" style="background-color:#ffffff; "/>
  432. <col disabled="true" ref="SURPLMATL_YN" type="combo" visibility="hidden">
  433. <choices>
  434. <item>
  435. <label>非计划</label>
  436. <value>S</value>
  437. </item>
  438. </choices>
  439. </col>
  440. <col disabled="true" editable="false" ref="SLAB_INGR_DEC_GRD" type="combo" style="left:920px; top:41px; width:48px; height:21px; background-color:#ffffff; ">
  441. <choices>
  442. <item>
  443. <label>未判定</label>
  444. <value/>
  445. </item>
  446. <item>
  447. <label>合格</label>
  448. <value>1</value>
  449. </item>
  450. <item>
  451. <label>不合格</label>
  452. <value>2</value>
  453. </item>
  454. <item>
  455. <label>化废</label>
  456. <value>3</value>
  457. </item>
  458. </choices>
  459. </col>
  460. <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo">
  461. <choices>
  462. <item>
  463. <label>内控判定</label>
  464. <value>1</value>
  465. </item>
  466. <item>
  467. <label>炼钢放行(带订单)</label>
  468. <value>2</value>
  469. </item>
  470. <item>
  471. <label>正常流转</label>
  472. <value>3</value>
  473. </item>
  474. <item>
  475. <label>成品放行</label>
  476. <value>4</value>
  477. </item>
  478. <item>
  479. <label>改判</label>
  480. <value>5</value>
  481. </item>
  482. <item>
  483. <label>判次</label>
  484. <value>6</value>
  485. </item>
  486. <item>
  487. <label>强制合格</label>
  488. <value>7</value>
  489. </item>
  490. <item>
  491. <label>炼钢放行(无订单)</label>
  492. <value>8</value>
  493. </item>
  494. <item>
  495. <label>待处理</label>
  496. <value>9</value>
  497. </item>
  498. <item>
  499. <label>化废</label>
  500. <value>10</value>
  501. </item>
  502. </choices>
  503. </col>
  504. <col disabled="true" editable="false" ref="EXTSHAPE_GRD" type="combo" style="background-color:#ffffff; ">
  505. <choices>
  506. <item>
  507. <label>合格</label>
  508. <value>1</value>
  509. </item>
  510. <item>
  511. <label>不合格</label>
  512. <value>2</value>
  513. </item>
  514. <item>
  515. <label>待修磨</label>
  516. <value>3</value>
  517. </item>
  518. <item>
  519. <label>待判</label>
  520. <value/>
  521. </item>
  522. </choices>
  523. </col>
  524. <col disabled="true" ref="SF_METHOD" type="combo">
  525. <choices>
  526. <item>
  527. <label>全面精整</label>
  528. <value>A</value>
  529. </item>
  530. <item>
  531. <label>部分精整</label>
  532. <value>P</value>
  533. </item>
  534. <item>
  535. <label>无精整</label>
  536. <value>N</value>
  537. </item>
  538. <item>
  539. <label>待精整</label>
  540. <value>D</value>
  541. </item>
  542. <item>
  543. <label>精整完成</label>
  544. <value>E</value>
  545. </item>
  546. </choices>
  547. </col>
  548. <col disabled="true" ref="ORD_FL" type="combo">
  549. <choices>
  550. <item>
  551. <label>订单才</label>
  552. <value>1</value>
  553. </item>
  554. <item>
  555. <label>余才</label>
  556. <value>2</value>
  557. </item>
  558. </choices>
  559. </col>
  560. <col ref="MATRL_END_CAUSE_CD"/>
  561. <col ref="CC_DEVNO"/>
  562. <col disabled="true" ref="CRK1" type="combo">
  563. <choices>
  564. <itemset nodeset="/root/initQueXian/QueXian_Row">
  565. <label ref="LABEL"/>
  566. <value ref="VALUE"/>
  567. </itemset>
  568. </choices>
  569. </col>
  570. <col disabled="true" ref="CRK2" type="combo">
  571. <choices>
  572. <itemset nodeset="/root/initQueXian/QueXian_Row">
  573. <label ref="LABEL"/>
  574. <value ref="VALUE"/>
  575. </itemset>
  576. </choices>
  577. </col>
  578. <col disabled="true" ref="CRK3" type="combo">
  579. <choices>
  580. <itemset nodeset="/root/initQueXian/QueXian_Row">
  581. <label ref="LABEL"/>
  582. <value ref="VALUE"/>
  583. </itemset>
  584. </choices>
  585. </col>
  586. <col disabled="true" ref="CRK4" type="combo">
  587. <choices>
  588. <itemset nodeset="/root/initQueXian/QueXian_Row">
  589. <label ref="LABEL"/>
  590. <value ref="VALUE"/>
  591. </itemset>
  592. </choices>
  593. </col>
  594. <col ref="CRK5" visibility="hidden"/>
  595. <col ref="CRK6" visibility="hidden"/>
  596. <col ref="CRK7" visibility="hidden"/>
  597. <col ref="CRK8" visibility="hidden"/>
  598. <col ref="CRK9" visibility="hidden"/>
  599. <col ref="CRK10" visibility="hidden"/>
  600. <col ref="SPOT_CHECK_REMARK" type="input"/>
  601. <col ref="COPING_REMARK" type="input"/>
  602. <col ref="REMARK_TIME"/>
  603. <col ref="EXTSHAPE_DEC_EMP_ID"/>
  604. <col ref="GR_GROUP"/>
  605. <col ref="EXTSHAPE_DEC_DTIME"/>
  606. <col ref="SLAB_INGR_DEC_EMP_ID" visibility="visible"/>
  607. <col ref="SLAB_INGR_DEC_DTIME" visibility="visible" format="yyyy-mm-dd hh:nn:ss"/>
  608. <col ref="SF_METHOD_STD_ID"/>
  609. <col ref="SF_METHOD_STD_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  610. <col ref="SF_METHOD_ID"/>
  611. <col ref="SF_METHOD_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  612. <col ref="SF_METHOD_END_ID"/>
  613. <col ref="SF_METHOD_END_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  614. <col ref="WEIGHT_RATE" visibility="hidden"/>
  615. <col ref="WEIGHT_RATE1" visibility="hidden"/>
  616. <col ref="rowStatus3" visibility="hidden"/>
  617. <col ref="rowStatus2" visibility="hidden"/>
  618. <col ref="EXTSHAPE_GRD1" visibility="hidden"/>
  619. <col ref="SF_METHOD1" visibility="hidden"/>
  620. <col ref="rowStatus4" visibility="hidden"/>
  621. <script type="javascript" ev:event="ondblclick">
  622. <![CDATA[
  623. ///去掉某单元格的板坯缺陷
  624. if(datagrid1.row < 2) return;
  625. var start = datagrid1.colRef("CRK1");
  626. var end = datagrid1.colRef("CRK4");
  627. if(datagrid1.col >= start && datagrid1.col <= end )
  628. {
  629. datagrid1.valueMatrix(datagrid1.row , datagrid1.col) = "";
  630. datagrid1.addStatus(datagrid1.row , "update");
  631. datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("rowStatus2")) = "Y";
  632. }
  633. datagrid1.refresh();
  634. ]]>
  635. </script>
  636. <script type="javascript" ev:event="onmouseup">
  637. <![CDATA[
  638. //output1.value = getSumWGT();
  639. getSumWGT();
  640. ]]>
  641. </script>
  642. </datagrid>
  643. <caption id="caption1" class="cell" style="left:0px; top:5px; width:70px; height:20px; ">炉次号</caption>
  644. <caption id="caption2" class="cell" style="left:10px; top:526px; width:100px; height:20px; ">板坯判定录入</caption>
  645. <caption id="caption3" class="cell" style="left:10px; top:545px; width:100px; height:20px; ">板坯外观等级</caption>
  646. <caption id="caption4" class="cell" style="left:210px; top:545px; width:100px; height:20px; ">板坯外观缺陷代码</caption>
  647. <caption id="caption5" class="cell" style="left:450px; top:545px; width:100px; height:20px; ">板坯精整方法</caption>
  648. <datagrid id="datagrid2" nodeset="/root/datagrid2/BugResult_Row" visibility="hidden" allowuserresize="false" caption="缺陷代码^上(T)^下(B)^SM_CD" colsep="^" colwidth="94, 40, 40, 100" defaultrows="50" mergecellsfixedrows="bycolrec" rowheight="30" rowsep="|" style="left:310px; top:135px; width:192px; height:410px; ">
  649. <col disabled="true" ref="SM_CFNM" type="combo">
  650. <choices>
  651. <itemset nodeset="/root/initBug/ComboBug_Row">
  652. <label ref="LABEL"/>
  653. <value ref="VALUE"/>
  654. </itemset>
  655. </choices>
  656. </col>
  657. <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
  658. <col checkvalue="Y,N" ref="CHK2" type="checkbox"/>
  659. <col ref="SM_CD" visibility="hidden"/>
  660. <script type="javascript" ev:event="xforms-value-changed">
  661. <![CDATA[
  662. /*
  663. 通过循环判断表1中是否有选中的行,只对表1中选中的行进行操作
  664. for循环下包含了if(datagrid2.col==1) 和if(datagrid2.col==2)两个小判断
  665. */
  666. for(var i=2 ; i <= datagrid1.rows; i++)
  667. {
  668. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")//表1中行被选中
  669. {
  670. /*
  671. 若上表面有问题
  672. 然后再判断是否选中,是否被取消选择某缺陷
  673. */
  674. if(datagrid2.col==1)
  675. {
  676. if(datagrid2.valueMatrix(datagrid2.row , 1)=="Y")//表上表面有问题,为“T”
  677. {
  678. //将表2中选中的缺陷代码+"T"赋给表1中被选中的行对应的缺陷代码
  679. for(var x=1; x <=10; x++)
  680. {
  681. if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=="")//若发现表1中选中行的某缺陷为空
  682. {
  683. datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) = datagrid2.valueMatrix(datagrid2.row , 3)+"T";
  684. datagrid1.addStatus(i , "update");//改变行状态
  685. break;//赋值后推出循环
  686. }
  687. }
  688. }
  689. if(datagrid2.valueMatrix(datagrid2.row , 1)=="N")//若上表面被取消选中
  690. {
  691. for(var x=1; x <=10; x++)
  692. {
  693. if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) == datagrid2.valueMatrix(datagrid2.row , 3)+"T")//若发现表1中选中行的某缺陷为空
  694. {
  695. datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=""
  696. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  697. break;//赋值后推出循环
  698. }
  699. }
  700. }
  701. }
  702. /*
  703. 若下表面有问题
  704. 然后再判断是否被选中,是否被取消选择某缺陷
  705. */
  706. if(datagrid2.col==2)
  707. {
  708. if(datagrid2.valueMatrix(datagrid2.row , 2)=="Y")//表下表面有问题,为“B”
  709. {
  710. for(var x=1; x <=10; x++)//将下表面缺陷代码值给表1中选中且为空的某单元格
  711. {
  712. if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=="")//若发现表1中选中行的某缺陷为空
  713. {
  714. datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) = datagrid2.valueMatrix(datagrid2.row , 3)+"B";
  715. datagrid1.addStatus(i , "update");//增加行状态
  716. break;//赋值后推出循环
  717. }
  718. }
  719. }
  720. if(datagrid2.valueMatrix(datagrid2.row , 2)=="N")//若下表面被取消选中
  721. {
  722. for(var x=1; x <=10; x++)
  723. {
  724. if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) == datagrid2.valueMatrix(datagrid2.row , 3)+"B")//若发现表1中选中行的某缺陷为空
  725. {
  726. datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=""
  727. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  728. break;//赋值后推出循环
  729. }
  730. }
  731. }
  732. }
  733. datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus2")) = "Y";
  734. }//if end
  735. }//for end
  736. model.refresh();
  737. ]]>
  738. </script>
  739. </datagrid>
  740. <input id="input3" ref="/root/formData/crk" inputtype="button" style="left:310px; top:545px; width:100px; height:20px; ">
  741. <script type="javascript" ev:event="onclick">
  742. <![CDATA[
  743. if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
  744. datagrid2.visible = !datagrid2.visible;
  745. for(var i=1; i <= datagrid2.rows; i++)
  746. {
  747. datagrid2.valueMatrix(i , 1)="N";
  748. datagrid2.valueMatrix(i , 2)="N";
  749. }
  750. model.refresh();
  751. ]]>
  752. </script>
  753. </input>
  754. <select1 id="combo1" ref="/root/formData/extshape" appearance="minimal" style="left:109px; top:545px; width:75px; height:20px; ">
  755. <choices>
  756. <item>
  757. <label/>
  758. <value/>
  759. </item>
  760. <item>
  761. <label>合格</label>
  762. <value>1</value>
  763. </item>
  764. <item>
  765. <label>待修磨</label>
  766. <value>3</value>
  767. </item>
  768. <item>
  769. <label>不合格</label>
  770. <value>2</value>
  771. </item>
  772. </choices>
  773. <script type="javascript" ev:event="xforms-value-changed">
  774. <![CDATA[
  775. if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
  776. for(var i=2 ; i <= datagrid1.rows; i++)
  777. {
  778. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
  779. {
  780. datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus2")) = "Y";
  781. datagrid1.valueMatrix(i , datagrid1.colRef("EXTSHAPE_GRD")) = combo1.value;
  782. datagrid1.addStatus(i , "update");//使表1的行状态不变为u
  783. }
  784. }
  785. model.refresh();
  786. ]]>
  787. </script>
  788. </select1>
  789. <input id="input2" ref="/root/formData/sfMethod" inputtype="button" style="left:550px; top:545px; width:100px; height:20px; ">
  790. <script type="javascript" ev:event="onclick">
  791. <![CDATA[
  792. if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
  793. datagrid3.visible = !datagrid3.visible;
  794. for(var i=1; i <= datagrid3.rows; i++)
  795. {
  796. datagrid3.valueMatrix(i , 0)="N";
  797. }
  798. model.refresh();
  799. ]]>
  800. </script>
  801. </input>
  802. <datagrid id="datagrid3" nodeset="/root/datagrid3/MendResult_Row" visibility="hidden" allowuserresize="false" caption="选择^板坯精整方法^SM_CD" colsep="^" colwidth="40, 100, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:550px; top:435px; width:142px; height:110px; ">
  803. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  804. <col disabled="true" ref="SM_CFNM" type="combo">
  805. <choices>
  806. <itemset nodeset="/root/initMend/ComboMend_Row">
  807. <label ref="LABEL"/>
  808. <value ref="VALUE"/>
  809. </itemset>
  810. </choices>
  811. </col>
  812. <col ref="SM_CD" visibility="hidden"/>
  813. <script type="javascript" ev:event="onclick">
  814. <![CDATA[
  815. if(datagrid3.valueMatrix(datagrid3.row , datagrid3.col) == "Y")
  816. {
  817. var cl = datagrid1.colRef("CHK");
  818. //选择板坯修整方法
  819. for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
  820. {
  821. if(datagrid1.valueMatrix(i , cl)=="Y")
  822. {
  823. if(datagrid3.valueMatrix(datagrid3.row , 0)=="Y")
  824. {
  825. datagrid1.valueMatrix(i , datagrid1.colRef("SF_METHOD")) = datagrid3.valueMatrix(datagrid3.row , 2);
  826. datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus3")) = "Y";
  827. datagrid1.addStatus(i , "update");//增加行状态
  828. }
  829. if(datagrid3.valueMatrix(datagrid3.row , 0)=="N")
  830. {
  831. datagrid1.valueMatrix(i , datagrid1.colRef("SF_METHOD")) = "";
  832. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  833. }
  834. }//end if
  835. }//endfor
  836. model.refresh();
  837. }
  838. ]]>
  839. </script>
  840. </datagrid>
  841. <line id="line1" style="x1:1px; y1:55px; x2:980px; y2:55px; "/>
  842. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  843. <script type="javascript" ev:event="onaccesskey">
  844. <![CDATA[
  845. openWindow("UIB020220");
  846. ]]>
  847. </script>
  848. <input id="input40" ref="/root/formData/Pstove" style="left:70px; top:5px; width:80px; height:20px; ">
  849. <script type="javascript" ev:event="DOMFocusIn">
  850. <![CDATA[
  851. checkbox1.value = "";
  852. checkbox2.value = "";
  853. input4.disabled = true;
  854. input5.disabled = true;
  855. input1.disabled = true;
  856. input6.disabled = true;
  857. ]]>
  858. </script>
  859. <script type="javascript" ev:event="DOMFocusOut">
  860. <![CDATA[
  861. if(input40.value == "")
  862. {
  863. checkbox1.value = "Y";
  864. input4.disabled = false;
  865. input5.disabled = false;
  866. }
  867. ]]>
  868. </script>
  869. </input>
  870. <caption id="caption7" class="cell" style="left:200px; top:5px; width:70px; height:20px; ">生产时间</caption>
  871. <input id="input4" ref="/root/formData/startTime" inputtype="date" style="left:270px; top:5px; width:85px; height:20px; "/>
  872. <input id="input5" ref="/root/formData/endTime" inputtype="date" style="left:365px; top:5px; width:85px; height:20px; "/>
  873. <caption id="caption9" style="left:355px; top:5px; width:20px; height:20px; ">~</caption>
  874. <script type="javascript" ev:event="onkeydown">
  875. <![CDATA[
  876. if(event.keyCode == 113)
  877. {
  878. window.load("../B03/UIB030203.xrw", "modal", "modalWin", "left:400; top:40; width:420px; height:420px;sysmenu:visible; min:visible; max:hidden; resize:false;");
  879. }
  880. ]]>
  881. </script>
  882. <button id="button4" style="left:149px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  883. <caption/>
  884. <script type="javascript" ev:event="DOMActivate">
  885. <![CDATA[
  886. if(matchChargeNo(input40.value.Trim()) == false) return;
  887. try
  888. {
  889. var cc = parseInt(input40.value.substr(4 , 8) , 10)-1+"";
  890. for(var i = 0; i <= 5; i++)
  891. {
  892. if(cc.length < 5)
  893. cc = "0"+cc;
  894. }
  895. input40.value = input40.value.substr(0 , 4)+cc;
  896. find();
  897. }
  898. catch(e)
  899. {
  900. }
  901. ]]>
  902. </script>
  903. </button>
  904. <button id="button5" style="left:165px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  905. <caption/>
  906. <script type="javascript" ev:event="DOMActivate">
  907. <![CDATA[
  908. if(matchChargeNo(input40.value.Trim()) == false) return;
  909. try
  910. {
  911. var cc = parseInt(input40.value.substr(4 , 8) , 10)+1+"";
  912. for(var i = 0; i <= 5; i++)
  913. {
  914. if(cc.length < 5)
  915. cc = "0"+cc;
  916. }
  917. input40.value = input40.value.substr(0 , 4)+cc;
  918. find();
  919. }
  920. catch(e)
  921. {
  922. }
  923. ]]>
  924. </script>
  925. </button>
  926. <caption id="caption6" class="cell" style="left:700px; top:545px; width:124px; height:20px; ">重量统计(实际/理论)</caption>
  927. <output id="output1" style="left:825px; top:545px; width:70px; height:20px; "/>
  928. <line id="line3" style="x1:885px; y1:565px; x2:825px; y2:565px; "/>
  929. <caption id="caption8" class="cell" style="left:10px; top:570px; width:160px; height:20px; ">一号铸机重量(实际/理论)</caption>
  930. <output id="output2" style="left:170px; top:570px; width:60px; height:20px; "/>
  931. <caption id="caption10" class="cell" style="left:310px; top:570px; width:160px; height:20px; ">二号铸机重量(实际/理论)</caption>
  932. <output id="output3" style="left:470px; top:570px; width:60px; height:20px; "/>
  933. <caption id="caption11" class="cell" style="left:620px; top:570px; width:154px; height:20px; ">三号铸机重量(实际/理论)</caption>
  934. <output id="output4" style="left:775px; top:570px; width:65px; height:20px; "/>
  935. <caption id="caption12" class="cell" style="left:10px; top:595px; width:160px; height:20px; ">空铸机号重量(实际/理论)</caption>
  936. <output id="output5" style="left:170px; top:595px; width:60px; height:20px; "/>
  937. <line id="line4" style="x1:230px; y1:590px; x2:170px; y2:590px; "/>
  938. <line id="line5" style="x1:530px; y1:590px; x2:470px; y2:590px; "/>
  939. <line id="line6" style="x1:835px; y1:590px; x2:775px; y2:590px; "/>
  940. <line id="line7" style="x1:230px; y1:615px; x2:170px; y2:615px; "/>
  941. <caption id="caption13" class="cell" style="left:200px; top:30px; width:70px; height:20px; ">出库时间</caption>
  942. <input id="input1" ref="/root/formData/transttime" disabled="true" inputtype="date" style="left:270px; top:30px; width:85px; height:20px; "/>
  943. <input id="input6" ref="/root/formData/tranentime" disabled="true" inputtype="date" style="left:365px; top:30px; width:85px; height:20px; "/>
  944. <caption id="caption14" style="left:355px; top:30px; width:20px; height:20px; ">~</caption>
  945. <output id="output6" style="left:900px; top:545px; width:70px; height:20px; "/>
  946. <output id="output7" style="left:235px; top:570px; width:60px; height:20px; "/>
  947. <output id="output8" style="left:535px; top:570px; width:60px; height:20px; "/>
  948. <output id="output9" style="left:845px; top:570px; width:65px; height:20px; "/>
  949. <output id="output10" style="left:235px; top:595px; width:60px; height:20px; "/>
  950. <caption id="caption15" class="cell" style="left:0px; top:30px; width:70px; height:20px; ">铸机号</caption>
  951. <select1 id="combo2" ref="/root/formData/ccmid" appearance="minimal" style="left:70px; top:30px; width:80px; height:20px; ">
  952. <choices>
  953. <item>
  954. <label>J1</label>
  955. <value>J1</value>
  956. </item>
  957. <item>
  958. <label>J2</label>
  959. <value>J2</value>
  960. </item>
  961. <item>
  962. <label>J3</label>
  963. <value>J3</value>
  964. </item>
  965. <item>
  966. <label>--全部--</label>
  967. <value>%</value>
  968. </item>
  969. </choices>
  970. </select1>
  971. <caption id="caption20" class="cell" style="left:460px; top:5px; width:70px; height:20px; ">板坯去向</caption>
  972. <select1 id="combo20" ref="/root/formData/SLABRTS" appearance="minimal" style="left:530px; top:5px; width:80px; height:20px; ">
  973. <choices>
  974. <item>
  975. <label>热轧</label>
  976. <value>H</value>
  977. </item>
  978. <item>
  979. <label>冷轧</label>
  980. <value>C</value>
  981. </item>
  982. <item>
  983. <label>厚板</label>
  984. <value>P</value>
  985. </item>
  986. <item>
  987. <label>中板</label>
  988. <value>Z</value>
  989. </item>
  990. <item>
  991. <label>--全部--</label>
  992. <value>%</value>
  993. </item>
  994. </choices>
  995. </select1>
  996. <caption id="caption25" class="cell" style="left:620px; top:30px; width:70px; height:20px; ">班 组</caption>
  997. <select1 id="combo25" ref="/root/formData/GR_GROUPS" appearance="minimal" style="left:690px; top:30px; width:80px; height:20px; ">
  998. <choices>
  999. <item>
  1000. <label>甲</label>
  1001. <value>甲</value>
  1002. </item>
  1003. <item>
  1004. <label>乙</label>
  1005. <value>乙</value>
  1006. </item>
  1007. <item>
  1008. <label>丙</label>
  1009. <value>丙</value>
  1010. </item>
  1011. <item>
  1012. <label>丁</label>
  1013. <value>丁</value>
  1014. </item>
  1015. <item>
  1016. <label>--全部--</label>
  1017. <value>%</value>
  1018. </item>
  1019. </choices>
  1020. <hint>
  1021. <![CDATA[外观判定人所属班组]]>
  1022. </hint>
  1023. </select1>
  1024. <caption id="caption26" class="cell" style="left:620px; top:5px; width:70px; height:20px; ">操作人</caption>
  1025. <input id="input45" ref="/root/formData/EXTSHAPE_DEC_ID" style="left:690px; top:5px; width:80px; height:20px; ">
  1026. <hint>
  1027. <![CDATA[指外观判定人]]>
  1028. </hint>
  1029. </input>
  1030. <caption id="caption21" class="cell" style="left:460px; top:30px; width:70px; height:20px; ">热送区分</caption>
  1031. <select1 id="combo21" ref="/root/formData/HCRCLFS" appearance="minimal" style="left:530px; top:30px; width:80px; height:20px; ">
  1032. <choices>
  1033. <item>
  1034. <label>冷料</label>
  1035. <value>C</value>
  1036. </item>
  1037. <item>
  1038. <label>热料</label>
  1039. <value>H</value>
  1040. </item>
  1041. <item>
  1042. <label>--全部--</label>
  1043. <value>%</value>
  1044. </item>
  1045. </choices>
  1046. </select1>
  1047. <line id="line8" style="x1:960px; y1:565px; x2:900px; y2:565px; "/>
  1048. <line id="line9" style="x1:905px; y1:590px; x2:845px; y2:590px; "/>
  1049. <line id="line10" style="x1:595px; y1:590px; x2:535px; y2:590px; "/>
  1050. <line id="line11" style="x1:295px; y1:590px; x2:235px; y2:590px; "/>
  1051. <line id="line12" style="x1:295px; y1:615px; x2:235px; y2:615px; "/>
  1052. <button id="button2" style="left:850px; top:5px; width:100px; height:20px; background-color:#ffff00; ">
  1053. <caption>导出</caption>
  1054. <script type="javascript" ev:event="onclick">
  1055. <![CDATA[
  1056. excelExport1() ;
  1057. ]]>
  1058. </script>
  1059. </button>
  1060. <button id="button3" visibility="visible" style="left:790px; top:5px; width:60px; height:20px; ">
  1061. <caption>查询</caption>
  1062. <script type="javascript" ev:event="onclick">
  1063. <![CDATA[
  1064. find();
  1065. ]]>
  1066. </script>
  1067. </button>
  1068. <select id="checkbox1" ref="/root/formData/radiosele" overflow="visible" appearance="full" style="left:185px; top:5px; width:15px; height:20px; border-style:none; ">
  1069. <choices>
  1070. <item>
  1071. <label/>
  1072. <value>Y</value>
  1073. </item>
  1074. </choices>
  1075. <script type="javascript" ev:event="onclick">
  1076. <![CDATA[
  1077. if(checkbox1.value == "Y")
  1078. {
  1079. input4.disabled = false;
  1080. input5.disabled = false;
  1081. input1.disabled = true;
  1082. input6.disabled = true;
  1083. checkbox2.value = "";
  1084. }
  1085. else
  1086. {
  1087. input4.disabled = true;
  1088. input5.disabled = true;
  1089. }
  1090. ]]>
  1091. </script>
  1092. </select>
  1093. <select id="checkbox2" ref="/root/formData/radio2" overflow="visible" appearance="full" style="left:185px; top:30px; width:15px; height:20px; border-style:none; ">
  1094. <choices>
  1095. <item>
  1096. <label/>
  1097. <value>Y</value>
  1098. </item>
  1099. </choices>
  1100. <script type="javascript" ev:event="onclick">
  1101. <![CDATA[
  1102. if(checkbox2.value == "Y")
  1103. {
  1104. input1.disabled = false;
  1105. input6.disabled = false;
  1106. input4.disabled = true;
  1107. input5.disabled = true;
  1108. checkbox1.value = "";
  1109. }
  1110. else
  1111. {
  1112. input1.disabled = true;
  1113. input6.disabled = true;
  1114. }
  1115. ]]>
  1116. </script>
  1117. </select>
  1118. <caption id="caption16" class="cell" style="left:310px; top:595px; width:75px; height:20px; ">修磨备注</caption>
  1119. <input id="input7" ref="/root/formData/CopingRemark" inputtype="button" style="left:385px; top:595px; width:100px; height:20px; ">
  1120. <script type="javascript" ev:event="onclick">
  1121. <![CDATA[
  1122. // if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
  1123. datagrid4.visible = !datagrid4.visible;
  1124. for(var i=1; i <= datagrid4.rows; i++)
  1125. {
  1126. datagrid4.valueMatrix(i , 0)="N";
  1127. // datagrid4.valueMatrix(i , 2)="N";
  1128. }
  1129. model.refresh();
  1130. ]]>
  1131. </script>
  1132. </input>
  1133. <input id="input8" ref="/root/formData/SpotChecking" inputtype="button" style="left:585px; top:595px; width:100px; height:20px; ">
  1134. <script type="javascript" ev:event="onclick">
  1135. <![CDATA[
  1136. // if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
  1137. datagrid5.visible = !datagrid5.visible;
  1138. for(var i=1; i <= datagrid5.rows; i++)
  1139. {
  1140. datagrid5.valueMatrix(i , 0)="N";
  1141. // datagrid5.valueMatrix(i , 2)="N";
  1142. }
  1143. model.refresh();
  1144. ]]>
  1145. </script>
  1146. </input>
  1147. <caption id="caption17" class="cell" style="left:510px; top:595px; width:75px; height:20px; ">抽查备注</caption>
  1148. <datagrid id="datagrid4" nodeset="/root/datagrid4/CopeResult_Row" visibility="hidden" allowuserresize="false" caption="选择^修磨备注^SM_CD" colsep="^" colwidth="40, 100, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:340px; top:410px; width:175px; height:185px; ">
  1149. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  1150. <col disabled="true" ref="SM_CFNM" type="output"/>
  1151. <col ref="SM_CD" visibility="hidden"/>
  1152. <script type="javascript" ev:event="onclick">
  1153. <![CDATA[
  1154. if(datagrid4.valueMatrix(datagrid4.row , datagrid4.col) == "Y")
  1155. {
  1156. var cl = datagrid1.colRef("CHK");
  1157. //选择板坯修整方法
  1158. for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
  1159. {
  1160. if(datagrid1.valueMatrix(i , cl)=="Y")
  1161. {
  1162. if(datagrid4.valueMatrix(datagrid4.row , 0)=="Y")
  1163. {
  1164. datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) = datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) + datagrid4.valueMatrix(datagrid4.row , 1) + ",";
  1165. datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus4")) = "Y";
  1166. //datagrid1.addStatus(i , "update");//增加行状态
  1167. if(datagrid4.valueMatrix(datagrid4.row , 1) == "上表全剥已好" || datagrid4.valueMatrix(datagrid4.row , 1) == "下表全剥已好")
  1168. {
  1169. caption18.visible = true;
  1170. input9.visible = true;
  1171. }
  1172. }
  1173. if(datagrid4.valueMatrix(datagrid4.row , 0)=="N")
  1174. {
  1175. datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) = "";
  1176. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  1177. }
  1178. }//end if
  1179. }//endfor
  1180. model.refresh();
  1181. }
  1182. ]]>
  1183. </script>
  1184. </datagrid>
  1185. <datagrid id="datagrid5" nodeset="/root/datagrid5/SpotResult_Row" visibility="hidden" allowuserresize="false" caption="选择^抽查备注^SM_CD" colsep="^" colwidth="40, 114, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:585px; top:410px; width:190px; height:185px; ">
  1186. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  1187. <col disabled="true" ref="SM_CFNM" type="output"/>
  1188. <col ref="SM_CD" visibility="hidden"/>
  1189. <script type="javascript" ev:event="onclick">
  1190. <![CDATA[
  1191. if(datagrid5.valueMatrix(datagrid5.row , datagrid5.col) == "Y")
  1192. {
  1193. var cl = datagrid1.colRef("CHK");
  1194. //选择板坯修整方法
  1195. for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
  1196. {
  1197. if(datagrid1.valueMatrix(i , cl)=="Y")
  1198. {
  1199. if(datagrid5.valueMatrix(datagrid5.row , 0)=="Y")
  1200. {
  1201. datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) = datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) + datagrid5.valueMatrix(datagrid5.row , 1) + ",";
  1202. datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus4")) = "Y";
  1203. //datagrid1.addStatus(i , "update");//增加行状态
  1204. }
  1205. if(datagrid5.valueMatrix(datagrid5.row , 0)=="N")
  1206. {
  1207. datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) = " ";
  1208. }
  1209. }
  1210. }
  1211. model.refresh();
  1212. }
  1213. ]]>
  1214. </script>
  1215. </datagrid>
  1216. <button id="button1" style="left:795px; top:35px; width:50px; height:15px; ">
  1217. <caption>保存</caption>
  1218. <script type="javascript" ev:event="onclick">
  1219. <![CDATA[
  1220. save();
  1221. ]]>
  1222. </script>
  1223. </button>
  1224. <input id="input9" ref="/root/formData/qbThick" visibility="hidden" format="999999-9999999" style="left:765px; top:595px; width:55px; height:20px; "/>
  1225. <caption id="caption18" class="cell" visibility="hidden" style="left:700px; top:595px; width:65px; height:20px; ">全剥厚度</caption>
  1226. </xhtml:body>
  1227. </xhtml:html>