Untitle
<goal/> <seq/> </list> </prodatalist> <cond> <search/> <option/> <condcbig/> <condcmid/> <condcsml/> </cond> <clslist/> <cbiglist/> <cmidlist/> <csmllist/> <txtdetail/> <filelist> <list> <no/> <filename/> <filepath/> <lastupdtrid/> </list> </filelist> <selectedfile> <list> <no/> <filename/> <filepath/> </list> </selectedfile> </main> <send> <attach> <file/> </attach> </send> <init> <clslist> <list> <clscd/> <clsnm/> <cdid/> </list> </clslist> <cbiglist> <list> <cbigcd/> <cbigsupcd/> <cbignm>-- ´ëºÐ·ù --</cbignm> </list> </cbiglist> <cmidlist> <list> <cmidcd/> <cmidsupcd/> <cmidnm>-- Áߺзù --</cmidnm> </list> </cmidlist> <csmllist> <list> <csmlcd/> <csmlsupcd/> <csmlnm>-- ¼ÒºÐ·ù --</csmlnm> </list> </csmllist> </init> </root> </instance> <script type="javascript" ev:event="xforms-ready"> <![CDATA[ model.removeNodeset("/root/main/prodatalist/list"); model.removeNodeset("/root/main/filelist/list"); model.refresh(); chx_option.select(0); chx_option.select(1); chx_option.select(2); chx_option.select(3); grd_filelist.fixedcellcheckbox(0,0)=true; submit("TRZPP00302"); submit("TRZPP00303"); // grd_prodatalist.mergeCells="bycol"; // grd_prodatalist.autoMerge=true; ]]> </script> <submission id="TRZPP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/clslist"/> <submission id="TRZPP00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cbiglist"/> <submission id="TRZPP00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmidlist"/> <submission id="TRZPP00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/csmllist"/> <submission id="TRZPP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prodatalist"/> <submission id="TRZPP00306" mediatype="application/x-www-form-urlencoded" method="post"/> <submission id="TXZPP00301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/codeData/test"/> <submission id="TRZPP00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/filelist"/> </model> <script type="javascript" src="../../../com/commonweb/js/common.js"/> <script type="javascript" src="../../commonweb/js/common.js"/> <script type="javascript" src="D:\CMCOracle\application\webapps\com\commonweb\jsfHelper.js"/> </xhtml:head> <xhtml:body guideline="2,784;2,776;1,1194;" style="padding-left:8; padding-right:8; margin-left:8; margin-right:8; "> <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:45px; width:1195; height:65px; "/> <caption id="caption2" class="tit_2" style="left:0px; top:135px; width:125px; height:13px; ">»êÃâ¹° °Ë»ö °á°ú</caption> <caption id="caption7" class="tit_1" style="left:10px; top:10px; width:140px; height:14px; ">»êÃâ¹° Á¶È¸</caption> <datagrid id="grd_prodatalist" nodeset="/root/main/prodatalist/list" autoresize="true" caption="ºÐ·ù^ºÐ·ù±âÁØ(´ë)^ºÐ·ù±âÁØ(Áß)^ºÐ·ù±âÁØ(¼Ò)^Á¦¸ñ^¸ñÀû^seq" colsep="^" colwidth="90, 90, 90, 90, 181, 0, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:154px; width:545px; height:574px; border-color:#c0c0c0; "> <col ref="cdnm1"/> <col ref="cdsid"/> <col ref="cdgrupid"/> <col ref="cdid"/> <col ref="title"/> <col ref="goal" visibility="hidden"/> <col ref="seq" visibility="hidden"/> <script type="javascript" ev:event="onclick"> <![CDATA[ var seq=model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/seq"); model.makeValue("/root/send/seq", seq); submit("TRZPP00307"); //»êÃâ¹° »ó¼¼ ³»¿ë º¸À̱â //--¼±ÅÃµÈ gridÀÇ ³»¿ë ¹Þ¾Æ¿À±â var cdnm1 = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdnm1"); //ºÐ·ù var cdsid = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdsid"); //ºÐ·ù±âÁØ(´ë) var cdgrupid = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdgrupid"); //ºÐ·ù±âÁØ(Áß) var cdid=model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdid"); //ºÐ·ù±âÁØ(Áß) var title = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/title"); //Á¦¸ñ var goal = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/goal"); //¸ñÀû //alert(cdnm1 + cdsid + cdgrupid + title + goal ); //--¼±ÅÃµÈ »êÃâ¹°¿¡ ´ëÇÑ ÆÄÀÏ ³»¿ë ¹Þ¾Æ¿À±â var filenum = grd_filelist.rows-grd_filelist.fixedRows; var arr = new Array(filenum); var arrname = new Array(filenum); var filenametxt=""; if (filenum != ""){ for(var i = 0 ; i < filenum ; i ++){ var ii = i+1; arr[i] = model.getValue("/root/main/filelist/list["+ii+"]/filename"); arrname[i] = model.getValue("/root/main/filelist/list["+ii+"]/lastupdtrid"); filenametxt = filenametxt + "\n\n"+ arr[i] + " " + "( µî·ÏÀÚ ID : " + arrname[i] + " )"; } } //ÅØ½ºÆ®¿¡ »ó¼¼³»¿ë º¸À̱â var detail = "Á¦ ¸ñ : "+ title + "\n"+"¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡" +"\n"+ "ºÐ·ù¸í : " + cdnm1 + "\n" + "´ëºÐ·ù : " + cdsid + "\n" + "Áߺзù : " + cdgrupid + "\n" + "¼ÒºÐ·ù : "+ cdid + "\n" + "¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡"+ "\n" +"¸ñ Àû : " + "\n\n" + goal + "\n\n" + "¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡"+ "\n" + "ÆÄÀϸí : " + filenametxt ; model.setValue("/root/main/txtdetail",detail); model.refresh(); ]]> </script> <script type="javascript" ev:event="ondblclick"> <![CDATA[ ]]> </script> </datagrid> <datagrid id="grd_filelist" nodeset="/root/main/filelist/list" autoresize="true" caption="no^ÆÄÀϸí^ÆÄÀϰæ·Î^¼öÁ¤ÀÚ" colsep="^" colwidth="0, 244, 0, 0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:943px; top:154px; width:251px; height:574px; "> <col ref="no" visibility="hidden"/> <col ref="filename"/> <col ref="filepath" visibility="hidden"/> <col ref="lastupdtrid" visibility="hidden"/> <script type="javascript" ev:event="ondblclick"> <![CDATA[ // ÆÄÀÏÀúÀå var idx = grd_prodatalist.row; var filepath = model.getValue("/root/main/filelist/list["+idx+"]/filepath"); var filenm = model.getValue("/root/main/filelist/list["+idx+"]/filename"); var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*"); if (localfile != "") { model.download(getActionURL("TRZPP00306")+"&filepath="+filepath,localfile); var rtn = messageBox("ÆÄÀÏÀ»", "Q004"); if( rtn == 6 ) { window.exec(localfile); } } ]]> </script> </datagrid> <caption id="caption4" class="tit_2" style="left:928px; top:135px; width:112px; height:13px; ">»êÃâ¹° ÆÄÀÏ</caption> <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1195; y2:25px; "/> <line id="line7" class="line_6" style="x1:0px; y1:740px; x2:1195; y2:740px; "/> <caption id="caption8" class="search_name" style="left:25px; top:66px; width:85px; height:17px; ">ºÐ·ù :</caption> <caption id="caption9" class="search_name" style="left:215px; top:67px; width:86px; height:17px; ">ºÐ·ù±âÁØ :</caption> <select id="chx_option" ref="/root/main/cond/option" overflow="visible" appearance="full" cellspacing="10" cols="4" direction="acrossdown" rows="1" style="left:740px; top:80px; width:235px; height:20px; border-style:none; "> <choices> <item> <label>Á¦¸ñ</label> <value>title</value> </item> <item> <label>Ű¿öµå</label> <value>keyword</value> </item> <item> <label>¸ñÀû</label> <value>goal</value> </item> <item> <label>ÆÄÀϸí</label> <value>filename</value> </item> </choices> </select> <select1 id="cmb_clslist" ref="/root/main/clslist" class="combo_essential" appearance="minimal" itemcount="10" style="left:90px; top:65px; width:100px; height:19px; "> <choices> <itemset nodeset="/root/init/clslist"> <label ref="list/clsnm"/> <value ref="list/clsnm"/> </itemset> </choices> </select1> <select1 id="cmb_big" ref="/root/main/cbiglist" appearance="minimal" style="left:310px; top:65px; width:100px; height:19px; "> <choices> <itemset nodeset="/root/init/cbiglist/list"> <label ref="cbignm"/> <value ref="cbignm"/> </itemset> </choices> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ model.removeNodeset("/root/send"); var condcbig = model.getValue("/root/main/cbiglist"); model.makeValue("/root/send/condcbig", condcbig); model.setValue("/root/main/csmllist",""); submit("TRZPP00304"); model.refresh(); ]]> </script> </select1> <select1 id="cmb_sml" ref="/root/main/csmllist" appearance="minimal" style="left:520px; top:65px; width:100px; height:19px; "> <choices> <itemset nodeset="/root/init/csmllist/list"> <label ref="csmlnm"/> <value ref="csmlnm"/> </itemset> </choices> </select1> <input id="ipt_search" ref="/root/main/cond/search" style="left:740px; top:53px; width:320px; height:19px; "/> <button id="btn_search" class="btn1_letter2" style="left:1115px; top:65px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; "> <caption>°Ë»ö</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ if(cmb_clslist.value=="") { alert("ºÐ·ù´Â Çʼö¼±ÅûçÇ×ÀÔ´Ï´Ù."); model.setFocus("cmb_clslist"); } if(cmb_clslist.value!="") { // °Ë»ö¾î Ư¼ö±âÈ£ °¨º° // var specialChars="~`!@#$%%^&*-=+\|[{]};:\',<.>/?()-_+="; // var search=ipt_search.value; // var length=search.length // var result=search; // // for (var i = 0; i < length; i++) { // for (var j = 0; j < specialChars.length; j++) { // if (search.charAt(i) == specialChars.charAt(j)) { // result = result.replace(search.charAt(i), ""); // } // } // } // // alert(result); model.removeNodeset("/root/send"); var clslist = model.getValue("/root/main/clslist"); model.makeValue("/root/send/clslist", clslist); var condcbig = model.getValue("/root/main/cbiglist"); model.makeValue("/root/send/condcbig", condcbig); var condcmid = model.getValue("/root/main/cmidlist"); model.makeValue("/root/send/condcmid", condcmid); var condcsid = model.getValue("/root/main/csmllist"); model.makeValue("/root/send/condcsid", condcsid); model.makeValue("/root/send/search", ipt_search.value); model.makeValue("/root/send/option", chx_option.value); submit("TRZPP00301"); model.removeNodeset("/root/main/filelist/list"); model.refresh(); } // model.removeNodeset("/root/init/cmidlist/list"); // model.removeNodeset("/root/init/csmllist/list"); // //ÃʱâÈ­µÇ¶ù // model.setValue("/root/main/clslist",""); // model.setValue("/root/main/cbiglist",""); // model.setValue("/root/main/cmidlist",""); // model.setValue("/root/main/csmllist",""); // model.setValue("/root/main/cond/search",""); model.removeNodeset("/root/send"); var detail = ""; model.setValue("/root/main/txtdetail",detail); model.refresh(); ]]> </script> </button> <select1 id="cmb_mid" ref="/root/main/cmidlist" appearance="minimal" style="left:415px; top:65px; width:100px; height:19px; "> <choices> <itemset nodeset="/root/init/cmidlist/list"> <label ref="cmidnm"/> <value ref="cmidnm"/> </itemset> </choices> <script type="javascript" ev:event="xforms-value-changed"> <![CDATA[ model.removeNodeset("/root/send"); var condcmid = model.getValue("/root/main/cmidlist"); model.makeValue("/root/send/condcmid", condcmid); submit("TRZPP00305"); ]]> </script> </select1> <caption id="caption5" class="search_name" style="left:650px; top:55px; width:86px; height:17px; ">°Ë»ö¸í :</caption> <line id="line4" class="line_4" style="x1:1087px; y1:50px; x2:1087px; y2:105px; "/> <line id="line8" class="line_1" style="x1:0px; y1:151px; x2:545px; y2:151px; "/> <line id="line3" class="line_1" style="x1:943px; y1:151px; x2:1194px; y2:151; "/> <caption id="caption1" class="tit_2" style="left:547px; top:135px; width:125px; height:14px; ">»êÃâ¹° »ó¼¼ ³»¿ë</caption> <line id="line1" class="line_1" style="x1:548px; y1:151px; x2:940px; y2:151px; "/> <textarea id="txt_detail" ref="/root/main/txtdetail" style="left:548px; top:154px; width:391px; height:574px; line-spacing:5; padding-left:5; padding-top:20; padding-right:5; padding-bottom:5; "/> <button id="button2" class="btn6_letter4" style="left:1114px; top:125px; width:80px; height:22px; "> <caption>´Ù¿î·Îµå</caption> <script type="javascript" ev:event="onclick"> <![CDATA[ // ÆÄÀÏÀúÀå var idx = grd_prodatalist.row; var filepath = model.getValue("/root/main/filelist/list["+idx+"]/filepath"); var filenm = model.getValue("/root/main/filelist/list["+idx+"]/filename"); var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*"); if (localfile != "") { model.download(getActionURL("TRZPP00306")+"&filepath="+filepath,localfile); var rtn = messageBox("ÆÄÀÏÀ»", "Q004"); if( rtn == 6 ) { window.exec(localfile); } } ]]> </script> </button> </xhtml:body> </xhtml:html>