| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?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="">
- <Pstove/>
- <Pseq/>
- <startDate/>
- <endDate/>
- <coilno/>
- <endCoil/>
- <initSeqNo>
- <SeqNo_VO>
- <SeqNo_Row>
- <LABEL/>
- <VALUE/>
- </SeqNo_Row>
- </SeqNo_VO>
- </initSeqNo>
- <initQltyName>
- <QltyName_Row>
- <LABEL/>
- <VALUE/>
- </QltyName_Row>
- </initQltyName>
- <initCharge>
- <ChargeNo_VO>
- <ChargeNo_Row>
- <LABEL>-------</LABEL>
- <VALUE/>
- </ChargeNo_Row>
- </ChargeNo_VO>
- </initCharge>
- <datagrid1/>
- <datagrid2/>
- </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)
- {
- //试样号的序号初始化
- InitParams(node);
- input1.value = commCurDate();//当前时间
- input2.value = commCurDate();//当前时间
- datagrid1.colStatus(0)=false;
-
- commSubmit("UIB020140-service" , "success" , "glueAction.do");
- model.copyNode("/root/initSeqNo" , "/root/resData/SeqNo_VO");
- model.copyNode("/root/initQltyName" , "/root/resData/QltyName_VO");//获得材质项目
- model.duplicate("/root/initCharge" , "/root/resData/ChargeNo_VO");
- model.refresh();
- combo1.select(0);
- combo2.select(0);
-
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- var smpNo = jsTrim(combo1.value+combo2.value);//试样号
- var coilNo= jsTrim(input2.value);//钢卷号
- model.makeValue("/root/reqData/SMP_NO" , smpNo);//试样号
- model.makeValue("/root/reqData/COILNO_1" , input3.value.Trim());
- model.makeValue("/root/reqData/COILNO_2" , input4.value.Trim());
- model.makeValue("/root/reqData/startTime" ,input1.value.Trim()+"0000" );//开始日期
- model.makeValue("/root/reqData/endTime" ,input2.value.Trim()+"9999" );//结束日期
- commSubmit("UIB020140-service" , "findCoil" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/LotInfoResult_VO");
- model.refresh();
- setColor(datagrid1 , "MATLQLTY_DEC_GRD");
- }
-
- function setColor(grid , colName)
- {
- grid.rebuildStyle();
- var col = "";
- // col = grid.colRef("MATLQLTY_DEC_GRD");
- col = grid.colRef(colName);
- for(var i = grid.fixedRows; i < grid.rows; i++)
- {
- if(grid.valueMatrix(i , col) == "2")
- {
- grid.rowStyle(i , "data" , "color") = "#ff0000";
- }
- }
- }
-
- function save()
- {
- if(commComfirmBox("确认取消材质判定?","提示")=="0") return;
- var dcsCol = datagrid1.colRef("OVER_DCS");
- // var dcsId = datagrid1.valueMatrix()
- var id = model.getValue("");
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , dcsCol) == "Y")
- {
- datagrid1.addStatus(i , "update");
- }
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");
- commSubmit("UIB020140-service" , "save" , "glueAction.do");
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/LotInfoResult_Row" caption="选择^生产流水号^钢卷号^取样^样片号^位置^订单号^取样代码^检验机关^标准号^标准钢号^订单用途^厚度^材质结果^是否已综合判定^判定人^判定时间^判定取消" colsep="^" colwidth="33, 97, 100, 39, 108, 37, 105, 55, 90, 134, 82, 65, 38, 56, 46, 60, 70, 61" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:35px; width:980px; height:355px; ">
- <col ref="CHK" type="radio"/>
- <col editable="false" ref="COIL_NO" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_TIT_YN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_CUT_LOC" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SAMPLING_CODE" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="EXAMORG_CD" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_ABBSYM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_USE_TP" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="MATLQLTY_DEC_GRD" type="input" style="background-color:#ffffff; "/>
- <col ref="TOT_OVER"/>
- <col ref="MATLQLTY_DEC_EMP_ID"/>
- <col editable="false" ref="QLTY_DCS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col checkvalue="Y,N" ref="OVER_DCS" type="checkbox"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //若当前点击的列示第一列,且非标题行,非最后行后的行
- if(datagrid1.col==0 && datagrid1.row>0 && datagrid1.row <= datagrid1.rows)
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- var row = datagrid1.row;
- var coilNo = datagrid1.valueMatrix(row , datagrid1.colRef("COIL_NO"));//钢卷号
- var smpNo = datagrid1.valueMatrix(row , datagrid1.colRef("SMP_NO"));//样片号
- var ordNo = datagrid1.valueMatrix(row , datagrid1.colRef("ORD_NO"));//订单号
- var smpCutLoc = datagrid1.valueMatrix(row , datagrid1.colRef("SMP_CUT_LOC"));//位置
- model.makeValue("/root/reqData/COIL_NO" , coilNo);
- model.makeValue("/root/reqData/SMP_NO" , smpNo );
- model.makeValue("/root/reqData/ORD_NO" , ordNo);
- model.makeValue("/root/reqData/SMP_CUT_LOC" , smpCutLoc);
- if(smpCutLoc=="W")
- {
- datagrid2.colHidden(datagrid2.colRef("QLTY_VAL_WK2")) = false;
- datagrid2.colHidden(datagrid2.colRef("QLTY_UNIT_WK2")) = false;
- commSubmit("UIB020140-service" , "findW" , "glueAction.do");
- }
- else
- {
- datagrid2.colHidden(datagrid2.colRef("QLTY_VAL_WK2")) = true;
- datagrid2.colHidden(datagrid2.colRef("QLTY_UNIT_WK2")) = true;
- commSubmit("UIB020140-service" , "find" , "glueAction.do");
- }
-
- model.copyNode("/root/datagrid2" , "/root/resData/DecideResult_VO");
- model.refresh();
- setColor(datagrid2 , "QLTY_DCS_RST");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var overCol = datagrid1.colRef("OVER_DCS");
- var id = model.getValue("/root/reqData/REG_ID");
- var totCol = datagrid1.colRef("TOT_OVER");
- if(overCol == datagrid1.col)
- {
- if(datagrid1.valueMatrix(datagrid1.row , totCol) == "Y")
- {
- datagrid1.valueMatrix(datagrid1.row , overCol) = "N"
- window.alert("综合判定已完成,不可取消材质判定!","警告");
- return;
- }
- var selected = datagrid1.valueMatrix(datagrid1.row ,datagrid1.col);
- var actCol = datagrid1.colRef("OLD_SAMPL_NO");//钢卷号所在的列
- // if(id != datagrid1.valueMatrix(datagrid1.row ,datagrid1.colRef("MATLQLTY_DEC_EMP_ID")))
- // {
- // return;
- // }
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i,actCol).substr(0,10) == datagrid1.valueMatrix(datagrid1.row , actCol).substr(0,10))
- {
- datagrid1.valueMatrix(i , overCol) = selected;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">判定日期</caption>
- <caption id="caption2" class="cell" visibility="hidden" style="left:835px; top:5px; width:85px; height:20px; ">试样号</caption>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/DecideResult_Row" allowuserresize="false" caption="材质代码^实验次数^材质项目^客户^客户^客户^标准^标准^标准^实绩(1)^实绩(1)^实绩(2)^实绩(2)^判定结果|材质代码^实验次数^材质项目^最小^最大^单位^最小^最大^单位^实绩值^单位^实绩值^单位^判定结果" colsep="^" colwidth="77, 45, 180, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:417px; width:980px; height:203px; ">
- <col editable="false" ref="QLTY_CD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_SEQ" type="input" style="background-color:#ffffff; "/>
- <col disabled="true" ref="QLTY_CD" type="combo">
- <choices>
- <itemset nodeset="/root/initQltyName/QltyName_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="CUST_QLTY_MIN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUST_QLTY_MAX" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUST_QLTY_UNIT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_QLTY_MIN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_QLTY_MAX" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_QLTY_UNIT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_VAL_WK1" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_UNIT_WK1" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_VAL_WK2" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_UNIT_WK2" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_DCS_RST" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <caption id="caption3" class="cell" style="left:0px; top:398px; width:100px; height:20px; ">判定实绩</caption>
- <line id="line1" style="x1:200px; y1:15px; x2:210px; y2:15px; "/>
- <select1 id="combo2" ref="/root/Pseq" visibility="hidden" appearance="minimal" editmode="inputsearch" style="left:950px; top:5px; width:10px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initSeqNo/SeqNo_VO/SeqNo_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/endDate" inputtype="date" style="left:210px; top:5px; width:100px; height:20px; "/>
- <line id="line2" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
- <line id="line3" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
- <select1 id="combo1" ref="/root/Pstove" visibility="hidden" appearance="minimal" cols="5" editmode="inputsearch" style="left:920px; top:5px; width:25px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initCharge/ChargeNo_VO/ChargeNo_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.resetInstanceNode("/root/initSeqNo/SeqNo_VO");//清除原来数据
-
- //获取序号
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/CHARGENO" , combo1.value.Trim());
- commSubmit("UIB020140-service" , "findSeq" , "glueAction.do");
- model.duplicate("/root/initSeqNo" , "/root/resData/SeqNo_VO");
- model.refresh();
- combo2.select(0);
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/startDate" inputtype="date" style="left:100px; top:5px; width:100px; height:20px; "/>
- <line id="line4" style="x1:530px; y1:15px; x2:545px; y2:15px; "/>
- <caption id="caption4" class="cell" style="left:330px; top:5px; width:100px; height:20px; ">轧批号</caption>
- <input id="input3" ref="/root/coilno" style="left:430px; top:5px; width:100px; height:20px; "/>
- <input id="input4" ref="/root/endCoil" style="left:545px; top:5px; width:100px; height:20px; "/>
- <button id="button1" visibility="hidden" style="left:675px; top:5px; width:80px; height:20px; background-color:#ff9900; border-style:solid; ">
- <caption>判定取消</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|