| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/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="">
- <formData>
- <COILNO/>
- </formData>
- <initData>
- <CombCoil_VO>
- <CombCoil_Row>
- </CombCoil_Row>
- </CombCoil_VO>
- </initData>
- <SlabInfo>
- <CoilComm_Row>
- <SLAB_NO/>
- <ORD_NO/>
- <SPEC_ABBSYM/>
- <ORD_USE_CD/>
- </CoilComm_Row>
- </SlabInfo>
- <datagrid1/>
- <datagrid2/>
- <datagrid3/>
- <datagrid4/>
- <datagrid5/>
- <tempData>
- <tempData1/>
- <tempData2/>
- <tempData3/>
- <tempData4/>
- <tempData5/>
- </tempData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- //页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node);
- datagrid1.colStatus(0)=false; //初始化时为非全选
- //钢卷号初始化
- commSubmit("UIB020060-service" , "success" , "glueAction.do");
- model.duplicate("/root/initData" , "/root/resData/CombCoil_VO");
- model.refresh();
- combo1.select(0);
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- //板坯号、订单号、标准号、钢卷号等信息查询
- model.makeValue("/root/reqData/COILNO" , combo1.value.Trim() );
- commSubmit("UIB020060-service" , "findOrder" , "glueAction.do");
- model.copyNode("/root/SlabInfo" , "/root/resData/CoilComm_VO" );
- model.copyNode("/root/datagrid1" , "/root/resData/CoilInfo_VO");
- model.refresh();
-
- }
-
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.removenode("/root/tempData");
- model.makeNode("/root/tempData/tempData1");
- model.makeNode("/root/tempData/tempData2");
- model.makeNode("/root/tempData/tempData3");
- model.makeNode("/root/tempData/tempData4");
- model.makeNode("/root/tempData/tempData5");
- ///生成请求参数
- b01MultiUpdate(datagrid1,"/root/tempData/tempData1" ,"A", true, "rowStuts1");//获得表1中增加的记录
- b01MultiUpdate(datagrid2,"/root/tempData/tempData2" ,"A", true, "rowStuts2");//表2
- b01MultiUpdate(datagrid3,"/root/tempData/tempData3" ,"A", true, "rowStuts2");//表3
- b01MultiUpdate(datagrid4,"/root/tempData/tempData4" ,"A", true, "rowStuts2");//表4
- b01MultiUpdate(datagrid5,"/root/tempData/tempData5" ,"A", true, "rowStuts2");//表5
- commSendReq("/root/tempData/tempData1","/root/tempData/tempData2","/root/tempData/tempData3","/root/tempData/tempData4","/root/tempData/tempData5");
- //仅在表2、3、4、5被更新时其作用
- model.makeValue("/root/reqData/COILNO" , datagrid1.valueMatrix(selectRow , 1));//钢卷号
- model.makeValue("/root/reqData/SEQ" , datagrid1.valueMatrix(selectRow , 2));//次数
- getLoggingInInfo();
- commSubmit("UIB020060-service", "save", "glueAction.do");
- model.refresh();
- exceptionReport();
-
- datagrid1.clearStatus();
- datagrid2.clearStatus();
- datagrid3.clearStatus();
- datagrid4.clearStatus();
- datagrid5.clearStatus();
- }
-
- function setGridValue(grid)
- {
- for(var i = 1; i < grid.rows; i++)
- {
- grid.valueMatrix(i , grid.colRef("CHEM_VAL")) = "";
- grid.valueMatrix(i , grid.colRef("EX")) = "Y";
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" pagewidth="980" pageheight="620" guideline="1,980;2,620;">
- <caption id="caption1" class="cell" style="left:215px; top:35px; width:90px; height:20px; ">订单序号</caption>
- <caption id="caption2" class="cell" style="left:430px; top:35px; width:90px; height:20px; ">标准号</caption>
- <caption id="caption3" class="cell" style="left:725px; top:35px; width:90px; height:20px; ">订单用途</caption>
- <button id="button6" style="left:70px; top:65px; width:95px; height:20px; text-align:center; background-image:..\..\images\create.GIF; ">
- <caption>增加</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(beGridChanged(datagrid1 ,datagrid2 , datagrid3 , datagrid4 ,datagrid5)=="1")
- {
- window.alert("请先保存被修改的记录!", "警告");
- return;
- }
-
- model.removenode("/root/reqData");
- var addRow = 0;//保存增加行
- if(datagrid1.rows==1)
- {
- datagrid1.addRow();
- addRow = datagrid1.row;//增加后的为当前行
- datagrid1.valueMatrix(addRow , 1) = combo1.value.Trim();
- datagrid1.valueMatrix(addRow , 2) = "01" ;
- }
- else
- {
- datagrid1.addRow();
- addRow = datagrid1.row;//增加后的为当前行
- var coilNo = datagrid1.valueMatrix(addRow-1 , 1);//钢卷号
- var seq = parseInt(datagrid1.valueMatrix(addRow-1 , 2))+1;//次数
- datagrid1.valueMatrix(addRow , 1) = coilNo;
- datagrid1.valueMatrix(addRow , 2) = "0"+seq;
-
- //清除以前查询的实绩的值
- setGridValue(datagrid2);
- setGridValue(datagrid3);
- setGridValue(datagrid4);
- setGridValue(datagrid5);
- //清楚以前修改的状态
- datagrid2.clearStatus();
- datagrid3.clearStatus();
- datagrid4.clearStatus();
- datagrid5.clearStatus();
- }
- selectRow = datagrid1.row;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" style="left:145px; top:65px; width:95px; height:20px; background-image:..\..\images\delete.GIF; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(commComfirmBox("确认删除?","提示")=="0") return;
- for(var i = datagrid1.rows; i >= 1; i--)
- {
- if(datagrid1.valueMatrix(i , 0)=="Y")
- {
- datagrid1.deleteRow(i , false);
- }
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- b01MultiUpdate(datagrid1,"/root/reqData" ,"A", true, "rowStatus");
- commSubmit("UIB020060-service", "delete", "glueAction.do");
- model.refresh();
- datagrid1.clearStatus();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/CoilInfo_Row" caption="选择^钢卷号^次数" colsep="^" colwidth="40, 120, 50" defaultrows="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:92px; width:215px; height:505px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="COIL_NO"/>
- <col ref="CHEM_SEQ"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- selectRow = datagrid1.row;
- model.removenode("/root/reqData");
- commSendReq("/root/datagrid1/CoilInfo_Row["+datagrid1.row+"]");
- model.makeValue("/root/reqData/ORDNO" , output1.value);//订单号
- commSubmit("UIB020060-service" , "onClick" , "glueAction.do");
- //调用b01.js文件中的copyFixNode方法,执行拷贝
- copyFixNode("/root/datagrid2","/root/resData/SingleChem_VO/SingleChem_Row",1,13);
- copyFixNode("/root/datagrid3","/root/resData/SingleChem_VO/SingleChem_Row",14,26);
- copyFixNode("/root/datagrid4","/root/resData/SingleChem_VO/SingleChem_Row",27,50);
- model.copyNode("/root/datagrid5" , "/root/resData/CompChem_VO");
- model.refresh();
-
- datagrid1.clearStatus();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/SingleChem_Row" caption="成分^最小^最大^实绩^EX" colsep="^" colwidth="55, 60, 60, 60, 42" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:225px; top:65px; width:240px; height:296px; ">
- <col ref="CHEM_CD" style="left:0px; top:21px; width:55px; height:21px; "/>
- <col ref="CHEM_MIN" style="left:55px; top:21px; width:60px; height:21px; "/>
- <col ref="CHEM_MAX"/>
- <col ref="CHEM_VAL" type="input" style="background-color:#ffff99; "/>
- <col ref="EX" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid2.editCell();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/SingleChem_Row" caption="成分^最小^最大^实绩^EX" colsep="^" colwidth="55, 60, 60, 60, 47" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:475px; top:65px; width:240px; height:296px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_MIN" style="left:55px; top:21px; width:60px; height:21px; "/>
- <col ref="CHEM_MAX"/>
- <col ref="CHEM_VAL" type="input" style="background-color:#ffff99; "/>
- <col ref="EX" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid3.editCell();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid4" nodeset="/root/datagrid4/SingleChem_Row" caption="成分^最小^最大^实绩^EX" colsep="^" colwidth="55, 60, 60, 60, 43" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:725px; top:65px; width:240px; height:296px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_MIN" style="left:55px; top:21px; width:60px; height:21px; "/>
- <col ref="CHEM_MAX"/>
- <col ref="CHEM_VAL" type="input" style="background-color:#ffff99; "/>
- <col ref="EX"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid4.editCell();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid5" nodeset="/root/datagrid5/CompChem_Row" caption="成分编码^复合元素计算式^最小^最大^实绩^EX^成分" colsep="^" colwidth="115, 440, 60, 60, 60, 35, 43" defaultrows="13" mergecellsfixedrows="bycolrec" rowsep="|" style="left:225px; top:365px; width:740px; height:232px; ">
- <col ref="COMP_DETAIL"/>
- <col ref="COMP_CAL"/>
- <col ref="CHEM_MIN"/>
- <col ref="CHEM_MAX"/>
- <col ref="CHEM_VAL" type="input" style="background-color:#ffff99; "/>
- <col ref="EX" visibility="hidden"/>
- <col ref="CHEM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid5.editCell();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">钢卷号</caption>
- <output id="output1" ref="/root/SlabInfo/CoilComm_Row/ORD_NO" style="left:304px; top:35px; width:110px; height:20px; text-align:center; background-color:#ffffff; border-color:#6b8a9a; border-style:solid; "/>
- <output id="output2" ref="/root/SlabInfo/CoilComm_Row/SPEC_ABBSYM" style="left:519px; top:35px; width:196px; height:20px; text-align:left; background-color:#ffffff; border-color:#6b8a9a; border-style:solid; "/>
- <output id="output3" ref="/root/SlabInfo/CoilComm_Row/ORD_USE_CD" style="left:814px; top:35px; width:110px; height:20px; text-align:center; background-color:#ffffff; border-color:#6b8a9a; border-style:solid; "/>
- <caption id="caption5" class="cell" style="left:0px; top:35px; width:90px; height:20px; ">板坯号</caption>
- <output id="output4" ref="/root/SlabInfo/CoilComm_Row/SLAB_NO" style="left:89px; top:35px; width:114px; height:20px; text-align:center; background-color:#ffffff; border-color:#6b8a9a; border-style:solid; "/>
- <select1 id="combo1" ref="/root/formData/COILNO" appearance="minimal" style="left:90px; top:5px; width:135px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initData/CombCoil_VO/CombCoil_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <script type="javascript" ev:event="onaccesskey">
- <![CDATA[
- openWindow("UIB020060");
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|