UIB020230.xrw 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468
  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. <formData>
  12. <Pcoil/>
  13. <smpNo/>
  14. <extshape/>
  15. <hasSmp/>
  16. <needSmp/>
  17. <needSpm/>
  18. <time/>
  19. <startTime/>
  20. <endTime/>
  21. <ROLL_MANA_NO/>
  22. <ROLL_MANA_NO1/>
  23. <ROLL_MANA_NO2/>
  24. <radiosele>Y</radiosele>
  25. <FBYN/>
  26. <ORG_ORD_NO/>
  27. <ORG_ORD_SEQ/>
  28. </formData>
  29. <datagrid1/>
  30. <datagrid2/>
  31. <datagrid3/>
  32. <initCoilData>
  33. </initCoilData>
  34. <initBug>
  35. <BugResult_VO>
  36. <BugResult_Row>
  37. <SM_CFNM/>
  38. <SM_CD/>
  39. </BugResult_Row>
  40. </BugResult_VO>
  41. <SpmResult_VO>
  42. <SpmResult_Row>
  43. <SM_CFNM/>
  44. <SM_CD/>
  45. </SpmResult_Row>
  46. </SpmResult_VO>
  47. </initBug>
  48. <guolv/>
  49. <timer/>
  50. <reflash/>
  51. <newElement/>
  52. <fwdData>
  53. <UIB020230>
  54. <URL/>
  55. <ORD_NO/>
  56. <ORD_SEQ/>
  57. </UIB020230>
  58. </fwdData>
  59. <totalData>
  60. <slabCnt/>
  61. <slabWgt/>
  62. </totalData>
  63. <EXCELHead>
  64. <CoilInfoResult_VO>
  65. <CoilInfoResult_Row>
  66. <col1>新余钢铁股份有限公司钢卷发货明细单(火车)</col1>
  67. <col2/>
  68. <col3/>
  69. <col4/>
  70. <col5/>
  71. <col6/>
  72. <col7/>
  73. <col8/>
  74. </CoilInfoResult_Row>
  75. </CoilInfoResult_VO>
  76. </EXCELHead>
  77. </root>
  78. </instance>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. if(window.parent==null) Init();
  82. ]]>
  83. </script>
  84. </model>
  85. <script type="javascript" src="../../js/boaCommon.js"/>
  86. <script type="javascript" src="../../js/b01.js"/>
  87. <script type="javascript">
  88. <![CDATA[
  89. var selectRow = 0;//保存被选择的行
  90. function Init(node)
  91. {
  92. InitParams(node);
  93. datagrid1.colStatus(0)=false; //第0列的选择不对表1是否有更新等操作产生影响
  94. input3.value = commCurDate();
  95. input6.value = commCurDate();
  96. // input1.value = commCurDate();//当前时间
  97. input4.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
  98. //input2.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
  99. //input3.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
  100. commSubmit("UIB020230-service" , "success" , "glueAction.do");
  101. model.copyNode("/root/datagrid2" , "/root/resData/BugResult_VO");//缺陷代码的初始化操作
  102. model.duplicate("/root/initBug" , "/root/resData/BugResult_VO");
  103. model.copyNode("/root/datagrid3" , "/root/resData/SpmResult_VO");//缺陷代码的初始化操作
  104. model.duplicate("/root/initBug" , "/root/resData/SpmResult_VO");
  105. model.refresh();
  106. }
  107. function excelExport() {
  108. return datagrid1;
  109. }
  110. function find()
  111. {
  112. datagrid1.rebuildStyle();
  113. document.writeIniFile("session1" , "UIB020230" , input4.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  114. //document.writeIniFile("session1" , "UIB020230" , input2.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  115. //document.writeIniFile("session1" , "UIB020230" , input3.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  116. model.removenode("/root/reqData");
  117. // model.removenode("/root/smpData");
  118. model.makeNode("/root/reqData");
  119. //按钢卷号和轧制时间进行查询
  120. if(combo5.value=="1")//若需要过滤取样钢卷
  121. {
  122. commSubmit("UIB020230-service" , "findThree" , "glueAction.do");
  123. }
  124. else if(combo5.value == "2")//尺寸或者外观未判定钢卷过滤
  125. {
  126. commSubmit("UIB020230-service" , "findTwo" , "glueAction.do");
  127. }
  128. else if(combo5.value == "3")//尺寸或者外观未判定钢卷过滤
  129. {
  130. commSubmit("UIB020230-service" , "FindFour" , "glueAction.do");
  131. }
  132. else if(input3.disabled == false && input3.value.Trim() != "")//按时间查询
  133. {
  134. var isRoll = "Trues";
  135. model.makeValue("/root/reqData/ROLLNO" , isRoll);
  136. model.makeValue("/root/reqData/ROLLNO1" , input4.value.Trim());
  137. model.makeValue("/root/reqData/ROLLNO2" , input2.value.Trim());
  138. model.makeValue("/root/reqData/isTime" , "True");
  139. model.makeValue("/root/reqData/STA_TIME",input3.value.Trim()+"000000");//开始时间
  140. model.makeValue("/root/reqData/END_TIME",input6.value.Trim()+"999999");//结束时间
  141. model.makeValue("/root/reqData/ORG_ORD_NO" , input7.value.Trim());//原合同号
  142. model.makeValue("/root/reqData/ORG_ORD_SEQ" , input8.value.Trim());//原订单号
  143. commSubmit("UIB020230-service" , "findRoll" , "glueAction.do");
  144. }
  145. else if(input4.value.Trim() != "" || input2.value.Trim() != "")//按轧辊单元查询
  146. {
  147. var isRoll = "False";
  148. if(input4.value.Trim() == "")
  149. {
  150. if(input2.value.length < 9){
  151. window.alert("钢卷号不能少于9位数!" , "提示");
  152. return;
  153. } else {
  154. isRoll = "Trues";
  155. }
  156. }
  157. model.makeValue("/root/reqData/ROLLNO" , isRoll);
  158. model.makeValue("/root/reqData/ROLLNO1" , input4.value.Trim());
  159. model.makeValue("/root/reqData/ROLLNO2" , input2.value.Trim());
  160. model.makeValue("/root/reqData/isTime" , "False");
  161. model.makeValue("/root/reqData/STA_TIME","0000");//开始时间
  162. model.makeValue("/root/reqData/END_TIME","9999");//结束时间
  163. model.makeValue("/root/reqData/ORG_ORD_NO" , input7.value.Trim());//原合同号
  164. model.makeValue("/root/reqData/ORG_ORD_SEQ" , input8.value.Trim());//原订单号
  165. commSubmit("UIB020230-service" , "findRoll" , "glueAction.do");
  166. }
  167. else
  168. {
  169. window.alert("轧辊单元号或者钢卷号不能为空!" , "提示");
  170. return;
  171. }
  172. model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
  173. model.refresh();
  174. selectRow = 0;//重新归0
  175. rowColor();
  176. exceptionReport();
  177. var slabCnt = 0;
  178. var slabWgt = 0;
  179. datagrid1.refresh();
  180. //commAppendData ("/root/gridData2/ListResult_1_VO" ,"/root/EXCELHead/ListResult_1_VO" );
  181. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++){
  182. slabCnt = slabCnt + 1;
  183. if(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"))=="")
  184. {
  185. datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"))="0";
  186. }
  187. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT")));
  188. var PLAN_WGT= parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("INSTR_COIL_WGT")));
  189. var L2_WGT = parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("L2_COIL_WEIGHT")));
  190. var XNYC = datagrid1.valueMatrix(i,datagrid1.colRef("CHQLTY"));
  191. var ZPJY = datagrid1.valueMatrix(i,datagrid1.colRef("MIXROLL"));
  192. var ZPBJ = datagrid1.valueMatrix(i,datagrid1.colRef("MIXFLAG"));
  193. if(PLAN_WGT <= L2_WGT ) {
  194. datagrid1.rowstyle(i, "data", "background-color") = "#ffff00";
  195. }
  196. if(XNYC=="不合格"){
  197. datagrid1.cellstyle("background-color", i, datagrid1.colRef("CHQLTY") ) = "#ff0000";
  198. }
  199. if(ZPBJ =="1"){
  200. datagrid1.cellstyle("background-color", i, datagrid1.colRef("MIXROLL") ) = "#00ff00";
  201. }
  202. //if(ZPJY=="MIX3.5"||ZPJY=="MIX6"||ZPJY=="MIX8"||ZPJY=="MIX10"||ZPJY=="MIX12"||ZPJY=="MIX15"||ZPJY=="MIXMAX"){
  203. //if(ZPJY!=datagrid1.valueMatrix(i-1,datagrid1.colRef("MIXROLL")))
  204. //{
  205. // datagrid1.cellstyle("background-color", i, datagrid1.colRef("MIXROLL") ) = "#00ff00";
  206. //}
  207. //}
  208. }
  209. model.setValue("/root/totalData/slabCnt",slabCnt);
  210. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  211. output1.refresh();
  212. output2.refresh();
  213. }
  214. function save()
  215. {
  216. model.removenode("/root/reqData");
  217. model.makeNode("/root/reqData");
  218. commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "procStat");
  219. var node = instance1.selectNodes("/root/reqData/CoilInfoResult_Row");
  220. var j = 0;
  221. if(node!=null)
  222. {
  223. for(var i = 1; i <= node.length; i++)
  224. {
  225. model.makeValue("/root/reqData/CoilInfoResult_Row["+i+"]/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  226. }
  227. }
  228. model.makeValue("/root/reqData/ROLLNO" , input4.value.Trim());
  229. commSubmit("UIB020230-service" , "save" , "glueAction.do");
  230. model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
  231. model.refresh();
  232. datagrid2.visible = false;//使表格2隐藏
  233. exceptionReport();
  234. datagrid1.clearStatus();
  235. }
  236. function saveyz()
  237. {
  238. model.removenode("/root/reqData");
  239. model.makeNode("/root/reqData");
  240. commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "procStat");
  241. var node = instance1.selectNodes("/root/reqData/CoilInfoResult_Row");
  242. var j = 0;
  243. if(node!=null)
  244. {
  245. for(var i = 1; i <= node.length; i++)
  246. {
  247. model.makeValue("/root/reqData/CoilInfoResult_Row["+i+"]/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  248. }
  249. }
  250. model.makeValue("/root/reqData/ROLLNO" , input4.value.Trim());
  251. commSubmit("UIB020230-service" , "saveyz" , "glueAction.do");
  252. model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
  253. model.refresh();
  254. datagrid2.visible = false;//使表格2隐藏
  255. exceptionReport();
  256. datagrid1.clearStatus();
  257. find();
  258. }
  259. function rowColor()
  260. {
  261. //若需要取样的还没有取样,则变成红色
  262. for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
  263. {
  264. if(datagrid1.valueMatrix(i , datagrid1.colRef("SMP_DIR_PIC_YN"))=="Y"
  265. && datagrid1.valueMatrix(i , datagrid1.colRef("SAMPL_PICK_YN"))!="Y")
  266. {
  267. // datagrid1.rowstyle(i, "data", "color") = "#ff0000";
  268. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//未取,要取样
  269. }
  270. if(datagrid1.valueMatrix(i , datagrid1.colRef("SMP_DIR_PIC_YN"))=="Y"
  271. && datagrid1.valueMatrix(i , datagrid1.colRef("SAMPL_PICK_YN"))=="Y")
  272. {
  273. // datagrid1.rowstyle(i, "data", "color") = "#000000";
  274. datagrid1.rowStyle(i , "data" , "color") = "#000000";//要取,已取
  275. }
  276. }
  277. //datagrid1.rebuild(); 这里不能要rebuild,会将被更改的状态清除
  278. }
  279. clockTimer = 0;
  280. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  281. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  282. if ( sExcelName == "" ) {
  283. return;
  284. }
  285. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  286. var sCSVName = sExcelName +".csv";
  287. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  288. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid의 내용을 CSV파일로 생성
  289. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  290. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  291. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  292. //Setting up EXCEL Layout.
  293. var nRows = sDGridName.rows - sDGridName.fixedRows + 1; //Keep Careful !!!
  294. var nCols = sDGridName.cols;
  295. //Header
  296. //Line 1 : Sheet Title
  297. // ObjTFExcel.rowheight( 01 ) = 30 ;
  298. // ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  299. // ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14 ;
  300. // ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  301. // ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  302. // ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  303. // ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  304. //ObjTFExcel.colwidth ( 01 ) = 100 ;
  305. //All of the range
  306. ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
  307. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  308. ObjTFExcel.setBorderColor( 01, 01, nRows, nCols, "#000000") ;
  309. ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
  310. ObjTFExcel.fontsize ( 01, 01, nRows, nCols ) = 12 ;
  311. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  312. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  313. //字体居中
  314. ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
  315. ObjTFExcel.halign ( 01, 01, nRows, 02 ) ="left" ;
  316. //Query-Results Data
  317. var iRow = 1; // iRow = HeaderLine + 1;
  318. //这里设置字体的行宽
  319. // for(var i = iRow; i <= nRows; i++ ) {
  320. // if( (i%5) == 1 ) {
  321. // ObjTFExcel.rowHeight( i ) = 60;
  322. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  323. // } else if( (i%5) == 0 ) {
  324. // ObjTFExcel.rowHeight( i ) = 45;
  325. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  326. // } else {
  327. // ObjTFExcel.rowHeight( i ) = 40;
  328. // }
  329. // }
  330. //设置列的宽度
  331. ObjTFExcel.colwidth ( 01 ) = 10 ;
  332. ObjTFExcel.colwidth ( 02 ) = 20 ;
  333. ObjTFExcel.colwidth ( 03 ) = 10 ;
  334. ObjTFExcel.colwidth ( 04 ) = 10 ;
  335. ObjTFExcel.colwidth ( 05 ) = 10 ;
  336. ObjTFExcel.colwidth ( 06 ) = 10 ;
  337. ObjTFExcel.colwidth ( 07 ) = 10 ;
  338. ObjTFExcel.colwidth ( 08 ) = 10 ;
  339. // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  340. ObjTFExcel.sheetName(1) = sExcelSheetName;
  341. ObjTFExcel.save(sExcelName); //Saving EXCEL
  342. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  343. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  344. }
  345. ]]>
  346. </script>
  347. </xhtml:head>
  348. <xhtml:body pagewidth="980" pageheight="620" guideline="2,561;">
  349. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:615px; top:5px; width:80px; height:20px; "/>
  350. <caption id="caption3" class="cell" style="left:0px; top:565px; width:100px; height:20px; ">外观判定等级</caption>
  351. <caption id="caption4" class="cell" style="left:425px; top:595px; width:100px; height:20px; ">外观缺陷代码</caption>
  352. <caption id="caption5" class="cell" style="left:215px; top:595px; width:100px; height:20px; ">平整分卷</caption>
  353. <datagrid id="datagrid1" nodeset="/root/datagrid1/CoilInfoResult_Row" caption="选择^轧辊单元^生产流水号^流水号^卷取机号^钢卷号^板坯号^预装时间^标准钢号^组批标记^组批区间^计划规格^计划规格^计划规格^实际规格^实际规格^实际规格^实际规格^订单要求^订单要求^订单要求^订单要求^性能预测^性能预测^性能预测^性能预测^性能预测^性能预测^标准号^是否封闭^封闭原因^热轧车间备注^质检备注^订单运输方式^处置意见^平整指定^平整分卷^指定人^缓冷时间^成品车间备注^垛位^交货日期^异常信息^是否取样^有无取样^外观判定等级^尺寸判定等级^外观判定^外观判定^判定厚度^判定宽度^合同^订单号^原合同号^原订单号^是否有特殊要求^厚度公差^厚度公差^厚度公差^外观缺陷代码^外观缺陷代码^外观缺陷代码^外观缺陷代码^外观缺陷代码^SPM缺陷^SPM缺陷^SPM缺陷^SPM缺陷^SPM缺陷^厚度判定标准^厚度判定标准^厚度判定标准^厚度判定标准^宽度判定标准^宽度判定标准^宽度判定标准^宽度判定标准^对称平直度^对称平直度^对称平直度^对称平直度^楔形^楔形^楔形^楔形^凸度^凸度^凸度^凸度^除鳞是否^除鳞是否^除鳞是否^除鳞是否^RT2温度^精轧出口温度^精轧出口温度^精轧出口温度^精轧出口温度^精轧出口温度^卷取温度^卷取温度^卷取温度^卷取温度^卷取温度^SAMPL_NO^进行状态^钢卷进程状态^卷曲时间^试样编号^取样位置^取样代码^外观修改标记^取样修改标记^尺寸判定修改标记|选择^轧辊单元^生产流水号^流水号^卷取机号^钢卷号^板坯号^预装时间^标准钢号^组批标记^组批区间^厚度^宽度^重量^厚度^宽度^计量重量^L2重量^最小厚度^最大厚度^最小宽度^最大宽度^是否抽样^屈服^抗拉^伸长^工艺^合格^标准号^是否封闭^封闭原因^热轧车间备注^质检备注^订单运输方式^处置意见^平整指定^平整分卷^指定人^缓冷时间^成品车间备注^垛位^交货日期^异常信息^是否取样^有无取样^外观判定等级^尺寸判定等级^判定人^判定时间^判定厚度^判定宽度^合同^订单号^原合同号^原订单号^是否有特殊要求^OS^CL^DS^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^厚度公差下限^厚度公差上限^平均^不在范围(%)^宽度公差下限^宽度公差上限^平均^不在范围(%)^平均^最大^最小^不在范围(%)^平均^最大^最小^不在范围(%)^平均^最大^最小^不在范围(%)^加热炉后^RM入口^RM出口^总道次^RT2温度^额定^平均^最大^最小^不在范围(%)^额定^平均^最大^最小^不在范围(%)^SAMPL_NO^进行状态^钢卷进程状态^卷曲时间^试样编号^取样位置^取样代码^外观修改标记^取样修改标记^尺寸判定修改标记" colsep="^" colwidth="23, 34, 21, 33, 60, 103, 100, 90, 76, 35, 77, 35, 40, 40, 46, 43, 53, 49, 50, 53, 52, 78, 64, 33, 33, 31, 36, 39, 126, 40, 100, 100, 100, 100, 100, 78, 66, 63, 40, 100, 100, 37, 35, 35, 45, 50, 44, 67, 80, 67, 100, 60, 52, 100, 100, 54, 43, 53, 25, 25, 25, 25, 25, 52, 46, 38, 38, 43, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 43, 50, 74, 55, 56, 39, 39, 44, 72, 100, 100" frozencols="4" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:55px; width:980px; height:495px; ">
  354. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  355. <col ref="ROLL_MANA_NO" type="input" style="text-align:left; "/>
  356. <col editable="false" ref="COIL_NO" type="input" visibility="hidden"/>
  357. <col ref="SEQ" style="text-align:right; "/>
  358. <col ref="DC_NO" style="text-align:left; "/>
  359. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="font-weight:bold; text-decoration:underline; text-align:left; background-color:#ffffff; cursor:hand; "/>
  360. <col editable="false" ref="SLAB_NO" type="input" style="text-align:right; background-color:#ffffff; "/>
  361. <col ref="YZCS_DTIME" type="input" style="text-align:left; "/>
  362. <col ref="SPEC_STL_GRD" type="input" style="text-align:left; "/>
  363. <col editable="false" ref="MIXFLAG" type="input" visibility="hidden"/>
  364. <col ref="MIXROLL" style="text-align:left; "/>
  365. <col editable="false" ref="INSTR_COIL_THK" type="input" style="text-align:right; background-color:#ffffff; "/>
  366. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="text-align:right; background-color:#ffffff; "/>
  367. <col editable="false" ref="INSTR_COIL_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  368. <col ref="COIL_THK" style="text-align:right; "/>
  369. <col ref="COIL_WTH" style="text-align:right; "/>
  370. <col ref="ACT_WGT" style="text-align:right; "/>
  371. <col ref="L2_COIL_WEIGHT" style="text-align:right; "/>
  372. <col ref="DEL_TOL_THK_MIN" visibility="visible" style="text-align:right; "/>
  373. <col ref="DEL_TOL_THK_MAX" visibility="visible" style="text-align:right; "/>
  374. <col ref="DEL_TOL_WTH_MIN" visibility="visible" style="text-align:right; "/>
  375. <col ref="DEL_TOL_WTH_MAX" visibility="visible" style="text-align:right; "/>
  376. <col ref="SAMPL_BKD_YN" visibility="visible" style="text-align:right; "/>
  377. <col ref="QLTY_QF" visibility="visible" style="text-align:right; "/>
  378. <col ref="QLTY_KL" visibility="visible" style="text-align:right; "/>
  379. <col ref="QLTY_YS" visibility="visible" style="text-align:right; "/>
  380. <col ref="QLTY_GY" visibility="visible" style="text-align:right; "/>
  381. <col ref="CHQLTY" visibility="visible" style="text-align:right; "/>
  382. <col editable="false" ref="SPEC_ABBSYM" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  383. <col ref="FB_YN" type="combo" visibility="visible" style="text-align:right; ">
  384. <choices>
  385. <item>
  386. <label/>
  387. <value/>
  388. </item>
  389. <item>
  390. <label>Y</label>
  391. <value>Y</value>
  392. </item>
  393. <item>
  394. <label>N</label>
  395. <value>N</value>
  396. </item>
  397. </choices>
  398. </col>
  399. <col ref="FB_REASON" type="input" style="background-color:#ffff99; "/>
  400. <col ref="CJ_REMARK" type="input" style="background-color:#ffff99; "/>
  401. <col ref="SPM_RMK" type="input" style="background-color:#ffff99; "/>
  402. <col ref="DLIV_TP" visibility="visible" style="text-align:right; "/>
  403. <col ref="DEAL_REMARK" type="input" style="background-color:#ffff99; "/>
  404. <col ref="SPM_PROG" type="combo" style="text-align:left; ">
  405. <choices>
  406. <item>
  407. <label/>
  408. <value/>
  409. </item>
  410. <item>
  411. <label>平整</label>
  412. <value>1</value>
  413. </item>
  414. <item>
  415. <label>分卷</label>
  416. <value>2</value>
  417. </item>
  418. <item>
  419. <label>平整分卷</label>
  420. <value>3</value>
  421. </item>
  422. <item>
  423. <label>重卷</label>
  424. <value>4</value>
  425. </item>
  426. <item>
  427. <label>开卷检查</label>
  428. <value>5</value>
  429. </item>
  430. <item>
  431. <label>完成</label>
  432. <value>D</value>
  433. </item>
  434. <item>
  435. <label>综合判定</label>
  436. <value>S</value>
  437. </item>
  438. </choices>
  439. </col>
  440. <col disabled="true" editable="false" ref="SPM_YN" type="combo" style="text-align:left; background-color:#ffffff; ">
  441. <choices>
  442. <item>
  443. <label>平整</label>
  444. <value>1</value>
  445. </item>
  446. <item>
  447. <label>分卷</label>
  448. <value>2</value>
  449. </item>
  450. <item>
  451. <label>平整分卷</label>
  452. <value>3</value>
  453. </item>
  454. <item>
  455. <label>重卷</label>
  456. <value>4</value>
  457. </item>
  458. <item>
  459. <label>开卷检查</label>
  460. <value>5</value>
  461. </item>
  462. </choices>
  463. </col>
  464. <col ref="SPM_EMP_ID"/>
  465. <col ref="COLDTIME"/>
  466. <col ref="CPCJ_REMARK" type="input"/>
  467. <col ref="CUR_LOAD_LOC" type="input"/>
  468. <col ref="ORD_DEVLMT_DATE" type="input"/>
  469. <col editable="false" ref="MISSNO_CLF_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
  470. <col editable="false" ref="SMP_DIR_PIC_YN" style="text-align:left; background-color:#ffffff; "/>
  471. <col editable="false" ref="SAMPL_PICK_YN" style="text-align:left; background-color:#ffffff; "/>
  472. <col disabled="true" editable="false" ref="EXTSHAPE_DEC_GRD" type="combo" style="text-align:left; background-color:#ffffff; ">
  473. <choices>
  474. <item>
  475. <label>合格</label>
  476. <value>1</value>
  477. </item>
  478. <item>
  479. <label>订单外合格</label>
  480. <value>2</value>
  481. </item>
  482. <item>
  483. <label>次品</label>
  484. <value>3</value>
  485. </item>
  486. <item>
  487. <label>废品</label>
  488. <value>4</value>
  489. </item>
  490. <item>
  491. <label>订单待判</label>
  492. <value>5</value>
  493. </item>
  494. <item>
  495. <label>工艺待判</label>
  496. <value>6</value>
  497. </item>
  498. <item>
  499. <label>缺陷待判</label>
  500. <value>7</value>
  501. </item>
  502. <item>
  503. <label>待判</label>
  504. <value/>
  505. </item>
  506. </choices>
  507. </col>
  508. <col ref="SIZE_DEC_RST" type="combo" style="text-align:left; ">
  509. <choices>
  510. <item>
  511. <label>合格</label>
  512. <value>1</value>
  513. </item>
  514. <item>
  515. <label>非计划</label>
  516. <value>2</value>
  517. </item>
  518. </choices>
  519. </col>
  520. <col ref="EXTSHAPE_DEC_EMP_ID" type="input"/>
  521. <col ref="EXTSHAPE_DEC_DTIME" type="input"/>
  522. <col ref="DCS_THK" type="input" style="text-align:right; "/>
  523. <col ref="DCS_WTH" type="input" style="text-align:right; "/>
  524. <col ref="ORD_NO" type="input" style="text-align:right; "/>
  525. <col ref="ORD_SEQ" style="text-align:right; "/>
  526. <col ref="ORG_ORD_NO" style="text-align:right; "/>
  527. <col ref="ORG_ORD_SEQ" style="text-align:right; "/>
  528. <col ref="CUST_SPEC_NO" style="text-decoration:underline; text-align:left; cursor:hand; "/>
  529. <col ref="COIL_THK_OS" visibility="hidden"/>
  530. <col ref="COIL_THK_CL" visibility="hidden"/>
  531. <col ref="COIL_THK_DS" visibility="hidden"/>
  532. <col disabled="true" ref="CRK_CD1" type="combo">
  533. <choices>
  534. <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
  535. <label ref="SM_CFNM"/>
  536. <value ref="SM_CD"/>
  537. </itemset>
  538. </choices>
  539. </col>
  540. <col disabled="true" ref="CRK_CD2" type="combo">
  541. <choices>
  542. <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
  543. <label ref="SM_CFNM"/>
  544. <value ref="SM_CD"/>
  545. </itemset>
  546. </choices>
  547. </col>
  548. <col disabled="true" ref="CRK_CD3" type="combo">
  549. <choices>
  550. <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
  551. <label ref="SM_CFNM"/>
  552. <value ref="SM_CD"/>
  553. </itemset>
  554. </choices>
  555. </col>
  556. <col disabled="true" ref="CRK_CD4" type="combo">
  557. <choices>
  558. <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
  559. <label ref="SM_CFNM"/>
  560. <value ref="SM_CD"/>
  561. </itemset>
  562. </choices>
  563. </col>
  564. <col disabled="true" ref="CRK_CD5" type="combo">
  565. <choices>
  566. <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
  567. <label ref="SM_CFNM"/>
  568. <value ref="SM_CD"/>
  569. </itemset>
  570. </choices>
  571. </col>
  572. <col disabled="true" ref="SPM_CRK_CD1" type="combo" visibility="hidden">
  573. <choices>
  574. <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
  575. <label ref="SM_CFNM"/>
  576. <value ref="SM_CD"/>
  577. </itemset>
  578. </choices>
  579. </col>
  580. <col disabled="true" ref="SPM_CRK_CD2" type="combo" visibility="hidden">
  581. <choices>
  582. <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
  583. <label ref="SM_CFNM"/>
  584. <value ref="SM_CD"/>
  585. </itemset>
  586. </choices>
  587. </col>
  588. <col disabled="true" ref="SPM_CRK_CD3" type="combo" visibility="hidden">
  589. <choices>
  590. <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
  591. <label ref="SM_CFNM"/>
  592. <value ref="SM_CD"/>
  593. </itemset>
  594. </choices>
  595. </col>
  596. <col disabled="true" ref="SPM_CRK_CD4" type="combo" visibility="hidden">
  597. <choices>
  598. <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
  599. <label ref="SM_CFNM"/>
  600. <value ref="SM_CD"/>
  601. </itemset>
  602. </choices>
  603. </col>
  604. <col disabled="true" ref="SPM_CRK_CD5" type="combo" visibility="hidden">
  605. <choices>
  606. <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
  607. <label ref="SM_CFNM"/>
  608. <value ref="SM_CD"/>
  609. </itemset>
  610. </choices>
  611. </col>
  612. <col ref="DEL_TOL_THK_MIN" style="text-align:right; "/>
  613. <col ref="DEL_TOL_THK_MAX" style="text-align:right; "/>
  614. <col ref="DEL_TOL_THK_AVG" style="text-align:right; "/>
  615. <col ref="FM_EXT_STRIP_THK_OUT_OF_LEN" style="text-align:right; "/>
  616. <col ref="DEL_TOL_WTH_MIN" style="text-align:right; "/>
  617. <col ref="DEL_TOL_WTH_MAX" style="text-align:right; "/>
  618. <col ref="DEL_TOL_WTH_AVG" style="text-align:right; "/>
  619. <col ref="FM_EXT_STRIP_WTH_OUT_OF_LEN" style="text-align:right; "/>
  620. <col ref="FM_SYM_STRIP_FLATNESS_AVG" style="text-align:right; "/>
  621. <col ref="FM_SYM_STRIP_FLATNESS_MAX" style="text-align:right; "/>
  622. <col ref="FM_SYM_STRIP_FLATNESS_MIN" style="text-align:right; "/>
  623. <col ref="FM_SYM_STRIP_OUT_OF_RANGE" style="text-align:right; "/>
  624. <col ref="FM_STRIP_WDG_AVG" style="text-align:right; "/>
  625. <col ref="FM_STRIP_WDG_MAX" style="text-align:right; "/>
  626. <col ref="FM_STRIP_WDG_MIN" style="text-align:right; "/>
  627. <col ref="FM_STRIP_WDG_OUT_OF_RANGE" style="text-align:right; "/>
  628. <col ref="FM_EXT_STRIP_CROWN_AVG" style="left:3075px; top:41px; width:100px; height:21px; text-align:right; "/>
  629. <col ref="FM_EXT_STRIP_CROWN_MAX" style="text-align:right; "/>
  630. <col ref="FM_EXT_STRIP_CROWN_MIN" style="text-align:right; "/>
  631. <col ref="FM_EXT_STRIP_CROWN_OUT_OF_LEN" style="text-align:right; "/>
  632. <col ref="RHF_DESCAL_YN" style="text-align:right; "/>
  633. <col ref="RM_ENT_DESCAL_YN" style="text-align:right; "/>
  634. <col ref="RM_EXT_DESCAL_YN" style="text-align:right; "/>
  635. <col ref="ZONG_DESCAL_YN" style="text-align:right; "/>
  636. <col ref="R2_EXT_TEMP" style="text-align:right; "/>
  637. <col ref="FM_EXT_STRIP_TEMP" style="text-align:right; "/>
  638. <col ref="FM_EXT_STRIP_TEMP_AVG" style="text-align:right; "/>
  639. <col ref="FM_EXT_STRIP_TEMP_MAX" style="text-align:right; "/>
  640. <col ref="FM_EXT_STRIP_TEMP_MIN" style="text-align:right; "/>
  641. <col ref="STRIP_OUT_OF_RANGE" style="text-align:right; "/>
  642. <col ref="DC_TEMP" style="text-align:right; "/>
  643. <col ref="DC_TEMP_AVG" style="text-align:right; "/>
  644. <col ref="DC_TEMP_MAX" style="text-align:right; "/>
  645. <col ref="DC_TEMP_MIN" style="text-align:right; "/>
  646. <col ref="DC_TEMP_OUT_OF_RANGE" style="text-align:right; "/>
  647. <col ref="SAMPL_NO" visibility="hidden"/>
  648. <col disabled="true" ref="COIL_STAT" type="combo" visibility="visible" style="text-align:left; ">
  649. <choices>
  650. <item>
  651. <label>上料</label>
  652. <value>0</value>
  653. </item>
  654. <item>
  655. <label>出炉</label>
  656. <value>1</value>
  657. </item>
  658. <item>
  659. <label>轧制完成</label>
  660. <value>2</value>
  661. </item>
  662. <item>
  663. <label>废弃/出库</label>
  664. <value>3</value>
  665. </item>
  666. </choices>
  667. </col>
  668. <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
  669. <choices>
  670. <item>
  671. <label>综合判定待机</label>
  672. <value>SED</value>
  673. </item>
  674. <item>
  675. <label>充当待机</label>
  676. <value>SRC</value>
  677. </item>
  678. <item>
  679. <label>发货待机</label>
  680. <value>SFA</value>
  681. </item>
  682. <item>
  683. <label>运送待机</label>
  684. <value>SFB</value>
  685. </item>
  686. <item>
  687. <label>运送完成</label>
  688. <value>SFF</value>
  689. </item>
  690. <item>
  691. <label>钢卷入库待机</label>
  692. <value>SDB</value>
  693. </item>
  694. <item>
  695. <label>钢卷包装待机</label>
  696. <value>SBB</value>
  697. </item>
  698. <item>
  699. <label>平整指示待机</label>
  700. <value>SPA</value>
  701. </item>
  702. <item>
  703. <label>平整作业待机</label>
  704. <value>SPB</value>
  705. </item>
  706. </choices>
  707. </col>
  708. <col ref="COIL_END_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  709. <col disabled="false" ref="SMP_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  710. <col ref="SMP_CUT_LOC" style="text-align:left; "/>
  711. <col ref="SAMPLING_CODE" visibility="hidden" style="text-align:left; "/>
  712. <col ref="EXT_FLAG" visibility="hidden" style="text-align:left; "/>
  713. <col ref="SMP_FLAG" visibility="hidden" style="text-align:v; "/>
  714. <col ref="SIZE_FLAG" visibility="hidden" style="text-align:left; "/>
  715. <script type="javascript" ev:event="onclick">
  716. <![CDATA[
  717. if(datagrid1.col==datagrid1.colRef("CHK"))//如果点击的是第一行才能做查询
  718. {
  719. // model.removenode("/root/smpData");
  720. datagrid4.visible = "false";
  721. //每次表格1有列被选中的时候,首先将表格2中被选中的项取消选择
  722. for(var i=datagrid2.fixedRows; i <= datagrid2.rows; i++)
  723. {
  724. datagrid2.valueMatrix(i , 1)="N";
  725. }
  726. model.refresh();
  727. if(datagrid1.valueMatrix(datagrid1.row , 0)=="Y")
  728. {
  729. var smpYn = datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SMP_DIR_PIC_YN"));//是否需要取样
  730. //只有当允许取样时候,才能进行取样操作,否则不允许进行取样
  731. if(smpYn != "Y")
  732. {
  733. // combo3.disabled = true;
  734. }
  735. else
  736. {
  737. // combo3.disabled = false;
  738. }
  739. selectRow=datagrid1.row ;//20230221
  740. model.refresh();
  741. }
  742. }
  743. if(datagrid1.col==datagrid1.colRef("OLD_SAMPL_NO"))
  744. {
  745. model.removenode("/root/cao");
  746. model.makeValue("/root/cao/SMPNO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SMP_NO")));
  747. window.load("./_020223SMP.xrw", "modal", "modalWin", "left:400; top:40; width:450px; height:400px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/cao" , "/root/cao");
  748. }
  749. //链接到品质设计结果查询界面
  750. if(datagrid1.colRef("CUST_SPEC_NO") == datagrid1.col)
  751. {
  752. model.setValue("/root/fwdData/UIB020230/ORD_NO", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_NO")));
  753. model.setValue("/root/fwdData/UIB020230/ORD_SEQ", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_SEQ")));
  754. model.setValue("/root/fwdData/UIB020230/URL", "./../../B/B01/UIB015020.xrw");
  755. var java = window.parent.javaScript;
  756. java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB020230"));
  757. }
  758. ]]>
  759. </script>
  760. <script type="javascript" ev:event="xforms-value-changed">
  761. <![CDATA[
  762. if(datagrid1.col == 0)
  763. {
  764. selectRow = datagrid1.row;//保存被选择的行
  765. }
  766. if(datagrid1.colRef("SIZE_DEC_RST") == datagrid1.col)
  767. {
  768. datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SIZE_FLAG")) = "Y";
  769. //alert("sdasd");
  770. }
  771. if(datagrid1.colRef("SPM_PROG") == datagrid1.col)
  772. {
  773. var spmprog=datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CUR_PROG_CD")) ;
  774. if(spmprog=="SPA" ||spmprog=="SED")
  775. {
  776. if(commComfirmBox("确定进行平整指定或取消操作?","提示")=="0") return;
  777. model.removenode("/root/reqData");
  778. model.makeValue("/root/reqData/COIL_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("COIL_NO")) );
  779. model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  780. model.makeValue("/root/reqData/SMP_TP" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_PROG")) );
  781. model.makeValue("/root/reqData/SPM_RMK" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_RMK")) );
  782. model.makeValue("/root/reqData/procStat", "");
  783. commSubmit("UIB020230-service" , "smpPick" , "glueAction.do");
  784. //datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_YN")) = combo2.value;
  785. }
  786. else
  787. {
  788. window.alert("只允许指定判定与指示待机钢卷,请检查物料状态!" , "警告");
  789. return;
  790. }
  791. }
  792. ]]>
  793. </script>
  794. <script type="javascript" ev:event="ondblclick">
  795. <![CDATA[
  796. /* if(datagrid1.rows < 2) return;
  797. //若双击外观缺陷某行,则该缺陷被清掉
  798. if(datagrid1.col >= datagrid1.colRef("CRK_CD1") && datagrid1.col <= datagrid1.colRef("CRK_CD5"))
  799. {
  800. datagrid1.valueMatrix(datagrid1.row , datagrid1.col) = "";
  801. datagrid1.addStatus(datagrid1.row , "update");
  802. }
  803. datagrid1.refresh();
  804. */
  805. ]]>
  806. </script>
  807. <script type="javascript" ev:event="onentercell">
  808. <![CDATA[
  809. var thk = datagrid1.colRef("DCS_THK");
  810. var wth = datagrid1.colRef("DCS_WTH");
  811. if( datagrid1.col >= thk && datagrid1.col <= wth)
  812. {
  813. datagrid1.editCell();
  814. }
  815. ]]>
  816. </script>
  817. <script type="javascript" ev:event="onkeydown">
  818. <![CDATA[
  819. //判定厚度,判定宽度
  820. if(event.keyCode==13)
  821. {
  822. var curRow = 0;
  823. var curCol = 0;
  824. datagrid1.row++;
  825. curRow = datagrid1.row;
  826. curCol = datagrid1.col;
  827. if(curCol >=datagrid1.colRef("DCS_THK") && curCol <= datagrid1.colRef("DCS_WTH"))
  828. {
  829. if(curRow > datagrid1.fixedRows)
  830. {
  831. model.setFocus("");
  832. // alert("上一行:"+datagrid1.valueMatrix(curRow-1 , curCol) + "当前行:"+datagrid1.valueMatrix(curRow , curCol));
  833. datagrid1.valueMatrix(curRow , curCol) = datagrid1.valueMatrix(curRow-1 , curCol);
  834. datagrid1.addStatus(curRow , "update");
  835. }
  836. }
  837. }
  838. ]]>
  839. </script>
  840. </datagrid>
  841. <caption id="caption9" class="cell" style="left:0px; top:595px; width:100px; height:20px; ">试片有无取样</caption>
  842. <select1 id="combo1" ref="/root/formData/extshape" appearance="minimal" style="left:100px; top:565px; width:100px; height:20px; ">
  843. <choices>
  844. <item>
  845. <label>待判</label>
  846. <value/>
  847. </item>
  848. <item>
  849. <label>合格</label>
  850. <value>1</value>
  851. </item>
  852. <item>
  853. <label>订单外合格</label>
  854. <value>2</value>
  855. </item>
  856. <item>
  857. <label>次品</label>
  858. <value>3</value>
  859. </item>
  860. <item>
  861. <label>废品</label>
  862. <value>4</value>
  863. </item>
  864. <item>
  865. <label>订单待判</label>
  866. <value>5</value>
  867. </item>
  868. <item>
  869. <label>工艺待判</label>
  870. <value>6</value>
  871. </item>
  872. <item>
  873. <label>缺陷待判</label>
  874. <value>7</value>
  875. </item>
  876. </choices>
  877. <script type="javascript" ev:event="xforms-value-changed">
  878. <![CDATA[
  879. //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
  880. if(selectRow < datagrid1.fixedRows) return;
  881. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXTSHAPE_DEC_GRD")) = combo1.value;
  882. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
  883. datagrid1.addStatus(selectRow , "update");
  884. model.refresh();
  885. ]]>
  886. </script>
  887. <script type="javascript" ev:event="xforms-select">
  888. <![CDATA[
  889. //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
  890. if(selectRow < datagrid1.fixedRows) return;
  891. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXTSHAPE_DEC_GRD")) = combo1.value;
  892. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
  893. datagrid1.addStatus(selectRow , "update");
  894. model.refresh();
  895. ]]>
  896. </script>
  897. </select1>
  898. <input id="input5" inputtype="button" style="left:525px; top:595px; width:100px; height:20px; ">
  899. <script type="javascript" ev:event="onclick">
  900. <![CDATA[
  901. datagrid2.visible = !datagrid2.visible;
  902. for(var i=datagrid2.fixedRows; i <= datagrid2.rows; i++)
  903. {
  904. datagrid2.valueMatrix(i , 1)="N";
  905. }
  906. model.refresh();
  907. ]]>
  908. </script>
  909. </input>
  910. <select1 id="combo2" ref="/root/formData/needSpm" appearance="minimal" style="left:310px; top:595px; width:100px; height:20px; ">
  911. <choices>
  912. <item>
  913. <label/>
  914. <value/>
  915. </item>
  916. <item>
  917. <label>平整</label>
  918. <value>1</value>
  919. </item>
  920. <item>
  921. <label>分卷</label>
  922. <value>2</value>
  923. </item>
  924. <item>
  925. <label>平整分卷</label>
  926. <value>3</value>
  927. </item>
  928. <item>
  929. <label>重卷</label>
  930. <value>4</value>
  931. </item>
  932. <item>
  933. <label>开卷检查</label>
  934. <value>5</value>
  935. </item>
  936. <item>
  937. <label>完成</label>
  938. <value>D</value>
  939. </item>
  940. </choices>
  941. <script type="javascript" ev:event="xforms-value-changed">
  942. <![CDATA[
  943. ]]>
  944. </script>
  945. <hint>
  946. <![CDATA[1表示有平整分卷要求]]>
  947. </hint>
  948. <script type="javascript" ev:event="xforms-select">
  949. <![CDATA[
  950. if(commComfirmBox("确定进行平整分卷操作?","提示")=="0") return;
  951. if(combo2.value == "") return;
  952. //当选择某外观判定等级的时候,将值自动存入表1的"SPM作业"中
  953. datagrid1.valueMatrix(selectRow , datagrid1.colRef("SPM_YN")) = combo2.label;
  954. // datagrid1.addStatus(selectRow , "update");
  955. // model.refresh();
  956. model.removenode("/root/reqData");
  957. model.makeValue("/root/reqData/COIL_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("COIL_NO")) );
  958. model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  959. model.makeValue("/root/reqData/SMP_TP" , combo2.value);
  960. model.makeValue("/root/reqData/SPM_RMK" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_RMK")) );
  961. model.makeValue("/root/reqData/procStat", "");
  962. commSubmit("UIB020230-service" , "smpPick" , "glueAction.do");
  963. datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_YN")) = combo2.value;
  964. //combo2.select(0);
  965. ]]>
  966. </script>
  967. </select1>
  968. <datagrid id="datagrid2" nodeset="/root/datagrid2/BugResult_Row" visibility="hidden" caption="缺陷代码^选择^LG_CD" colsep="^" colwidth="135, 40, 30" defaultrows="40" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:495px; top:145px; width:195px; height:451px; ">
  969. <col ref="SM_CFNM"/>
  970. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  971. <col ref="SM_CD" visibility="hidden"/>
  972. <script type="javascript" ev:event="xforms-value-changed">
  973. <![CDATA[
  974. //选择某缺陷代码后,存入表1中,取消某缺陷代码时,相应的取消表1中对应的缺陷代码
  975. for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
  976. {
  977. //为“Y”时进行赋值
  978. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
  979. {
  980. if(datagrid2.valueMatrix(datagrid2.row , 1)=="Y")
  981. {
  982. for(var x=1; x <= 5; x++)//有1到5,共5种缺陷
  983. {
  984. if(datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))=="")//从缺陷1开始,有空值得地方进行存放选中的缺陷值
  985. {
  986. datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))=datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("SM_CD"));
  987. datagrid1.addStatus(i , "update");//存放值后需改变该行的状态,便于保存操作
  988. break;
  989. }
  990. }
  991. }
  992. //为“N”时取消对应的赋值
  993. if(datagrid2.valueMatrix(datagrid2.row , 1)=="N")
  994. {
  995. for(var x= 1; x<=5; x++)
  996. {
  997. if(datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))==datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("SM_CD")))
  998. {
  999. datagrid1.valueMatrix(i ,datagrid1.colRef("CRK_CD"+x))="";
  1000. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  1001. break;
  1002. }
  1003. }
  1004. }
  1005. }
  1006. }
  1007. ]]>
  1008. </script>
  1009. </datagrid>
  1010. <select1 id="combo3" ref="/root/formData/needSmp" appearance="minimal" style="left:100px; top:595px; width:100px; height:20px; ">
  1011. <choices>
  1012. <item>
  1013. <label/>
  1014. <value/>
  1015. </item>
  1016. <item>
  1017. <label>Y</label>
  1018. <value>Y</value>
  1019. </item>
  1020. <item>
  1021. <label>人工抽样</label>
  1022. <value>R</value>
  1023. </item>
  1024. </choices>
  1025. <script type="javascript" ev:event="xforms-value-changed">
  1026. <![CDATA[
  1027. model.refresh();
  1028. if(combo3.value != "")
  1029. {
  1030. if(datagrid1.valueMatrix(selectRow , datagrid1.colRef("DCS_THK"))== "" )
  1031. {
  1032. window.alert("请输入判定规格!" , "警告");
  1033. combo3.select(0);
  1034. return;
  1035. }
  1036. if(datagrid1.valueMatrix(selectRow , datagrid1.colRef("DCS_THK")) != datagrid1.valueMatrix(selectRow , datagrid1.colRef("INSTR_COIL_THK")) )
  1037. {
  1038. window.alert("判定规格与计划规格不符,请执行取样变更操作!" , "警告");
  1039. combo3.select(0);
  1040. return;
  1041. }
  1042. var coilStatCol = datagrid1.colRef("COIL_STAT");
  1043. var picYnCol = datagrid1.colRef("SMP_DIR_PIC_YN");
  1044. if(datagrid1.valueMatrix(selectRow , picYnCol)=="Y" )
  1045. {
  1046. //当“试片有无取样”进行选择后,选择的值反应到表1中
  1047. datagrid1.valueMatrix(selectRow , datagrid1.colRef("SAMPL_PICK_YN")) = combo3.value;
  1048. datagrid1.valueMatrix(selectRow , datagrid1.colRef("SMP_FLAG")) = "Y";//说明已取样
  1049. datagrid1.addStatus(selectRow , "update");
  1050. // model.refresh();
  1051. rowColor();
  1052. combo3.select(0);
  1053. }
  1054. }
  1055. ]]>
  1056. </script>
  1057. </select1>
  1058. <line id="line1" style="x1:0px; y1:50px; x2:980px; y2:50px; "/>
  1059. <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  1060. <caption id="caption11" class="cell" style="left:640px; top:595px; width:335px; height:20px; ">“异常信息”说明:S表示板坯需再回加热炉,C表示板坯轧坏</caption>
  1061. <button id="button99" visibility="hidden" style="left:20px; top:60px; width:60px; height:20px; ">
  1062. <caption>FIND</caption>
  1063. <script type="javascript" ev:event="DOMActivate">
  1064. <![CDATA[
  1065. find();
  1066. ]]>
  1067. </script>
  1068. </button>
  1069. <select id="checkbox2" ref="/root/reflash" visibility="hidden" overflow="visible" appearance="full" style="left:815px; top:5px; width:75px; height:20px; border-style:none; ">
  1070. <choices>
  1071. <item>
  1072. <label>自动刷新</label>
  1073. <value>Y</value>
  1074. </item>
  1075. </choices>
  1076. <script type="javascript" ev:event="onclick">
  1077. <![CDATA[
  1078. if(checkbox2.value=="Y" && combo4.value != "0")
  1079. {
  1080. clockTimer = window.setInterval("find()", combo4.value);
  1081. }
  1082. if(checkbox2.value=="")
  1083. {
  1084. window.clearInterval(clockTimer);
  1085. }
  1086. ]]>
  1087. </script>
  1088. </select>
  1089. <select1 id="combo4" ref="/root/timer" visibility="hidden" appearance="minimal" style="left:855px; top:5px; width:95px; height:20px; ">
  1090. <choices>
  1091. <item>
  1092. <label/>
  1093. <value>0</value>
  1094. </item>
  1095. <item>
  1096. <label>30S</label>
  1097. <value>30000</value>
  1098. </item>
  1099. <item>
  1100. <label>1Min</label>
  1101. <value>60000</value>
  1102. </item>
  1103. <item>
  1104. <label>2Min</label>
  1105. <value>120000</value>
  1106. </item>
  1107. <item>
  1108. <label>5Min</label>
  1109. <value>300000</value>
  1110. </item>
  1111. </choices>
  1112. </select1>
  1113. <caption id="caption1" class="cell" style="left:5px; top:30px; width:55px; height:20px; ">钢卷号</caption>
  1114. <input id="input4" ref="/root/formData/ROLL_MANA_NO" style="left:60px; top:5px; width:105px; height:20px; ">
  1115. <script type="javascript" ev:event="onkeydown">
  1116. <![CDATA[
  1117. if(event.keyCode==13)
  1118. {
  1119. model.setFocus("");
  1120. // model.setFocus("input1");
  1121. find();
  1122. }
  1123. ]]>
  1124. </script>
  1125. </input>
  1126. <button id="button3" visibility="visible" style="left:215px; top:565px; width:135px; height:20px; background-color:#00ff00; border-style:solid; ">
  1127. <caption>取样钢卷(规格)变更</caption>
  1128. <script type="javascript" ev:event="DOMActivate">
  1129. <![CDATA[
  1130. datagrid4.visible = !datagrid4.visible;
  1131. var dirYn = datagrid1.colRef("SMP_DIR_PIC_YN");//是否取样的列
  1132. var picYn = datagrid1.colRef("SAMPL_PICK_YN");//有无取样
  1133. model.removenode("/root/smpThk");
  1134. model.refresh();
  1135. var smpCol = datagrid1.colRef("SMP_NO");//试样号对应列
  1136. var smpVal = datagrid1.valueMatrix(selectRow , smpCol);//样片号
  1137. var coilCol = datagrid1.colRef("COIL_NO");
  1138. var oldColl = datagrid1.colRef("OLD_SAMPL_NO");
  1139. var newThk = datagrid1.colRef("DCS_THK");
  1140. var oldThk = datagrid1.colRef("INSTR_COIL_THK");
  1141. var count = 1;
  1142. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  1143. {
  1144. if(smpVal == datagrid1.valueMatrix(i , smpCol))
  1145. {
  1146. model.makeValue("/root/smpThk/thk["+count+"]/COIL" , datagrid1.valueMatrix(i , coilCol));
  1147. model.makeValue("/root/smpThk/thk["+count+"]/OLD_COIL", datagrid1.valueMatrix(i , oldColl));
  1148. model.makeValue("/root/smpThk/thk["+count+"]/COILTHK" , datagrid1.valueMatrix(i , newThk));
  1149. count++;
  1150. }
  1151. }
  1152. model.refresh();
  1153. ]]>
  1154. </script>
  1155. </button>
  1156. <datagrid id="datagrid4" nodeset="/root/smpThk/thk" visibility="hidden" caption="流水号^钢卷号^实际规格^选择" colsep="^" colwidth="19, 84, 62, 48" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:395px; width:230px; height:170px; ">
  1157. <col ref="COIL" visibility="hidden"/>
  1158. <col ref="OLD_COIL"/>
  1159. <col ref="COILTHK"/>
  1160. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  1161. <script type="javascript" ev:event="onclick">
  1162. <![CDATA[
  1163. var chk = datagrid4.colRef("CHK");
  1164. if(datagrid4.valueMatrix(datagrid4.row , chk)=="Y" && datagrid4.row >0)
  1165. {
  1166. if(commComfirmBox("更改取样钢卷规格或造成钢卷材质检验项目的更改,若需更改材质检验项目请在更改规格后做钢卷改判。确定更改?","提示")=="0") return;
  1167. if(datagrid4.valueMatrix(datagrid4.row , datagrid4.colRef("COILTHK")) == "")
  1168. {
  1169. window.alert("实际规格不允许为空,取样变更失败!" , "警告");
  1170. return;
  1171. }
  1172. save();
  1173. model.removenode("/root/reqData");
  1174. model.makeValue("/root/reqData/XX" , "UIB020230");
  1175. model.makeValue("/root/reqData/COIL" , datagrid4.valueMatrix(datagrid4.row , 0));
  1176. // alert(datagrid3.valueMatrix(datagrid3.row , 0));
  1177. commSubmit("UIB020230-service" , "midifyCoil" , "glueAction.do");
  1178. find();
  1179. }
  1180. ]]>
  1181. </script>
  1182. </datagrid>
  1183. <select1 id="combo5" ref="/root/guolv" appearance="minimal" style="left:240px; top:5px; width:100px; height:20px; ">
  1184. <choices>
  1185. <item>
  1186. <label>--------------</label>
  1187. <value/>
  1188. </item>
  1189. <item>
  1190. <label>未取样</label>
  1191. <value>1</value>
  1192. </item>
  1193. <item>
  1194. <label>尺寸或外观未判定</label>
  1195. <value>2</value>
  1196. </item>
  1197. <item>
  1198. <label>平整未完成</label>
  1199. <value>3</value>
  1200. </item>
  1201. </choices>
  1202. </select1>
  1203. <caption id="caption10" class="cell" style="left:185px; top:5px; width:55px; height:20px; ">过滤</caption>
  1204. <caption id="caption2" class="cell" visibility="hidden" style="left:640px; top:595px; width:100px; height:20px; ">SMP缺陷</caption>
  1205. <datagrid id="datagrid3" nodeset="/root/datagrid3/SpmResult_Row" visibility="hidden" caption="缺陷代码^选择^LG_CD" colsep="^" colwidth="80, 40, 30" defaultrows="40" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:700px; top:145px; width:140px; height:451px; ">
  1206. <col ref="SM_CFNM"/>
  1207. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  1208. <col ref="SM_CD" visibility="hidden"/>
  1209. <script type="javascript" ev:event="xforms-value-changed">
  1210. <![CDATA[
  1211. //选择某缺陷代码后,存入表1中,取消某缺陷代码时,相应的取消表1中对应的缺陷代码
  1212. for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
  1213. {
  1214. //为“Y”时进行赋值
  1215. if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
  1216. {
  1217. if(datagrid3.valueMatrix(datagrid3.row , 1)=="Y")
  1218. {
  1219. for(var x=1; x <= 5; x++)//有1到5,共5种缺陷
  1220. {
  1221. if(datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))=="")//从缺陷1开始,有空值得地方进行存放选中的缺陷值
  1222. {
  1223. datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))=datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("SM_CD"));
  1224. datagrid1.addStatus(i , "update");//存放值后需改变该行的状态,便于保存操作
  1225. break;
  1226. }
  1227. }
  1228. }
  1229. //为“N”时取消对应的赋值
  1230. if(datagrid3.valueMatrix(datagrid3.row , 1)=="N")
  1231. {
  1232. for(var x= 1; x<=5; x++)
  1233. {
  1234. if(datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))==datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("SM_CD")))
  1235. {
  1236. datagrid1.valueMatrix(i ,datagrid1.colRef("SPM_CRK_CD"+x))="";
  1237. //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
  1238. break;
  1239. }
  1240. }
  1241. }
  1242. }
  1243. }
  1244. ]]>
  1245. </script>
  1246. </datagrid>
  1247. <input id="input1" visibility="hidden" inputtype="button" style="left:740px; top:595px; width:100px; height:20px; ">
  1248. <script type="javascript" ev:event="onclick">
  1249. <![CDATA[
  1250. datagrid3.visible = !datagrid3.visible;
  1251. for(var i=datagrid3.fixedRows; i <= datagrid3.rows; i++)
  1252. {
  1253. datagrid3.valueMatrix(i , 1)="N";
  1254. }
  1255. model.refresh();
  1256. ]]>
  1257. </script>
  1258. </input>
  1259. <button id="button2" visibility="hidden" style="left:910px; top:5px; width:70px; height:20px; ">
  1260. <caption>导出EXCEL</caption>
  1261. <script type="javascript" ev:event="DOMActivate">
  1262. <![CDATA[
  1263. // find();
  1264. saveExcelScript(datagrid1, "Sheet1");
  1265. ]]>
  1266. </script>
  1267. </button>
  1268. <input id="input2" ref="/root/formData/ROLL_MANA_NO1" style="left:60px; top:30px; width:105px; height:20px; "/>
  1269. <caption id="caption7" class="cell" style="left:5px; top:5px; width:55px; height:20px; ">轧辊单元</caption>
  1270. <select id="checkbox1" ref="/root/formData/radiosele" overflow="visible" appearance="full" style="left:170px; top:30px; width:15px; height:20px; border-style:none; ">
  1271. <choices>
  1272. <item>
  1273. <label/>
  1274. <value>Y</value>
  1275. </item>
  1276. </choices>
  1277. <script type="javascript" ev:event="onclick">
  1278. <![CDATA[
  1279. if(checkbox1.value == "Y")
  1280. {
  1281. input3.disabled = false;
  1282. input6.disabled = false;
  1283. }
  1284. else
  1285. {
  1286. input3.disabled = true;
  1287. input6.disabled = true;
  1288. }
  1289. ]]>
  1290. </script>
  1291. </select>
  1292. <caption id="caption6" class="cell" style="left:185px; top:30px; width:70px; height:20px; ">卷曲时间</caption>
  1293. <caption id="caption8" style="left:340px; top:30px; width:20px; height:20px; ">~</caption>
  1294. <input id="input3" ref="/root/formData/startTime" inputtype="date" style="left:255px; top:30px; width:85px; height:20px; "/>
  1295. <input id="input6" ref="/root/formData/endTime" inputtype="date" style="left:350px; top:30px; width:85px; height:20px; "/>
  1296. <caption id="caption13" style="left:815px; top:31px; width:20px; height:20px; font-weight:bold; ">块</caption>
  1297. <caption id="caption14" style="left:930px; top:30px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  1298. <line id="line3" style="x1:740px; y1:50px; x2:800px; y2:50px; "/>
  1299. <caption id="caption16" class="cell" style="left:690px; top:30px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  1300. <line id="line4" style="x1:850px; y1:50px; x2:930px; y2:50px; "/>
  1301. <caption id="caption15" class="cell" style="left:805px; top:30px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  1302. <output id="output1" ref="/root/totalData/slabCnt" style="left:750px; top:30px; width:40px; height:20px; text-align:center; "/>
  1303. <output id="output2" ref="/root/totalData/slabWgt" style="left:865px; top:30px; width:65px; height:20px; text-align:center; "/>
  1304. <button id="button1" visibility="hidden" style="left:595px; top:30px; width:40px; height:15px; ">
  1305. <caption>button1</caption>
  1306. <script type="javascript" ev:event="onclick">
  1307. <![CDATA[
  1308. find();
  1309. ]]>
  1310. </script>
  1311. </button>
  1312. <shape id="rectangle10" appearance="rectangle" style="left:463px; top:30px; width:10px; height:20px; background-color:#ffff00; "/>
  1313. <caption id="caption20" style="left:475px; top:30px; width:122px; height:20px; vertical-align:middle; ">L2重大于计划规格重</caption>
  1314. <select1 id="combo6" ref="/root/formData/FBYN" visibility="hidden" appearance="minimal" style="left:430px; top:565px; width:50px; height:20px; ">
  1315. <choices>
  1316. <item>
  1317. <label>N</label>
  1318. <value>N</value>
  1319. </item>
  1320. <item>
  1321. <label>Y</label>
  1322. <value>Y</value>
  1323. </item>
  1324. </choices>
  1325. <script type="javascript" ev:event="xforms-value-changed">
  1326. <![CDATA[
  1327. //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
  1328. if(selectRow < datagrid1.fixedRows) return;
  1329. datagrid1.valueMatrix(selectRow , datagrid1.colRef("FB_YN")) = combo6.value;
  1330. // datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
  1331. datagrid1.addStatus(selectRow , "update");
  1332. model.refresh();
  1333. ]]>
  1334. </script>
  1335. </select1>
  1336. <button id="button4" visibility="hidden" style="left:635px; top:30px; width:50px; height:15px; ">
  1337. <caption>button1</caption>
  1338. <script type="javascript" ev:event="onclick">
  1339. <![CDATA[
  1340. saveyz();
  1341. ]]>
  1342. </script>
  1343. </button>
  1344. <caption id="caption17" class="cell" visibility="hidden" style="left:360px; top:565px; width:70px; height:20px; ">是否封闭</caption>
  1345. <caption id="caption18" class="cell" style="left:350px; top:5px; width:55px; height:20px; ">原合同号</caption>
  1346. <caption id="caption19" class="cell" style="left:510px; top:5px; width:55px; height:20px; ">原订单号</caption>
  1347. <input id="input7" ref="/root/formData/ORG_ORD_NO" style="left:405px; top:5px; width:105px; height:20px; ">
  1348. <script type="javascript" ev:event="onkeydown">
  1349. <![CDATA[
  1350. if(event.keyCode==13)
  1351. {
  1352. model.setFocus("");
  1353. // model.setFocus("input1");
  1354. find();
  1355. }
  1356. ]]>
  1357. </script>
  1358. </input>
  1359. <input id="input8" ref="/root/formData/ORG_ORD_SEQ" style="left:565px; top:5px; width:45px; height:20px; ">
  1360. <script type="javascript" ev:event="onkeydown">
  1361. <![CDATA[
  1362. if(event.keyCode==13)
  1363. {
  1364. model.setFocus("");
  1365. // model.setFocus("input1");
  1366. find();
  1367. }
  1368. ]]>
  1369. </script>
  1370. </input>
  1371. <button id="button5" visibility="visible" style="left:700px; top:5px; width:50px; height:20px; color:transparent; background-color:#99cc00; ">
  1372. <caption>预装</caption>
  1373. <script type="javascript" ev:event="onclick">
  1374. <![CDATA[
  1375. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "YZ";
  1376. datagrid1.addStatus(selectRow , "update");
  1377. model.refresh();
  1378. saveyz();
  1379. ]]>
  1380. </script>
  1381. </button>
  1382. <button id="button6" visibility="visible" style="left:760px; top:5px; width:50px; height:20px; color:transparent; background-color:#99cc00; ">
  1383. <caption>预装取消</caption>
  1384. <script type="javascript" ev:event="onclick">
  1385. <![CDATA[
  1386. datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "YZCX";
  1387. datagrid1.addStatus(selectRow , "update");
  1388. model.refresh();
  1389. saveyz();
  1390. ]]>
  1391. </script>
  1392. </button>
  1393. </xhtml:body>
  1394. </xhtml:html>