| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.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[炼钢作业 >> 板坯库管理 >> 中厚板计划单查询(UIG040130)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <datagrid1/>
- <initData>
- <L2SCHNO/>
- <STIME/>
- <ETIME/>
- <ORDERNO/>
- <ORDERSEQ/>
- </initData>
- </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)
- {
- datagrid1.colStatus(datagrid1.colRef("CHK"))=false;
- input1.value = document.readIniFile("session1" , "UIG040130" , "" , "c:\\WINDOWS\\xgmes3.ini");
- }
-
-
- function find()
- {
- if(input1.value.Trim().length< 5 && input2.value =="" && input4.value.Trim().length< 12 )
- {
- window.alert("为防止数据量过大,请输入查询条件" , "提示");
- return;
- }
- document.writeIniFile("session1" , "UIG040130" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.makeNode("/root/resData");
- model.makeValue("/root/reqData/L2SCHNO" , input1.value.Trim());
- model.makeValue("/root/reqData/STIME" , input2.value.Trim());
- model.makeValue("/root/reqData/ETIME" , input3.value.Trim());
- model.makeValue("/root/reqData/ORDERNO" , input4.value.Trim());
- model.makeValue("/root/reqData/ORDERSEQ" , input5.value.Trim());
- commSubmit("UIG040130-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/SCH_Result_VO");
- model.refresh();
- colorSet();
- }
-
- function save()
- {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.makeNode("/root/resData");
-
- for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("CHK"))=="Y")
- {
- datagrid1.addStatus(i , "update");
- }
- }
- b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStuts");
- model.makeValue("/root/reqData/L2SCHNO" , input1.value.Trim());
- model.makeValue("/root/reqData/STIME" , input2.value.Trim());
- model.makeValue("/root/reqData/ETIME" , input3.value.Trim());
- model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- commSubmit("UIG040130-service" , "save" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/SCH_Result_VO");
- model.refresh();
-
- datagrid1.clearStatus();
-
- find();
- }
-
- function colorSet()
- {
- for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)
- {
- if(datagrid1.valueMatrix(i, datagrid1.colRef("SLAB_NO"))==""
- && datagrid1.valueMatrix(i, datagrid1.colRef("PROC_STAT")) == "05"
- )
- {
- datagrid1.rowStyle(i , "data" , "color") = "#ff000f";
- }
- else
- {
- datagrid1.rowStyle(i , "data" , "color") = "#000000";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; vertical-align:middle; ">计划号</caption>
- <line id="line1" style="x1:0px; y1:30px; x2:965px; y2:30px; "/>
- <input id="input1" ref="/root/initData/L2SCHNO" style="left:100px; top:5px; width:100px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/SCH_Result_Row" caption="选择^生产号^计划号^计划板坯号^板坯号^状态^炼钢计划接收时间^炼钢计划下发时间^计划牌号^重量^厚度^宽度^长度^合同号^订单号^板坯切割时间^挂单时间^判定结果^判定时间^判定备注^是否允许出库^出库时间|选择^生产号^计划号^计划板坯号^板坯号^状态^炼钢计划接收时间^炼钢计划下发时间^计划牌号^重量^厚度^宽度^长度^合同号^订单号^板坯切割时间^挂单时间^判定结果^判定时间^判定备注^是否允许出库^出库时间" colsep="^" colwidth="59, 79, 100, 100, 100, 100, 100, 100, 100, 49, 53, 49, 52, 89, 52, 88, 85, 100, 100, 100, 91, 92" explorerbar="sortmove" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:35px; width:975px; height:575px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="L2_SCH"/>
- <col ref="L2_SCH_NO"/>
- <col ref="DSN_SLAB_NO"/>
- <col ref="SLAB_NO"/>
- <col disabled="true" ref="PROC_STAT" type="combo">
- <choices>
- <item>
- <label>计划接收</label>
- <value>01</value>
- </item>
- <item>
- <label>坯料设计</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>计划完成</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- </choices>
- </col>
- <col ref="LGJH_GET_DTIME"/>
- <col ref="LGJH_SEED_DTIME"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="SLAB_WGT"/>
- <col ref="SLAB_THK"/>
- <col ref="SLAB_WTH"/>
- <col ref="SLAB_LEN"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="SLAB_CUT_DTIME"/>
- <col ref="ZH_GD_DTIME"/>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo">
- <choices>
- <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/>
- </item>
- <item>
- <label>化废</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="SLAB_INGR_DEC_DTIME"/>
- <col ref="SLAB_DCS_DETAIL"/>
- <col ref="SLAB_OUT_TP"/>
- <col ref="SLAB_OUT_TP_DTIME"/>
- </datagrid>
- <button id="button1" visibility="hidden" style="left:810px; top:5px; width:55px; height:20px; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button2" style="left:870px; top:5px; width:100px; height:20px; background-color:#ff6600; border-style:solid; ">
- <caption>解锁</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- <alert>
- <![CDATA[只有红色记录可以解锁]]>
- </alert>
- </button>
- <caption id="caption2" class="cell" style="left:215px; top:5px; width:100px; height:20px; vertical-align:middle; ">下发时间</caption>
- <input id="input2" ref="/root/initData/STIME" inputtype="date" style="left:315px; top:5px; width:100px; height:20px; "/>
- <input id="input3" ref="/root/initData/ETIME" inputtype="date" style="left:420px; top:5px; width:100px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:530px; top:5px; width:65px; height:20px; vertical-align:middle; ">合同号</caption>
- <caption id="caption4" class="cell" style="left:705px; top:5px; width:65px; height:20px; vertical-align:middle; ">订单号</caption>
- <input id="input4" ref="/root/initData/ORDERNO" style="left:595px; top:5px; width:100px; height:20px; "/>
- <input id="input5" ref="/root/initData/ORDERSEQ" style="left:770px; top:5px; width:45px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|