| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <LOV>G</LOV>
- <slab_wth>0.2</slab_wth>
- <METHOD>2</METHOD>
- </formData>
- <reqData>
- </reqData>
- <resData>
- <EmpListResult_VO/>
- </resData>
- <gridData1>
- <EmpListResult1_VO>
- <EmpListResult1_Row/>
- </EmpListResult1_VO>
- </gridData1>
- <gridData2>
- <EmpListResult2_VO>
- <EmpListResult2_Row/>
- </EmpListResult2_VO>
- </gridData2>
- <gridData3>
- <EmpListResult3_VO>
- <EmpListResult3_Row/>
- </EmpListResult3_VO>
- </gridData3>
- </root>
- </instance>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.visible = true;
- datagrid2.visible = false;
- datagrid3.visible = false;
-
- caption5.visible = true;
- caption1.visible = false;
- caption2.visible = false;
-
- caption4.visible = true;
- combo1.visible = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function lpad(str, len, fill) {
- if (fill == null) fill = " ";
-
- str = str + "";
-
- while( str.length < len ) str = fill + str;
-
- return str;
- }
- //1、获取用户登录信息,只能在页面初始化函数中调用
- 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;
- for (var i = 0; i < nodeList.length; i++)
- model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 板坯设计结果分析"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- //4. 页面按键动作
- // 查询按键
- function find()
- {
- //var LOV = model.getValue("/root/formData/LOV");
- var SLABWTH = model.getValue("/root/formData/slab_wth");
- var METHOD = model.getValue("/root/formData/METHOD");
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/SLABWTH",SLABWTH);
- model.makeValue("/root/reqData/METHOD",METHOD);
- commSubmit("UID010060-service","findMessage","glueAction.do");
-
- var count = model.getXPathValue("count(/root/resData/EmpListResult1_VO/EmpListResult1_Row)");
- for(var i = 1; i <= count; i++)
- {
- var F_VAL = model.getValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/FR_VALUE");
- var T_VAL = model.getValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/TO_VALUE");
- var VAL = "";
- if(F_VAL == "" && T_VAL == "")
- VAL = "合计";
- else
- VAL = lpad(F_VAL, 4, " ") +" ~ "+ lpad(T_VAL, 4, " ");
- model.makeValue("/root/resData/EmpListResult1_VO/EmpListResult1_Row["+i+"]/VAL",VAL);
- }
-
- model.copyNode("/root/gridData1/EmpListResult1_VO","/root/resData/EmpListResult1_VO");
- model.copyNode("/root/gridData2/EmpListResult2_VO","/root/resData/EmpListResult2_VO");
- model.copyNode("/root/gridData3/EmpListResult3_VO","/root/resData/EmpListResult3_VO");
- model.refresh();
- }
- function remove()
- {
-
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body overflow="hidden" guideline="1,979;2,620;">
- <datagrid id="datagrid3" nodeset="/root/gridData3/EmpListResult3_VO/EmpListResult3_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="牌号组\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|牌号组\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
- <col ref="FAC_STL_GRPNM" style="text-align:left; "/>
- <col ref="CNT_01" format="#,###" style="text-align:right; "/>
- <col ref="CNT_02" format="#,###" style="text-align:right; "/>
- <col ref="CNT_03" format="#,###" style="text-align:right; "/>
- <col ref="CNT_04" format="#,###" style="text-align:right; "/>
- <col ref="CNT_05" format="#,###" style="text-align:right; "/>
- <col ref="CNT_06" format="#,###" style="text-align:right; "/>
- <col ref="CNT_07" format="#,###" style="text-align:right; "/>
- <col ref="CNT_08" format="#,###" style="text-align:right; "/>
- <col ref="CNT_09" format="#,###" style="text-align:right; "/>
- <col ref="CNT_10" format="#,###" style="text-align:right; "/>
- <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult2_VO/EmpListResult2_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="去向\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|去向\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
- <col ref="PRODNM_NM" style="text-align:left; "/>
- <col ref="CNT_01" format="#,###" style="text-align:right; "/>
- <col ref="CNT_02" format="#,###" style="text-align:right; "/>
- <col ref="CNT_03" format="#,###" style="text-align:right; "/>
- <col ref="CNT_04" format="#,###" style="text-align:right; "/>
- <col ref="CNT_05" format="#,###" style="text-align:right; "/>
- <col ref="CNT_06" format="#,###" style="text-align:right; "/>
- <col ref="CNT_07" format="#,###" style="text-align:right; "/>
- <col ref="CNT_08" format="#,###" style="text-align:right; "/>
- <col ref="CNT_09" format="#,###" style="text-align:right; "/>
- <col ref="CNT_10" format="#,###" style="text-align:right; "/>
- <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult1_VO/EmpListResult1_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="钢卷厚度\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计|钢卷厚度\板坯宽度^0~700^701~800^801~900^901~1000 ^1001~1100^1101~1200^1201~1300^1301~1400^1401~1430^1431~9999^小计" colsep="^" colwidth="123, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" defaultrows="30" fixedcols="1" mergecellsfixedcols="byrowrec" mergecellsfixedrows="byrowrec" rowsep="|" style="left:0px; top:55px; width:980px; height:565px; color:#000000; border-color:#000000; ">
- <col ref="VAL" style="text-align:left; "/>
- <col ref="CNT_01" format="#,###" style="text-align:right; "/>
- <col ref="CNT_02" format="#,###" style="text-align:right; "/>
- <col ref="CNT_03" format="#,###" style="text-align:right; "/>
- <col ref="CNT_04" format="#,###" style="text-align:right; "/>
- <col ref="CNT_05" format="#,###" style="text-align:right; "/>
- <col ref="CNT_06" format="#,###" style="text-align:right; "/>
- <col ref="CNT_07" format="#,###" style="text-align:right; "/>
- <col ref="CNT_08" format="#,###" style="text-align:right; "/>
- <col ref="CNT_09" format="#,###" style="text-align:right; "/>
- <col ref="CNT_10" format="#,###" style="text-align:right; "/>
- <col ref="CNT_AA" format="#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line1" style="x1:0px; y1:-30px; x2:1005px; y2:-30px; "/>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <caption id="caption5" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各厚度钢卷分析</caption>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <caption id="caption1" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各去向分析</caption>
- <caption id="caption2" style="left:0px; top:35px; width:125px; height:20px; text-align:center; background-color:#ccccff; border-bottom-color:#ffffff; border-style:solid; ">各牌号组分析</caption>
- <caption id="caption3" class="cell" style="left:0px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">分析区分</caption>
- <select1 id="combo2" ref="/root/formData/LOV" appearance="minimal" style="left:102px; top:5px; width:110px; height:20px; background-color:#ffffff; border-color:#000000; ">
- <choices>
- <item>
- <label>钢卷厚度</label>
- <value>G</value>
- </item>
- <item>
- <label>去向</label>
- <value>GO</value>
- </item>
- <item>
- <label>牌号组</label>
- <value>GOO</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var LOV = model.getValue("/root/formData/LOV");
- if(LOV == "G")
- {
- datagrid1.visible = true;
- datagrid2.visible = false;
- datagrid3.visible = false;
-
- caption5.visible = true;
- caption1.visible = false;
- caption2.visible = false;
-
- caption4.visible = true;
- combo1.visible = true;
- }
- else if(LOV == "GO")
- {
- datagrid1.visible = false;
- datagrid2.visible = true;
- datagrid3.visible = false;
-
- caption5.visible = false;
- caption1.visible = true;
- caption2.visible = false;
-
- caption4.visible = false;
- combo1.visible = false;
- }
- else if(LOV == "GOO")
- {
- datagrid1.visible = false;
- datagrid2.visible = false;
- datagrid3.visible = true;
-
- caption5.visible = false;
- caption1.visible = false;
- caption2.visible = true;
-
- caption4.visible = false;
- combo1.visible = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="cell" style="left:450px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷厚度</caption>
- <select1 id="combo1" ref="/root/formData/slab_wth" appearance="minimal" style="left:552px; top:5px; width:110px; height:20px; background-color:#ffffff; border-color:#000000; ">
- <choices>
- <item>
- <label>0.1</label>
- <value>0.1</value>
- </item>
- <item>
- <label>0.2</label>
- <value>0.2</value>
- </item>
- <item>
- <label>0.5</label>
- <value>0.5</value>
- </item>
- <item>
- <label>1.0</label>
- <value>1.0</value>
- </item>
- <item>
- <label>2.0</label>
- <value>2.0</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell" style="left:225px; top:5px; width:100px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">统计方法</caption>
- <select1 id="combo4" ref="/root/formData/METHOD" appearance="minimal" style="left:327px; top:5px; width:110px; height:20px; border-color:#000000; ">
- <choices>
- <item>
- <label>板坯数量</label>
- <value>1</value>
- </item>
- <item>
- <label>板坯重量</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button1" visibility="hidden" style="left:900px; top:5px; width:74px; height:20px; background-color:#c0c0c0; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|