| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?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/>
- </root>
- </instance>
- <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("UID040010-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="380" pageheight="465" guideline="2,500;1,708;" style="font-family:宋体; ">
- <line id="line1" style="x1:5px; y1:30px; x2:375px; y2:30px; "/>
- <line id="line2" style="x1:5px; y1:55px; x2:375px; y2:55px; "/>
- <datagrid id="datagrid2" nodeset="/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row" caption="选择^传送顺序^管理号(浇次)" colsep="^" colwidth="100, 100, 149" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:80px; width:350px; height:360px; ">
- <col ref="CHK" type="radio"/>
- <col ref="WITHIN_SUB_SEQ"/>
- <col ref="MAT_SPEC_SEQ"/>
- </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:215px; 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/CastNo",model.getValue("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']/MAT_SPEC_SEQ"));
- model.removenode("/root/gridData2/CastInfoWhenSureRes_VO/CastInfoWhenSureRes_Row[CHK='true']");
- commSubmit("UID040010-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:290px; 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>
|