| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.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>
- <chargeNo/>
- <DORD/>
- <DORDSEQ/>
- <CHKORD>1</CHKORD>
- </formData>
- <ChargeComm>
- <ListResult_Row>
- <THE_STL_GRD/>
- <LST_INGR_CD/>
- <TIME/>
- <INGR_DEC/>
- <ORD/>
- <ORD_FL/>
- <CUR_PROG_CD/>
- <EXTSHAPE_GRD/>
- <SLAB_INGR_DEC_KIND/>
- </ListResult_Row>
- </ChargeComm>
- <datagrid1/>
- <flag>UIB020040</flag>
- <shuoming>说明:点击“内控标准”,实绩值(修约后)将与“内控牌号”标准进行比较,不合格显示红色;点击“炼钢放行”,实绩值将与“炼钢放行”标准进行比较,依此类推,不合格显示红色;无实绩的均显示紫色。默认情况下判定结果为“2”的显示红色。</shuoming>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- InitParams(node);
- input40.value = document.readIniFile("session1" , "UIB020040" , "" , "c:\\WINDOWS\\xgmes3.ini");
- input5.value = document.readIniFile("session1" , "UIB020040_ORDNO" , "" , "c:\\WINDOWS\\xgmes3.ini");
- input10.value = document.readIniFile("session1" , "UIB020040_ORDSEQ" , "" , "c:\\WINDOWS\\xgmes3.ini");
- }
-
- function find()
- {
- if(input40.value.Trim()=="") return;
-
- document.writeIniFile("session1" , "UIB020040" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- document.writeIniFile("session1" , "UIB020040_ORDNO" , input5.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- document.writeIniFile("session1" , "UIB020040_ORDSEQ" , input10.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- document.writeIniFile("session1" , "UIB020040" , input40.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- var length = input40.value.length;
- if( checkbox1.value == 1 )
- {
- if(input5.value.Trim() == "" )
- {
- window.alert("请输入对比合同号及订单号!", "提示");
- return;
- }
- if(length > 10)//板坯号时提示用户不要勾选合同对比查询
- {
- window.alert("请输入10位数炉号来选择合同对比查询,否则可能查不到数据!", "提示");
- }
- model.makeValue("/root/reqData/QQ" , input40.value.Trim());
- model.makeValue("/root/reqData/DORD" , input5.value.Trim());
- model.makeValue("/root/reqData/DSEQ" , input10.value.Trim());
- commSubmit("UIB020040-service" , "findCharge" , "glueAction.do");
- }
- else if(length > 10)//按板坯号查询
- {
- model.makeValue("/root/reqData/QQ" , input40.value.Trim());
- commSubmit("UIB020040-service" , "findSlab" , "glueAction.do");
- }
- else//按炉次号查询
- {
- model.makeValue("/root/reqData/QQ" , input40.value.Trim());
- commSubmit("UIB020040-service" , "findCharge" , "glueAction.do");
- }
-
- model.copyNode("/root/ChargeComm" , "/root/resData/ListResult_VO");//厂内钢号等信息
- model.copyNode("/root/datagrid1" , "/root/resData/CHEMINFO_VO");
- model.refresh();
- setColor();
- }
-
-
- function setColor()
- {
- var rstCol = datagrid1.colRef("CHEM_DCS_RST");
- datagrid1.rebuildStyle();
- for(var i = 1; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , rstCol)=="2")
- {
- datagrid1.cellstyle("background-color", i, rstCol) = "#ff0000";
- }
- }
- }
-
- function setColorX()
- {
-
- var valCol = datagrid1.colRef("CHEM_VAL");
- var minCol;
- var maxCol ;
-
- datagrid1.colstyle(valCol, "data", "background-color") = "#ffffff";//恢复初始的白色再染色
- if(datagrid1.col == datagrid1.colRef("CHEM_MIN1") || datagrid1.col == datagrid1.colRef("CHEM_MAX1"))
- {
- minCol = datagrid1.colRef("CHEM_MIN1");//实绩值做在列
- maxCol = datagrid1.colRef("CHEM_MAX1");//最小值的列
- }
- else if (datagrid1.col == datagrid1.colRef("CHEM_MIN2") || datagrid1.col == datagrid1.colRef("CHEM_MAX2"))
- {
- minCol = datagrid1.colRef("CHEM_MIN2");//实绩值做在列
- maxCol = datagrid1.colRef("CHEM_MAX2");//最小值的列
- }
- else if (datagrid1.col == datagrid1.colRef("CHEM_MIN3") || datagrid1.col == datagrid1.colRef("CHEM_MAX3"))
- {
- minCol = datagrid1.colRef("CHEM_MIN3");//实绩值做在列
- maxCol = datagrid1.colRef("CHEM_MAX4");//最小值的列
- }
- else if (datagrid1.col == datagrid1.colRef("CHEM_MIN4") || datagrid1.col == datagrid1.colRef("CHEM_MAX4"))
- {
- minCol = datagrid1.colRef("CHEM_MIN4");//实绩值做在列
- maxCol = datagrid1.colRef("CHEM_MAX4");//最小值的列
- }
-
- var min = "";
- var max = "";
- var val = "";
- for(var i = 1; i < datagrid1.rows; i++)
- {
- min = datagrid1.valueMatrix(i , minCol);//成分最小
- max = datagrid1.valueMatrix(i , maxCol);//最大
- val= datagrid1.valueMatrix(i , valCol);//实绩
-
- if(val != "" && min !="" && parseFloat(min) > parseFloat(val) )//实绩值应大于等于指示最小值,否则不合格
- {
-
- datagrid1.cellStyle("background-color" , i , valCol) = "#ff0000";
- }
- if(val != "" && max != "" && parseFloat(max) < parseFloat(val))//实绩值应小于等于指示最大值,否则不合格
- {
- datagrid1.cellStyle("background-color" , i , valCol) = "#ff0000";
- }
- if(val =="" && (max != "" || min !="") )
- {
- datagrid1.cellStyle("background-color" , i , valCol) = "#cc99ff";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" pagewidth="980" pageheight="620" style="font-family:黑体; font-size:12px; ">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">炉次号/板坯号</caption>
- <caption id="caption2" class="cell" style="left:0px; top:35px; width:975px; height:55px; "/>
- <caption id="caption3" class="cell" style="left:0px; top:40px; width:88px; height:20px; text-align:left; ">计划/实际钢号</caption>
- <caption id="caption4" class="cell" style="left:240px; top:40px; width:101px; height:20px; text-align:left; ">判定方式</caption>
- <caption id="caption5" class="cell" style="left:490px; top:40px; width:88px; height:20px; text-align:left; ">判定时间</caption>
- <caption id="caption6" class="cell" style="left:738px; top:40px; width:100px; height:20px; text-align:left; ">成分判定等级</caption>
- <caption id="caption7" class="cell" style="left:0px; top:65px; width:88px; height:20px; text-align:left; ">计划/实际合同</caption>
- <caption id="caption8" class="cell" style="left:240px; top:65px; width:101px; height:20px; text-align:left; ">余材区分</caption>
- <caption id="caption10" class="cell" visibility="visible" style="left:490px; top:65px; width:88px; height:20px; text-align:left; ">进程状态</caption>
- <caption id="caption11" class="cell" visibility="visible" style="left:738px; top:65px; width:100px; height:20px; text-align:left; ">板坯外观等级</caption>
- <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <script type="javascript" ev:event="onaccesskey">
- <![CDATA[
- openWindow("UIB020040");
- ]]>
- </script>
- <input id="input40" ref="/root/formData/chargeNo" style="left:102px; top:5px; width:113px; height:20px; ">
- <hint>
- <![CDATA[按炉号查询信息模糊,需要详细信息请按板坯号查询]]>
- </hint>
- </input>
- <input id="input1" ref="/root/ChargeComm/ListResult_Row/THE_STL_GRD" editable="false" style="left:90px; top:40px; width:125px; height:20px; "/>
- <input id="input2" ref="/root/ChargeComm/ListResult_Row/SLAB_INGR_DEC_KIND" editable="false" style="left:343px; top:40px; width:125px; height:20px; text-align:left; "/>
- <input id="input3" ref="/root/ChargeComm/ListResult_Row/TIME" editable="false" format="yyyy-mm-dd hh:nn:ss" style="left:580px; top:40px; width:135px; height:20px; text-align:left; "/>
- <input id="input4" ref="/root/ChargeComm/ListResult_Row/INGR_DEC" editable="false" style="left:840px; top:40px; width:125px; height:20px; text-align:left; "/>
- <input id="input6" ref="/root/ChargeComm/ListResult_Row/ORD" editable="false" style="left:90px; top:65px; width:125px; height:20px; text-align:left; ">
- <hint>
- <![CDATA[板坯为余材时,显示的为计划合同]]>
- </hint>
- </input>
- <input id="input7" ref="/root/ChargeComm/ListResult_Row/ORD_FL" editable="false" style="left:343px; top:65px; width:125px; height:20px; text-align:left; "/>
- <input id="input8" ref="/root/ChargeComm/ListResult_Row/CUR_PROG_CD" visibility="visible" editable="false" style="left:580px; top:65px; width:135px; height:20px; text-align:left; "/>
- <input id="input9" ref="/root/ChargeComm/ListResult_Row/EXTSHAPE_GRD" visibility="visible" editable="false" style="left:840px; top:65px; width:125px; height:20px; text-align:left; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/CHEMINFO_Row" caption="元素名称^原始实绩^修约实绩^判定结果^成品放行标准^成品放行标准^客户成分要求^客户成分要求^炼钢内控标准^炼钢内控标准^炼钢放行标准^炼钢放行标准|元素名称^原始实绩^修约实绩^判定结果^最小^最大^最小^最大^最小^最大^最小^最大" colsep="^" colwidth="100, 70, 70, 70, 80, 80, 80, 80, 80, 80, 80, 80" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" tooltip="label" style="left:0px; top:95px; width:975px; height:483px; ">
- <col ref="CHEM_CD" style="text-align:left; "/>
- <col ref="CHEM_L2_VAL" style="text-align:right; "/>
- <col ref="CHEM_VAL" style="text-align:right; "/>
- <col ref="CHEM_DCS_RST" visibility="hidden" style="text-align:right; "/>
- <col ref="CHEM_MIN4" style="text-align:right; "/>
- <col ref="CHEM_MAX4" style="text-align:right; "/>
- <col ref="CHEM_MIN1" style="text-align:right; "/>
- <col ref="CHEM_MAX1" style="text-align:right; "/>
- <col ref="CHEM_MIN2" style="text-align:right; "/>
- <col ref="CHEM_MAX2" style="text-align:right; "/>
- <col ref="CHEM_MIN3" style="text-align:right; "/>
- <col ref="CHEM_MAX3" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.row > datagrid1.fixedRows
- || datagrid1.col < datagrid1.colRef("CHEM_DCS_RST")+1
- ) return;
- setColorX();
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea1" ref="/root/shuoming" scroll="auto" editable="false" style="left:0px; top:580px; width:975px; height:35px; vertical-align:top; "/>
- <caption id="caption9" class="cell" style="left:240px; top:5px; width:100px; height:20px; ">选择对比合同</caption>
- <input id="input5" ref="/root/formData/DORD" style="left:340px; top:5px; width:100px; height:20px; ">
- <hint>
- <![CDATA[按炉号查询信息模糊,]]>
- </hint>
- </input>
- <input id="input10" ref="/root/formData/DORDSEQ" style="left:455px; top:5px; width:60px; height:20px; "/>
- <line id="line1" style="x1:440px; y1:15px; x2:455px; y2:15px; "/>
- <select id="checkbox1" ref="/root/formData/CHKORD" overflow="visible" appearance="full" style="left:240px; top:7px; width:24px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox1.value != 1)
- {
- input5.disabled = true;
- input10.disabled = true;
- }
- else
- {
- input5.disabled = false;
- input10.disabled = false;
- var length = input40.value.length;
- if(length > 10)//板坯号时提示用户不要勾选合同对比查询
- {
- window.alert("请输入10位数炉号来选择合同对比查询,否则可能查不到数据!", "提示");
- }
-
- }
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|