| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387 |
- <?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[热轧作业>>钢卷库管理>>入库品种规格说明表(UIH051800)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <datagrid1/>
- <fromData>
- <COIL_NO_F>R9-002206A010</COIL_NO_F>
- <COIL_NO_T>R9-999999A010</COIL_NO_T>
- <YARD_ENTRY_DTIMEF/>
- <YARD_ENTRY_DTIMET/>
- <MILL_DTIMEF/>
- <MILL_DTIMET/>
- <SHIFT/>
- <MILL_DTIMEF_HMS>000000</MILL_DTIMEF_HMS>
- <MILL_DTIMET_HMS>000000</MILL_DTIMET_HMS>
- <MILL_DF/>
- <MILL_DT/>
- </fromData>
- <GG/>
- <PH/>
- <ZC/>
- <sumData>
- <SUM_COILRST_CNT/>
- <SUM_COILRST_WGT/>
- </sumData>
- <DY/>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- function Init(node) {
- InitParams(node);
-
- //这里取出系统时间,把从年头到年尾的情况依次添入
- var sysDate = new Date();
- var year = sysDate.getYear().toString();
-
- var sysDtimeF = year+"01"+"01";
- var sysDtimeT = year+"12"+"31";
-
- model.setValue("/root/fromData/YARD_ENTRY_DTIMEF",sysDtimeF);
- model.setValue("/root/fromData/YARD_ENTRY_DTIMET",sysDtimeT);
-
- model.setValue("/root/fromData/MILL_DF",sysDtimeF);
- model.setValue("/root/fromData/MILL_DT",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 excelExport(){
- return datagrid1;
- }
-
- function find()
- {
- if(commDiffDay(input5.value,input6.value)>90)
- {
- alert(" 查询时间过长,请重新选择三个月内数据查询!! ");
- return;
- }
-
- if(commDiffDay(input1.value,input2.value)>90)
- {
- alert(" 查询时间过长,请重新选择三个月内数据查询!! ");
- return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var GG = model.getValue("/root/GG");
- var PH = model.getValue("/root/PH");
- var ZC = model.getValue("/root/ZC");
- var DY = model.getValue("/root/DY");
-
- var MILL_DTIMEF = null;
- var MILL_DTIMET = null;
- var MILL_DTIMEF_HMS = null;
- var MILL_DTIMET_HMS = null;
-
- MILL_DTIMEF = model.getValue("/root/fromData/MILL_DF");
- MILL_DTIMET = model.getValue("/root/fromData/MILL_DT");
- MILL_DTIMEF_HMS = model.getValue("/root/fromData/MILL_DTIMEF_HMS");
- MILL_DTIMET_HMS = model.getValue("/root/fromData/MILL_DTIMET_HMS");
- MILL_DTIMEF = MILL_DTIMEF + MILL_DTIMEF_HMS;
- MILL_DTIMET = MILL_DTIMET + MILL_DTIMET_HMS;
- model.setValue("/root/fromData/MILL_DTIMEF",MILL_DTIMEF);
- model.setValue("/root/fromData/MILL_DTIMET",MILL_DTIMET);
- model.refresh();
-
- if(GG == "1" && PH == "" && ZC == "" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find1","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "2" && ZC == "" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find2","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "" && ZC == "3" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find3","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "2" && ZC == "" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find4","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "" && ZC == "3" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find5","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "2" && ZC == "3" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find6","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "2" && ZC == "3" && DY == ""){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find7","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "" && ZC == "" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find8","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "" && ZC == "" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find9","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "2" && ZC == "" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find10","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "" && ZC == "3" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find11","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "2" && ZC == "" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find12","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "" && ZC == "3" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find13","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "" && PH == "2" && ZC == "3" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find14","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else if(GG == "1" && PH == "2" && ZC == "3" && DY == "4"){
- commSendReq("/root/fromData");
-
- commSubmit("UIH051800-service","find15","glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_RESULT_VO","/root/resData/COIL_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"));
-
- model.refresh();
- }else{
-
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption2" class="cell" style="left:270px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
- <caption id="caption13" class="cell" style="left:565px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">轧钢时间</caption>
- <line id="line4" style="x1:798px; y1:10px; x2:803px; y2:10px; "/>
- <input id="input5" ref="/root/fromData/MILL_DF" class="input" inputtype="date" style="left:623px; top:0px; width:87px; height:20px; "/>
- <input id="input6" ref="/root/fromData/MILL_DT" class="input" inputtype="date" style="left:805px; top:0px; width:85px; height:20px; "/>
- <select1 id="combo2" ref="/root/fromData/SHIFT" appearance="minimal" editmode="inputsearch" style="left:482px; top:30px; width:91px; height:20px; text-align:left; ">
- <choices>
- <item>
- <label>早</label>
- <value>1</value>
- </item>
- <item>
- <label>中</label>
- <value>2</value>
- </item>
- <item>
- <label>晚</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell" style="left:410px; top:30px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">出炉班次</caption>
- <line id="line1" style="x1:435px; y1:10px; x2:440px; y2:10px; "/>
- <input id="input1" ref="/root/fromData/YARD_ENTRY_DTIMEF" class="input" inputtype="date" style="left:330px; top:0px; width:102px; height:20px; "/>
- <input id="input2" ref="/root/fromData/YARD_ENTRY_DTIMET" class="input" inputtype="date" style="left:442px; top:0px; width:110px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/COIL_RESULT_VO/COIL_RESULT_Row" caption="订单材/余材^正次品汇总^厚度汇总^宽度汇总^牌号汇总^卷数(个)^卷重(吨)" colsep="^" colwidth="100, 150, 150, 150, 150, 200, 177" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:980px; height:515px; ">
- <col ref="ORD_FL"/>
- <col ref="EXTSHAPE_DEC_GRD"/>
- <col ref="INSTR_COIL_THK"/>
- <col ref="INSTR_COIL_WTH"/>
- <col ref="SPEC_STL_GRD"/>
- <col ref="COIL_CNT"/>
- <col ref="COIL_WGT"/>
- </datagrid>
- <caption id="caption3" class="cell" style="left:0px; top:30px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">分类汇总</caption>
- <select id="checkbox1" ref="/root/GG" overflow="visible" appearance="full" style="left:95px; top:30px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>规格</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/PH" overflow="visible" appearance="full" style="left:175px; top:30px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>牌号</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/ZC" overflow="visible" appearance="full" style="left:245px; top:30px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>正次品</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <caption id="caption4" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
- <input id="input3" ref="/root/fromData/COIL_NO_F" maxlength="13" style="left:71px; top:0px; width:90px; height:20px; ">
- <hint>
- <![CDATA[钢卷号必须输全,否则查询不出数据]]>
- </hint>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //这里要设置改变焦点
- model.setFocus("input2" , true);//设置焦点
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/fromData/COIL_NO_T" maxlength="13" style="left:175px; top:0px; width:90px; height:20px; ">
- <hint>
- <![CDATA[钢卷号必须输全,否则查询不出数据]]>
- </hint>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //这里要设置改变焦点
- model.setFocus("input5" , true);//设置焦点
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line6" style="x1:160px; y1:10px; x2:175px; y2:10px; "/>
- <caption id="caption10" class="cell" style="left:805px; top:35px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <caption id="caption11" style="left:785px; top:36px; width:30px; height:20px; font-weight:bold; ">卷</caption>
- <caption id="caption12" style="left:955px; top:35px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line2" style="x1:725px; y1:55px; x2:785px; y2:55px; "/>
- <line id="line3" style="x1:875px; y1:55px; x2:955px; y2:55px; "/>
- <caption id="caption9" class="cell" style="left:655px; top:35px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
- <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:725px; top:35px; width:60px; height:20px; text-align:center; "/>
- <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:875px; top:35px; width:80px; height:20px; text-align:center; "/>
- <input id="input7" ref="/root/fromData/MILL_DTIMEF_HMS" format="hh:nn:ss" style="left:710px; top:0px; width:85px; height:20px; "/>
- <input id="input8" ref="/root/fromData/MILL_DTIMET_HMS" format="hh:nn:ss" style="left:890px; top:0px; width:85px; height:20px; "/>
- <select id="checkbox4" ref="/root/DY" overflow="visible" appearance="full" style="left:315px; top:30px; width:90px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>订单材/余材</label>
- <value>4</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|