| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?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>
- </reqData>
- <detailData>
- <gridData1>
- <CHK/>
- <STL_GRP_CD/>
- <THK_GRP_CD/>
- <THK_MINI/>
- <THK_MAXI/>
- <WTH_GRP_CD/>
- <WTH_MINI/>
- <WTH_MAXI/>
- <REG_DTIME/>
- <REG_ID/>
- <MOD_DTIME/>
- <MOD_ID/>
- </gridData1>
- </detailData>
- <initResult/>
- <errorMsg/>
- <formData>
- <searchForm>
- <PLT>H</PLT>
- <WF>W</WF>
- </searchForm>
- </formData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/F.js"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var arrcol = new Array();
- arrcol[1] = 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;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++) {
- node.appendChild(nodeList.item(i));
- }
- model.makeValue("/root/formData/searchForm/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
- }
- function Init(node) {
- InitParams(node);
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//设置第0行的checkbox的属性为true 便于进行全选操作
- datagrid1.colStatus(0)=false; //设置第0列也即为checkbox所在列的列状态为false。
- commSubmit("UIF021040-service","success","glueAction.do");
- model.duplicate("/root/initResult","/root/resData");
- model.refresh();
- }
- function setTitle()
- {
- return "热轧管制 >> 热轧管制标准 >> 轧辊单位编制烫辊材标准"; // 如:return "进程管理 >> 订单进程现况查询";
- }
- function find() {
- clockKey(arrcol,datagrid1);
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData/searchForm");
- commSubmit("UIF021040-service","findRollCtrl","glueAction.do");
- model.refresh();
- }
- // function checkNull()
- // {
- // var index = datagrid1.selectedRow(0);//获取选择行
- // var str_THK_MINI = datagrid1.valuematrix(index, datagrid1.colRef("THK_MINI"));//获取选择行"LADLE_MOVE_TME"的值
- // //检查空串
- // if(!isNullOrEmpty(str_THK_MINI)) {
- // alert("钢包移动时间不可为空");
- // return;
- // }
- // var str_THK_MAXI = datagrid1.valuematrix(index, datagrid1.colRef("THK_MAXI"));//获取选择行"LADLE_MOVE_TME"的值
- // //检查空串
- // if(!isNullOrEmpty(str_THK_MAXI)) {
- // alert("钢包移动时间不可为空");
- // return;
- // }
- // var str_WTH_MINI = datagrid1.valuematrix(index, datagrid1.colRef("WTH_MINI"));//获取选择行"LADLE_MOVE_TME"的值
- // //检查空串
- // if(!isNullOrEmpty(str_WTH_MINI)) {
- // alert("钢包移动时间不可为空");
- // return;
- // }
- // var str_WTH_MAXI = datagrid1.valuematrix(index, datagrid1.colRef("WTH_MAXI"));//获取选择行"LADLE_MOVE_TME"的值
- // //检查空串
- // if(!isNullOrEmpty(str_WTH_MAXI)) {
- // alert("钢包移动时间不可为空");
- // return;
- // }
- // }
- function save() {
- // checkNull();
- model.removenode("/root/reqData");
- commSendReq("/root/formData/searchForm");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
- commSubmit("UIF021040-service","saveRollCtrl","glueAction.do");
- datagrid1.rebuild();
- pageInit();
- model.removenode("/root/reqData");
- clockKey(arrcol,datagrid1);
- }
- function create() {
- datagrid1.addRow();
- }
- function remove() {
- if(commComfirmBox("确定要删除吗?","删除对话框")=='0') return;
- for(var i=datagrid1.rows; i>(datagrid1.fixedRows-1) ; i--) {
- if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK"))=='true') {
-
- if( datagrid1.rowStatus(i)==1 ||datagrid1.rowStatus(i)==3 ) //空行
- {
- datagrid1.deleteRow(i);
- }else
- {
- datagrid1.addStatus(i,"delete");//添加删除状态
- model.removenode("/root/reqData");
- commSendReq("/root/formData/searchForm");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus"); //根据状态进行修改操作
- commSubmit("UIF021040-service","saveRollCtrl","glueAction.do");
- datagrid1.rebuild();
- }
-
- }
- }
- pageInit();
- clockKey(arrcol,datagrid1);
- }
- function close() {
- window.close();//关闭窗口
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;" style="font-family:宋体; ">
- <line id="line3" style="x1:1px; y1:29px; x2:980px; y2:29px; border-color:#ff00ff; "/>
- <caption id="caption1" class="cell" style="left:1px; top:5px; width:90px; height:20px; text-align:center; border-style:solid; ">工厂</caption>
- <select1 id="combo2" ref="/root/formData/searchForm/PLT" appearance="minimal" style="left:93px; top:5px; width:110px; height:20px; ">
- <choices>
- <item>
- <label>热轧</label>
- <value>H</value>
- </item>
- </choices>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/resData/rs_VO/rs_Row" caption="^钢号组^厚度组^厚度^厚度^宽度组^宽度^宽度^录入时间^录入者名^变更时间^变更者名|^钢号组^厚度组^下限值^上限值^宽度组^下限值^上限值^录入时间^录入者名^变更时间^变更者名" colsep="^" colwidth="35, 87, 87, 87, 87, 87, 87, 87,87, 87, 87, 87" defaultrows="0" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:33px; width:980px; height:587px; text-align:center; ">
- <col ref="CHK" type="checkbox" style="left:0px; top:41px; height:21px; "/>
- <col ref="STL_GRP_CD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey0_VO/resultkey0_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="THK_GRP_CD" type="combo" style="left:80px; top:41px; height:21px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey1_VO/resultkey1_Row">
- <label ref="THK_GRP_CD"/>
- <value ref="THK_GRP_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="THK_MINI" style="left:194px; top:41px; height:21px; text-align:right; "/>
- <col ref="THK_MAXI" style="left:274px; top:41px; height:21px; text-align:right; "/>
- <col ref="WTH_GRP_CD" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/resultkey2_VO/resultkey2_Row">
- <label ref="WTH_GRP_CD"/>
- <value ref="WTH_GRP_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="WTH_MINI" format="#,##0" style="text-align:right; "/>
- <col ref="WTH_MAXI" format="#,##0" style="text-align:right; "/>
- <col ref="REG_DTIME" format="yyyy-mm-dd hh:nn:ss" style="left:374px; top:41px; height:21px; text-align:center; "/>
- <col ref="REG_ID" style="left:439px; top:41px; height:21px; text-align:left; "/>
- <col ref="MOD_DTIME" format="yyyy-mm-dd hh:nn:ss" style="left:540px; top:41px; height:21px; text-align:center; "/>
- <col ref="MOD_ID" style="left:667px; top:41px; height:21px; text-align:left; "/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- datagrid1.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curentRow = datagrid1.row-datagrid1.fixedRows+1;
- //宽度组,厚度组数据自动显示
- if(datagrid1.col== datagrid1.colRef("WTH_GRP_CD") || datagrid1.col== datagrid1.colRef("THK_GRP_CD"))
- {
- var rs_ref = "/root/resData/rs_VO/rs_Row";
- var rs_node = instance1.selectSingleNode("/root/resData/rs_VO/rs_Row");
- var rs_cnt = rs_node.length;
- var thk_nodeRef = "/root/initResult/resData/resultkey1_VO/resultkey1_Row";
- var thk_nodeList = root.selectSingleNode(thk_nodeRef);
- var wth_nodeRef = "/root/initResult/resData/resultkey2_VO/resultkey2_Row";
- var wth_nodeList = root.selectSingleNode(wth_nodeRef);
- for(var i=1; i<=thk_nodeList.length; i++)
- {
- var thk = model.getValue(thk_nodeRef+"["+i+"]/THK_GRP_CD");
- var mini = model.getValue(thk_nodeRef+"["+i+"]/MINI");
- var maxi = model.getValue(thk_nodeRef+"["+i+"]/MAXI");
- if(thk == model.getValue(rs_ref+"["+curentRow+"]/THK_GRP_CD")) {
- model.setValue(rs_ref+"["+curentRow+"]/THK_MINI",mini);
- model.setValue(rs_ref+"["+curentRow+"]/THK_MAXI",maxi);
- }
- }
- for(var i=1; i<=wth_nodeList.length; i++)
- {
- var wth = model.getValue(wth_nodeRef+"["+i+"]/WTH_GRP_CD");
- var mini = model.getValue(wth_nodeRef+"["+i+"]/MINI");
- var maxi = model.getValue(wth_nodeRef+"["+i+"]/MAXI");
- if(wth == model.getValue(rs_ref+"["+curentRow+"]/WTH_GRP_CD")) {
- model.setValue(rs_ref+"["+curentRow+"]/WTH_MINI",mini);
- model.setValue(rs_ref+"["+curentRow+"]/WTH_MAXI",maxi);
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|