ÇÁ·ÎÁ§Æ® ÁøÃ´°ü¸®(÷ºÎÆÄÀÏ)
<prcscd/> <subteam/> </send> <cur_scrn/> </root> </instance> <script type="javascript" ev:event="xforms-model-construct-done"> <![CDATA[ model.removeNodeset("/root/send/attach"); model.resetInstanceNode("/root/send"); // ÆË¾÷ ´Üµ¶ Å×½ºÆ®¿ë ½ÃÀÛ // model.setValue("/root/send/prcscd","330"); // model.setValue("/root/send/subteam","SWAT"); // model.setValue("/root/cur_scrn","Å×½ºÆ®"); // ÆË¾÷ ´Üµ¶ Å×½ºÆ®¿ë ³¡ var subteam = opener.grd_projlist.textmatrix(opener.grd_projlist.row,opener.grd_projlist.colRef("subteam")); var prcscd = opener.grd_projlist.textmatrix(opener.grd_projlist.row,opener.grd_projlist.colRef("prcscd")); var cur_scrn = opener.grd_projlist.textmatrix(opener.grd_projlist.row,opener.grd_projlist.colRef("scrnname")); // ÷ºÎÆÄÀÏ È­¸é¿¡¼­ ÃÖÃÊ ±×¸®µå ¼±Åà ¾øÀÌ ¶ç¿üÀ» °æ¿ì search_file¿¡¼­ °ªÀ» ¹Þ¾Æ ¿Í¾ß ÇÑ´Ù. if (subteam == "" && prcscd == "") { var prcscd = opener.model.getValue("/root/send/search_file/prcscd"); var subteam = opener.model.getValue("/root/send/search_file/subteam"); var cur_scrn = opener.model.getValue("/root/cur_scrn"); } model.setValue("/root/send/prcscd",prcscd); model.setValue("/root/send/subteam",subteam); model.setValue("/root/cur_scrn",cur_scrn); model.refresh(); ]]> </script> <submission id="TRZTP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/projlist/list"/> <submission id="TRZTP00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search_file" resultref="/root/main/filelist/list"/> <submission id="TXZTP00103" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/filelist/list"/> </model> <script type="javascript" src="../../../com/commonweb/js/common.js"/> <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/> <script type="javascript"> <![CDATA[ // È­¸é open½Ã¿Í ÃʱâÈ­ ¹öư Ŭ¸¯½Ã È­¸é ÃʱâÈ­ ±â´ÉÀ» ¼öÇàÇÑ´Ù. function fInitialize() { model.resetInstanceNode("/root/send"); } ]]> </script> </xhtml:head> <xhtml:body pagewidth="500" pageheight="150"> <caption id="caption2" class="tit_1" style="left:1px; top:0px; width:217px; height:13px; vertical-align:middle; ">ÇÁ·ÎÁ§Æ® ÁøÃ´°ü¸®(÷ºÎÆÄÀÏÀúÀå)</caption> <caption id="caption1" class="tit_2" style="left:8px; top:23px; width:145px; height:13px; vertical-align:middle; ">÷ºÎÆÄÀÏ :</caption> <datagrid id="grd_attach" nodeset="/root/send/attach" caption="ÆÄÀϰæ·Î^" colwidth="407" extendlastcol="scroll" mergecellsfixedrows="bycolrec" tooltip="true" style="left:3px; top:45px; width:495px; height:100px; "> <col ref="file"/> </datagrid> <button id="btn_upload" class="btn5_letter2" style="left:452px; top:20px; width:42px; height:19px; "> <caption>ÀúÀå</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ for (i = grd_attach.fixedRows ; i < grd_attach.rows-1 ; i++) { for (h = i+1 ; h < grd_attach.rows ; h++) { if(grd_attach.textmatrix(i,grd_attach.colRef("file")) == grd_attach.textmatrix(h,grd_attach.colRef("file")) ) { alert("µ¿ÀÏÇÑ ÆÄÀÏÀÌ Á¸Àç ÇÕ´Ï´Ù!"); model.removeNodeset("/root/send/attach"); // model.resetInstanceNode("/root/send"); grd_attach.rebuild(); return; } } } if (submit("TXZTP00103")) { model.removeNodeset("/root/send/attach"); window.close(); // model.refresh(); } ]]> </script> </button> <upload id="upload1" nodeset="/root/send/attach/file" filesize="10485760" validate="false" style="left:278px; top:20px; width:30px; height:20px; "/> <button id="button1" class="btn2_letter4" style="left:381px; top:20px; width:64px; height:19px; "> <caption>ÆÄÀϼ±ÅÃ</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ var maxsize = upload1.attribute("filesize"); files = window.fileDialog("open", "|", true); filelist = files.split("|"); for(var i = 0 ; i < filelist.length ; i++ ) { grd_attach.addRow(false); grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i]; if (!checkFileSize(upload1)){ grd_attach.removeItem(); messageBox("ÆÄÀÏ Å©±â°¡ ÃÖ´ëÄ¡("+maxsize+"Byte)¸¦", "E003"); } } ]]> </script> </button> <caption id="caption9" ref="/root/cur_scrn" style="left:93px; top:20px; width:235px; height:20px; "></caption> </xhtml:body> </xhtml:html>