| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?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[热轧作业>>钢卷库管理>>生产实际查询(UIH051700)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <FROM_DATE/>
- <TO_DATE/>
- <MILL_DTIMEF_HMS>000000</MILL_DTIMEF_HMS>
- <MILL_DTIMET_HMS>235959</MILL_DTIMET_HMS>
- <MILL_DTIMEF/>
- <MILL_DTIMET/>
- <ORG_ORD/>
- <ORG_SEQ/>
- <millshift/>
- <millgroup/>
- </formData>
- <reqData/>
- <resData/>
- <datagrid1/>
- <sumData>
- <SUM_COILRST_CNT/>
- <SUM_COILRST_WGT/>
- </sumData>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
-
- function Init(node) {
- InitParams(node);
-
- //这里取出系统时间,把从年头到年尾的情况依次添入
- var sysDtimeF = commCurDate();
- var sysDtimeT = commCurDate();
-
- model.setValue("/root/formData/MILL_DTIMEF",sysDtimeF);
- model.setValue("/root/formData/MILL_DTIMET",sysDtimeT);
- model.refresh();
-
- }
- //调用公共的初始化方法获得登录用户名
- function InitParams(node) {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++)
- node.appendChild(nodeList.item(i));
- }
- function save()
-
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var nRows = 1;
- var nCnt = datagrid1.rows - datagrid1.fixedRows + 1;
-
- for( var i = datagrid1.fixedRows ; i <= nCnt ; i++ ) {
- //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
- if( datagrid1.valueMatrix(i, datagrid1.colRef("CHK")) == "Y" ) {
- //钢卷号
- model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , datagrid1.valueMatrix(i, datagrid1.colRef("OLD_SAMPL_NO" )) );
- model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CHK" , datagrid1.valueMatrix(i, datagrid1.colRef("CHK" )) );
-
- nRows++;
- }
- }
-
- model.duplicate("/root/reqData","/root/formData/millshift");
- model.duplicate("/root/reqData","/root/formData/millgroup");
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIH051700-service", "save", "glueAction.do");
- model.refresh();
- find();
-
- }
- function find()
- {
- if(commDiffDay(input5.value,input6.value)>180)
- {
- alert(" 查询时间过长,请重新选择六个月内数据查询!! ");
- return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var MILL_DTIMEF = null;
- var MILL_DTIMET = null;
- var MILL_DTIMEF_HMS = null;
- var MILL_DTIMET_HMS = null;
-
- MILL_DTIMEF = model.getValue("/root/formData/MILL_DTIMEF");
- MILL_DTIMET = model.getValue("/root/formData/MILL_DTIMET");
- MILL_DTIMEF_HMS = model.getValue("/root/formData/MILL_DTIMEF_HMS");
- MILL_DTIMET_HMS = model.getValue("/root/formData/MILL_DTIMET_HMS");
- MILL_DTIMEF = MILL_DTIMEF + MILL_DTIMEF_HMS;
- MILL_DTIMET = MILL_DTIMET + MILL_DTIMET_HMS;
-
- model.setValue("/root/formData/FROM_DATE",MILL_DTIMEF);
- model.setValue("/root/formData/TO_DATE",MILL_DTIMET);
- model.refresh();
- //时间必须输入
- if(model.getValue("/root/formData/FROM_DATE") == "" || model.getValue("/root/formData/TO_DATE") == ""){
- alert(" 轧钢时间必须输入,请输入相应的轧钢时间再点击查询按钮! ");
- return;
- }
-
- commSendReq("/root/formData");
-
- commSubmit("UIH051700-service","find","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_IN_RESULT_VO","/root/resData/COIL_IN_RESULT_VO");
-
- model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
- model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
- var nRows = 1;
- var nCnt = datagrid1.rows - datagrid1.fixedRows + 1;
-
- for( var i = datagrid1.fixedRows ; i <= nCnt ; i++ ) {
- //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
- if( datagrid1.valueMatrix(i, datagrid1.colRef("CHK")) == "Y" ) {
- datagrid1.valueMatrix(i , datagrid1.colRef("CHK")) = "";
- nRows++;
- }
- }
-
-
-
- model.refresh();
-
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption10" class="cell" style="left:810px; top:0px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <caption id="caption11" style="left:790px; top:1px; width:30px; height:20px; font-weight:bold; ">卷</caption>
- <caption id="caption12" style="left:960px; top:0px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <caption id="caption13" class="cell" style="left:0px; top:0px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">轧钢时间</caption>
- <line id="line2" style="x1:730px; y1:20px; x2:790px; y2:20px; "/>
- <line id="line3" style="x1:880px; y1:20px; x2:960px; y2:20px; "/>
- <line id="line4" style="x1:215px; y1:10px; x2:220px; y2:10px; "/>
- <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:730px; top:0px; width:60px; height:20px; text-align:center; "/>
- <caption id="caption9" class="cell" style="left:660px; top:0px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
- <input id="input5" ref="/root/formData/MILL_DTIMEF" class="input" inputtype="date" style="left:75px; top:0px; width:85px; height:20px; "/>
- <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:880px; top:0px; width:80px; height:20px; text-align:center; "/>
- <input id="input6" ref="/root/formData/MILL_DTIMET" class="input" inputtype="date" style="left:220px; top:0px; width:85px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/COIL_IN_RESULT_VO/COIL_IN_RESULT_Row" caption="选择^批号^产品类型^钢卷号^班次^班组^冶炼炉号^合同号^订单号^原合同号^原订单号^钢种^板坯规格^板坯规格^板坯规格^订单规格^订单规格^成品规格^成品规格^钢卷磅重^平均单重^垛位^来料时间^轧钢时间^交货期^轧钢班次^轧钢班组^轧钢录入人^轧钢录入时间^钢卷状态^垛位录入人^垛位输机时间^合同单位|选择^批号^产品类型^钢卷号^班次^班组^冶炼炉号^合同号^订单号^原合同号^原订单号^钢种^厚度^宽度^长度^厚度^宽度^厚度^宽度^钢卷磅重^平均单重^垛位^来料时间^轧钢时间^交货期^轧钢班次^轧钢班组^轧钢录入人^轧钢录入时间^钢卷状态^垛位录入人^垛位输机时间^合同单位" colsep="^" colwidth="51, 80, 84, 90, 42, 44, 90, 90, 50, 78, 81, 90, 49, 56, 55, 56, 53, 46, 41, 80, 73, 90, 78, 100, 74, 100, 100, 100, 100, 100, 100, 100, 144" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:50px; width:965px; height:565px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SPM_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="PRD_TY" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="MILL_SHIFT" type="input" style="color:#ffff00; background-color:#ffffff; "/>
- <col editable="false" ref="MILL_GROUP" type="input" style="color:#ffff00; background-color:#ffffff; "/>
- <col editable="false" ref="CHARGE_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORG_ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORG_ORD_SEQ" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_LEN" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ACT_WGT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CAL_WGT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SLAB_STOCK_ENT_DTIME" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="MILL_DTIME" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="DEL_TO_DATE" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="WKSHIFT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="WKGROUP" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="WK_EMP_USE_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="WK_EMP_USE_DTIME" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_STAT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="YARD_ENTRY_REG" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="YARD_ENTRY_USE_TIME" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <input id="input7" ref="/root/formData/MILL_DTIMEF_HMS" format="hh:nn:ss" style="left:160px; top:0px; width:55px; height:20px; "/>
- <input id="input8" ref="/root/formData/MILL_DTIMET_HMS" format="hh:nn:ss" style="left:305px; top:0px; width:60px; height:20px; "/>
- <button id="button1" visibility="visible" style="left:555px; top:25px; width:40px; height:20px; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/formData/ORG_ORD" style="left:435px; top:0px; width:100px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:370px; top:0px; width:65px; height:20px; font-weight:bold; border-color:#000000; ">原合同号</caption>
- <caption id="caption2" class="cell" style="left:540px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">原订单号</caption>
- <input id="input2" ref="/root/formData/ORG_SEQ" style="left:600px; top:0px; width:45px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:0px; top:25px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">班次</caption>
- <caption id="caption4" class="cell" style="left:160px; top:25px; width:55px; height:20px; font-weight:bold; border-color:#000000; ">班组</caption>
- <button id="button2" visibility="visible" style="left:310px; top:25px; width:75px; height:20px; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/formData/millshift" appearance="minimal" style="left:75px; top:25px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>早</label>
- <value>1</value>
- </item>
- <item>
- <label>中</label>
- <value>2</value>
- </item>
- <item>
- <label>晚</label>
- <value>3</value>
- </item>
- <item>
- <label>常白班</label>
- <value>0</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/formData/millgroup" appearance="minimal" style="left:215px; top:25px; width:90px; height:20px; ">
- <choices>
- <item>
- <label>甲</label>
- <value>1</value>
- </item>
- <item>
- <label>乙</label>
- <value>2</value>
- </item>
- <item>
- <label>丙</label>
- <value>3</value>
- </item>
- <item>
- <label>丁</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|