äÇ÷Á¢¼öÃë¼Òµî·Ï
<LB0101> <cd/> <nm/> <etc01/> </LB0101> </init> <hidden> <cancel> <bcno/> <title/> </cancel> <cancelcombo> <resncd/> <resndesc/> <resncdkind/> </cancelcombo> <cancelinfo> <resndesc/> <resncd/> <resncdkind/> </cancelinfo> <openerdata> <data1/> <data2/> </openerdata> </hidden> </root> </instance> <script type="javascript" src="../../../com/commonweb/js/common.js"/> <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/> <submission id="TXLLC90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/> <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/> <submission id="TXLLC90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ fBaseInfoRef("0101|"); // äÇ÷Ãë¼Ò// Á¢¼öÃë¼Ò Á¦¸ñ ¼³Á¤ var resn = model.getValue("/root/hidden/openerdata/data2"); model.setvalue("/root/hidden/cancelinfo/resncdkind" , resn); if(resn == "02"){ model.makeValue("/root/init/title", "Á¢¼öÃë¼Òµî·Ï"); cap_cmt.visible = true; }else if(resn == "01"){ model.makeValue("/root/init/title", "äÇ÷Ãë¼Òµî·Ï"); cap_cmt.visible = false; } cap_cancel.refresh(); //Ãë¼Ò»çÀ¯º°·Î ÄÞº¸³»¿ëº¯°æ.. fSetCancelCombo(resn); ]]> </script> </model> <script type="javascript"> <![CDATA[ // äÇ÷/Á¢¼ö Ãë¼Òµî·Ï function fSetBcollAcptCncl(){ model.setvalue("/root/send/data1",model.getvalue("/root/hidden/openerdata/data1")); model.setvalue("/root/send/data2",model.getvalue("/root/hidden/openerdata/data2")); model.copyNode("/root/send/data3" , "/root/hidden/cancelinfo"); model.setvalue("/root/send/rtnid", "-"); var strCd = model.getValue("/root/hidden/cancelinfo/resncd"); //01000 äÇ÷ Ãë¼Ò»çÀ¯, 02000 Á¢¼öÃë¼Ò »çÀ¯, 03000 äÇ÷Á¢¼öÃë¼Ò »çÀ¯ if(strCd.substring(2, 6) == "000" || strCd.substring(2, 6) == ""){ messageBox("Ãë¼Ò±¸ºÐÀ» ¼±ÅÃÇϼ¼¿ä", "E"); return; } if(model.getvalue("/root/hidden/openerdata/data2") == "01"){ submit("TXLLC90401"); } else if(model.getvalue("/root/hidden/openerdata/data2") == "02"){ submit("TXLLC90402"); window.opener.javascript.fGetSpcListref("C"); } window.close(); } // Ãë¼Ò ÄÞº¸ º¯°æ function fSetCancelCombo(value){ //alert("01"); model.resetInstanceNode("/root/hidden/cancelcombo"); //var Cnt = getNodesetCnt("/root/init/cancelresn"); var vInstance = document.models(0).instances(0); var cntCR = vInstance.selectNodes("/root/init/LB0101").length; //alert("cnt= " + cntCR); NodeCnt = 1; for(i=1; i<= cntCR; i++){ // alert("kind= " + model.getValue("/root/init/cancelresn["+ i +"]/resncdkind") + " value= " + value); if(model.getValue("/root/init/LB0101["+ i +"]/etc01") == value){ model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd"); model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc"); model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind"); model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd", model.getValue("/root/init/LB0101["+ i +"]/cd")); model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc", model.getValue("/root/init/LB0101["+ i +"]/nm")); model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind", model.getValue("/root/init/LB0101["+ i +"]/etc01")); NodeCnt++; } } model.refresh(); } // Ãë¼Ò ÄÞº¸ ¼±Åà function fSetCancelResn(){ model.setvalue("/root/hidden/cancelinfo/resndesc" , cmb_cancelgbn.label); model.refresh(); } ]]> </script> </xhtml:head> <xhtml:body pagewidth="340" pageheight="200" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; "> <group id="group1" style="left:0px; top:0px; width:311px; height:155px; "> <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310px; y2:26px; "/> <caption id="caption2" class="cell_1" style="left:0px; top:55px; width:100px; height:96px; ">Ãë¼Ò»çÀ¯</caption> <textarea id="textarea1" ref="/root/hidden/cancelinfo/resndesc" style="left:103px; top:56px; width:207px; height:92px; "/> <line id="line8" class="line_3" style="x1:0px; y1:150px; x2:310px; y2:150px; "/> <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/> <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">Ãë¼Ò±¸ºÐ</caption> <caption id="cap_cancel" ref="/root/init/title" class="tit_2" style="left:5px; top:11px; width:250px; height:14px; "/> <select1 id="cmb_cancelgbn" ref="/root/hidden/cancelinfo/resncd" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; "> <choices> <itemset nodeset="/root/hidden/cancelcombo"> <label ref="resndesc"/> <value ref="resncd"/> </itemset> </choices> <script type="javascript" ev:event="xforms-select"> <![CDATA[ //fSetcnclrsn(); ]]> </script> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ fSetCancelResn(); ]]> </script> </select1> <caption id="cap_cmt" visibility="hidden" style="left:130px; top:8px; width:179px; height:20px; font-size:9pt; color:#0033cc; ">¡Ø ¼±ÅÃµÈ ÇÑ °Ëü¸¸ Ãë¼ÒµË´Ï´Ù.</caption> </group> <group id="group2" style="left:0px; top:155px; width:310px; height:27px; "> <button id="btn_cfm" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; "> <caption>È®ÀÎ</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ // äÇ÷Ãë¼Òµî·Ï fSetBcollAcptCncl(); ]]> </script> </button> <button id="btn_can" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; "> <caption>Ãë¼Ò</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ window.close(); ]]> </script> </button> <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:310px; y2:0px; "/> </group> </xhtml:body> </xhtml:html>