| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <?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[生产管制 >> 炼钢管理 >> 在线板坯实绩现况]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <formData>
- </formData>
- <gridData>
- <EmpListResult_VO/>
- </gridData>
- <initResult/>
- <initData>
- <LG_CD>E01002</LG_CD>
- </initData>
- <codeData/>
- <searchData>
- <MAT_PROC/>
- <FROM_DATE/>
- <END_DATE/>
- </searchData>
- <totalData>
- <slabCnt/>
- <slabWgt/>
- </totalData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();//无父窗口 进行初始化结点
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- <script type="javascript" src="../../js/F.js"/>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
- //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));
-
- model.refresh();
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "炼钢管制 >> 作业进程现状 >> 在线板坯实绩现况"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- //4. 页面按键动作
- // 查询按键
- function find()
- {
- commSendReq("/root/searchData");
- commSubmit("UIF013030-service","findSlabComm","glueAction.do");
- model.copyNode("/root/gridData/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.removenode("/root/resData/EmpListResult_VO");
-
- var slabCnt = 0;
- var slabWgt = 0;
- datagrid1.refresh();
- for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
- slabCnt = slabCnt + 1;
- slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT")));
- }
-
- model.setValue("/root/totalData/slabCnt",slabCnt);
- model.setValue("/root/totalData/slabWgt",slabWgt/1000);
- output1.refresh();
- output2.refresh();
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <datagrid id="datagrid1" nodeset="/root/gridData/EmpListResult_VO/EmpListResult_Row" caption="板坯号^切割时间^物料进程^HCR区分^位置^板坯^板坯^板坯^板坯^合同号^订单号^交货期^钢号^板坯去向|板坯号^切割时间^物料进程^HCR区分^位置^厚度^长度^宽度^重量^合同号^订单号^交货期^钢号^板坯去向" colwidth="111, 100, 100, 83, 100, 55, 72, 65, 74, 133, 61, 100, 100, 100" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" ckcoloralternate="#f7f9f9" style="left:0px; top:30px; width:980px; height:590px; text-align:center; ">
- <col ref="SLAB_NO"/>
- <col ref="SLAB_CUT_DTIME"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="HCR_CLF" disabled="true" editmode="search"/>
- <col ref="CUR_LOAD_LOC"/>
- <col ref="SLAB_THK" style="text-align:right; "/>
- <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="DEL_TO_DATE"/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="SLAB_RT"/>
- </datagrid>
- <select1 id="combo21" ref="/root/searchData/MAT_PROC" appearance="minimal" style="left:60px; top:5px; width:85px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'E01002' or LG_CD ='A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption28" class="cell" style="left:0px; top:5px; width:58px; height:20px; font-weight:bold; border-color:#000000; ">物料进程</caption>
- <caption id="caption11" style="left:815px; top:6px; width:20px; height:20px; font-weight:bold; ">块</caption>
- <caption id="caption13" style="left:955px; top:5px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line2" style="x1:725px; y1:25px; x2:785px; y2:25px; "/>
- <caption id="caption16" class="cell" style="left:715px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
- <line id="line3" style="x1:875px; y1:25px; x2:955px; y2:25px; "/>
- <caption id="caption8" class="cell" style="left:830px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <output id="output1" ref="/root/totalData/slabCnt" style="left:775px; top:5px; width:40px; height:20px; text-align:center; "/>
- <output id="output2" ref="/root/totalData/slabWgt" style="left:890px; top:5px; width:65px; height:20px; text-align:center; "/>
- <caption id="caption1" class="cell" style="left:150px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">切割时间</caption>
- <input id="input5" ref="/root/searchData/FROM_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:5px; width:90px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/searchData/END_DATE") == null || model.getValue("/root/searchData/END_DATE") == ""||
- model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/END_DATE")){
- model.setValue("/root/searchData/END_DATE",model.getValue("/root/searchData/FROM_DATE"));
- input6.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/searchData/END_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:301px; top:5px; width:90px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""||
- model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/END_DATE")){
- model.setValue("/root/searchData/FROM_DATE",model.getValue("/root/searchData/END_DATE"));
- input5.refresh();
- }
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|