| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?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[炼钢作业 >> 炼钢作业实绩 >> 连铸实绩查询与录入(UIG020070)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData>
- <INIT_CHARGE_NO/>
- </initData>
- <searchData>
- <CHARGE_NO/>
- <L2DEMO/>
- </searchData>
- <gridData>
- <grid1/>
- <grid2/>
- <grid4>
- </grid4>
- <grid5/>
- <grid3/>
- <grid7/>
- </gridData>
- <resData/>
- <reqData/>
- <wkResult>
- <WkShiftResult>
- </WkShiftResult>
- <WkGroupResult>
- </WkGroupResult>
- <WkEmpResult/>
- </wkResult>
- <searchEmp>
- <WK_GROUP/>
- </searchEmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/G02.js"/>
- <script type="javascript">
- <![CDATA[
- function init(){
- model1.makeValue("/root/formData/SUBPROC","");
- commSendReq("/root/searchData");
- commSubmit("UIG020020-service","init","glueAction.do");
- commAppendData("/root/initData/INIT_CHARGE_NO/InitDataResult_VO","/root/resData/InitDataResult_VO");
- model.refresh();
- }
-
- function dynamicChemGridDisplay(grid,ref){
- var grid = document.all(grid);
- grid.rebuild();
- for(var i = grid.cols ; i >= 1 ; i--){
- grid.deleteColumn(1,false);
- }
- for(var i = grid.rows ; i >= 1 ; i--){
- grid.deleteRow(1,false);
- }
- model.removenode(ref + "/JchmResult_VO");
- var node = instance1.selectSingleNode("/root/resData/ChemNM_VO");
- var nodeList = node.childNodes;
- grid.addRow();
- var xx = "项目";
- while (childNode = nodeList.nextNode())
- {
- var chargeNo = childNode.CHEM_CD.value;
- grid.addColumn("ref:" + chargeNo, false);
- grid.colWidth(grid.colRef(chargeNo)) = 60;
- xx = xx + "^" + chargeNo;
- }
- grid.caption = xx;
- commAppendData(ref + "/JchmResult_VO","/root/resData/JchmResult_VO");
- }
- /**
- *查询操作
- */
- function find()
- {
-
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
- {
- alert("炉次号不能为空!");
- }
- else
- {
- commSendReq("/root/searchData");
- model.makeValue("/root/reqData/SUBPROC","J"); //查询条件,“L”表示LF炉
- commSubmit("UIG020070-service","find","glueAction.do");
-
- dynamicChemGridDisplay("datagrid7","/root/gridData/grid7");
-
- // 将查询结果Apped到datagrid上
- commAppendData("/root/gridData/grid1/CCMResult_VO","/root/resData/CCMResult_VO");
-
- commAppendData("/root/gridData/grid2/CCMResult_VO","/root/resData/CCMResult_VO");
-
- commAppendData("/root/gridData/grid3/CCMResult_VO","/root/resData/CCMResult_VO");
-
- commAppendData("/root/gridData/grid5/CCMResult_VO","/root/resData/CCMResult_VO");
-
- //把班次组作业人的数据对象从返回接点移到wkResult
- commAppendData("/root/wkResult/WkShiftResult/ShiftResult_VO","/root/resData/ShiftResult_VO");
- commAppendData("/root/wkResult/WkGroupResult/GroupResult_VO","/root/resData/GroupResult_VO");
- model.setValue("/root/searchData/L2DEMO",model.getValue("/root/resData/LDEMORS_VO/LDEMORS_Row/L2DEMO"));
- model.refresh();
-
- //判断datagrid1中是否有数据存在,无数据则为其增加一行使能输入
- if(datagrid1.rows==1)
- {
- datagrid1.addRow();
- }
- //判断datagrid2中是否有数据存在,无数据则为其增加一行使能输入
- if(datagrid2.rows==3)
- {
- datagrid2.addRow();
- }
- }
- }
-
- /*
- * 录入
- */
- function save()
- {
- if(model.getValue("/root/searchData/CHARGE_NO") == "" )
- {
- alert("炉次号不能为空!");
- return;
- }
- else
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //将修改的节点复制到searchData节点下,
- model.makeValue("/root/reqData/CHARGE_NO",model1.getValue("/root/searchData/CHARGE_NO"));
- model.makeValue("/root/reqData/PLAN_CHARGE_NO",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/PLAN_CHARGE_NO"));
- model.makeValue("/root/reqData/CAST_END_YN",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/CAST_END_YN"));
- model.makeValue("/root/reqData/XIN_DATE",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/XIN_DATE"));
- model.makeValue("/root/reqData/CC_DEVNO",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/CC_DEVNO"));
- model.makeValue("/root/reqData/WKSHIFT",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/WKSHIFT"));
- model.makeValue("/root/reqData/WKGROUP",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/WKGROUP"));
- model.makeValue("/root/reqData/REG_ID",model1.getValue("/root/gridData/grid1/CCMResult_VO/CCMResult_Row[1]/REG_ID"));
- model.makeValue("/root/reqData/STLMELT_WGT",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STLMELT_WGT"));
- model.makeValue("/root/reqData/CC_END_STLMELT_USE_WGT",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_END_STLMELT_USE_WGT"));
- model.makeValue("/root/reqData/REM_WGT_IN_TD",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/REM_WGT_IN_TD"));
- model.makeValue("/root/reqData/CC_YIELD",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_YIELD"));
- model.makeValue("/root/reqData/STLMELT_TEMP",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STLMELT_TEMP"));
-
-
- model.makeValue("/root/reqData/PRE_CHARGE_NO",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/PRE_CHARGE_NO"));
- model.makeValue("/root/reqData/STEEL_DENSITY",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/STEEL_DENSITY"));
- model.makeValue("/root/reqData/CC_SPEED_AVG1",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_SPEED_AVG1"));
- model.makeValue("/root/reqData/CC_SPEED_AVG2",model1.getValue("/root/gridData/grid2/CCMResult_VO/CCMResult_Row[1]/CC_SPEED_AVG2"));
-
- model.makeValue("/root/reqData/SUBPROC","J"); //查询条件,“L”表示LF炉
- model.makeValue("/root/reqData/status","u");
-
- commSubmit("UIG020070-service","save","glueAction.do");
-
- //将查询结果Apped到datagrid上
- commAppendData("/root/gridData/grid1/CCMResult_VO","/root/resData/CCMResult_VO");
- commAppendData("/root/gridData/grid2/CCMResult_VO","/root/resData/CCMResult_VO");
- commAppendData("/root/gridData/grid3/CCMResult_VO","/root/resData/CCMResult_VO");
- commAppendData("/root/gridData/grid5/CCMResult_VO","/root/resData/CCMResult_VO");
- model.refresh();
- }
- }
-
-
-
- //通过选择组信息获得相应的作业人,这里是查询CCM的相关作业人
- function selOnClick()
- {
- var nodeSet1 = datagrid1.nodeset;
- var WkGroup = model1.getValue(nodeSet1+"[1]/WKGROUP");
- model.setValue("/root/searchEmp/WK_GROUP", WkGroup);
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.duplicate("/root/reqData","/root/searchEmp/WK_GROUP");
-
- commSubmit("UIG020070-service","onclick","glueAction.do");
-
- commAppendData("/root/wkResult/WkEmpResult/onclickResult_VO","/root/resData/onclickResult_VO");
- model.refresh();
- }
-
- function rightClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue + 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
-
- function leftClick(){
- var checkValue = model.getValue("/root/searchData/CHARGE_NO");
- if(checkValue == null || checkValue == "")return;
- var tstvalue = parseInt(checkValue.substr(4,5),10);
- tstvalue = (tstvalue - 1) + "";
- var strLen = tstvalue.length;
- checkValue = checkValue.substr(0,4);
- for(var i = 0 ; i < (5 - strLen) ; i++){
- checkValue = checkValue + "0";
- }
- checkValue = checkValue + tstvalue + "A";
- model.setValue("/root/searchData/CHARGE_NO",checkValue);
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;">
- <datagrid id="datagrid2" nodeset="/root/gridData/grid2/CCMResult_VO/CCMResult_Row" allowuserresize="false" caption="主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^主原料用量^上台大包温度
^铸造速度^铸造速度^铸造速度^铸造速度^铸造速度^铸造速度^中间包温度^中间包温度^中间包温度|上台大包重量(kg)^浇钢重量(kg)^钢包剩余钢水量(kg)^中包剩余钢水量(kg)^浇次内上一炉次号^钢水密度^回收率^上台大包温度
^平均1^最低1^最高1^平均2^最低2^最高2^平均^最低^最高|上台大包重量(kg)^浇钢重量(kg)^钢包剩余钢水量(kg)^中包剩余钢水量(kg)^浇次内上一炉次号^钢水密度^回收率^上台大包温度
^平均1^最低1^最高1^平均2^最低2^最高2^平均^最低^最高" colwidth="70, 70, 70, 70, 95, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" defaultrows="4" mergecellsfixedrows="bycolrec" selectionmode="free" rowsep="|" colsep="^" style="left:0px; top:97px; width:980px; height:89px; ">
- <col ref="STLMELT_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="CC_END_STLMELT_USE_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="REM_WGT_IN_LD" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="REM_WGT_IN_TD" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="PRE_CHARGE_NO" type="combo" visibility="hidden" editmode="input" style="background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="STEEL_DENSITY" type="input" style="background-color:#ffff99; "/>
- <col ref="CC_YIELD" visibility="hidden"/>
- <col ref="STLMELT_TEMP" type="input" format="#,###" style="left:410px; top:42px; width:60px; height:27px; background-color:#ffff99; "/>
- <col ref="CC_SPEED_AVG1" type="input" style="background-color:#ffff99; "/>
- <col ref="CC_SPEED_MIN1"/>
- <col ref="CC_SPEED_MAX1"/>
- <col ref="CC_SPEED_AVG2" type="input" style="background-color:#ffff99; "/>
- <col ref="CC_SPEED_MIN2"/>
- <col ref="CC_SPEED_MAX2"/>
- <col ref="TD_TEMP_AVG"/>
- <col ref="TD_TEMP_MIN"/>
- <col ref="TD_TEMP_MAX"/>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/gridData/grid3/CCMResult_VO/CCMResult_Row" caption="比水量^作业时刻^作业时刻^作业时刻^作业时刻^作业时刻^浇注
时间|比水量^钢包到达^浇注开始^水口打开^水口关闭^浇注结束^浇注
时间" colwidth="75, 150, 150, 150, 150, 150, 153" defaultrows="3" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" disabled="true" style="left:0px; top:197px; width:980px; height:64px; ">
- <col ref="COOLWAT_WGT"/>
- <col ref="LD_ARRV_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="CC_STA_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="LD_OPEN_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="LD_CLOSE_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="CC_END_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="CC_HOUR"/>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/gridData/grid1/CCMResult_VO/CCMResult_Row" allowuserresize="false" caption="预定炉次号
^钢种^连浇炉^浇次号^浇次完成区分^统计日^连铸机编号^班次
^组^作业人^钢包包号^钢包打开时间^中间包号" colwidth="95, 65, 92, 98, 112, 140, 92, 110, 60, 70, 60, 98, 63" defaultrows="2" selectionmode="free" rowsep="|" colsep="^" style="left:0px; top:37px; width:980px; height:44px; ">
- <col ref="PLAN_CHARGE_NO"/>
- <col ref="STL_GRD"/>
- <col ref="CAST_SEQ"/>
- <col ref="CAST_NO"/>
- <col ref="CAST_END_YN" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>完成</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="XIN_DATE" type="inputdate" style="background-color:#ffff99; "/>
- <col ref="CC_DEVNO" type="combo" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label>1#</label>
- <value>J1</value>
- </item>
- <item>
- <label>2#</label>
- <value>J2</value>
- </item>
- </choices>
- </col>
- <col ref="WKSHIFT" type="combo" editmode="inputsearch" style="background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/wkResult/WkShiftResult/ShiftResult_VO/ShiftResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="WKGROUP" type="combo" visibility="hidden" editmode="inputsearch" style="background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/wkResult/WkGroupResult/GroupResult_VO/GroupResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="REG_ID" type="combo" visibility="hidden" editmode="inputsearch" style="background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/wkResult/WkEmpResult/onclickResult_VO/onclickResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="LD_NO" visibility="hidden"/>
- <col ref="LD_OPEN_YN" visibility="hidden"/>
- <col ref="TD_NO" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //确定选中的位置是组的话,带出相应的作业人
- if (datagrid1.col == datagrid1.colRef("WKGROUP")) {
- selOnClick();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid5" nodeset="/root/gridData/grid5/CCMResult_VO/CCMResult_Row" visibility="hidden" caption="结晶器1^结晶器1^结晶器1^结晶器1^结晶器1^结晶器2^结晶器2^结晶器2^结晶器2^结晶器2|高度^上宽^下宽^振频^振幅^高度^上宽^下宽^振频^振幅" colwidth="98, 98, 98, 98, 98, 98, 98, 98, 98, 96" defaultrows="3" mergecellsfixedrows="bycolrec" selectionmode="free" rowsep="|" colsep="^" disabled="true" style="left:0px; top:272px; width:980px; height:64px; ">
- <col ref="MD_LVL1"/>
- <col ref="MD_UPPER_WTH1"/>
- <col ref="MD_LOWER_WTH1"/>
- <col ref="MD_VIBRATE_CNT1"/>
- <col ref="MD_VIBRATE_WTH1"/>
- <col ref="MD_LVL2"/>
- <col ref="MD_UPPER_WTH2"/>
- <col ref="MD_LOWER_WTH2"/>
- <col ref="MD_VIBRATE_CNT2"/>
- <col ref="MD_VIBRATE_WTH2"/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">炉次号</caption>
- <select1 id="combo1" ref="/root/searchData/CHARGE_NO" appearance="minimal" editmode="input" style="left:92px; top:5px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initData/INIT_CHARGE_NO/InitDataResult_VO/InitDataResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- find();
- ]]>
- </script>
- </select1>
- <datagrid id="datagrid7" nodeset="/root/gridData/grid7/JchmResult_VO/JchmResult_Row" caption="项目" colwidth="100" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:345px; width:980px; height:265px; ">
- <col ref="xm"/>
- </datagrid>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <button id="button3" style="left:220px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rightClick();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:195px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- leftClick();
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:300px; top:5px; width:86px; height:20px; background-color:#ffcc99; ">中厚板特殊要求</caption>
- <input id="input1" ref="/root/searchData/L2DEMO" style="left:390px; top:5px; width:585px; height:20px; background-color:#ffff99; "/>
- </xhtml:body>
- </xhtml:html>
|