| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?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/>
- <startTime/>
- <endTime/>
- <ROLLNO_1/>
- <ROLLNO_2/>
- <songyangdengji>3</songyangdengji>
- <S_TIMD/>
- <E_TIME/>
- </serachinfo>
- </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;
-
- input1.value = document.readIniFile("session1" , "UIB020111_1" , "" , "c:\\WINDOWS\\xgmes3.ini");
- input4.value = document.readIniFile("session1" , "UIB020111_2" , "" , "c:\\WINDOWS\\xgmes3.ini");
- }
- function find()
- {
- queryData();
-
- commSubmit("UIB020111-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
- var returnInfoMsg = model.getValue("/root/resData/returnInfoMsg_VO/returnInfoMsg_Row");
- if(returnInfoMsg != null && returnInfoMsg != "")
- window.alert(returnInfoMsg, "操作信息");
- model.refresh();
- colouration();
- exceptionReport();
- }
-
- function queryData()//入库保存后也需要用到该部分
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- document.writeIniFile("session1" , "UIB020111_1" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- document.writeIniFile("session1" , "UIB020111_2" , input4.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
-
- model.makeValue("/root/reqData/S_TIME" , input2.value.Trim());
- model.makeValue("/root/reqData/E_TIME" , input3.value.Trim());
- model.makeValue("/root/reqData/SFLAG" , combo1.value);//送样区分
- 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("UIB020111-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/LotActualityResult_VO");
- model.refresh();
- datagrid1.clearStatus();
- find();
- colouration();
- exceptionReport();
- }
-
- function colouration()//染色
- {
- //复样的在采集待机状态也可入库
- var progcd = datagrid1.colRef("SMP_PROG_CD");//试样进程代码所在的列
- var sTime = datagrid1.colRef("SMP_SEND_DTIME");
- var overTp = datagrid1.colRef("YESS");//可否被选中
- for(var i = 2; i < datagrid1.rows; i++)
- {
- // if(datagrid1.valueMatrix(i , progcd) != "A" && datagrid1.valueMatrix(i , sTime) == "")//可以被选择的
- // {
- // datagrid1.valueMatrix(i , overTp)="Y";
- // }
- //可以入库的变为红色
- if(datagrid1.valueMatrix(i , overTp)=="Y")
- {
- datagrid1.rowstyle(i, "data", "color") = "#0000ff";
- }
- 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, 100, 35, 37, 85, 40, 100, 100, 40, 100, 75, 79, 75, 75, 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="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>
- <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>
- </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 ref="MILL_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col editable="false" ref="SMP_GET_DTIME" 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" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="SMP_WORK_DTIME" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffffff; "/>
- <col ref="SMP_SEND_ID"/>
- <col checkvalue="Y,N" ref="CONFIRM" type="radio"/>
- <col editable="false" ref="YESS" 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("YESS")) != "Y")
- {
- //若非入库待机状态的列被选择,则不允许选择
- datagrid1.valueMatrix(datagrid1.row , 0) = "N";
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(datagrid1.colRef("CONFIRM") == datagrid1.col
- && datagrid1.valueMatrix(datagrid1.row , datagrid1.col) == "Y")
- {
- if(commComfirmBox("确认更改规格?","提示")=="0") return;
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/reqData/SMP_NO" , datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("SMP_NO") ));
- commSubmit("UIB020111-service" , "save1" , "glueAction.do");
- // find();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" style="x1:675px; y1:30px; x2:685px; 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:540px; top:5px; width:100px; height:20px; ">轧批号</caption>
- <input id="input1" ref="/root/formData/serachinfo/ROLLNO_1" style="left:640px; top:5px; width:100px; height:20px; "/>
- <line id="line6" style="x1:740px; y1:15px; x2:750px; y2:15px; "/>
- <input id="input4" ref="/root/formData/serachinfo/ROLLNO_2" style="left:750px; 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:200px; top:5px; width:100px; height:20px; ">送样时间</caption>
- <input id="input2" ref="/root/formData/serachinfo/S_TIMD" inputtype="date" style="left:300px; top:5px; width:100px; height:20px; "/>
- <line id="line1" style="x1:400px; y1:15px; x2:420px; y2:15px; "/>
- <input id="input3" ref="/root/formData/serachinfo/E_TIME" inputtype="date" style="left:420px; top:5px; width:100px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:5px; top:5px; width:75px; height:20px; ">是否已送样</caption>
- <select1 id="combo1" ref="/root/formData/serachinfo/songyangdengji" appearance="minimal" style="left:75px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>1</value>
- </item>
- <item>
- <label>已送</label>
- <value>2</value>
- </item>
- <item>
- <label>未送</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|