123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prodatalist>
- <list>
- <no/>
- <cdnm1/>
- <cdsid/>
- <cdgrupid/>
- <cdid/>
- <title/>
- <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>
|