| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?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>
- <serachinfo>
- <Pstove/>
- <Pseq/>
- <ProcCD>B</ProcCD>
- <startTime/>
- <endTime/>
- <ROLLNO_1/>
- <ROLLNO_2/>
- </serachinfo>
- <PRODLINE/>
- </formData>
- <initCharge>
- <ChargeResult_VO>
- <ChargeResult_Row>
- <LABEL>-------</LABEL>
- <VALUE/>
- </ChargeResult_Row>
- </ChargeResult_VO>
- </initCharge>
- <initSeqNo>
- <SeqNo_VO>
- <SeqNo_Row>
- <LABEL>-----</LABEL>
- <VALUE/>
- </SeqNo_Row>
- </SeqNo_VO>
- </initSeqNo>
- <datagrid1/>
- <initProc>
- <LotProcCD_Row>
- <LABEL/>
- <VALUE/>
- </LotProcCD_Row>
- </initProc>
- </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);
-
- datagrid1.colStatus(0)=false;
-
- // input2.value = commCurDate();//当前时间
- // input3.value = commCurDate();//当前时间
- input1.value = document.readIniFile("session1" , "UIB020110_1" , "" , "c:\\WINDOWS\\xgmes3.ini");
- input4.value = document.readIniFile("session1" , "UIB020110_2" , "" , "c:\\WINDOWS\\xgmes3.ini");
- combo1.value = document.readIniFile("session1" , "UIB020110_3" , "" , "c:\\WINDOWS\\xgmes3.ini");
- commSubmit("UIB020110-service" , "success" , "glueAction.do");
- model.copyNode("/root/initProc" , "/root/resData/LotProcCD_VO");
- model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
- model.refresh();
- colouration();
- }
- function find()
- {
- queryData();
- if(combo1.value=="H")
- {
- commSubmit("UIB020110-service" , "find1" , "glueAction.do");
- }
- else if(combo1.value == "L")
- {
- commSubmit("UIB020110-service" , "findSUAN" , "glueAction.do");
- }
- model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
- model.refresh();
- colouration();
- exceptionReport();
- }
-
- function queryData()//入库保存后也需要用到该部分
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- document.writeIniFile("session1" , "UIB020110_1" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- document.writeIniFile("session1" , "UIB020110_2" , input4.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- document.writeIniFile("session1" , "UIB020110_3" , combo1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- //
- // model.makeValue("/root/reqData/SMP" , combo3.value.Trim());//获得试样号
- // model.makeValue("/root/reqData/SEQ" , combo1.value.Trim());//序号
- model.makeValue("/root/reqData/SMP_PROG_CD" , combo2.value);//获得进程代码
- // model.makeValue("/root/reqData/STARTTIME" , input2.value.Trim()+"0000");//开始时间
- // model.makeValue("/root/reqData/ENDTIME" , input3.value.Trim()+"9999");//结束时间
- model.makeValue("/root/reqData/ROLLNO_1" , input1.value.Trim());//钢卷号
- if(input4.value.Trim()=="")
- {
- model.makeValue("/root/reqData/ROLLNO_2" , input1.value.Trim());//钢卷号
- }
- else
- {
- model.makeValue("/root/reqData/ROLLNO_2" , input4.value.Trim());//钢卷号
- }
- }
-
- function save()
- {
- //被选择行的样片号进入检验待机状态
- queryData();
-
-
- var count = 0;
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) == "Y")
- {
- datagrid1.addStatus(i , "update");
- count++;
- }
- }
- commMultiUpdate(datagrid1 , "/root/reqData" , "U" , true , "rowStatus");
- getLoggingInInfo();
- commSubmit("UIB020110-service" , "change" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
- model.refresh();
- datagrid1.clearStatus();
- colouration();
- exceptionReport();
- }
-
- function colouration()//染色
- {
- //复样的在采集待机状态也可入库
- var progcd = datagrid1.colRef("SMP_PROG_CD");//试样进程代码所在的列
- var overTp = datagrid1.colRef("OVER_SMP_TP");//复样
- for(var i = 2; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i , progcd)=="B")
- {
- datagrid1.valueMatrix(i , overTp)="Y";
- }
- //可以入库的变为红色
- if(datagrid1.valueMatrix(i , overTp)=="Y")
- {
- datagrid1.rowstyle(i, "data", "color") = "#ff0000";
- }
- else
- {
- datagrid1.rowstyle(i, "data", "color") = "#000000";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/LotActualityResult_Row" caption="选择^交货状态^生产流水号^钢卷号^试样号^位置^试样进程代码^是否为复样^标准号^标准钢号^厚度^试样进程日期^试样进程日期^试样进程日期^试样进程日期^试样进程日期^试样进程日期^送样人^入库人^可否被选择入库|选择^交货状态^生产流水号^钢卷号^试样号^位置^试样进程代码^是否为复样^标准号^标准钢号^厚度^指示^采集^送样^入库^检验^判定^送样人^入库人^hidden" colsep="^" colwidth="37, 37, 59, 100, 35, 37, 85, 40, 100, 100, 40, 75, 75, 100, 75, 75, 60, 100, 100, 56" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:35px; width:970px; height:580px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="PRDNM_CD" type="input" style="background-color:#ffffff; "/>
- <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_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_CUT_LOC" visibility="hidden" style="background-color:#ffffff; "/>
- <col disabled="true" ref="SMP_PROG_CD" type="combo">
- <choices>
- <itemset nodeset="/root/initProc/LotProcCD_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="FUYANG" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_ABBSYM" type="input" visibility="visible" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_DIR_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_GET_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col ref="SMP_SEND_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col editable="false" ref="SMP_INTO_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_WORK_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="QLTY_DCS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col ref="SMP_SEND_ID"/>
- <col ref="MOD_ID"/>
- <col editable="false" ref="OVER_SMP_TP" type="input" visibility="hidden" style="background-color:#ffffff; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(datagrid1.col==0 && datagrid1.row >1)
- {
- //获得试样状态,只有为入库待机状态,或复样的才允许选择
- if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("OVER_SMP_TP")) != "Y")
- {
- //若非入库待机状态的列被选择,则不允许选择
- datagrid1.valueMatrix(datagrid1.row , 0) = "N";
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell" style="left:200px; top:5px; width:100px; height:20px; ">试样进程代码</caption>
- <select1 id="combo2" ref="/root/formData/serachinfo/ProcCD" appearance="minimal" style="left:300px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>----全部----</label>
- <value/>
- </item>
- <item>
- <label>样片采集待机</label>
- <value>A</value>
- </item>
- <item>
- <label>样片入库待机</label>
- <value>B</value>
- </item>
- <item>
- <label>样片检验待机</label>
- <value>C</value>
- </item>
- <item>
- <label>样片判定待机</label>
- <value>D</value>
- </item>
- <item>
- <label>样片判定完成</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <line id="line2" style="x1:415px; y1:30px; x2:425px; y2:30px; border-color:#000000; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:971px; y2:30px; "/>
- <line id="line4" style="x1:0px; y1:0px; x2:970px; y2:0px; "/>
- <line id="line5" style="x1:0px; y1:30px; x2:971px; y2:30px; "/>
- <caption id="caption5" class="cell" visibility="visible" style="left:420px; top:5px; width:100px; height:20px; ">轧批号</caption>
- <input id="input1" ref="/root/formData/serachinfo/ROLLNO_1" style="left:520px; top:5px; width:100px; height:20px; "/>
- <line id="line6" style="x1:620px; y1:15px; x2:630px; y2:15px; "/>
- <input id="input4" ref="/root/formData/serachinfo/ROLLNO_2" style="left:630px; top:5px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode==13)
- {
- model.setFocus("");
- model.setFocus("input4");
- find();
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="cell" style="left:5px; top:5px; width:75px; height:20px; ">产线</caption>
- <select1 id="combo1" ref="/root/formData/PRODLINE" appearance="minimal" style="left:80px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- <item>
- <label>连退</label>
- <value>L</value>
- </item>
- </choices>
- </select1>
- <button id="button1" visibility="hidden" style="left:815px; top:5px; width:100px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|