Á¦Çѽ𣠾˸²
<alertoffyn/> <stepno/> <stepnm/> <fromtm/> <termtm/> <limtm/> <status/> </alertinfo> <alertlist/> <prcp/> </main> <send> <reqdata/> </send> <tmp> <info> <pid/> <cretno/> <orddd/> <ordtype/> <limno/> <limhistno/> <cpgappno/> <alertstatcd/> <title/> <alertoffyn/> <stepno/> <stepnm/> <fromtm/> <termtm/> <limtm/> <status/> </info> </tmp> <init> <prcpstatcd/> </init> </root> </instance> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ zbcfGetCodeList( new Array("M0011"), new Array("/root/init/prcpstatcd") ); // pid ¢Ë cretno ¢Ë orddd ¢Ë ordtype ¢Ë limno ¢Ë limhistno ¢Ë cpgappno ¢Ë alertstatcd ¢Ë title ¢Ë alertoffyn ¢Ë stepno ¢Ë stepnm alertData = opener.javascript.getParameter("alertdata_SMMMP00800"); var sData = alertData.split("¢Ì"); var tData = null; for( var i=0; i<sData.length-1; i++ ){ tData = sData[i].split("¢Ë"); pid = tData[0]; cretno = tData[1]; ordtype = tData[2]; orddd = tData[3]; limno = tData[4]; limhistno = tData[5]; cpgappno = tData[6]; alertstatcd = tData[7]; title = tData[8]; alertoffyn = tData[9]; stepno = tData[10]; stepnm = tData[11]; model.setValue("/root/tmp/info/pid", pid); model.setValue("/root/tmp/info/cretno", cretno); model.setValue("/root/tmp/info/orddd", orddd); model.setValue("/root/tmp/info/ordtype", ordtype); model.setValue("/root/tmp/info/limno", limno); model.setValue("/root/tmp/info/limhistno", limhistno); model.setValue("/root/tmp/info/cpgappno", cpgappno); model.setValue("/root/tmp/info/alertstatcd", alertstatcd); model.setValue("/root/tmp/info/title", title); model.setValue("/root/tmp/info/alertoffyn", alertoffyn); model.setValue("/root/tmp/info/stepno", stepno); model.setValue("/root/tmp/info/stepnm", stepnm); model.setValue("/root/tmp/info/status", "-"); copyNodeListType("/root/main/alertlist", "/root/tmp/info", "after", model, model); } model.refresh(); grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true; grd_alertinfo.isselected(1) = true; grd_alertinfo.row = grd_alertinfo.selectedRow(0); model.removeNodeset("/root/main/alertinfo/info"); fGetLimTMList(grd_alertinfo.row); fCnfmLimAttr(); ]]> </script> <submission id="TRMMP03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/alertinfo" resultref="/root/main/prcp"/> <submission id="TXMMP00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/> </model> <script type="javascript" src="../../../com/commonweb/js/common.js"/> <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/> <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/> <script type="javascript"> <![CDATA[ var pid = ""; var cretno = ""; var orddd = ""; var ordtype = ""; var alertData = ""; var alertstatcd = ""; var limno = ""; var limhistno = ""; var title = ""; var alertoffyn = ""; var cpgappno = ""; var stepno = ""; var stepnm = ""; function fGetLimTMList( iRow ){ model.copyNode("/root/main/alertinfo", "/root/main/alertlist/info["+ iRow +"]"); submit( "TRMMP03301", true ); var fromtm = instance1.selectSingleNode("/root/main/prcp/liminfo/fromtm"); var termtm = instance1.selectSingleNode("/root/main/prcp/liminfo/termtm"); var unitflag = instance1.selectSingleNode("/root/main/prcp/liminfo/limtmunitflag"); var limtm = instance1.selectSingleNode("/root/main/prcp/liminfo/limtm"); if( limtm != null ){ if( unitflag.text == "H" ) var unitnm = "½Ã°£"; else var unitnm = "ºÐ"; model.setValue("/root/main/alertinfo/fromtm", fromtm.text); model.setValue("/root/main/alertinfo/termtm", termtm.text + unitnm); model.setValue("/root/main/alertinfo/limtm", limtm.text); }else{ model.setValue("/root/main/alertinfo/fromtm", ""); model.setValue("/root/main/alertinfo/termtm", ""); model.setValue("/root/main/alertinfo/limtm", ""); } //model.removeNodeset("/root/main/prcp/liminfo"); cap_termtm.refresh(); cap_rmntm.refresh(); } function fCnfmLimAttr(){ model.removeNodeset("/root/send/reqdata"); model.makeNode("/root/send/reqdata"); var statusFlag = ""; if(model.getValue("/root/main/alertinfo/alertstatcd") == "I" ){ statusFlag = "W"; }else if(model.getValue("/root/main/alertinfo/alertstatcd") == "T" ){ statusFlag = "E"; } model.setValue("/root/main/alertinfo/alertstatcd", statusFlag); model.setValue("/root/main/alertinfo/status", "U"); model.copyNode("/root/send/reqdata", "/root/main/alertinfo"); model.makeValue("/root/send/reqdata/attrflagcd", "3"); //1:¸ð´ÏÅ͸µ, 2:½ºÅ©¸®´×, 3:Á¦Çѽð£, 4:¹®Áø if( submit("TXMMP00810", false) ){ var limno = model.getValue("/root/main/alertinfo/limno"); var limhistno = model.getValue("/root/main/alertinfo/limhistno"); opener.window.javascript.setParameter("alertstatcd_TRMMP03300", "E"); model.setValue("/root/main/alertlist/info[limno='" + limno + "']/status", statusFlag); } /* if( instance1.selectNodes("/root/main/alertlist/info[status!='E']").length == 0 ){ window.close(); }else{ //model.removeNodeset("/root/main/alertlist/info[" + grd_alertinfo.row + "]"); grd_alertinfo.refresh(); //grd_alertinfo.select(1, 1, 1, grd_alertinfo.cols) = true; //grd_alertinfo.isselected(1) = true; //grd_alertinfo.row = grd_alertinfo.selectedRow(0); //grd_alertinfo.dispatch("onclick"); } */ } ]]> </script> </xhtml:head> <xhtml:body pagewidth="516" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; "> <caption id="caption22" class="tit_2" style="left:5px; top:4px; width:121px; height:13px; ">±âÁØ</caption> <group id="group_biz" style="left:0px; top:20px; width:500px; height:455px; "> <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:498px; y2:1px; "/> <caption id="caption3" class="hand" style="left:0px; top:415px; width:481px; height:28px; "> <![CDATA[À§ÀÇ Ã³¹æµéÀº [ ] ³»ÀÎ [ ] ±îÁö Acting µÇ¾î¾ß ÇÕ´Ï´Ù.]]> </caption> <line id="line7" class="line_3" style="x1:0px; y1:407px; x2:498px; y2:407px; "/> <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:498px; y2:139px; "/> <datagrid id="grd_alertinfo" nodeset="/root/main/alertlist/info" autoresize="true" caption="½ºÅܸí^³»¿ë" colsep="^" colwidth="130, 349" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:4px; width:498px; height:96px; "> <col ref="stepnm"/> <col ref="title"/> <script type="javascript" ev:event="onclick"> <![CDATA[ var iRow = grd_alertinfo.row; if( iRow > 0 && iRow <= grd_alertinfo.rows ){ model.removeNodeset("/root/main/alertinfo/info"); fGetLimTMList(iRow); fCnfmLimAttr(); } ]]> </script> </datagrid> <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" caption="»óÅÂ^ó¹æÄÚµå^󹿏í" colsep="^" colwidth="75, 87, 316" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:142px; width:498px; height:265px; "> <col disabled="true" ref="prcpstatcd" type="combo"> <choices> <itemset nodeset="/root/init/prcpstatcd/M0011"> <label ref="cdnm"/> <value ref="cdid"/> </itemset> </choices> </col> <col ref="prcpcd"/> <col ref="prcpnm"/> </datagrid> <caption id="cap_rmntm" ref="/root/main/alertinfo/limtm" style="left:242px; top:412px; width:150px; height:20px; font-weight:bolder; color:#ff0000; "/> <line id="line2" class="line_3" style="x1:0px; y1:100px; x2:498px; y2:100px; "/> <caption id="cap_termtm" ref="/root/main/alertinfo/termtm" style="left:120px; top:412px; width:65px; height:20px; font-weight:bolder; color:#ff0000; "/> </group> <caption id="caption1" class="tit_2" style="left:0px; top:141px; width:121px; height:13px; ">¹Ì¼öÇà ó¹æ</caption> <button id="btn_close" class="btn4_letter2" style="left:444px; top:476px; width:56px; height:22px; "> <caption>´Ý±â</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ window.close(); ]]> </script> </button> <button id="btn_cnfm" class="btn4_letter2" visibility="hidden" style="left:387px; top:476px; width:56px; height:22px; "> <caption>È®ÀÎ</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ fCnfmLimAttr(); ]]> </script> </button> </xhtml:body> </xhtml:html>