| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[品质判定>>材质判定>>试样采集与外观实绩录入]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <Pcoil/>
- <smpNo/>
- <extshape/>
- <hasSmp/>
- <needSmp/>
- <needSpm/>
- <time/>
- <startTime/>
- <endTime/>
- <ROLL_MANA_NO/>
- <ROLL_MANA_NO1/>
- <ROLL_MANA_NO2/>
- <radiosele>Y</radiosele>
- <FBYN/>
- <ORG_ORD_NO/>
- <ORG_ORD_SEQ/>
- </formData>
- <datagrid1/>
- <datagrid2/>
- <datagrid3/>
- <initCoilData>
- </initCoilData>
- <initBug>
- <BugResult_VO>
- <BugResult_Row>
- <SM_CFNM/>
- <SM_CD/>
- </BugResult_Row>
- </BugResult_VO>
- <SpmResult_VO>
- <SpmResult_Row>
- <SM_CFNM/>
- <SM_CD/>
- </SpmResult_Row>
- </SpmResult_VO>
- </initBug>
- <guolv/>
- <timer/>
- <reflash/>
- <newElement/>
- <fwdData>
- <UIB020230>
- <URL/>
- <ORD_NO/>
- <ORD_SEQ/>
- </UIB020230>
- </fwdData>
- <totalData>
- <slabCnt/>
- <slabWgt/>
- </totalData>
- <EXCELHead>
- <CoilInfoResult_VO>
- <CoilInfoResult_Row>
- <col1>新余钢铁股份有限公司钢卷发货明细单(火车)</col1>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- </CoilInfoResult_Row>
- </CoilInfoResult_VO>
- </EXCELHead>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- var selectRow = 0;//保存被选择的行
-
- function Init(node)
- {
- InitParams(node);
- datagrid1.colStatus(0)=false; //第0列的选择不对表1是否有更新等操作产生影响
- input3.value = commCurDate();
- input6.value = commCurDate();
- // input1.value = commCurDate();//当前时间
- input4.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
- //input2.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
- //input3.value = document.readIniFile("session1" , "UIB020230" , "" , "c:\\WINDOWS\\xgmes3.ini");
-
- commSubmit("UIB020230-service" , "success" , "glueAction.do");
- model.copyNode("/root/datagrid2" , "/root/resData/BugResult_VO");//缺陷代码的初始化操作
- model.duplicate("/root/initBug" , "/root/resData/BugResult_VO");
-
- model.copyNode("/root/datagrid3" , "/root/resData/SpmResult_VO");//缺陷代码的初始化操作
- model.duplicate("/root/initBug" , "/root/resData/SpmResult_VO");
- model.refresh();
- }
-
- function excelExport() {
- return datagrid1;
- }
-
- function find()
- {
- datagrid1.rebuildStyle();
-
- document.writeIniFile("session1" , "UIB020230" , input4.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- //document.writeIniFile("session1" , "UIB020230" , input2.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- //document.writeIniFile("session1" , "UIB020230" , input3.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
-
- model.removenode("/root/reqData");
- // model.removenode("/root/smpData");
- model.makeNode("/root/reqData");
- //按钢卷号和轧制时间进行查询
- if(combo5.value=="1")//若需要过滤取样钢卷
- {
- commSubmit("UIB020230-service" , "findThree" , "glueAction.do");
- }
- else if(combo5.value == "2")//尺寸或者外观未判定钢卷过滤
- {
- commSubmit("UIB020230-service" , "findTwo" , "glueAction.do");
- }
- else if(combo5.value == "3")//尺寸或者外观未判定钢卷过滤
- {
- commSubmit("UIB020230-service" , "FindFour" , "glueAction.do");
- }
- else if(input3.disabled == false && input3.value.Trim() != "")//按时间查询
- {
- var isRoll = "Trues";
- model.makeValue("/root/reqData/ROLLNO" , isRoll);
- model.makeValue("/root/reqData/ROLLNO1" , input4.value.Trim());
- model.makeValue("/root/reqData/ROLLNO2" , input2.value.Trim());
- model.makeValue("/root/reqData/isTime" , "True");
- model.makeValue("/root/reqData/STA_TIME",input3.value.Trim()+"000000");//开始时间
- model.makeValue("/root/reqData/END_TIME",input6.value.Trim()+"999999");//结束时间
- model.makeValue("/root/reqData/ORG_ORD_NO" , input7.value.Trim());//原合同号
- model.makeValue("/root/reqData/ORG_ORD_SEQ" , input8.value.Trim());//原订单号
-
- commSubmit("UIB020230-service" , "findRoll" , "glueAction.do");
- }
- else if(input4.value.Trim() != "" || input2.value.Trim() != "")//按轧辊单元查询
- {
- var isRoll = "False";
- if(input4.value.Trim() == "")
- {
- if(input2.value.length < 9){
- window.alert("钢卷号不能少于9位数!" , "提示");
- return;
- } else {
- isRoll = "Trues";
- }
- }
- model.makeValue("/root/reqData/ROLLNO" , isRoll);
- model.makeValue("/root/reqData/ROLLNO1" , input4.value.Trim());
- model.makeValue("/root/reqData/ROLLNO2" , input2.value.Trim());
- model.makeValue("/root/reqData/isTime" , "False");
- model.makeValue("/root/reqData/STA_TIME","0000");//开始时间
- model.makeValue("/root/reqData/END_TIME","9999");//结束时间
- model.makeValue("/root/reqData/ORG_ORD_NO" , input7.value.Trim());//原合同号
- model.makeValue("/root/reqData/ORG_ORD_SEQ" , input8.value.Trim());//原订单号
- commSubmit("UIB020230-service" , "findRoll" , "glueAction.do");
- }
- else
- {
- window.alert("轧辊单元号或者钢卷号不能为空!" , "提示");
- return;
- }
- model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
- model.refresh();
- selectRow = 0;//重新归0
- rowColor();
- exceptionReport();
-
- var slabCnt = 0;
- var slabWgt = 0;
- datagrid1.refresh();
- //commAppendData ("/root/gridData2/ListResult_1_VO" ,"/root/EXCELHead/ListResult_1_VO" );
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++){
- slabCnt = slabCnt + 1;
- if(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"))=="")
- {
- datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"))="0";
- }
- slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT")));
-
- var PLAN_WGT= parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("INSTR_COIL_WGT")));
- var L2_WGT = parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("L2_COIL_WEIGHT")));
- var XNYC = datagrid1.valueMatrix(i,datagrid1.colRef("CHQLTY"));
- var ZPJY = datagrid1.valueMatrix(i,datagrid1.colRef("MIXROLL"));
- var ZPBJ = datagrid1.valueMatrix(i,datagrid1.colRef("MIXFLAG"));
-
- if(PLAN_WGT <= L2_WGT ) {
- datagrid1.rowstyle(i, "data", "background-color") = "#ffff00";
- }
- if(XNYC=="不合格"){
- datagrid1.cellstyle("background-color", i, datagrid1.colRef("CHQLTY") ) = "#ff0000";
- }
- if(ZPBJ =="1"){
-
- datagrid1.cellstyle("background-color", i, datagrid1.colRef("MIXROLL") ) = "#00ff00";
- }
-
- //if(ZPJY=="MIX3.5"||ZPJY=="MIX6"||ZPJY=="MIX8"||ZPJY=="MIX10"||ZPJY=="MIX12"||ZPJY=="MIX15"||ZPJY=="MIXMAX"){
-
- //if(ZPJY!=datagrid1.valueMatrix(i-1,datagrid1.colRef("MIXROLL")))
- //{
-
- // datagrid1.cellstyle("background-color", i, datagrid1.colRef("MIXROLL") ) = "#00ff00";
- //}
- //}
-
- }
-
- model.setValue("/root/totalData/slabCnt",slabCnt);
- model.setValue("/root/totalData/slabWgt",slabWgt/1000);
- output1.refresh();
- output2.refresh();
- }
-
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "procStat");
- var node = instance1.selectNodes("/root/reqData/CoilInfoResult_Row");
- var j = 0;
- if(node!=null)
- {
- for(var i = 1; i <= node.length; i++)
- {
- model.makeValue("/root/reqData/CoilInfoResult_Row["+i+"]/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- }
- }
- model.makeValue("/root/reqData/ROLLNO" , input4.value.Trim());
- commSubmit("UIB020230-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
- model.refresh();
-
- datagrid2.visible = false;//使表格2隐藏
- exceptionReport();
-
- datagrid1.clearStatus();
- }
-
-
- function saveyz()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
-
-
- commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "procStat");
- var node = instance1.selectNodes("/root/reqData/CoilInfoResult_Row");
- var j = 0;
- if(node!=null)
- {
- for(var i = 1; i <= node.length; i++)
- {
- model.makeValue("/root/reqData/CoilInfoResult_Row["+i+"]/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- }
- }
- model.makeValue("/root/reqData/ROLLNO" , input4.value.Trim());
- commSubmit("UIB020230-service" , "saveyz" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/CoilInfoResult_VO");
- model.refresh();
-
- datagrid2.visible = false;//使表格2隐藏
- exceptionReport();
-
- datagrid1.clearStatus();
- find();
- }
-
- function rowColor()
- {
- //若需要取样的还没有取样,则变成红色
- for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("SMP_DIR_PIC_YN"))=="Y"
- && datagrid1.valueMatrix(i , datagrid1.colRef("SAMPL_PICK_YN"))!="Y")
- {
- // datagrid1.rowstyle(i, "data", "color") = "#ff0000";
- datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//未取,要取样
- }
-
- if(datagrid1.valueMatrix(i , datagrid1.colRef("SMP_DIR_PIC_YN"))=="Y"
- && datagrid1.valueMatrix(i , datagrid1.colRef("SAMPL_PICK_YN"))=="Y")
- {
- // datagrid1.rowstyle(i, "data", "color") = "#000000";
- datagrid1.rowStyle(i , "data" , "color") = "#000000";//要取,已取
- }
- }
- //datagrid1.rebuild(); 这里不能要rebuild,会将被更改的状态清除
- }
- clockTimer = 0;
-
-
- function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
- var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
- if ( sExcelName == "" ) {
- return;
- }
- //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
- var sCSVName = sExcelName +".csv";
- //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
- eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid의 내용을 CSV파일로 생성
- ObjTFExcel.launchNewInstance(0); //Execute EXCEL
- ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
- ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
- //Setting up EXCEL Layout.
- var nRows = sDGridName.rows - sDGridName.fixedRows + 1; //Keep Careful !!!
- var nCols = sDGridName.cols;
-
- //Header
- //Line 1 : Sheet Title
- // ObjTFExcel.rowheight( 01 ) = 30 ;
- // ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
- // ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14 ;
- // ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
- // ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
- // ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
- // ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
- //ObjTFExcel.colwidth ( 01 ) = 100 ;
-
- //All of the range
- ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
- ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
- ObjTFExcel.setBorderColor( 01, 01, nRows, nCols, "#000000") ;
- ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
- ObjTFExcel.fontsize ( 01, 01, nRows, nCols ) = 12 ;
- ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
- ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
- //字体居中
- ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
-
- ObjTFExcel.halign ( 01, 01, nRows, 02 ) ="left" ;
- //Query-Results Data
- var iRow = 1; // iRow = HeaderLine + 1;
- //这里设置字体的行宽
- // for(var i = iRow; i <= nRows; i++ ) {
- // if( (i%5) == 1 ) {
- // ObjTFExcel.rowHeight( i ) = 60;
- // ObjTFExcel.mergeCell( i, 01, i, nCols );
- // } else if( (i%5) == 0 ) {
- // ObjTFExcel.rowHeight( i ) = 45;
- // ObjTFExcel.mergeCell( i, 01, i, nCols );
- // } else {
- // ObjTFExcel.rowHeight( i ) = 40;
- // }
- // }
-
- //设置列的宽度
- ObjTFExcel.colwidth ( 01 ) = 10 ;
- ObjTFExcel.colwidth ( 02 ) = 20 ;
- ObjTFExcel.colwidth ( 03 ) = 10 ;
- ObjTFExcel.colwidth ( 04 ) = 10 ;
- ObjTFExcel.colwidth ( 05 ) = 10 ;
- ObjTFExcel.colwidth ( 06 ) = 10 ;
- ObjTFExcel.colwidth ( 07 ) = 10 ;
- ObjTFExcel.colwidth ( 08 ) = 10 ;
-
- // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
- ObjTFExcel.sheetName(1) = sExcelSheetName;
- ObjTFExcel.save(sExcelName); //Saving EXCEL
- ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
- window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" guideline="2,561;">
- <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:615px; top:5px; width:80px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:0px; top:565px; width:100px; height:20px; ">外观判定等级</caption>
- <caption id="caption4" class="cell" style="left:425px; top:595px; width:100px; height:20px; ">外观缺陷代码</caption>
- <caption id="caption5" class="cell" style="left:215px; top:595px; width:100px; height:20px; ">平整分卷</caption>
- <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; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="ROLL_MANA_NO" type="input" style="text-align:left; "/>
- <col editable="false" ref="COIL_NO" type="input" visibility="hidden"/>
- <col ref="SEQ" style="text-align:right; "/>
- <col ref="DC_NO" style="text-align:left; "/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input" style="font-weight:bold; text-decoration:underline; text-align:left; background-color:#ffffff; cursor:hand; "/>
- <col editable="false" ref="SLAB_NO" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col ref="YZCS_DTIME" type="input" style="text-align:left; "/>
- <col ref="SPEC_STL_GRD" type="input" style="text-align:left; "/>
- <col editable="false" ref="MIXFLAG" type="input" visibility="hidden"/>
- <col ref="MIXROLL" style="text-align:left; "/>
- <col editable="false" ref="INSTR_COIL_THK" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_WTH" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col ref="COIL_THK" style="text-align:right; "/>
- <col ref="COIL_WTH" style="text-align:right; "/>
- <col ref="ACT_WGT" style="text-align:right; "/>
- <col ref="L2_COIL_WEIGHT" style="text-align:right; "/>
- <col ref="DEL_TOL_THK_MIN" visibility="visible" style="text-align:right; "/>
- <col ref="DEL_TOL_THK_MAX" visibility="visible" style="text-align:right; "/>
- <col ref="DEL_TOL_WTH_MIN" visibility="visible" style="text-align:right; "/>
- <col ref="DEL_TOL_WTH_MAX" visibility="visible" style="text-align:right; "/>
- <col ref="SAMPL_BKD_YN" visibility="visible" style="text-align:right; "/>
- <col ref="QLTY_QF" visibility="visible" style="text-align:right; "/>
- <col ref="QLTY_KL" visibility="visible" style="text-align:right; "/>
- <col ref="QLTY_YS" visibility="visible" style="text-align:right; "/>
- <col ref="QLTY_GY" visibility="visible" style="text-align:right; "/>
- <col ref="CHQLTY" visibility="visible" style="text-align:right; "/>
- <col editable="false" ref="SPEC_ABBSYM" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
- <col ref="FB_YN" type="combo" visibility="visible" style="text-align:right; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="FB_REASON" type="input" style="background-color:#ffff99; "/>
- <col ref="CJ_REMARK" type="input" style="background-color:#ffff99; "/>
- <col ref="SPM_RMK" type="input" style="background-color:#ffff99; "/>
- <col ref="DLIV_TP" visibility="visible" style="text-align:right; "/>
- <col ref="DEAL_REMARK" type="input" style="background-color:#ffff99; "/>
- <col ref="SPM_PROG" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>平整</label>
- <value>1</value>
- </item>
- <item>
- <label>分卷</label>
- <value>2</value>
- </item>
- <item>
- <label>平整分卷</label>
- <value>3</value>
- </item>
- <item>
- <label>重卷</label>
- <value>4</value>
- </item>
- <item>
- <label>开卷检查</label>
- <value>5</value>
- </item>
- <item>
- <label>完成</label>
- <value>D</value>
- </item>
- <item>
- <label>综合判定</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" editable="false" ref="SPM_YN" type="combo" style="text-align:left; background-color:#ffffff; ">
- <choices>
- <item>
- <label>平整</label>
- <value>1</value>
- </item>
- <item>
- <label>分卷</label>
- <value>2</value>
- </item>
- <item>
- <label>平整分卷</label>
- <value>3</value>
- </item>
- <item>
- <label>重卷</label>
- <value>4</value>
- </item>
- <item>
- <label>开卷检查</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="SPM_EMP_ID"/>
- <col ref="COLDTIME"/>
- <col ref="CPCJ_REMARK" type="input"/>
- <col ref="CUR_LOAD_LOC" type="input"/>
- <col ref="ORD_DEVLMT_DATE" type="input"/>
- <col editable="false" ref="MISSNO_CLF_CD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="SMP_DIR_PIC_YN" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="SAMPL_PICK_YN" style="text-align:left; background-color:#ffffff; "/>
- <col disabled="true" editable="false" ref="EXTSHAPE_DEC_GRD" type="combo" style="text-align:left; background-color:#ffffff; ">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>订单外合格</label>
- <value>2</value>
- </item>
- <item>
- <label>次品</label>
- <value>3</value>
- </item>
- <item>
- <label>废品</label>
- <value>4</value>
- </item>
- <item>
- <label>订单待判</label>
- <value>5</value>
- </item>
- <item>
- <label>工艺待判</label>
- <value>6</value>
- </item>
- <item>
- <label>缺陷待判</label>
- <value>7</value>
- </item>
- <item>
- <label>待判</label>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="SIZE_DEC_RST" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>非计划</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="EXTSHAPE_DEC_EMP_ID" type="input"/>
- <col ref="EXTSHAPE_DEC_DTIME" type="input"/>
- <col ref="DCS_THK" type="input" style="text-align:right; "/>
- <col ref="DCS_WTH" type="input" style="text-align:right; "/>
- <col ref="ORD_NO" type="input" style="text-align:right; "/>
- <col ref="ORD_SEQ" style="text-align:right; "/>
- <col ref="ORG_ORD_NO" style="text-align:right; "/>
- <col ref="ORG_ORD_SEQ" style="text-align:right; "/>
- <col ref="CUST_SPEC_NO" style="text-decoration:underline; text-align:left; cursor:hand; "/>
- <col ref="COIL_THK_OS" visibility="hidden"/>
- <col ref="COIL_THK_CL" visibility="hidden"/>
- <col ref="COIL_THK_DS" visibility="hidden"/>
- <col disabled="true" ref="CRK_CD1" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK_CD2" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK_CD3" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK_CD4" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK_CD5" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/BugResult_VO/BugResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SPM_CRK_CD1" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SPM_CRK_CD2" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SPM_CRK_CD3" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SPM_CRK_CD4" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SPM_CRK_CD5" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/initBug/SpmResult_VO/SpmResult_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="DEL_TOL_THK_MIN" style="text-align:right; "/>
- <col ref="DEL_TOL_THK_MAX" style="text-align:right; "/>
- <col ref="DEL_TOL_THK_AVG" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_THK_OUT_OF_LEN" style="text-align:right; "/>
- <col ref="DEL_TOL_WTH_MIN" style="text-align:right; "/>
- <col ref="DEL_TOL_WTH_MAX" style="text-align:right; "/>
- <col ref="DEL_TOL_WTH_AVG" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_WTH_OUT_OF_LEN" style="text-align:right; "/>
- <col ref="FM_SYM_STRIP_FLATNESS_AVG" style="text-align:right; "/>
- <col ref="FM_SYM_STRIP_FLATNESS_MAX" style="text-align:right; "/>
- <col ref="FM_SYM_STRIP_FLATNESS_MIN" style="text-align:right; "/>
- <col ref="FM_SYM_STRIP_OUT_OF_RANGE" style="text-align:right; "/>
- <col ref="FM_STRIP_WDG_AVG" style="text-align:right; "/>
- <col ref="FM_STRIP_WDG_MAX" style="text-align:right; "/>
- <col ref="FM_STRIP_WDG_MIN" style="text-align:right; "/>
- <col ref="FM_STRIP_WDG_OUT_OF_RANGE" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_CROWN_AVG" style="left:3075px; top:41px; width:100px; height:21px; text-align:right; "/>
- <col ref="FM_EXT_STRIP_CROWN_MAX" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_CROWN_MIN" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_CROWN_OUT_OF_LEN" style="text-align:right; "/>
- <col ref="RHF_DESCAL_YN" style="text-align:right; "/>
- <col ref="RM_ENT_DESCAL_YN" style="text-align:right; "/>
- <col ref="RM_EXT_DESCAL_YN" style="text-align:right; "/>
- <col ref="ZONG_DESCAL_YN" style="text-align:right; "/>
- <col ref="R2_EXT_TEMP" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_TEMP" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_TEMP_AVG" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_TEMP_MAX" style="text-align:right; "/>
- <col ref="FM_EXT_STRIP_TEMP_MIN" style="text-align:right; "/>
- <col ref="STRIP_OUT_OF_RANGE" style="text-align:right; "/>
- <col ref="DC_TEMP" style="text-align:right; "/>
- <col ref="DC_TEMP_AVG" style="text-align:right; "/>
- <col ref="DC_TEMP_MAX" style="text-align:right; "/>
- <col ref="DC_TEMP_MIN" style="text-align:right; "/>
- <col ref="DC_TEMP_OUT_OF_RANGE" style="text-align:right; "/>
- <col ref="SAMPL_NO" visibility="hidden"/>
- <col disabled="true" ref="COIL_STAT" type="combo" visibility="visible" style="text-align:left; ">
- <choices>
- <item>
- <label>上料</label>
- <value>0</value>
- </item>
- <item>
- <label>出炉</label>
- <value>1</value>
- </item>
- <item>
- <label>轧制完成</label>
- <value>2</value>
- </item>
- <item>
- <label>废弃/出库</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>综合判定待机</label>
- <value>SED</value>
- </item>
- <item>
- <label>充当待机</label>
- <value>SRC</value>
- </item>
- <item>
- <label>发货待机</label>
- <value>SFA</value>
- </item>
- <item>
- <label>运送待机</label>
- <value>SFB</value>
- </item>
- <item>
- <label>运送完成</label>
- <value>SFF</value>
- </item>
- <item>
- <label>钢卷入库待机</label>
- <value>SDB</value>
- </item>
- <item>
- <label>钢卷包装待机</label>
- <value>SBB</value>
- </item>
- <item>
- <label>平整指示待机</label>
- <value>SPA</value>
- </item>
- <item>
- <label>平整作业待机</label>
- <value>SPB</value>
- </item>
- </choices>
- </col>
- <col ref="COIL_END_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <col disabled="false" ref="SMP_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col ref="SMP_CUT_LOC" style="text-align:left; "/>
- <col ref="SAMPLING_CODE" visibility="hidden" style="text-align:left; "/>
- <col ref="EXT_FLAG" visibility="hidden" style="text-align:left; "/>
- <col ref="SMP_FLAG" visibility="hidden" style="text-align:v; "/>
- <col ref="SIZE_FLAG" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.col==datagrid1.colRef("CHK"))//如果点击的是第一行才能做查询
- {
- // model.removenode("/root/smpData");
- datagrid4.visible = "false";
- //每次表格1有列被选中的时候,首先将表格2中被选中的项取消选择
- for(var i=datagrid2.fixedRows; i <= datagrid2.rows; i++)
- {
- datagrid2.valueMatrix(i , 1)="N";
- }
- model.refresh();
-
- if(datagrid1.valueMatrix(datagrid1.row , 0)=="Y")
- {
- var smpYn = datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SMP_DIR_PIC_YN"));//是否需要取样
- //只有当允许取样时候,才能进行取样操作,否则不允许进行取样
- if(smpYn != "Y")
- {
- // combo3.disabled = true;
- }
- else
- {
- // combo3.disabled = false;
- }
- selectRow=datagrid1.row ;//20230221
-
- model.refresh();
- }
- }
-
- if(datagrid1.col==datagrid1.colRef("OLD_SAMPL_NO"))
- {
- model.removenode("/root/cao");
- model.makeValue("/root/cao/SMPNO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SMP_NO")));
- 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");
- }
- //链接到品质设计结果查询界面
- if(datagrid1.colRef("CUST_SPEC_NO") == datagrid1.col)
- {
- model.setValue("/root/fwdData/UIB020230/ORD_NO", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_NO")));
- model.setValue("/root/fwdData/UIB020230/ORD_SEQ", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("ORD_SEQ")));
- model.setValue("/root/fwdData/UIB020230/URL", "./../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB020230"));
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid1.col == 0)
- {
- selectRow = datagrid1.row;//保存被选择的行
- }
- if(datagrid1.colRef("SIZE_DEC_RST") == datagrid1.col)
- {
- datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SIZE_FLAG")) = "Y";
- //alert("sdasd");
- }
-
- if(datagrid1.colRef("SPM_PROG") == datagrid1.col)
- {
- var spmprog=datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CUR_PROG_CD")) ;
- if(spmprog=="SPA" ||spmprog=="SED")
- {
-
- if(commComfirmBox("确定进行平整指定或取消操作?","提示")=="0") return;
-
-
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/COIL_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("COIL_NO")) );
- model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- model.makeValue("/root/reqData/SMP_TP" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_PROG")) );
- model.makeValue("/root/reqData/SPM_RMK" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_RMK")) );
- model.makeValue("/root/reqData/procStat", "");
- commSubmit("UIB020230-service" , "smpPick" , "glueAction.do");
-
- //datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_YN")) = combo2.value;
-
-
- }
- else
- {
- window.alert("只允许指定判定与指示待机钢卷,请检查物料状态!" , "警告");
- return;
- }
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /* if(datagrid1.rows < 2) return;
- //若双击外观缺陷某行,则该缺陷被清掉
- if(datagrid1.col >= datagrid1.colRef("CRK_CD1") && datagrid1.col <= datagrid1.colRef("CRK_CD5"))
- {
- datagrid1.valueMatrix(datagrid1.row , datagrid1.col) = "";
- datagrid1.addStatus(datagrid1.row , "update");
- }
- datagrid1.refresh();
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- var thk = datagrid1.colRef("DCS_THK");
- var wth = datagrid1.colRef("DCS_WTH");
- if( datagrid1.col >= thk && datagrid1.col <= wth)
- {
- datagrid1.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //判定厚度,判定宽度
- if(event.keyCode==13)
- {
- var curRow = 0;
- var curCol = 0;
- datagrid1.row++;
-
- curRow = datagrid1.row;
- curCol = datagrid1.col;
- if(curCol >=datagrid1.colRef("DCS_THK") && curCol <= datagrid1.colRef("DCS_WTH"))
- {
- if(curRow > datagrid1.fixedRows)
- {
- model.setFocus("");
- // alert("上一行:"+datagrid1.valueMatrix(curRow-1 , curCol) + "当前行:"+datagrid1.valueMatrix(curRow , curCol));
- datagrid1.valueMatrix(curRow , curCol) = datagrid1.valueMatrix(curRow-1 , curCol);
- datagrid1.addStatus(curRow , "update");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="cell" style="left:0px; top:595px; width:100px; height:20px; ">试片有无取样</caption>
- <select1 id="combo1" ref="/root/formData/extshape" appearance="minimal" style="left:100px; top:565px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>待判</label>
- <value/>
- </item>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>订单外合格</label>
- <value>2</value>
- </item>
- <item>
- <label>次品</label>
- <value>3</value>
- </item>
- <item>
- <label>废品</label>
- <value>4</value>
- </item>
- <item>
- <label>订单待判</label>
- <value>5</value>
- </item>
- <item>
- <label>工艺待判</label>
- <value>6</value>
- </item>
- <item>
- <label>缺陷待判</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
- if(selectRow < datagrid1.fixedRows) return;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXTSHAPE_DEC_GRD")) = combo1.value;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
- datagrid1.addStatus(selectRow , "update");
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
- if(selectRow < datagrid1.fixedRows) return;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXTSHAPE_DEC_GRD")) = combo1.value;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
- datagrid1.addStatus(selectRow , "update");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input5" inputtype="button" style="left:525px; top:595px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid2.visible = !datagrid2.visible;
- for(var i=datagrid2.fixedRows; i <= datagrid2.rows; i++)
- {
- datagrid2.valueMatrix(i , 1)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="combo2" ref="/root/formData/needSpm" appearance="minimal" style="left:310px; top:595px; width:100px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>平整</label>
- <value>1</value>
- </item>
- <item>
- <label>分卷</label>
- <value>2</value>
- </item>
- <item>
- <label>平整分卷</label>
- <value>3</value>
- </item>
- <item>
- <label>重卷</label>
- <value>4</value>
- </item>
- <item>
- <label>开卷检查</label>
- <value>5</value>
- </item>
- <item>
- <label>完成</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <hint>
- <![CDATA[1表示有平整分卷要求]]>
- </hint>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(commComfirmBox("确定进行平整分卷操作?","提示")=="0") return;
- if(combo2.value == "") return;
- //当选择某外观判定等级的时候,将值自动存入表1的"SPM作业"中
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("SPM_YN")) = combo2.label;
- // datagrid1.addStatus(selectRow , "update");
- // model.refresh();
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/COIL_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("COIL_NO")) );
- model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- model.makeValue("/root/reqData/SMP_TP" , combo2.value);
- model.makeValue("/root/reqData/SPM_RMK" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_RMK")) );
- model.makeValue("/root/reqData/procStat", "");
- commSubmit("UIB020230-service" , "smpPick" , "glueAction.do");
-
- datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SPM_YN")) = combo2.value;
- //combo2.select(0);
- ]]>
- </script>
- </select1>
- <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; ">
- <col ref="SM_CFNM"/>
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //选择某缺陷代码后,存入表1中,取消某缺陷代码时,相应的取消表1中对应的缺陷代码
- for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
- {
- //为“Y”时进行赋值
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
- {
- if(datagrid2.valueMatrix(datagrid2.row , 1)=="Y")
- {
- for(var x=1; x <= 5; x++)//有1到5,共5种缺陷
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))=="")//从缺陷1开始,有空值得地方进行存放选中的缺陷值
- {
- datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))=datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("SM_CD"));
- datagrid1.addStatus(i , "update");//存放值后需改变该行的状态,便于保存操作
- break;
- }
- }
- }
- //为“N”时取消对应的赋值
- if(datagrid2.valueMatrix(datagrid2.row , 1)=="N")
- {
- for(var x= 1; x<=5; x++)
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("CRK_CD"+x))==datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("SM_CD")))
- {
- datagrid1.valueMatrix(i ,datagrid1.colRef("CRK_CD"+x))="";
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- break;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo3" ref="/root/formData/needSmp" appearance="minimal" style="left:100px; top:595px; width:100px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>人工抽样</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.refresh();
- if(combo3.value != "")
- {
- if(datagrid1.valueMatrix(selectRow , datagrid1.colRef("DCS_THK"))== "" )
- {
- window.alert("请输入判定规格!" , "警告");
- combo3.select(0);
- return;
- }
-
- if(datagrid1.valueMatrix(selectRow , datagrid1.colRef("DCS_THK")) != datagrid1.valueMatrix(selectRow , datagrid1.colRef("INSTR_COIL_THK")) )
- {
- window.alert("判定规格与计划规格不符,请执行取样变更操作!" , "警告");
- combo3.select(0);
- return;
- }
-
- var coilStatCol = datagrid1.colRef("COIL_STAT");
- var picYnCol = datagrid1.colRef("SMP_DIR_PIC_YN");
- if(datagrid1.valueMatrix(selectRow , picYnCol)=="Y" )
- {
- //当“试片有无取样”进行选择后,选择的值反应到表1中
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("SAMPL_PICK_YN")) = combo3.value;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("SMP_FLAG")) = "Y";//说明已取样
- datagrid1.addStatus(selectRow , "update");
- // model.refresh();
- rowColor();
- combo3.select(0);
- }
- }
- ]]>
- </script>
- </select1>
- <line id="line1" style="x1:0px; y1:50px; x2:980px; y2:50px; "/>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <caption id="caption11" class="cell" style="left:640px; top:595px; width:335px; height:20px; ">“异常信息”说明:S表示板坯需再回加热炉,C表示板坯轧坏</caption>
- <button id="button99" visibility="hidden" style="left:20px; top:60px; width:60px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/reflash" visibility="hidden" overflow="visible" appearance="full" style="left:815px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>自动刷新</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox2.value=="Y" && combo4.value != "0")
- {
- clockTimer = window.setInterval("find()", combo4.value);
- }
- if(checkbox2.value=="")
- {
- window.clearInterval(clockTimer);
- }
- ]]>
- </script>
- </select>
- <select1 id="combo4" ref="/root/timer" visibility="hidden" appearance="minimal" style="left:855px; top:5px; width:95px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>30S</label>
- <value>30000</value>
- </item>
- <item>
- <label>1Min</label>
- <value>60000</value>
- </item>
- <item>
- <label>2Min</label>
- <value>120000</value>
- </item>
- <item>
- <label>5Min</label>
- <value>300000</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell" style="left:5px; top:30px; width:55px; height:20px; ">钢卷号</caption>
- <input id="input4" ref="/root/formData/ROLL_MANA_NO" style="left:60px; top:5px; width:105px; height:20px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setFocus("");
- // model.setFocus("input1");
- find();
- }
- ]]>
- </script>
- </input>
- <button id="button3" visibility="visible" style="left:215px; top:565px; width:135px; height:20px; background-color:#00ff00; border-style:solid; ">
- <caption>取样钢卷(规格)变更</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid4.visible = !datagrid4.visible;
- var dirYn = datagrid1.colRef("SMP_DIR_PIC_YN");//是否取样的列
- var picYn = datagrid1.colRef("SAMPL_PICK_YN");//有无取样
- model.removenode("/root/smpThk");
- model.refresh();
-
- var smpCol = datagrid1.colRef("SMP_NO");//试样号对应列
- var smpVal = datagrid1.valueMatrix(selectRow , smpCol);//样片号
- var coilCol = datagrid1.colRef("COIL_NO");
- var oldColl = datagrid1.colRef("OLD_SAMPL_NO");
- var newThk = datagrid1.colRef("DCS_THK");
- var oldThk = datagrid1.colRef("INSTR_COIL_THK");
-
- var count = 1;
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(smpVal == datagrid1.valueMatrix(i , smpCol))
- {
- model.makeValue("/root/smpThk/thk["+count+"]/COIL" , datagrid1.valueMatrix(i , coilCol));
- model.makeValue("/root/smpThk/thk["+count+"]/OLD_COIL", datagrid1.valueMatrix(i , oldColl));
- model.makeValue("/root/smpThk/thk["+count+"]/COILTHK" , datagrid1.valueMatrix(i , newThk));
- count++;
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="COIL" visibility="hidden"/>
- <col ref="OLD_COIL"/>
- <col ref="COILTHK"/>
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chk = datagrid4.colRef("CHK");
- if(datagrid4.valueMatrix(datagrid4.row , chk)=="Y" && datagrid4.row >0)
- {
- if(commComfirmBox("更改取样钢卷规格或造成钢卷材质检验项目的更改,若需更改材质检验项目请在更改规格后做钢卷改判。确定更改?","提示")=="0") return;
-
- if(datagrid4.valueMatrix(datagrid4.row , datagrid4.colRef("COILTHK")) == "")
- {
- window.alert("实际规格不允许为空,取样变更失败!" , "警告");
- return;
- }
-
- save();
-
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/XX" , "UIB020230");
- model.makeValue("/root/reqData/COIL" , datagrid4.valueMatrix(datagrid4.row , 0));
- // alert(datagrid3.valueMatrix(datagrid3.row , 0));
- commSubmit("UIB020230-service" , "midifyCoil" , "glueAction.do");
- find();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo5" ref="/root/guolv" appearance="minimal" style="left:240px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>--------------</label>
- <value/>
- </item>
- <item>
- <label>未取样</label>
- <value>1</value>
- </item>
- <item>
- <label>尺寸或外观未判定</label>
- <value>2</value>
- </item>
- <item>
- <label>平整未完成</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption10" class="cell" style="left:185px; top:5px; width:55px; height:20px; ">过滤</caption>
- <caption id="caption2" class="cell" visibility="hidden" style="left:640px; top:595px; width:100px; height:20px; ">SMP缺陷</caption>
- <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; ">
- <col ref="SM_CFNM"/>
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //选择某缺陷代码后,存入表1中,取消某缺陷代码时,相应的取消表1中对应的缺陷代码
- for(var i = datagrid1.fixedRows; i <= datagrid1.rows; i++)
- {
- //为“Y”时进行赋值
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
- {
- if(datagrid3.valueMatrix(datagrid3.row , 1)=="Y")
- {
- for(var x=1; x <= 5; x++)//有1到5,共5种缺陷
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))=="")//从缺陷1开始,有空值得地方进行存放选中的缺陷值
- {
- datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))=datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("SM_CD"));
- datagrid1.addStatus(i , "update");//存放值后需改变该行的状态,便于保存操作
- break;
- }
- }
- }
- //为“N”时取消对应的赋值
- if(datagrid3.valueMatrix(datagrid3.row , 1)=="N")
- {
- for(var x= 1; x<=5; x++)
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("SPM_CRK_CD"+x))==datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("SM_CD")))
- {
- datagrid1.valueMatrix(i ,datagrid1.colRef("SPM_CRK_CD"+x))="";
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- break;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <input id="input1" visibility="hidden" inputtype="button" style="left:740px; top:595px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid3.visible = !datagrid3.visible;
- for(var i=datagrid3.fixedRows; i <= datagrid3.rows; i++)
- {
- datagrid3.valueMatrix(i , 1)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button2" visibility="hidden" style="left:910px; top:5px; width:70px; height:20px; ">
- <caption>导出EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // find();
- saveExcelScript(datagrid1, "Sheet1");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/formData/ROLL_MANA_NO1" style="left:60px; top:30px; width:105px; height:20px; "/>
- <caption id="caption7" class="cell" style="left:5px; top:5px; width:55px; height:20px; ">轧辊单元</caption>
- <select id="checkbox1" ref="/root/formData/radiosele" overflow="visible" appearance="full" style="left:170px; top:30px; width:15px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox1.value == "Y")
- {
- input3.disabled = false;
- input6.disabled = false;
- }
- else
- {
- input3.disabled = true;
- input6.disabled = true;
- }
- ]]>
- </script>
- </select>
- <caption id="caption6" class="cell" style="left:185px; top:30px; width:70px; height:20px; ">卷曲时间</caption>
- <caption id="caption8" style="left:340px; top:30px; width:20px; height:20px; ">~</caption>
- <input id="input3" ref="/root/formData/startTime" inputtype="date" style="left:255px; top:30px; width:85px; height:20px; "/>
- <input id="input6" ref="/root/formData/endTime" inputtype="date" style="left:350px; top:30px; width:85px; height:20px; "/>
- <caption id="caption13" style="left:815px; top:31px; width:20px; height:20px; font-weight:bold; ">块</caption>
- <caption id="caption14" style="left:930px; top:30px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line3" style="x1:740px; y1:50px; x2:800px; y2:50px; "/>
- <caption id="caption16" class="cell" style="left:690px; top:30px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
- <line id="line4" style="x1:850px; y1:50px; x2:930px; y2:50px; "/>
- <caption id="caption15" class="cell" style="left:805px; top:30px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <output id="output1" ref="/root/totalData/slabCnt" style="left:750px; top:30px; width:40px; height:20px; text-align:center; "/>
- <output id="output2" ref="/root/totalData/slabWgt" style="left:865px; top:30px; width:65px; height:20px; text-align:center; "/>
- <button id="button1" visibility="hidden" style="left:595px; top:30px; width:40px; height:15px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <shape id="rectangle10" appearance="rectangle" style="left:463px; top:30px; width:10px; height:20px; background-color:#ffff00; "/>
- <caption id="caption20" style="left:475px; top:30px; width:122px; height:20px; vertical-align:middle; ">L2重大于计划规格重</caption>
- <select1 id="combo6" ref="/root/formData/FBYN" visibility="hidden" appearance="minimal" style="left:430px; top:565px; width:50px; height:20px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //当选择某外观判定等级的时候,将值自动存入表1的外观判定等级中
- if(selectRow < datagrid1.fixedRows) return;
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("FB_YN")) = combo6.value;
- // datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "Y";
- datagrid1.addStatus(selectRow , "update");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <button id="button4" visibility="hidden" style="left:635px; top:30px; width:50px; height:15px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- saveyz();
- ]]>
- </script>
- </button>
- <caption id="caption17" class="cell" visibility="hidden" style="left:360px; top:565px; width:70px; height:20px; ">是否封闭</caption>
- <caption id="caption18" class="cell" style="left:350px; top:5px; width:55px; height:20px; ">原合同号</caption>
- <caption id="caption19" class="cell" style="left:510px; top:5px; width:55px; height:20px; ">原订单号</caption>
- <input id="input7" ref="/root/formData/ORG_ORD_NO" style="left:405px; top:5px; width:105px; height:20px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setFocus("");
- // model.setFocus("input1");
- find();
- }
- ]]>
- </script>
- </input>
- <input id="input8" ref="/root/formData/ORG_ORD_SEQ" style="left:565px; top:5px; width:45px; height:20px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setFocus("");
- // model.setFocus("input1");
- find();
- }
- ]]>
- </script>
- </input>
- <button id="button5" visibility="visible" style="left:700px; top:5px; width:50px; height:20px; color:transparent; background-color:#99cc00; ">
- <caption>预装</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "YZ";
- datagrid1.addStatus(selectRow , "update");
- model.refresh();
- saveyz();
- ]]>
- </script>
- </button>
- <button id="button6" visibility="visible" style="left:760px; top:5px; width:50px; height:20px; color:transparent; background-color:#99cc00; ">
- <caption>预装取消</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid1.valueMatrix(selectRow , datagrid1.colRef("EXT_FLAG")) = "YZCX";
- datagrid1.addStatus(selectRow , "update");
- model.refresh();
- saveyz();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|