| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <?xml-stylesheet href="../css/bCommon.css" type="text/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>
- <StDate/>
- <EndDate/>
- <StlGrd/>
- <CHARGE_NO/>
- <INGR_DEC_ID/>
- <SHEN_STIME/>
- <SHEN_ETIME/>
- <DATETIME>S</DATETIME>
- <banci/>
- <banzu/>
- <XIUYUE>Y</XIUYUE>
- <IS_INGR_DCS>False</IS_INGR_DCS>
- </formData>
- <reqData/>
- <resData/>
- <datagrid1/>
- <datagrid2/>
- <datagrid3/>
- <fwdData>
- <UIB030202>
- <ORD_NO/>
- <ORD_SEQ/>
- <URL/>
- </UIB030202>
- </fwdData>
- <CHECKED>Y</CHECKED>
- <combData>
- <SlabTatus_Row/>
- </combData>
- <AGDcsCharge_Row/>
- </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[
- function Init(node)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIB030202-service", "success", "glueAction.do");
- model.copyNode("/root/combData" , "/root/resData/SlabTatus_VO");
- input2.value = commCurDate();
- input3.value = commCurDate();
-
- input1.value = document.readIniFile("session1" , "UIB030202" , "" , "c:\\WINDOWS\\xgmes3.ini");
-
- if(input1.value != "")
- {
- checkbox1.value = "";
- input2.disabled = true;
- input3.disabled = true;
- }
- }
- function find()
- {
- document.writeIniFile("session1" , "UIB030202" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- if(model.getValue("/root/formData/CHARGE_NO") == "" && (input2.disabled == true || input2.value == "")) {
- alert("请输入炉号或时间参数!");
- return;
- }
- if(model.getValue("/root/formData/CHARGE_NO") == "")
- {
- model.makeValue("/root/reqData/CHARGENO" , "1");//炉号
- }
- else
- {
- model.makeValue("/root/reqData/CHARGENO" , input1.value.Trim());//炉号
- }
- if(input2.disabled == false)//是否允许时间查询
- {
- model.makeValue("/root/reqData/SHEN_SDTIME",input2.value.Trim()+"0000");//生产开始时间
- model.makeValue("/root/reqData/SHEN_EDTIME",input3.value.Trim()+"9999");//生产结束时间
- }
- else
- {
- model.makeValue("/root/reqData/SHEN_SDTIME","0000");//生产开始时间
- model.makeValue("/root/reqData/SHEN_EDTIME","9999");//生产结束时间
- }
- var dsc_id = input45.value.Trim();
- if( dsc_id == "")
- {
- dsc_id = "%";
- }
- model.makeValue("/root/reqData/IS_INGR_DCS" , model.getValue("/root/formData/IS_INGR_DCS"));
- model.makeValue("/root/reqData/INGR_DEC_ID" ,dsc_id);//判定人
- commSubmit("UIB030202-service", "find", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/ListResult_1_VO");
- model.removenode("/root/datagrid2");
- model.removenode("/root/datagrid3");
- model.makeNode("/root/datagrid2");
- model.makeNode("/root/datagrid3");
- model.refresh();
- setColor();
- }
- var facFlag = 0;
-
- function save()
- {
- if(commComfirmBox("确认判定?若已做改判操作,则不需要再点保存,否则会重新判定!","提示")=="0") return;
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/XIUYUE" , model.getValue("/root/formData/XIUYUE"));
- model.makeValue("/root/reqData/CHEM_SEQ" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHEM_SEQ")));
- model.makeValue("/root/reqData/CHARGE_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHARGE_NO")));
- model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));//getLoggingInInfo();//获取登录人信息
- model.makeValue("/root/reqData/XX" , "UIB030202_DCS");
- commSubmit("UIB030202-service", "save", "glueAction.do");
- find();
- }
-
- var unqualifiedFlag = 0;
- function setColor()
- {
- datagrid1.rebuildStyle();
- var seqCOL = datagrid1.colRef("CHEM_SEQ");
- var lstCOL = datagrid1.colRef("LST_INGR_CD");
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , seqCOL)==datagrid1.valueMatrix(i , lstCOL).substr(2))
- {
- datagrid1.rowStyle(i , "data" , "color") = "#0000ff";
- }
- else
- {
- datagrid1.rowStyle(i , "data" , "color") = "#000000";
- }
-
- if(datagrid1.valueMatrix(i , datagrid1.colRef("STL_GRD")) != datagrid1.valueMatrix(i , datagrid1.colRef("BEF_STL_GRD")))
- {
- datagrid1.cellStyle("background-color" , i , datagrid1.colRef("STL_GRD")) = "#ff00ff";
- }
- }
-
- }
-
- function setColor1()
- {
- datagrid2.rebuildStyle();
- var COL = datagrid2.colRef("SLAB_INGR_DEC_GRD");
- for(var i = datagrid2.fixedRows; i < datagrid2.rows; i++)
- {
- if(datagrid2.valueMatrix(i , datagrid2.colRef("L2_MEMO")) != "")
- {
- datagrid2.rowstyle(i, "data", "color") = "#0000ff";
- }
-
- if(datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_INGR_DEC_GRD"))=="2")
- {
- datagrid2.cellStyle("background-color" , i , COL) = "#ff0000";
- }
- else if(datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_INGR_DEC_GRD"))=="")
- {
- datagrid2.cellStyle("background-color" , i , COL) = "#ff0000";
- }
- if(datagrid2.valueMatrix(i , datagrid2.colRef("STL_GRD")) != datagrid2.valueMatrix(i , datagrid2.colRef("BEF_STL_GRD")))
- {
- datagrid2.cellStyle("background-color" , i , datagrid2.colRef("STL_GRD")) = "#ff00ff";
- }
- }
- }
-
- //判定实绩值是否在成品放行范围内
- function setColor3()
- {
- var maxCol = datagrid3.colRef("CHEM_MAX3");
- var minCol = datagrid3.colRef("CHEM_MIN3");
- var valCol = datagrid3.colRef("CHEM_VAL");
- var max;
- var min;
- var val;
-
- //datagrid3.rebuildStyle();
-
- for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
- {
- max = datagrid3.valueMatrix(i , maxCol);
- min = datagrid3.valueMatrix(i , minCol);
- val = datagrid3.valueMatrix(i , valCol);
-
- if(val == "" && (max != "" || min != ""))//无标准
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- //unqualifiedFlag++;
- }
- else if(max != "" && min != "")//最大最小值均存在
- {
- if(parseFloat(val) < parseFloat(min) ||parseFloat(val) > parseFloat(max))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- //unqualifiedFlag++;
- }
- }
- else if(max != "" )//仅有最大
- {
- if(parseFloat(val) > parseFloat(max))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- //unqualifiedFlag++;
- }
- }
- else if(min != "" )//仅有最小
- {
- if(parseFloat(val) < parseFloat(min))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- //unqualifiedFlag++;
- }
- }
- }
-
- model.refresh();
- }
-
- //各套标准与成分实绩比较,不合格显红色
- function setColor2(chemMax , chemMin)
- {
- var maxCol = datagrid3.colRef(chemMax);
- var minCol = datagrid3.colRef(chemMin);
- var valCol = datagrid3.colRef("CHEM_VAL");
- var max;
- var min;
- var val;
-
- datagrid3.rebuildStyle();
-
- for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
- {
- max = datagrid3.valueMatrix(i , maxCol);
- min = datagrid3.valueMatrix(i , minCol);
- val = datagrid3.valueMatrix(i , valCol);
-
- if(val == "" && (max != "" || min != ""))//无标准
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- unqualifiedFlag++;
- }
- else if(max != "" && min != "")//最大最小值均存在
- {
- if(parseFloat(val) < parseFloat(min) ||parseFloat(val) > parseFloat(max))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- unqualifiedFlag++;
- }
- }
- else if(max != "" )//仅有最大
- {
- if(parseFloat(val) > parseFloat(max))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- unqualifiedFlag++;
- }
- }
- else if(min != "" )//仅有最小
- {
- if(parseFloat(val) < parseFloat(min))
- {
- datagrid3.cellStyle("background-color" , i , valCol) = "#ff0000";
- caption33.visible = true;
- unqualifiedFlag++;
- }
- }
- }
- model.refresh();
- }
-
- var chemVal;
- var chemName;
- var count;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" pagewidth="980" pageheight="620" style="font-size:16pt; ">
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
- <input id="input1" ref="/root/formData/CHARGE_NO" style="left:50px; top:5px; width:85px; height:20px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 113)
- {
- model.setFocus("");
- model.setFocus("input1");
- find();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkbox1.value = "";
- input2.disabled = true;
- input3.disabled = true;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(input1.value == "")
- {
- checkbox1.value = "Y";
- input2.disabled = false;
- input3.disabled = false;
- }
- ]]>
- </script>
- <hint>
- <![CDATA[炉号格式为9位]]>
- </hint>
- </input>
- <input id="input2" ref="/root/formData/SHEN_STIME" inputtype="date" style="left:275px; top:5px; width:88px; height:20px; "/>
- <line id="line2" style="x1:362px; y1:15px; x2:370px; y2:15px; "/>
- <input id="input3" ref="/root/formData/SHEN_ETIME" inputtype="date" style="left:370px; top:5px; width:88px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:50px; height:20px; ">炉 号</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_1_Row" caption="炉次号^工序代码^实际牌号^计划牌号^次数^判定工序^判定人^连铸机号" colsep="^" colwidth="82, 38, 52, 58, 33, 50, 55,38" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:35px; width:305px; height:537px; ">
- <col editable="false" ref="CHARGE_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
- <col ref="CHEM_L2_PROC_CD" style="text-align:left; "/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="BEF_STL_GRD" style="text-align:left; "/>
- <col ref="CHEM_SEQ" visibility="visible" style="text-align:right; "/>
- <col ref="LST_INGR_CD" style="text-align:left; "/>
- <col ref="CHARGE_INGR_DEC_EMP_ID" style="text-align:left; "/>
- <col ref="ACT_CCM_RT" style="text-align:left; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.row > 0 && datagrid1.col == datagrid1.colRef("CHARGE_NO") && datagrid1.row >= datagrid1.fixedRows){
- caption33.visible = false;
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- //datagrid1.col = 0;//转移焦点,以免拖动滚动条时又做了查询
- var row = datagrid1.row;
- model.makeValue("/root/reqData/CHARGE_NO" , datagrid1.valueMatrix(row , datagrid1.colRef("CHARGE_NO")));
- model.makeValue("/root/reqData/STL_GRD" , datagrid1.valueMatrix(row , datagrid1.colRef("STL_GRD")));
- model.makeValue("/root/reqData/CHEM_SEQ" , datagrid1.valueMatrix(row , datagrid1.colRef("CHEM_SEQ")));
- //commSendReq("/root/datagrid1/ListResult_1_Row["+datagrid1.row+"]");
- commSubmit("UIB030202-service", "findSlab", "glueAction.do");
- model.copyNode("/root/datagrid2" , "/root/resData/ListResult_2_VO");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
- setColor1();
- setColor2("CHEM_MAX" , "CHEM_MIN");
-
- //保存元素值到数组
- chemVal = new Array();
- chemName= new Array();
- count = 0;
- for(var i = datagrid3.fixedRows; i < datagrid3.rows; i++)
- {
- chemVal[count] = datagrid3.valueMatrix(i , datagrid3.colRef("CHEM_VAL"));
- chemName[count]= datagrid3.valueMatrix(i , datagrid3.colRef("CHEM_CD"));
- count++;
- }
- //设置字体大小
- datagrid3.allstyle( "data", "font-size" ) = "12pt";
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/ListResult_2_Row" caption="板坯号^SLAB_NO^炉号^板坯状态^是否有特殊要求^合同号^订单号^计划号^原始合同号^原始订单号^实际规格^实际牌号^计划牌号^成分等级^判定方式^外观等级^精整方法^余材区分^中厚板特殊要求^改判说明^申请进度^加热要求^轧制要求^取样要求^热处理要求^炼钢判定及处理要求^成品判定及处理要求" colsep="^" colwidth="98, 51, 42, 95, 37, 64, 34, 90,60, 32, 73, 72, 43, 61, 60, 56, 58, 51, 250, 100, 80, 120, 120, 120, 120, 128, 128" explorerbar="sortmove" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" selectionmode="free" tooltip="label" style="left:308px; top:35px; width:665px; height:265px; ">
- <col ref="SLAB_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
- <col ref="SLAB_NO" visibility="hidden"/>
- <col ref="CHARGE_NO" visibility="hidden"/>
- <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/combData/SlabTatus_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="CUST_SPEC_NO" type="input" style="text-align:left; "/>
- <col ref="ORD_NO" style="text-align:left; cursor:hand; "/>
- <col ref="ORD_SEQ" style="text-align:left; "/>
- <col ref="L2_SCH_NO"/>
- <col ref="ORG_ORD_NO" visibility="visible" style="text-align:left; cursor:hand; "/>
- <col ref="ORG_ORD_SEQ" visibility="visible" style="text-align:left; "/>
- <col ref="TWL" style="left:529px; top:30px; width:67px; height:21px; text-align:right; "/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="BEF_STL_GRD" style="text-align:left; "/>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>待判</label>
- <value/>
- </item>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- <item>
- <label>合格</label>
- <value>0</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>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo" style="text-align:left; ">
- <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>10</value>
- </item>
- <item>
- <label>流转申请中</label>
- <value>11</value>
- </item>
- <item>
- <label>流转申请取消</label>
- <value>12</value>
- </item>
- <item>
- <label>流转确认成功</label>
- <value>13</value>
- </item>
- <item>
- <label>手动充当</label>
- <value>14</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
- <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" visibility="hidden" style="text-align:left; ">
- <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" style="text-align:left; ">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="L2_MEMO" style="text-align:left; "/>
- <col ref="SLAB_DCS_DETAIL" style="text-align:left; "/>
- <col ref="ASK_TP"/>
- <col ref="ASK_CFM_JR_DESC"/>
- <col ref="ASK_CFM_ZZ_DESC"/>
- <col ref="ASK_CFM_QY_DESC"/>
- <col ref="ASK_CFM_RCL_DESC"/>
- <col ref="ASK_CFM_LGPD_DESC"/>
- <col ref="CFPDYQ"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //查询板坯成分及各套标准信息
- if(datagrid2.col == datagrid2.colRef("SLAB_NO") && datagrid2.row >= datagrid2.fixedRows)
- {
- caption33.visible = false;
- model.removenode("/root/reqData");
- var ordno;
- var ordseq;
- var stlgrd;
- if(datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_NO")) != "")
- {
- ordno = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_NO"));
- ordseq = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORD_SEQ"));
- model.makeValue("/root/reqData/ORDNO" , ordno);
- model.makeValue("/root/reqData/ORDSEQ", ordseq);
- commSubmit("UIB030202-service", "findS", "glueAction.do");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
- }
- else if(datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_SEQ")) != "")
- {
- ordno = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_NO"));
- ordseq = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("ORG_ORD_SEQ"));
- model.makeValue("/root/reqData/ORDNO" , ordno);
- model.makeValue("/root/reqData/ORDSEQ", ordseq);
- commSubmit("UIB030202-service", "findS", "glueAction.do");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
- }
- else
- {
- stlgrd = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("STL_GRD"));
- model.makeValue("/root/reqData/STLGRD" , stlgrd);
- commSubmit("UIB030202-service", "findTafac", "glueAction.do");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
- }
-
-
- for(var i = 0; i < count; i++)
- {
- for(var j = datagrid3.fixedRows; j < datagrid3.rows; j++)
- {
- if(datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_CD")) == chemName[i])
- {
- datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_VAL")) = chemVal[i];
- }
- }
- }
- unqualifiedFlag = 0;
- caption33.visible = false;
- setColor2("CHEM_MAX" , "CHEM_MIN");//成分实绩与各套标准进行比较,不合格为红色
- setColor3();
- if(unqualifiedFlag > 0){
- window.alert("有"+unqualifiedFlag+"条元素成分不合格", "提示");
- }
- }
-
- if(datagrid2.colRef("STL_GRD") == datagrid2.col)//若点击的为合同号的列,则以合同为查询条件
- {
- model.removenode("/root/reqData");
- var stlgrd;
- stlgrd = datagrid2.valueMatrix(datagrid2.row , datagrid2.colRef("STL_GRD"));
- model.makeValue("/root/reqData/STLGRD" , stlgrd);
- commSubmit("UIB030202-service", "findTafac", "glueAction.do");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
- for(var i = 0; i < count; i++)
- {
- for(var j = datagrid3.fixedRows; j < datagrid3.rows; j++)
- {
- if(datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_CD")) == chemName[i])
- {
- datagrid3.valueMatrix(j , datagrid3.colRef("CHEM_VAL")) = chemVal[i];
- }
- }
- }
- caption33.visible = false;
- setColor2("CHEM_MAX" , "CHEM_MIN");//成分实绩与各套标准进行比较,不合格为红色
- setColor3();
- }
-
- //链接到品质设计结果查询界面
- if(datagrid2.colRef("ORD_NO") == datagrid2.col)//若点击的为合同号的列,则以合同为查询条件
- {
- model.setValue("/root/fwdData/UIB030202/ORD_NO", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORD_NO")));
- model.setValue("/root/fwdData/UIB030202/ORD_SEQ", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORD_SEQ")));
- model.setValue("/root/fwdData/UIB030202/URL", "./../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB030202"));
- }
- if(datagrid2.colRef("ORG_ORD_NO") == datagrid2.col)//若点击的为原始合同号的列,则以原始合同为查询条件
- {
- model.setValue("/root/fwdData/UIB030202/ORD_NO", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORG_ORD_NO")));
- model.setValue("/root/fwdData/UIB030202/ORD_SEQ", datagrid2.valueMatrix(datagrid2.row, datagrid2.colRef("ORG_ORD_SEQ")));
- model.setValue("/root/fwdData/UIB030202/URL", "./../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UIB030202"));
- }
-
- datagrid3.allstyle( "data", "font-size" ) = "12pt";
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/ListResult_3_Row" caption="元素代码^实绩^炼钢放行标准^炼钢放行标准^成品放行标准^成品放行标准^内控标准^内控标准|元素代码^实绩^最小值^最大值^最小值^最大值^最小值^最大值" colsep="^" colwidth="143, 85, 67,67, 66, 66, 66, 66" dataheight="35" defaultrows="30" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:308px; top:305px; width:665px; height:315px; ">
- <col ref="CHEM_CD" style="font-weight:bold; text-align:left; border-style:solid; "/>
- <col editable="false" ref="CHEM_VAL" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MIN" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MAX" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MIN3" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MAX3" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MIN1" style="font-weight:bold; text-align:right; "/>
- <col ref="CHEM_MAX1" style="font-weight:bold; text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //若点击的大于表头,则直接返回
- if(datagrid3.row > datagrid3.fixedRows-2)
- {
- return;
- }
- //屏蔽滚动条点击事件
- if(datagrid3.mouseCol == -1 || datagrid3.mouseCol == 8)
- {
- return;
- }
- datagrid3.allstyle( "data", "font-size" ) = "15pt";
- //点击“放行”、成分放行、内控、客户各套标准时,与实绩值进行比较
- if(datagrid3.col == datagrid3.colRef("CHEM_MAX") || datagrid3.col == datagrid3.colRef("CHEM_MIN") )
- {
- setColor2("CHEM_MAX" , "CHEM_MIN");
- }
- else if(datagrid3.col == datagrid3.colRef("CHEM_MAX3") || datagrid3.col == datagrid3.colRef("CHEM_MIN3"))
- {
- setColor2("CHEM_MAX3" , "CHEM_MIN3");
- }
- else if(datagrid3.col == datagrid3.colRef("CHEM_MAX2") || datagrid3.col == datagrid3.colRef("CHEM_MIN2"))
- {
- setColor2("CHEM_MAX2" , "CHEM_MIN2");
- }
- else if(datagrid3.col == datagrid3.colRef("CHEM_MAX1") || datagrid3.col == datagrid3.colRef("CHEM_MIN1"))
- {
- setColor2("CHEM_MAX1" , "CHEM_MIN1");
- }
- datagrid3.allstyle( "data", "font-size" ) = "12pt";
- ]]>
- </script>
- </datagrid>
- <button id="button1" style="left:0px; top:575px; width:110px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>炉次改判</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(datagrid1.row == 0 || datagrid1.row == -1)
- {
- window.alert("请选择需要改判的炉次!" , "提示");
- return;
- }
- if(facFlag==0)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeNode("/root/datagrid4");
- commSubmit("UIB020050-service", "findFacIngr", "glueAction.do");
- model.copyNode("/root/datagrid4" , "/root/resData/FacStlResult_VO");
- model.refresh();
- facFlag++;
- }
- window.load("./_0302CHARGENO.xrw", "modal", "modalWin", "left:400; top:40; width:800px; height:550px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/datagrid4" , "/root/datagrid4");
- ]]>
- </script>
- </button>
- <button id="button2" style="left:100px; top:575px; width:120px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>板坯改判</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(datagrid1.row == 0 || datagrid1.row == -1)
- {
- window.alert("请选择需要改判的炉次!" , "提示");
- return;
- }
- window.load("./_0302SLAB.xrw", "modal", "modalWin", "left:250; top:50; width:850px; height:580px;sysmenu:visible; min:visible; max:hidden; resize:false;" , "/root/datagrid2" , "/root/datagrid2");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/formData/DATETIME" appearance="minimal" style="left:190px; top:5px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>生产日期</label>
- <value>S</value>
- </item>
- <item>
- <label>判定日期</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <script type="javascript" ev:event="onaccesskey">
- <![CDATA[
- alert("dd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 13)
- {
- window.load("./UIB030203.xrw", "modal", "modalWin", "left:400; top:40; width:420px; height:420px;sysmenu:visible; min:visible; max:hidden; resize:false;");
- }
- ]]>
- </script>
- <button id="button3" style="left:0px; top:599px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>微量元素查询</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("./_UIB020030.xrw", "modeless", "modalWin", "left:150; top:50; width:1005px; height:680px;sysmenu:visible; min:visible; max:visible; resize:true;" );
- ]]>
- </script>
- </button>
- <button id="button4" style="left:135px; top:7px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(matchChargeNo(input1.value.Trim()) == false) return;
- try
- {
- var cc = parseInt(input1.value.substr(4 , 8) , 10)-1+"";
- for(var i = 0; i <= 5; i++)
- {
- if(cc.length < 5)
- cc = "0"+cc;
- }
- input1.value = input1.value.substr(0 , 4)+cc;
- find();
- }
- catch(e)
- {
- }
- ]]>
- </script>
- </button>
- <button id="button5" style="left:150px; top:7px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(matchChargeNo(input1.value.Trim()) == false) return;//判断炉号格式是否正确
- try
- {
- var cc = parseInt(input1.value.substr(4 , 8) , 10)+1+"";
- for(var i = 0; i <= 4; i++)
- {
- if(cc.length < 5)
- cc = "0"+cc;
- }
- input1.value = input1.value.substr(0 , 4)+cc;
- find();
- }
- catch(e)
- {
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell" style="left:170px; top:5px; width:25px; height:20px; "/>
- <select id="checkbox1" ref="/root/CHECKED" overflow="visible" appearance="full" style="left:177px; top:7px; width:18px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox1.value == "Y")
- {
- input2.disabled = false;
- input3.disabled = false;
- }
- else
- {
- input2.disabled = true;
- input3.disabled = true;
- }
- ]]>
- </script>
- </select>
- <caption id="caption3" class="cell" style="left:705px; top:5px; width:55px; height:20px; ">是否修约</caption>
- <select1 id="combo2" ref="/root/formData/XIUYUE" appearance="minimal" style="left:760px; top:5px; width:45px; height:20px; ">
- <choices>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- <item>
- <label>否</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption26" class="cell" style="left:460px; top:5px; width:50px; height:20px; ">判定人</caption>
- <input id="input45" ref="/root/formData/INGR_DEC_ID" style="left:510px; top:5px; width:80px; height:20px; ">
- <hint>
- <![CDATA[指成分判定人]]>
- </hint>
- </input>
- <button id="button6" style="left:100px; top:600px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>复合元素计算</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(datagrid1.row < datagrid1.fixedRows)
- {
- window.alert("请选择炉次!" , "提示");
- return;
- }
- if(commComfirmBox("确认进行复合元素的计算?","提示")=="0") return;
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/XX" , "UIB020235_1");
- model.makeValue("/root/reqData/CHARGENO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHARGE_NO")));
- model.makeValue("/root/reqData/CHEMSEQ" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CHEM_SEQ")));
- commSubmit("UIB020235-service" , "save" , "glueAction.do");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" style="left:200px; top:575px; width:105px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>重判炉次</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIB030202-service", "find4", "glueAction.do");
- var charge = "";
- var srcRef = "/root/resData/AGDcsCharge_VO/AGDcsCharge_Row/CHARGE_NO"
- var nodeList = instance1.selectNodes(srcRef);
- for(var i = 1 ; i<= nodeList.length ; i++)
- {
- charge = charge +"\n" +model.getValue("/root/resData/AGDcsCharge_VO/AGDcsCharge_Row["+i+"]/CHARGE_NO");
- }
- window.alert("重判炉次:"+charge , "提示");
- model.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[判定后,化验室重新发送成分数据的炉次]]>
- </hint>
- </button>
- <button id="button8" visibility="hidden" style="left:820px; top:5px; width:60px; height:20px; ">
- <caption>find</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button9" visibility="hidden" style="left:915px; top:5px; width:45px; height:20px; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell" style="left:595px; top:5px; width:55px; height:20px; ">判定状态</caption>
- <select1 id="combo3" ref="/root/formData/IS_INGR_DCS" appearance="minimal" style="left:650px; top:5px; width:50px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>False</value>
- </item>
- <item>
- <label>待判</label>
- <value>True</value>
- </item>
- </choices>
- </select1>
- <caption id="caption33" visibility="hidden" style="left:560px; top:275px; width:175px; height:25px; font-size:14pt; font-weight:bold; color:#ff0000; ">请注意!有元素成分不合格!</caption>
- </xhtml:body>
- </xhtml:html>
|