| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260 |
- <?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="">
- <grid/>
- <formData>
- <Pstove/>
- <extshape>
- </extshape>
- <crk/>
- <sfMethod/>
- <gaipan/>
- <startTime/>
- <endTime/>
- <EXTGRD1/>
- <transttime/>
- <tranentime/>
- <EXTSHAPE_DEC_ID/>
- <ccmid>%</ccmid>
- <SLABRTS>%</SLABRTS>
- <HCRCLFS>%</HCRCLFS>
- <GR_GROUPS>%</GR_GROUPS>
- <radiosele>Y</radiosele>
- <radio2/>
- <SpotChecking/>
- <CopingRemark/>
- <qbThick/>
- </formData>
- <datagrid1/>
- <datagrid2/>
- <datagrid3/>
- <datagrid4/>
- <datagrid5/>
- <initBug>
- <ComboBug_Row>
- <LABEL/>
- <VALUE/>
- </ComboBug_Row>
- </initBug>
- <initMend>
- <ComboMend_Row>
- <LABEL/>
- <VALUE/>
- </ComboMend_Row>
- </initMend>
- <initChargeData/>
- <initQueXian>
- <QueXian_Row>
- <LABEL/>
- <VALUE/>
- </QueXian_Row>
- </initQueXian>
- <timer>0</timer>
- <reflash/>
- </root>
- </instance>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript" src="../../js/bCommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- InitParams(node);
- bInit();
- }
-
- function bInit()
- {
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//进行全选操作
- datagrid1.colStatus(0)=false; //初始化时为非全选
- //input4.value = commCurDate();
- //input5.value = commCurDate();
- commSubmit("UIB020220-service" , "success" , "glueAction.do");
-
- input40.value = document.readIniFile("session1" , "UIB020220" , "" , "c:\\WINDOWS\\xgmes3.ini") ;
- input4.value = commCurDate();
- input5.value = commCurDate();
- //if(input40.value != ""){
- // checkbox1.value = "";
- // checkbox2.value = "";
- // input4.disabled = true;
- // input5.disabled = true;
- // input1.disabled = true;
- // input6.disabled = true;
- //}
- model.copyNode("/root/datagrid2" , "/root/resData/BugResult_VO");
- model.copyNode("/root/datagrid3" , "/root/resData/MendResult_VO");
- model.copyNode("/root/initBug" , "/root/resData/ComboBug_VO");
- model.copyNode("/root/initMend" , "/root/resData/ComboMend_VO");
- // model.duplicate("/root/initCharge" , "/root/resData/ChargeNo_VO");
- model.copyNode("/root/initChargeData" , "/root/resData/ChargeNOResult_VO");//炉次号
- model.copyNode("/root/initQueXian", "/root/resData/QueXian_VO");
- model.copyNode("/root/datagrid5" , "/root/resData/SpotResult_VO");
- model.copyNode("/root/datagrid4" , "/root/resData/CopeResult_VO");
- model.refresh();
-
- }
-
- function excelExport1()
- {
- //var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
- //if(x1 == "") return;
- /*datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
- window.alert("导出成功" + x1 + " !!!");*/
- var jsonMerges="[{'name':'y','x':0,'y':0,'cnt':1}]";
- var _cnt = datagrid1.selectedRows;
- commonOutExcel('dataWGSJ',datagrid1.caption,'/root/grid/SlabResult_VO','UIH090060-service',jsonMerges,'xls');
- }
-
- function find()
- {
- caption18.visible = false;
- input9.visible = false;
- //按炉次号进行查询
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- document.writeIniFile("session1" , "UIB020220" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- if(input40.value == "" && input4.value == "" && input1.value == "")
- {
- window.alert("炉次号为空时,生产时间和出库时间至少选择一个进行查询" , "提示");
- return;
- }
- if(input40.value == "" && input4.disabled == true && input1.disabled == true)
- {
- window.alert("炉次号为空时,生产时间和出库时间至少选择一个进行查询" , "提示");
- return;
- }
- if(input40.value != "" && input40.value.length<9 )
- {
- window.alert("炉次号不得小于9位!" , "提示");
- return;
- }
- if(input4.disabled == false)//是否允许时间查询
- {
- model.makeValue("/root/reqData/STA_TIME",input4.value.Trim()+"0000");//生产开始时间
- model.makeValue("/root/reqData/END_TIME",input5.value.Trim()+"9999");//生产结束时间
- }
- else
- {
- model.makeValue("/root/reqData/STA_TIME","0000");//生产开始时间
- model.makeValue("/root/reqData/END_TIME","9999");//生产结束时间
- }
- if(input1.disabled == false)//是否允许时间查询
- {
- model.makeValue("/root/reqData/transttime",input1.value.Trim()+"0000");//出库开始时间
- model.makeValue("/root/reqData/tranentime",input6.value.Trim()+"9999");//出库结束时间
- }
- else
- {
- model.makeValue("/root/reqData/transttime","0000");//出库开始时间
- model.makeValue("/root/reqData/tranentime","9999");//出库结束时间
- }
-
- model.makeValue("/root/reqData/CHARGE_NO" , input40.value.Trim()+"%");//炉次号
-
- //model.makeValue("/root/reqData/STA_TIME" , input4.value+"0000");
- //model.makeValue("/root/reqData/END_TIME" , input5.value+"9999");
- //model.makeValue("/root/reqData/transttime" , input1.value+"0000");
- //model.makeValue("/root/reqData/tranentime" , input6.value+"9999");
- model.makeValue("/root/reqData/ccdivno" ,combo2.value );
- model.makeValue("/root/reqData/SLAB_RTS" ,combo20.value );
- model.makeValue("/root/reqData/HCR_CLFS" ,combo21.value );
- // if(input4.value.Trim() != "" && input5.value.Trim() != "")
- var empId = input45.value.Trim();
- if(empId != "" || combo25.value != '%')
- {
- if(empId == "" ) {
- empId = "%"
- }
-
- model.makeValue("/root/reqData/GR_GROUPS" ,combo25.value );
- model.makeValue("/root/reqData/EXTSHAPE_DEC_ID" ,empId );
- commSubmit("UIB020220-service" , "findEmpID" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
- datagrid1.clearStatus();//将更新的状态清除
- datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
- var str = datagrid1.children;
- model.refresh();
- setColor();
- return;
- }
-
- if(model.getValue("/root/reqData/STA_TIME") != "0000" )
- {
- var days = AddDate(input4.value.Trim(),10,"YYYYMMDD");
- if(days < input5.value.Trim())
- {
- window.alert("查询生产日期不可以超过10天,否则可能导致内存溢出!或生产结束日期不能小于开始日期!", "提示");
- return;
- }
- }
- if(model.getValue("/root/reqData/transttime") != "0000" )
- {
- var day2 = AddDate(input1.value.Trim(),10,"YYYYMMDD");
- if(day2 < input6.value.Trim())
- {
- window.alert("查询出库日期不可以超过10天,否则可能导致内存溢出!或出库结束日期不能小于开始日期!", "提示");
- return;
- }
- }
-
- commSubmit("UIB020220-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
- commAppendData("/root/grid/SlabResult_VO","/root/resData/SlabResult_VO");
- datagrid1.clearStatus();//将更新的状态清除
- datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
- var str = datagrid1.children;
- model.refresh();
- setColor();
- //setColorForRateAll();
- //setColorForRate();
- }
-
- function setColorForRate()
- {
- //datagrid1.rebuildStyle();
- var rate = datagrid1.colRef("WEIGHT_RATE");
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(parseFloat(datagrid1.valueMatrix(i , rate)) > 115)
- {
- datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//超过浇铸重量15%的板坯显红
- }
- }
- }
-
- function setColorForRateAll()
- {
- //datagrid1.rebuildStyle();
- var rate = datagrid1.colRef("WEIGHT_RATE1");
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(parseFloat(datagrid1.valueMatrix(i , rate)) < 85)
- {
- datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//超过浇铸重量15%的板坯显红
- }
- }
- }
-
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //点击保存的时候隐藏表2和表3
- datagrid2.visible="false";
- datagrid3.visible="false";
-
- var colSlabStat = datagrid1.colRef("SLAB_STAT");
-
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) == "Y")
- {
- if(datagrid1.valueMatrix(i , colSlabStat) == "3")
- {
- window.alert("所选板坯中有已出库板坯,不允许进行外观实绩操作,请联系轧钢单位退回后再做处理!","提示");
- return;
- }
- }
- }
-
- if(input9.visible)
- {
- if(input9.value == null || input9.value == "" || input9.value == "0")
- {
- window.alert("全剥类修磨请输入修磨掉的全剥厚度!", "提示");
- return;
- }
- else
- {
- model.makeValue("/root/reqData/qbThick" , input9.value.Trim());//全剥厚度
- }
- }
- commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
- model.makeValue("/root/reqData/CHARGE_NO" , input40.value.Trim()+"%");//向请求中增加炉次号,因为保存后还要查询
-
- getLoggingInInfo();
- commSubmit("UIB020220-service" , "abc" , "glueAction.do");
- // model.copyNode("/root/datagrid1" , "/root/resData/SlabResult_VO");
- find();
- datagrid1.clearStatus();//将更新的状态清除
- model.refresh();
-
- datagrid2.visible = false;
- }
-
- var clockTimer = 0;
- var facFlag = 0;//厂内钢号第一次查询标记
- var ingrDecFlag = "N";//板坯是否改判
-
- function setColor()
- {
- datagrid1.rebuildStyle();
- var colSlabStat = datagrid1.colRef("SLAB_STAT");
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , colSlabStat) == "1")
- {
- datagrid1.rowStyle(i , "data" , "color") = "#00ccff";//计划状态
- }
- else if(datagrid1.valueMatrix(i , colSlabStat) == "3")
- {
- datagrid1.rowStyle(i , "data" , "color") = "#0000ff";
- }
- }
- }
- function wgt(i)
- {
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")) == "")
- return 0;
- else return datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT"));
-
- }
- function getSumWGT()
- {
- var totalWGT = 0;
- var J1WGT=0;
- var J2WGT=0;
- var J3WGT=0;
- var J0WGT=0;
- var totalWGT1 = 0;
- var J1WGT1=0;
- var J2WGT1=0;
- var J3WGT1=0;
- var J0WGT1=0;
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.isSelected(i)==1)//datagrid1.valueMatrix(i ,datagrid1.isSelected) == "TURE".colRef("CHK")
- {
- // if(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT")) == "")
- // {
- //
- // }
- // else
- // {
- //totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("WEIGHT_WGT"))); //总重量
- totalWGT = totalWGT + parseFloat(wgt(i));
- totalWGT1 = totalWGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J1")
- {
- J1WGT = J1WGT + parseFloat(wgt(i));
- J1WGT1 = J1WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
- } //1号铸机重量
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J2")
- {
- J2WGT = J2WGT + parseFloat(wgt(i));
- J2WGT1 = J2WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
- } //2号铸机重量
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "J3")
- {
- J3WGT = J3WGT + parseFloat(wgt(i));
- J3WGT1 =J3WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;
- } //3号铸机重量
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("CC_DEVNO")) == "")
- {
- J0WGT = J0WGT + parseFloat(wgt(i));
- J0WGT1 =J0WGT1 + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")))/1000;//空铸机号重量
- }
- // }
-
- }
- }
- //return totalWGT;
- output1.value=totalWGT;
- output2.value=J1WGT;
- output3.value=J2WGT;
- output4.value=J3WGT;
- output5.value=J0WGT;
-
- output6.value=totalWGT1;
- output7.value=J1WGT1;
- output8.value=J2WGT1;
- output9.value=J3WGT1;
- output10.value=J0WGT1;
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/SlabResult_Row" caption="确认^板坯号^板坯状态^指示厚度*宽度*长度^实际厚度*宽度*长度^理论重量^实际重量^实际牌号^计划牌号^板坯去向^热送区分^切割时间^出库时间^过渡坯^非计划坯^成分等级^判定依据^板坯外观等级^板坯精整方法^余材区分^是否存在^铸机号^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷代码^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^板坯外观缺陷^抽查备注^修磨备注^备注录入时间^外观判定人^所属班组^外观判定时间^成分改判人^成分改判时间^精整待机操作人^精整待机时间^板坯精整检验^精整时间^精整完成操作人^精整完成时间^重量占比率^炉次总重占比^rowStatus3^rowStatus2^EXTSHAPE_GRD1^SF_METHOD1|确认^板坯号^板坯状态^指示厚度*宽度*长度^实际厚度*宽度*长度^理论重量^实际重量^实际牌号^计划牌号^板坯去向^热送区分^切割时间^出库时间^过渡坯^非计划坯^成分等级^判定依据^板坯外观等级^板坯精整方法^余材区分^是否存在^铸机号^缺陷1^缺陷2^缺陷3^缺陷4^缺陷5^缺陷6^缺陷7^缺陷8^缺陷9^缺陷10^抽查备注^修磨备注^备注录入时间^外观判定人^所属班组^外观判定时间^成分改判人^成分改判时间^精整待机操作人^精整待机时间^板坯精整检验^精整时间^精整完成操作人^精整完成时间^重量占比率^炉次总重占比^rowStatus3^rowStatus2^EXTSHAPE_GRD1^SF_METHOD1" colsep="^" colwidth="47, 93, 40, 86, 75, 50, 60, 75, 81, 40, 40, 64, 64, 45, 40, 48, 74, 50, 62, 37, 37, 30, 42, 42, 42, 42, 42, 26, 40, 40, 40, 40, 100, 100, 59, 45, 40, 55, 48, 80, 80, 46, 78, 69, 61, 56, 69, 77, 62, 68, 100, 100, 35" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:55px; width:980px; height:465px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SLAB_NO" type="input" style="background-color:#ffffff; "/>
- <col disabled="true" ref="SLAB_STAT" type="combo">
- <choices>
- <item>
- <label>计划</label>
- <value>1</value>
- </item>
- <item>
- <label>出库</label>
- <value>3</value>
- </item>
- <item>
- <label>在库</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="INSTR_TWL" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="TWL" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WGT" type="input" format="#,###" style="background-color:#ffffff; "/>
- <col editable="false" ref="WEIGHT_WGT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="BEF_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col disabled="true" editable="false" ref="SLAB_RT" type="combo" visibility="visible" style="background-color:#ffffff; ">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>冷轧</label>
- <value>C</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- </choices>
- </col>
- <col disabled="true" editable="false" ref="HCR_CLF" type="combo" style="background-color:#ffffff; ">
- <choices>
- <item>
- <label>冷料</label>
- <value>C</value>
- </item>
- <item>
- <label>热料</label>
- <value>H</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMS_YARD_EXT_DTIME" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="DIFF_STL_GRD_STA_END_YN" style="background-color:#ffffff; "/>
- <col disabled="true" ref="SURPLMATL_YN" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>非计划</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" editable="false" ref="SLAB_INGR_DEC_GRD" type="combo" style="left:920px; top:41px; width:48px; height:21px; background-color:#ffffff; ">
- <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>
- </col>
- <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo">
- <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>8</value>
- </item>
- <item>
- <label>待处理</label>
- <value>9</value>
- </item>
- <item>
- <label>化废</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col disabled="true" editable="false" ref="EXTSHAPE_GRD" type="combo" style="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/>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SF_METHOD" type="combo">
- <choices>
- <item>
- <label>全面精整</label>
- <value>A</value>
- </item>
- <item>
- <label>部分精整</label>
- <value>P</value>
- </item>
- <item>
- <label>无精整</label>
- <value>N</value>
- </item>
- <item>
- <label>待精整</label>
- <value>D</value>
- </item>
- <item>
- <label>精整完成</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>订单才</label>
- <value>1</value>
- </item>
- <item>
- <label>余才</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="MATRL_END_CAUSE_CD"/>
- <col ref="CC_DEVNO"/>
- <col disabled="true" ref="CRK1" type="combo">
- <choices>
- <itemset nodeset="/root/initQueXian/QueXian_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK2" type="combo">
- <choices>
- <itemset nodeset="/root/initQueXian/QueXian_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK3" type="combo">
- <choices>
- <itemset nodeset="/root/initQueXian/QueXian_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="CRK4" type="combo">
- <choices>
- <itemset nodeset="/root/initQueXian/QueXian_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="CRK5" visibility="hidden"/>
- <col ref="CRK6" visibility="hidden"/>
- <col ref="CRK7" visibility="hidden"/>
- <col ref="CRK8" visibility="hidden"/>
- <col ref="CRK9" visibility="hidden"/>
- <col ref="CRK10" visibility="hidden"/>
- <col ref="SPOT_CHECK_REMARK" type="input"/>
- <col ref="COPING_REMARK" type="input"/>
- <col ref="REMARK_TIME"/>
- <col ref="EXTSHAPE_DEC_EMP_ID"/>
- <col ref="GR_GROUP"/>
- <col ref="EXTSHAPE_DEC_DTIME"/>
- <col ref="SLAB_INGR_DEC_EMP_ID" visibility="visible"/>
- <col ref="SLAB_INGR_DEC_DTIME" visibility="visible" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="SF_METHOD_STD_ID"/>
- <col ref="SF_METHOD_STD_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="SF_METHOD_ID"/>
- <col ref="SF_METHOD_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="SF_METHOD_END_ID"/>
- <col ref="SF_METHOD_END_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="WEIGHT_RATE" visibility="hidden"/>
- <col ref="WEIGHT_RATE1" visibility="hidden"/>
- <col ref="rowStatus3" visibility="hidden"/>
- <col ref="rowStatus2" visibility="hidden"/>
- <col ref="EXTSHAPE_GRD1" visibility="hidden"/>
- <col ref="SF_METHOD1" visibility="hidden"/>
- <col ref="rowStatus4" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ///去掉某单元格的板坯缺陷
- if(datagrid1.row < 2) return;
- var start = datagrid1.colRef("CRK1");
- var end = datagrid1.colRef("CRK4");
- if(datagrid1.col >= start && datagrid1.col <= end )
- {
- datagrid1.valueMatrix(datagrid1.row , datagrid1.col) = "";
- datagrid1.addStatus(datagrid1.row , "update");
- datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("rowStatus2")) = "Y";
- }
- datagrid1.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- //output1.value = getSumWGT();
- getSumWGT();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:70px; height:20px; ">炉次号</caption>
- <caption id="caption2" class="cell" style="left:10px; top:526px; width:100px; height:20px; ">板坯判定录入</caption>
- <caption id="caption3" class="cell" style="left:10px; top:545px; width:100px; height:20px; ">板坯外观等级</caption>
- <caption id="caption4" class="cell" style="left:210px; top:545px; width:100px; height:20px; ">板坯外观缺陷代码</caption>
- <caption id="caption5" class="cell" style="left:450px; top:545px; width:100px; height:20px; ">板坯精整方法</caption>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/BugResult_Row" visibility="hidden" allowuserresize="false" caption="缺陷代码^上(T)^下(B)^SM_CD" colsep="^" colwidth="94, 40, 40, 100" defaultrows="50" mergecellsfixedrows="bycolrec" rowheight="30" rowsep="|" style="left:310px; top:135px; width:192px; height:410px; ">
- <col disabled="true" ref="SM_CFNM" type="combo">
- <choices>
- <itemset nodeset="/root/initBug/ComboBug_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
- <col checkvalue="Y,N" ref="CHK2" type="checkbox"/>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- 通过循环判断表1中是否有选中的行,只对表1中选中的行进行操作
- for循环下包含了if(datagrid2.col==1) 和if(datagrid2.col==2)两个小判断
- */
- for(var i=2 ; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")//表1中行被选中
- {
- /*
- 若上表面有问题
- 然后再判断是否选中,是否被取消选择某缺陷
- */
- if(datagrid2.col==1)
- {
- if(datagrid2.valueMatrix(datagrid2.row , 1)=="Y")//表上表面有问题,为“T”
- {
- //将表2中选中的缺陷代码+"T"赋给表1中被选中的行对应的缺陷代码
- for(var x=1; x <=10; x++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=="")//若发现表1中选中行的某缺陷为空
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) = datagrid2.valueMatrix(datagrid2.row , 3)+"T";
- datagrid1.addStatus(i , "update");//改变行状态
- break;//赋值后推出循环
- }
- }
- }
- if(datagrid2.valueMatrix(datagrid2.row , 1)=="N")//若上表面被取消选中
- {
- for(var x=1; x <=10; x++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) == datagrid2.valueMatrix(datagrid2.row , 3)+"T")//若发现表1中选中行的某缺陷为空
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=""
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- break;//赋值后推出循环
- }
- }
- }
- }
- /*
- 若下表面有问题
- 然后再判断是否被选中,是否被取消选择某缺陷
- */
- if(datagrid2.col==2)
- {
- if(datagrid2.valueMatrix(datagrid2.row , 2)=="Y")//表下表面有问题,为“B”
- {
- for(var x=1; x <=10; x++)//将下表面缺陷代码值给表1中选中且为空的某单元格
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=="")//若发现表1中选中行的某缺陷为空
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) = datagrid2.valueMatrix(datagrid2.row , 3)+"B";
- datagrid1.addStatus(i , "update");//增加行状态
- break;//赋值后推出循环
- }
- }
- }
- if(datagrid2.valueMatrix(datagrid2.row , 2)=="N")//若下表面被取消选中
- {
- for(var x=1; x <=10; x++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x)) == datagrid2.valueMatrix(datagrid2.row , 3)+"B")//若发现表1中选中行的某缺陷为空
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("CRK"+x))=""
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- break;//赋值后推出循环
- }
- }
- }
- }
- datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus2")) = "Y";
- }//if end
- }//for end
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="input3" ref="/root/formData/crk" inputtype="button" style="left:310px; top:545px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
- datagrid2.visible = !datagrid2.visible;
- for(var i=1; i <= datagrid2.rows; i++)
- {
- datagrid2.valueMatrix(i , 1)="N";
- datagrid2.valueMatrix(i , 2)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="combo1" ref="/root/formData/extshape" appearance="minimal" style="left:109px; top:545px; width:75px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>待修磨</label>
- <value>3</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
- for(var i=2 ; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK"))=="Y")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus2")) = "Y";
- datagrid1.valueMatrix(i , datagrid1.colRef("EXTSHAPE_GRD")) = combo1.value;
- datagrid1.addStatus(i , "update");//使表1的行状态不变为u
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/formData/sfMethod" inputtype="button" style="left:550px; top:545px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
- datagrid3.visible = !datagrid3.visible;
- for(var i=1; i <= datagrid3.rows; i++)
- {
- datagrid3.valueMatrix(i , 0)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/MendResult_Row" visibility="hidden" allowuserresize="false" caption="选择^板坯精整方法^SM_CD" colsep="^" colwidth="40, 100, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:550px; top:435px; width:142px; height:110px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col disabled="true" ref="SM_CFNM" type="combo">
- <choices>
- <itemset nodeset="/root/initMend/ComboMend_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid3.valueMatrix(datagrid3.row , datagrid3.col) == "Y")
- {
- var cl = datagrid1.colRef("CHK");
- //选择板坯修整方法
- for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , cl)=="Y")
- {
- if(datagrid3.valueMatrix(datagrid3.row , 0)=="Y")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("SF_METHOD")) = datagrid3.valueMatrix(datagrid3.row , 2);
- datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus3")) = "Y";
- datagrid1.addStatus(i , "update");//增加行状态
- }
- if(datagrid3.valueMatrix(datagrid3.row , 0)=="N")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("SF_METHOD")) = "";
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- }
-
- }//end if
- }//endfor
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line1" style="x1:1px; y1:55px; x2:980px; y2:55px; "/>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <script type="javascript" ev:event="onaccesskey">
- <![CDATA[
- openWindow("UIB020220");
- ]]>
- </script>
- <input id="input40" ref="/root/formData/Pstove" style="left:70px; top:5px; width:80px; height:20px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkbox1.value = "";
- checkbox2.value = "";
- input4.disabled = true;
- input5.disabled = true;
- input1.disabled = true;
- input6.disabled = true;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(input40.value == "")
- {
- checkbox1.value = "Y";
- input4.disabled = false;
- input5.disabled = false;
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="cell" style="left:200px; top:5px; width:70px; height:20px; ">生产时间</caption>
- <input id="input4" ref="/root/formData/startTime" inputtype="date" style="left:270px; top:5px; width:85px; height:20px; "/>
- <input id="input5" ref="/root/formData/endTime" inputtype="date" style="left:365px; top:5px; width:85px; height:20px; "/>
- <caption id="caption9" style="left:355px; top:5px; width:20px; height:20px; ">~</caption>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 113)
- {
- window.load("../B03/UIB030203.xrw", "modal", "modalWin", "left:400; top:40; width:420px; height:420px;sysmenu:visible; min:visible; max:hidden; resize:false;");
- }
- ]]>
- </script>
- <button id="button4" style="left:149px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(matchChargeNo(input40.value.Trim()) == false) return;
- try
- {
- var cc = parseInt(input40.value.substr(4 , 8) , 10)-1+"";
- for(var i = 0; i <= 5; i++)
- {
- if(cc.length < 5)
- cc = "0"+cc;
- }
- input40.value = input40.value.substr(0 , 4)+cc;
- find();
- }
- catch(e)
- {
- }
- ]]>
- </script>
- </button>
- <button id="button5" style="left:165px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(matchChargeNo(input40.value.Trim()) == false) return;
- try
- {
- var cc = parseInt(input40.value.substr(4 , 8) , 10)+1+"";
- for(var i = 0; i <= 5; i++)
- {
- if(cc.length < 5)
- cc = "0"+cc;
- }
- input40.value = input40.value.substr(0 , 4)+cc;
- find();
- }
- catch(e)
- {
- }
- ]]>
- </script>
- </button>
- <caption id="caption6" class="cell" style="left:700px; top:545px; width:124px; height:20px; ">重量统计(实际/理论)</caption>
- <output id="output1" style="left:825px; top:545px; width:70px; height:20px; "/>
- <line id="line3" style="x1:885px; y1:565px; x2:825px; y2:565px; "/>
- <caption id="caption8" class="cell" style="left:10px; top:570px; width:160px; height:20px; ">一号铸机重量(实际/理论)</caption>
- <output id="output2" style="left:170px; top:570px; width:60px; height:20px; "/>
- <caption id="caption10" class="cell" style="left:310px; top:570px; width:160px; height:20px; ">二号铸机重量(实际/理论)</caption>
- <output id="output3" style="left:470px; top:570px; width:60px; height:20px; "/>
- <caption id="caption11" class="cell" style="left:620px; top:570px; width:154px; height:20px; ">三号铸机重量(实际/理论)</caption>
- <output id="output4" style="left:775px; top:570px; width:65px; height:20px; "/>
- <caption id="caption12" class="cell" style="left:10px; top:595px; width:160px; height:20px; ">空铸机号重量(实际/理论)</caption>
- <output id="output5" style="left:170px; top:595px; width:60px; height:20px; "/>
- <line id="line4" style="x1:230px; y1:590px; x2:170px; y2:590px; "/>
- <line id="line5" style="x1:530px; y1:590px; x2:470px; y2:590px; "/>
- <line id="line6" style="x1:835px; y1:590px; x2:775px; y2:590px; "/>
- <line id="line7" style="x1:230px; y1:615px; x2:170px; y2:615px; "/>
- <caption id="caption13" class="cell" style="left:200px; top:30px; width:70px; height:20px; ">出库时间</caption>
- <input id="input1" ref="/root/formData/transttime" disabled="true" inputtype="date" style="left:270px; top:30px; width:85px; height:20px; "/>
- <input id="input6" ref="/root/formData/tranentime" disabled="true" inputtype="date" style="left:365px; top:30px; width:85px; height:20px; "/>
- <caption id="caption14" style="left:355px; top:30px; width:20px; height:20px; ">~</caption>
- <output id="output6" style="left:900px; top:545px; width:70px; height:20px; "/>
- <output id="output7" style="left:235px; top:570px; width:60px; height:20px; "/>
- <output id="output8" style="left:535px; top:570px; width:60px; height:20px; "/>
- <output id="output9" style="left:845px; top:570px; width:65px; height:20px; "/>
- <output id="output10" style="left:235px; top:595px; width:60px; height:20px; "/>
- <caption id="caption15" class="cell" style="left:0px; top:30px; width:70px; height:20px; ">铸机号</caption>
- <select1 id="combo2" ref="/root/formData/ccmid" appearance="minimal" style="left:70px; top:30px; width:80px; height:20px; ">
- <choices>
- <item>
- <label>J1</label>
- <value>J1</value>
- </item>
- <item>
- <label>J2</label>
- <value>J2</value>
- </item>
- <item>
- <label>J3</label>
- <value>J3</value>
- </item>
- <item>
- <label>--全部--</label>
- <value>%</value>
- </item>
- </choices>
- </select1>
- <caption id="caption20" class="cell" style="left:460px; top:5px; width:70px; height:20px; ">板坯去向</caption>
- <select1 id="combo20" ref="/root/formData/SLABRTS" appearance="minimal" style="left:530px; top:5px; width:80px; height:20px; ">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>冷轧</label>
- <value>C</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>--全部--</label>
- <value>%</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" class="cell" style="left:620px; top:30px; width:70px; height:20px; ">班 组</caption>
- <select1 id="combo25" ref="/root/formData/GR_GROUPS" appearance="minimal" style="left:690px; top:30px; width:80px; height:20px; ">
- <choices>
- <item>
- <label>甲</label>
- <value>甲</value>
- </item>
- <item>
- <label>乙</label>
- <value>乙</value>
- </item>
- <item>
- <label>丙</label>
- <value>丙</value>
- </item>
- <item>
- <label>丁</label>
- <value>丁</value>
- </item>
- <item>
- <label>--全部--</label>
- <value>%</value>
- </item>
- </choices>
- <hint>
- <![CDATA[外观判定人所属班组]]>
- </hint>
- </select1>
- <caption id="caption26" class="cell" style="left:620px; top:5px; width:70px; height:20px; ">操作人</caption>
- <input id="input45" ref="/root/formData/EXTSHAPE_DEC_ID" style="left:690px; top:5px; width:80px; height:20px; ">
- <hint>
- <![CDATA[指外观判定人]]>
- </hint>
- </input>
- <caption id="caption21" class="cell" style="left:460px; top:30px; width:70px; height:20px; ">热送区分</caption>
- <select1 id="combo21" ref="/root/formData/HCRCLFS" appearance="minimal" style="left:530px; top:30px; width:80px; height:20px; ">
- <choices>
- <item>
- <label>冷料</label>
- <value>C</value>
- </item>
- <item>
- <label>热料</label>
- <value>H</value>
- </item>
- <item>
- <label>--全部--</label>
- <value>%</value>
- </item>
- </choices>
- </select1>
- <line id="line8" style="x1:960px; y1:565px; x2:900px; y2:565px; "/>
- <line id="line9" style="x1:905px; y1:590px; x2:845px; y2:590px; "/>
- <line id="line10" style="x1:595px; y1:590px; x2:535px; y2:590px; "/>
- <line id="line11" style="x1:295px; y1:590px; x2:235px; y2:590px; "/>
- <line id="line12" style="x1:295px; y1:615px; x2:235px; y2:615px; "/>
- <button id="button2" style="left:850px; top:5px; width:100px; height:20px; background-color:#ffff00; ">
- <caption>导出</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- excelExport1() ;
- ]]>
- </script>
- </button>
- <button id="button3" visibility="visible" style="left:790px; top:5px; width:60px; height:20px; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/formData/radiosele" overflow="visible" appearance="full" style="left:185px; top:5px; 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")
- {
- input4.disabled = false;
- input5.disabled = false;
- input1.disabled = true;
- input6.disabled = true;
- checkbox2.value = "";
- }
- else
- {
- input4.disabled = true;
- input5.disabled = true;
- }
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/formData/radio2" overflow="visible" appearance="full" style="left:185px; 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(checkbox2.value == "Y")
- {
- input1.disabled = false;
- input6.disabled = false;
- input4.disabled = true;
- input5.disabled = true;
- checkbox1.value = "";
- }
- else
- {
- input1.disabled = true;
- input6.disabled = true;
- }
- ]]>
- </script>
- </select>
- <caption id="caption16" class="cell" style="left:310px; top:595px; width:75px; height:20px; ">修磨备注</caption>
- <input id="input7" ref="/root/formData/CopingRemark" inputtype="button" style="left:385px; top:595px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
- datagrid4.visible = !datagrid4.visible;
- for(var i=1; i <= datagrid4.rows; i++)
- {
- datagrid4.valueMatrix(i , 0)="N";
- // datagrid4.valueMatrix(i , 2)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input8" ref="/root/formData/SpotChecking" inputtype="button" style="left:585px; top:595px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if(ingrDecFlag == "Y") return; //在改判时不能进行其他操作
- datagrid5.visible = !datagrid5.visible;
- for(var i=1; i <= datagrid5.rows; i++)
- {
- datagrid5.valueMatrix(i , 0)="N";
- // datagrid5.valueMatrix(i , 2)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption17" class="cell" style="left:510px; top:595px; width:75px; height:20px; ">抽查备注</caption>
- <datagrid id="datagrid4" nodeset="/root/datagrid4/CopeResult_Row" visibility="hidden" allowuserresize="false" caption="选择^修磨备注^SM_CD" colsep="^" colwidth="40, 100, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:340px; top:410px; width:175px; height:185px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col disabled="true" ref="SM_CFNM" type="output"/>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid4.valueMatrix(datagrid4.row , datagrid4.col) == "Y")
- {
- var cl = datagrid1.colRef("CHK");
- //选择板坯修整方法
- for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , cl)=="Y")
- {
- if(datagrid4.valueMatrix(datagrid4.row , 0)=="Y")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) = datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) + datagrid4.valueMatrix(datagrid4.row , 1) + ",";
- datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus4")) = "Y";
- //datagrid1.addStatus(i , "update");//增加行状态
- if(datagrid4.valueMatrix(datagrid4.row , 1) == "上表全剥已好" || datagrid4.valueMatrix(datagrid4.row , 1) == "下表全剥已好")
- {
- caption18.visible = true;
- input9.visible = true;
- }
- }
- if(datagrid4.valueMatrix(datagrid4.row , 0)=="N")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("COPING_REMARK")) = "";
- //注意:取消值的地方不能取消行的状态信息,因为某一个值取消了不代表该行就为取消状态
- }
-
- }//end if
- }//endfor
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid5" nodeset="/root/datagrid5/SpotResult_Row" visibility="hidden" allowuserresize="false" caption="选择^抽查备注^SM_CD" colsep="^" colwidth="40, 114, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:585px; top:410px; width:190px; height:185px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col disabled="true" ref="SM_CFNM" type="output"/>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid5.valueMatrix(datagrid5.row , datagrid5.col) == "Y")
- {
- var cl = datagrid1.colRef("CHK");
- //选择板坯修整方法
- for(var i=datagrid1.fixedRows ; i <= datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , cl)=="Y")
- {
- if(datagrid5.valueMatrix(datagrid5.row , 0)=="Y")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) = datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) + datagrid5.valueMatrix(datagrid5.row , 1) + ",";
- datagrid1.valueMatrix(i , datagrid1.colRef("rowStatus4")) = "Y";
- //datagrid1.addStatus(i , "update");//增加行状态
- }
- if(datagrid5.valueMatrix(datagrid5.row , 0)=="N")
- {
- datagrid1.valueMatrix(i , datagrid1.colRef("SPOT_CHECK_REMARK")) = " ";
- }
-
- }
- }
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" style="left:795px; top:35px; width:50px; height:15px; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <input id="input9" ref="/root/formData/qbThick" visibility="hidden" format="999999-9999999" style="left:765px; top:595px; width:55px; height:20px; "/>
- <caption id="caption18" class="cell" visibility="hidden" style="left:700px; top:595px; width:65px; height:20px; ">全剥厚度</caption>
- </xhtml:body>
- </xhtml:html>
|