SMZPP00300_산출물파일검색.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prodatalist>
  11. <list>
  12. <no/>
  13. <cdnm1/>
  14. <cdsid/>
  15. <cdgrupid/>
  16. <cdid/>
  17. <title/>
  18. <goal/>
  19. <seq/>
  20. </list>
  21. </prodatalist>
  22. <cond>
  23. <search/>
  24. <option/>
  25. <condcbig/>
  26. <condcmid/>
  27. <condcsml/>
  28. </cond>
  29. <clslist/>
  30. <cbiglist/>
  31. <cmidlist/>
  32. <csmllist/>
  33. <txtdetail/>
  34. <filelist>
  35. <list>
  36. <no/>
  37. <filename/>
  38. <filepath/>
  39. <lastupdtrid/>
  40. </list>
  41. </filelist>
  42. <selectedfile>
  43. <list>
  44. <no/>
  45. <filename/>
  46. <filepath/>
  47. </list>
  48. </selectedfile>
  49. </main>
  50. <send>
  51. <attach>
  52. <file/>
  53. </attach>
  54. </send>
  55. <init>
  56. <clslist>
  57. <list>
  58. <clscd/>
  59. <clsnm/>
  60. <cdid/>
  61. </list>
  62. </clslist>
  63. <cbiglist>
  64. <list>
  65. <cbigcd/>
  66. <cbigsupcd/>
  67. <cbignm>-- 대분류 --</cbignm>
  68. </list>
  69. </cbiglist>
  70. <cmidlist>
  71. <list>
  72. <cmidcd/>
  73. <cmidsupcd/>
  74. <cmidnm>-- 중분류 --</cmidnm>
  75. </list>
  76. </cmidlist>
  77. <csmllist>
  78. <list>
  79. <csmlcd/>
  80. <csmlsupcd/>
  81. <csmlnm>-- 소분류 --</csmlnm>
  82. </list>
  83. </csmllist>
  84. </init>
  85. </root>
  86. </instance>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. model.removeNodeset("/root/main/prodatalist/list");
  90. model.removeNodeset("/root/main/filelist/list");
  91. model.refresh();
  92. chx_option.select(0);
  93. chx_option.select(1);
  94. chx_option.select(2);
  95. chx_option.select(3);
  96. grd_filelist.fixedcellcheckbox(0,0)=true;
  97. submit("TRZPP00302");
  98. submit("TRZPP00303");
  99. // grd_prodatalist.mergeCells="bycol";
  100. // grd_prodatalist.autoMerge=true;
  101. ]]>
  102. </script>
  103. <submission id="TRZPP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/clslist"/>
  104. <submission id="TRZPP00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cbiglist"/>
  105. <submission id="TRZPP00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmidlist"/>
  106. <submission id="TRZPP00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/csmllist"/>
  107. <submission id="TRZPP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prodatalist"/>
  108. <submission id="TRZPP00306" mediatype="application/x-www-form-urlencoded" method="post"/>
  109. <submission id="TXZPP00301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/codeData/test"/>
  110. <submission id="TRZPP00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/filelist"/>
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../commonweb/js/common.js"/>
  114. <script type="javascript" src="D:\CMCOracle\application\webapps\com\commonweb\jsfHelper.js"/>
  115. </xhtml:head>
  116. <xhtml:body guideline="2,784;2,776;1,1194;" style="padding-left:8; padding-right:8; margin-left:8; margin-right:8; ">
  117. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:45px; width:1195; height:65px; "/>
  118. <caption id="caption2" class="tit_2" style="left:0px; top:135px; width:125px; height:13px; ">산출물 검색 결과</caption>
  119. <caption id="caption7" class="tit_1" style="left:10px; top:10px; width:140px; height:14px; ">산출물 조회</caption>
  120. <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; ">
  121. <col ref="cdnm1"/>
  122. <col ref="cdsid"/>
  123. <col ref="cdgrupid"/>
  124. <col ref="cdid"/>
  125. <col ref="title"/>
  126. <col ref="goal" visibility="hidden"/>
  127. <col ref="seq" visibility="hidden"/>
  128. <script type="javascript" ev:event="onclick">
  129. <![CDATA[
  130. var seq=model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/seq");
  131. model.makeValue("/root/send/seq", seq);
  132. submit("TRZPP00307");
  133. //산출물 상세 내용 보이기
  134. //--선택된 grid의 내용 받아오기
  135. var cdnm1 = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdnm1"); //분류
  136. var cdsid = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdsid"); //분류기준(대)
  137. var cdgrupid = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdgrupid"); //분류기준(중)
  138. var cdid=model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/cdid"); //분류기준(중)
  139. var title = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/title"); //제목
  140. var goal = model.getValue("/root/main/prodatalist/list["+grd_prodatalist.row+"]/goal"); //목적
  141. //alert(cdnm1 + cdsid + cdgrupid + title + goal );
  142. //--선택된 산출물에 대한 파일 내용 받아오기
  143. var filenum = grd_filelist.rows-grd_filelist.fixedRows;
  144. var arr = new Array(filenum);
  145. var arrname = new Array(filenum);
  146. var filenametxt="";
  147. if (filenum != ""){
  148. for(var i = 0 ; i < filenum ; i ++){
  149. var ii = i+1;
  150. arr[i] = model.getValue("/root/main/filelist/list["+ii+"]/filename");
  151. arrname[i] = model.getValue("/root/main/filelist/list["+ii+"]/lastupdtrid");
  152. filenametxt = filenametxt + "\n\n"+ arr[i] + " " + "( 등록자 ID : " + arrname[i] + " )";
  153. }
  154. }
  155. //텍스트에 상세내용 보이기
  156. var detail = "제 목 : "+ title + "\n"+"─────────────────────────────" +"\n"+ "분류명 : " + cdnm1 +
  157. "\n" + "대분류 : " + cdsid + "\n" + "중분류 : " + cdgrupid + "\n" + "소분류 : "+ cdid + "\n" + "─────────────────────────────"+
  158. "\n" +"목 적 : " + "\n\n" + goal + "\n\n" + "─────────────────────────────"+ "\n" + "파일명 : " + filenametxt ;
  159. model.setValue("/root/main/txtdetail",detail);
  160. model.refresh();
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="ondblclick">
  164. <![CDATA[
  165. ]]>
  166. </script>
  167. </datagrid>
  168. <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; ">
  169. <col ref="no" visibility="hidden"/>
  170. <col ref="filename"/>
  171. <col ref="filepath" visibility="hidden"/>
  172. <col ref="lastupdtrid" visibility="hidden"/>
  173. <script type="javascript" ev:event="ondblclick">
  174. <![CDATA[
  175. // 파일저장
  176. var idx = grd_prodatalist.row;
  177. var filepath = model.getValue("/root/main/filelist/list["+idx+"]/filepath");
  178. var filenm = model.getValue("/root/main/filelist/list["+idx+"]/filename");
  179. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  180. if (localfile != "") {
  181. model.download(getActionURL("TRZPP00306")+"&filepath="+filepath,localfile);
  182. var rtn = messageBox("파일을", "Q004");
  183. if( rtn == 6 ) {
  184. window.exec(localfile);
  185. }
  186. }
  187. ]]>
  188. </script>
  189. </datagrid>
  190. <caption id="caption4" class="tit_2" style="left:928px; top:135px; width:112px; height:13px; ">산출물 파일</caption>
  191. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1195; y2:25px; "/>
  192. <line id="line7" class="line_6" style="x1:0px; y1:740px; x2:1195; y2:740px; "/>
  193. <caption id="caption8" class="search_name" style="left:25px; top:66px; width:85px; height:17px; ">분류 :</caption>
  194. <caption id="caption9" class="search_name" style="left:215px; top:67px; width:86px; height:17px; ">분류기준 :</caption>
  195. <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; ">
  196. <choices>
  197. <item>
  198. <label>제목</label>
  199. <value>title</value>
  200. </item>
  201. <item>
  202. <label>키워드</label>
  203. <value>keyword</value>
  204. </item>
  205. <item>
  206. <label>목적</label>
  207. <value>goal</value>
  208. </item>
  209. <item>
  210. <label>파일명</label>
  211. <value>filename</value>
  212. </item>
  213. </choices>
  214. </select>
  215. <select1 id="cmb_clslist" ref="/root/main/clslist" class="combo_essential" appearance="minimal" itemcount="10" style="left:90px; top:65px; width:100px; height:19px; ">
  216. <choices>
  217. <itemset nodeset="/root/init/clslist">
  218. <label ref="list/clsnm"/>
  219. <value ref="list/clsnm"/>
  220. </itemset>
  221. </choices>
  222. </select1>
  223. <select1 id="cmb_big" ref="/root/main/cbiglist" appearance="minimal" style="left:310px; top:65px; width:100px; height:19px; ">
  224. <choices>
  225. <itemset nodeset="/root/init/cbiglist/list">
  226. <label ref="cbignm"/>
  227. <value ref="cbignm"/>
  228. </itemset>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. model.removeNodeset("/root/send");
  233. var condcbig = model.getValue("/root/main/cbiglist");
  234. model.makeValue("/root/send/condcbig", condcbig);
  235. model.setValue("/root/main/csmllist","");
  236. submit("TRZPP00304");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </select1>
  241. <select1 id="cmb_sml" ref="/root/main/csmllist" appearance="minimal" style="left:520px; top:65px; width:100px; height:19px; ">
  242. <choices>
  243. <itemset nodeset="/root/init/csmllist/list">
  244. <label ref="csmlnm"/>
  245. <value ref="csmlnm"/>
  246. </itemset>
  247. </choices>
  248. </select1>
  249. <input id="ipt_search" ref="/root/main/cond/search" style="left:740px; top:53px; width:320px; height:19px; "/>
  250. <button id="btn_search" class="btn1_letter2" style="left:1115px; top:65px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  251. <caption>검색</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. if(cmb_clslist.value=="") {
  255. alert("분류는 필수선택사항입니다.");
  256. model.setFocus("cmb_clslist");
  257. }
  258. if(cmb_clslist.value!="") {
  259. // 검색어 특수기호 감별
  260. // var specialChars="~`!@#$%%^&*-=+\|[{]};:\',<.>/?()-_+=";
  261. // var search=ipt_search.value;
  262. // var length=search.length
  263. // var result=search;
  264. //
  265. // for (var i = 0; i < length; i++) {
  266. // for (var j = 0; j < specialChars.length; j++) {
  267. // if (search.charAt(i) == specialChars.charAt(j)) {
  268. // result = result.replace(search.charAt(i), "");
  269. // }
  270. // }
  271. // }
  272. //
  273. // alert(result);
  274. model.removeNodeset("/root/send");
  275. var clslist = model.getValue("/root/main/clslist");
  276. model.makeValue("/root/send/clslist", clslist);
  277. var condcbig = model.getValue("/root/main/cbiglist");
  278. model.makeValue("/root/send/condcbig", condcbig);
  279. var condcmid = model.getValue("/root/main/cmidlist");
  280. model.makeValue("/root/send/condcmid", condcmid);
  281. var condcsid = model.getValue("/root/main/csmllist");
  282. model.makeValue("/root/send/condcsid", condcsid);
  283. model.makeValue("/root/send/search", ipt_search.value);
  284. model.makeValue("/root/send/option", chx_option.value);
  285. submit("TRZPP00301");
  286. model.removeNodeset("/root/main/filelist/list");
  287. model.refresh();
  288. }
  289. // model.removeNodeset("/root/init/cmidlist/list");
  290. // model.removeNodeset("/root/init/csmllist/list");
  291. // //초기화되랏
  292. // model.setValue("/root/main/clslist","");
  293. // model.setValue("/root/main/cbiglist","");
  294. // model.setValue("/root/main/cmidlist","");
  295. // model.setValue("/root/main/csmllist","");
  296. // model.setValue("/root/main/cond/search","");
  297. model.removeNodeset("/root/send");
  298. var detail = "";
  299. model.setValue("/root/main/txtdetail",detail);
  300. model.refresh();
  301. ]]>
  302. </script>
  303. </button>
  304. <select1 id="cmb_mid" ref="/root/main/cmidlist" appearance="minimal" style="left:415px; top:65px; width:100px; height:19px; ">
  305. <choices>
  306. <itemset nodeset="/root/init/cmidlist/list">
  307. <label ref="cmidnm"/>
  308. <value ref="cmidnm"/>
  309. </itemset>
  310. </choices>
  311. <script type="javascript" ev:event="xforms-value-changed">
  312. <![CDATA[
  313. model.removeNodeset("/root/send");
  314. var condcmid = model.getValue("/root/main/cmidlist");
  315. model.makeValue("/root/send/condcmid", condcmid);
  316. submit("TRZPP00305");
  317. ]]>
  318. </script>
  319. </select1>
  320. <caption id="caption5" class="search_name" style="left:650px; top:55px; width:86px; height:17px; ">검색명 :</caption>
  321. <line id="line4" class="line_4" style="x1:1087px; y1:50px; x2:1087px; y2:105px; "/>
  322. <line id="line8" class="line_1" style="x1:0px; y1:151px; x2:545px; y2:151px; "/>
  323. <line id="line3" class="line_1" style="x1:943px; y1:151px; x2:1194px; y2:151; "/>
  324. <caption id="caption1" class="tit_2" style="left:547px; top:135px; width:125px; height:14px; ">산출물 상세 내용</caption>
  325. <line id="line1" class="line_1" style="x1:548px; y1:151px; x2:940px; y2:151px; "/>
  326. <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; "/>
  327. <button id="button2" class="btn6_letter4" style="left:1114px; top:125px; width:80px; height:22px; ">
  328. <caption>다운로드</caption>
  329. <script type="javascript" ev:event="onclick">
  330. <![CDATA[
  331. // 파일저장
  332. var idx = grd_prodatalist.row;
  333. var filepath = model.getValue("/root/main/filelist/list["+idx+"]/filepath");
  334. var filenm = model.getValue("/root/main/filelist/list["+idx+"]/filename");
  335. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  336. if (localfile != "") {
  337. model.download(getActionURL("TRZPP00306")+"&filepath="+filepath,localfile);
  338. var rtn = messageBox("파일을", "Q004");
  339. if( rtn == 6 ) {
  340. window.exec(localfile);
  341. }
  342. }
  343. ]]>
  344. </script>
  345. </button>
  346. </xhtml:body>
  347. </xhtml:html>