| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?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[炼钢作业 >> 炼钢标准 >> 炼钢操作标准录入与查询(UIG010010)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <STL_GRD/>
- </formData>
- <gridData>
- <grid1/>
- <grid2/>
- </gridData>
- <initData/>
- <resData/>
- <reqData/>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- // 动态展示成分
- function dynamicChemGridDisplay()
- {
- // 删除已经生成的列
- while(datagrid2.cols > 1)
- {
- datagrid2.deleteColumn(1,false);
- }
-
- // 清除成分展示表格节点,显示成份时才能一次生成,不要一列一列的出来,具体原因不晓得
- model1.removenode("/root/gridData/grid2");
- model1.makeNode("/root/gridData/grid2");
-
- // 清除reqData节点
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
-
- // 赋值查询节点
- model1.makeNode("/root/reqData/STL_GRD");
- model1.setValue("/root/reqData/STL_GRD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("STL_GRD")));
-
- commSubmit("UIG010010-service","find2","glueAction.do");
-
- // 判断是否有值
- var nodeLen = instance1.selectSingleNode("/root/resData/SearchChemResult_VO").childNodes.length;
- if(nodeLen == 0)
- {
- alert(" 化学成分为空! ");
- return;
- }
-
- var rowLoc = new Array();
- rowLoc[0] = new Array(); //datagrid1.fixedRows 表格的第一行 ;CAPTION
- rowLoc[1] = new Array(); //AMI
- rowLoc[2] = new Array(); //MIN
- rowLoc[3] = new Array(); //MAX
- rowLoc[0][0] = "DESC"
- rowLoc[1][0] = "目标值"
- rowLoc[2][0] = "最大值"
- rowLoc[3][0] = "最小值"
- for(var i = 1 ; i <= nodeLen ; i++)
- {
- rowLoc[0][i] = model1.getValue("root/resData/SearchChemResult_VO/SearchChemResult_Row[" + i + "]/CHEM_CD");
- rowLoc[1][i] = model1.getValue("root/resData/SearchChemResult_VO/SearchChemResult_Row[" + i + "]/CHEM_AIM");
- rowLoc[2][i] = model1.getValue("root/resData/SearchChemResult_VO/SearchChemResult_Row[" + i + "]/CHEM_MAX");
- rowLoc[3][i] = model1.getValue("root/resData/SearchChemResult_VO/SearchChemResult_Row[" + i + "]/CHEM_MIN");
- }
-
- // 动态生成表格,
- for(var j = 1 ; j < rowLoc[0].length ; j++)
- {
- datagrid2.addColumn("ref:" + rowLoc[0][j] + "; type:input;");
- datagrid2.caption = datagrid2.caption + "^" + rowLoc[0][j];
- }
-
- // 给表格赋值
- for(var j = 0 ; j< rowLoc[0].length ; j++)
- {
- model1.makeValue("/root/gridData/grid2/SearchChemResult_VO/SearchChemResult_Row[1]/" + rowLoc[0][j],rowLoc[1][j]);
- model1.makeValue("/root/gridData/grid2/SearchChemResult_VO/SearchChemResult_Row[2]/" + rowLoc[0][j],rowLoc[2][j]);
- model1.makeValue("/root/gridData/grid2/SearchChemResult_VO/SearchChemResult_Row[3]/" + rowLoc[0][j],rowLoc[3][j]);
- }
- }
-
- /*
- *查询操作
- */
- function find()
- {
- commSendReq("/root/formData");
- commSubmit("UIG010010-service","find1","glueAction.do");
-
- model1.removenode("/root/gridData/grid1/SearchChargeStandardResult_VO/SearchChargeStandardResult_Row");
- model1.makeNode("/root/gridData/grid1/SearchChargeStandardResult_VO/SearchChargeStandardResult_Row");
-
- var resnode = instance1.selectSingleNode("/root/resData/SearchChargeStandardResult_VO");
- if(resnode.childNodes.length == 0)
- {
- alert(" 空数据 ");
- return;
- }
- commAppendData("/root/gridData/grid1/SearchChargeStandardResult_VO","/root/resData/SearchChargeStandardResult_VO");
- model.refresh();
- }
-
- // 修改一个牌号所对应的相应的炼钢操作标准
- function save()
- {
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
-
- commSubmit("UIG010010-service","save","glueAction.do");
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;" style="font-family:宋体; ">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; vertical-align:middle; border-color:#000000; ">牌号</caption>
- <datagrid id="datagrid1" nodeset="/root/gridData/grid1/SearchChargeStandardResult_VO/SearchChargeStandardResult_Row" allowuserresize="true" backcoloralternate="#f7f9f9" caption="选择^牌号^目标温度^目标温度^目标温度^目标温度^目标温度^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^目标处理时间^吨/炉次^吨/小时^收得率|选择^牌号^铁水^转炉^CAS^RH^LF^预处理^预处理^转炉^转炉^CAS^CAS^RH^RH^LF^LF^吨/炉次^吨/小时^收得率|选择^牌号^铁水^转炉^CAS^RH^LF^最小^最大^最小^最大^最小^最大^最小^最大^最小^最大^吨/炉次^吨/小时^收得率" colsep="^" colwidth="30, 60, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 50, 50, 50" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:35px; width:980px; height:489px; border-color:#000000; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col editable="false" ref="IRON_TGT_TEMP" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="BOF_TGT_TEMP" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="CAS_TGT_TEMP" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="RH_TGT_TEMP" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="LF_TGT_TEMP" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="KR_WK_HOUR_MIN" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="KR_WK_HOUR_MAX" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="BOF_WK_HOUR_MIN" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="BOF_WK_HOUR_MAX" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="CAS_WK_HOUR_MIN" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="CAS_WK_HOUR_MAX" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="RH_WK_HOUR_MIN" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="RH_WK_HOUR_MAX" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="LF_WK_HOUR_MIN" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="LF_WK_HOUR_MAX" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="TON_PER_CHARGE" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="TON_PER_HOUR" type="input" style="background-color:#ffff99; "/>
- <col editable="false" ref="YIELD" type="input" style="background-color:#ffff99; "/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 动态展示成分表格
- if(datagrid1.col == datagrid1.colRef("CHK"))
- {
- datagrid1.cellAttribute("editable",datagrid1.row,datagrid1.colRef("IRON_TGT_TEMP"),datagrid1.row,datagrid1.colRef("YIELD")) = true;
- dynamicChemGridDisplay();
- datagrid1.clearStatus();
- datagrid1.rowStatus(datagrid1.row) = 2;
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/gridData/grid2/SearchChemResult_VO/SearchChemResult_Row" allowuserresize="false" backcoloralternate="#f7f9f9" caption="成分" colsep="^" colwidth="100" defaultrows="4" fixedcols="1" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:530px; width:980px; height:85px; border-color:#000000; ">
- <col ref="DESC"/>
- </datagrid>
- <input id="input1" ref="/root/formData/STL_GRD" style="left:102px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
- <line id="line1" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
- </xhtml:body>
- </xhtml:html>
|