| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <gridData1>
- <CastInfoWhenSureRes_VO/>
- </gridData1>
- <gridData2>
- <CastInfoWhenSureRes_VO/>
- </gridData2>
- <sendInfo/>
- <initData>
- <rcvInfo/>
- </initData>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- //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));
- }
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //datagrid2.fixedcellcheckbox(0,datagrid2.colRef("CHK"))=true;
- //datagrid2.colStatus(0)=false;
-
- //datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- //datagrid1.colStatus(0)=false;
-
- model.removenode("/root/reqData");
- commSubmit("UID020040-service","findCastInfoWhenSure","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData2/CastInfoWhenSureRes_VO","/root/resData/CastInfoWhenSureRes_VO");
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="480" pageheight="465" guideline="2,500;1,708;" style="font-family:宋体; ">
- <line id="line1" style="x1:5px; y1:30px; x2:470px; y2:30px; "/>
- <line id="line2" style="x1:5px; y1:55px; x2:470px; y2:55px; "/>
- <datagrid id="datagrid2" nodeset="/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row" caption="选择^传送顺序^管理号(浇次)^计划炼钢^计划炼钢|选择^传送顺序^管理号(浇次)^开始时间^结束时间" colsep="^" colwidth="66, 73, 90, 109, 109" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:80px; width:451px; height:360px; ">
- <col ref="CHK" type="radio"/>
- <col ref="WITHIN_SUB_SEQ"/>
- <col ref="MAT_SPEC_SEQ"/>
- <col ref="INSCHARGESTRDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
- <col editable="false" ref="INSCHARGEENDDTIME" type="inputdate" format="yyyy-mm-dd" style="background-color:#ffff99; "/>
- </datagrid>
- <caption id="caption13" style="left:5px; top:445px; width:370px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
- <caption id="caption1" style="left:15px; top:60px; width:100px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">传送对象</caption>
- <button id="button2" style="left:318px; top:35px; width:70px; height:20px; background-image:../../images/create.gif; ">
- <caption>确定</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var pbWidth = 200;
- var pbHeight = 100;
- var width = htmlwindow.screen.width;
- var height = htmlwindow.screen.height;
- var left = (width - pbWidth) / 2;
- var top = (height - pbHeight) / 2;
- var progressBar = body.createChild("xforms:group", "id:progressBar;left:" + left + "px; top:" + top + "px; width:" + pbWidth + "px; height:" + pbHeight + "px; popup:true; showeffect:blend 300; background-color:#dddddd; background-image:../../images/wait.gif; background-position:center; background-stretch:no-stretch;");
-
-
- var count = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row)");
- var chkCheck = model.getXPathValue("count(/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true'])");
- /*for(var i = 1; i <= count; i++)
- {
- var CHK = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/CHK");
- if(CHK == "true")
- {
- model.makeValue("/root/reqData/CastNo","/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row["+i+"]/MAT_SPEC_SEQ");
- break;
- }
- }*/
- if(chkCheck == 0)
- {
- body.removeChild("progressBar");
- window.alert("请选择传送对象!","提示信息");
- return;
- }
- var existYN = model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/EXIST_YN")
- if(existYN == "0")
- {
- body.removeChild("progressBar");
- window.alert("该浇次中没有任何炉次信息,不能下发计划!","提示信息");
- return;
- }
- //commSendReq("/root/sendInfo");
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/RegId" , model.getValue("/root/initData/rcvInfo/REG_ID"));
- model.makeValue("/root/reqData/ModId" , model.getValue("/root/initData/rcvInfo/REG_ID"));
- model.makeValue("/root/reqData/CastNo",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/MAT_SPEC_SEQ"));
-
- model.makeValue("/root/reqData/insChargeStrDtime",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGESTRDTIME"));
- model.makeValue("/root/reqData/insChargeEndDtime",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/INSCHARGEENDDTIME"));
-
- model.removenode("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']");
- commSubmit("UID020040-service","sureCastInfoToPro","glueAction.do");
- body.removeChild("progressBar");
- errorMessage();
- // model.makeNode("/root/resData/ListResult_0_VO");
- // errorMessage();
- // window.alert("指示确认成功!","提示信息");
- // window.close();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:393px; top:35px; width:70px; height:20px; background-image:../../images/btn_exit.gif; ">
- <caption>关闭</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- window.close();
- ]]>
- </script>
- </button>
- <img id="img1" src="../../images/tit.gif" style="left:5px; top:10px; width:13px; height:13px; background-stretch:stretch; "/>
- <caption id="caption3" style="left:23px; top:8px; width:100px; height:20px; font-weight:bold; ">指示确定</caption>
- </xhtml:body>
- </xhtml:html>
|