SPRIS00201_과제입력.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>과제입력 및 수정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <ddflag/>
  12. <status/>
  13. <kind/>
  14. <ddfrom/>
  15. <ddto/>
  16. </cond>
  17. </main>
  18. <send>
  19. <reqdata>
  20. </reqdata>
  21. <savedata/>
  22. <userinfo/>
  23. <attfilepath/>
  24. <attfilenm/>
  25. <savedata>
  26. <file/>
  27. </savedata>
  28. <selrow/>
  29. </send>
  30. <hidden>
  31. </hidden>
  32. <init>
  33. <baseinfo>
  34. <instinfo>
  35. <instcd/>
  36. <hospnm/>
  37. </instinfo>
  38. </baseinfo>
  39. <stage/>
  40. <kind/>
  41. <status/>
  42. <C0048list/>
  43. </init>
  44. <temp/>
  45. <result>
  46. <studyprojlist>
  47. <projcd/>
  48. <studycd/>
  49. <projnm/>
  50. <status/>
  51. <reqfirm/>
  52. <kind/>
  53. <rshid/>
  54. <rshnm/>
  55. <cnfmdd/>
  56. <cntrdd/>
  57. <fromdd/>
  58. <todd/>
  59. <cntramt/>
  60. <stage/>
  61. <projspec/>
  62. <fstrgstrnm/>
  63. <fstrgstdt/>
  64. <lastupdnm/>
  65. <lastupdtdt/>
  66. <instcd/>
  67. <projamt/>
  68. <custnm/>
  69. </studyprojlist>
  70. <projhistinfo/>
  71. <projhistdetlinfo>
  72. <projhistdetllist>
  73. <projcd/>
  74. <seqno/>
  75. <projnm/>
  76. <rshid/>
  77. <cnfmdd/>
  78. <stage/>
  79. <projtype/>
  80. <fcnfmdd/>
  81. <nflag/>
  82. <oflag/>
  83. <cnfmvalidd/>
  84. <drugnm/>
  85. <reqfirm/>
  86. <agent/>
  87. <projamt/>
  88. <cntrdd/>
  89. <fromdd/>
  90. <todd/>
  91. <projspec/>
  92. <studycd/>
  93. <kind/>
  94. <status/>
  95. <rshnm/>
  96. <simsa/>
  97. <simsakind/>
  98. <simsarslt/>
  99. <fstcnfmdd/>
  100. <samplecnt/>
  101. <bresearcher/>
  102. <aresearcher/>
  103. <attfilenm/>
  104. <attfilepath/>
  105. <instcd/>
  106. </projhistdetllist>
  107. </projhistdetlinfo>
  108. </result>
  109. <newprojcd/>
  110. </root>
  111. </instance>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. fIni();
  115. ]]>
  116. </script>
  117. <submission id="TXRIS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  118. <submission id="TXRIS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  119. <!--
  120. <submission id="TXRIS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  121. -->
  122. <submission id="TXRIS00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  123. <submission id="TXRIS00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  124. <submission id="TXRIS00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/spcnt"/>
  125. <submission id="TRRIS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/newprojcd/projcd"/>
  126. <submission id="TRRIS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/result/projhistinfo"/>
  127. <submission id="TRRIS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/result/projhistdetlinfo"/>
  128. <submission id="TRRIS00206" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  129. </model>
  130. </xhtml:head>
  131. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  134. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  135. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../mis/ctmsweb/js/SPRIS00201.js"/>
  138. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  139. <script type="javascript">
  140. <![CDATA[
  141. var xreqdesc = "/root/result/projhistdetlinfo/projhistdetllist";
  142. var xsendfile = "/root/send/savedata";
  143. ]]>
  144. </script>
  145. <xhtml:body pagewidth="1070" pageheight="570" guideline="1,66;1,210;">
  146. <group id="group3" style="left:482px; top:50px; width:557px; height:510px; vertical-align:top; border-width:1px; ">
  147. <output id="out_projcd" ref="/root/result/projhistdetlinfo/projhistdetllist/projcd" class="output_fix" style="left:83px; top:23px; width:102px; height:19px; "/>
  148. <input id="ipt_studycd" ref="/root/result/projhistdetlinfo/projhistdetllist/studycd" class="input_s_essential" disabled="true" navindex="1" style="left:271px; top:23px; width:280px; height:19px; "/>
  149. <input id="ipt_reqfirm" ref="/root/result/projhistdetlinfo/projhistdetllist/reqfirm" navindex="11" style="left:271px; top:193px; width:97px; height:19px; "/>
  150. <caption id="caption1" class="cell_1" style="left:0px; top:23px; width:80px; height:19px; ">과제코드</caption>
  151. <caption id="caption2" class="cell_1" style="left:188px; top:23px; width:80px; height:19px; ">과제번호</caption>
  152. <caption id="caption3" class="cell_1" style="left:0px; top:45px; width:80px; height:98px; ">과제제목</caption>
  153. <caption id="caption5" class="cell_1" style="left:371px; top:215px; width:80px; height:19px; ">승인유효</caption>
  154. <caption id="caption6" class="cell_1" style="left:0px; top:147px; width:80px; height:19px; ">종류</caption>
  155. <select1 id="cmb_kind" ref="/root/result/projhistdetlinfo/projhistdetllist/kind" disabled="true" navindex="4" appearance="minimal" style="left:83px; top:147px; width:102px; height:19px; ">
  156. <choices>
  157. <itemset nodeset="/root/init/kind/I0011">
  158. <label ref="cdnm"/>
  159. <value ref="cdid"/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <caption id="caption7" class="cell_1" style="left:0px; top:193px; width:80px; height:19px; ">단계</caption>
  164. <caption id="caption8" class="cell_1" style="left:0px; top:349px; width:80px; height:117px; ">상세설명</caption>
  165. <caption id="caption9" class="cell_1" style="left:271px; top:0px; width:85px; height:19px; ">책임연구원</caption>
  166. <input id="ipt_cnfmdd" ref="/root/result/projhistdetlinfo/projhistdetllist/cnfmdd" class="input_s_essential" navindex="13" inputtype="date" style="left:83px; top:215px; width:102px; height:19px; ">
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. if(model.getValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmdd") != ""){
  170. var rdd = (model.getValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmdd").toDate()).getAddDate(1, "Y").getDateFormat();
  171. model.setValue("/root/result/projhistdetlinfo/projhistdetllist/cnfmvalidd", rdd );
  172. }
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </input>
  177. <button id="btn_useid" class="icon_search" navindex="2" style="left:533px; top:2px; width:16px; height:16px; ">
  178. <caption/>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fSetUserinfo();
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="caption11" class="cell_1" style="left:371px; top:147px; width:80px; height:19px; ">총연구비</caption>
  186. <caption id="caption12" class="cell_1" style="left:188px; top:147px; width:80px; height:19px; ">의약품명칭</caption>
  187. <caption id="caption13" class="cell_1" style="left:371px; top:170px; width:80px; height:19px; ">연구종료일</caption>
  188. <input id="input2" ref="/root/result/projhistdetlinfo/projhistdetllist/projamt" class="input_s_essential" navindex="6" format="#,###" style="left:454px; top:147px; width:97px; height:19px; "/>
  189. <input id="input3" ref="/root/result/projhistdetlinfo/projhistdetllist/cntrdd" navindex="7" inputtype="date" style="left:83px; top:170px; width:102px; height:19px; "/>
  190. <input id="input4" ref="/root/result/projhistdetlinfo/projhistdetllist/todd" class="input_s_essential" navindex="9" inputtype="date" style="left:454px; top:170px; width:97px; height:19px; "/>
  191. <input id="ipt_rshid" ref="/root/result/projhistdetlinfo/projhistdetllist/rshid" class="input_s_essential" disabled="true" style="left:358px; top:0px; width:75px; height:19px; "/>
  192. <input id="ipt_rshnm" ref="/root/result/projhistdetlinfo/projhistdetllist/rshnm" class="input_s_essential" disabled="true" style="left:435px; top:0px; width:95px; height:19px; "/>
  193. <caption id="caption16" class="cell_1" style="left:371px; top:193px; width:80px; height:19px; ">대행기관</caption>
  194. <caption id="caption17" class="cell_1" style="left:188px; top:237px; width:80px; height:19px; ">국가구분</caption>
  195. <caption id="caption18" class="cell_1" style="left:371px; top:237px; width:80px; height:19px; ">기관구분</caption>
  196. <input id="input1" ref="/root/result/projhistdetlinfo/projhistdetllist/agent" navindex="12" style="left:454px; top:193px; width:97px; height:19px; "/>
  197. <caption id="caption19" class="cell_1" style="left:188px; top:193px; width:80px; height:19px; ">의뢰기관</caption>
  198. <input id="input5" ref="/root/result/projhistdetlinfo/projhistdetllist/nflag" navindex="17" style="left:271px; top:237px; width:97px; height:19px; "/>
  199. <input id="input6" ref="/root/result/projhistdetlinfo/projhistdetllist/oflag" navindex="18" style="left:454px; top:237px; width:97px; height:19px; "/>
  200. <input id="input7" ref="/root/result/projhistdetlinfo/projhistdetllist/fcnfmdd" navindex="14" inputtype="date" style="left:271px; top:215px; width:97px; height:19px; "/>
  201. <input id="input8" ref="/root/result/projhistdetlinfo/projhistdetllist/cnfmvalidd" navindex="15" inputtype="date" style="left:454px; top:215px; width:97px; height:19px; "/>
  202. <caption id="caption21" class="cell_1" style="left:0px; top:215px; width:80px; height:19px; ">승인일</caption>
  203. <caption id="caption22" class="cell_1" style="left:188px; top:215px; width:80px; height:19px; ">식약청승인일</caption>
  204. <caption id="caption4" class="cell_1" style="left:0px; top:237px; width:80px; height:19px; ">접수번호</caption>
  205. <input id="input9" ref="/root/result/projhistdetlinfo/projhistdetllist/projtype" navindex="16" style="left:83px; top:237px; width:102px; height:19px; "/>
  206. <caption id="caption10" class="cell_1" style="left:0px; top:170px; width:80px; height:19px; ">계약일</caption>
  207. <input id="input10" ref="/root/result/projhistdetlinfo/projhistdetllist/fromdd" class="input_s_essential" navindex="8" inputtype="date" style="left:271px; top:170px; width:97px; height:19px; "/>
  208. <caption id="caption20" class="cell_1" style="left:188px; top:170px; width:80px; height:19px; ">연구시작일</caption>
  209. <input id="input11" ref="/root/result/projhistdetlinfo/projhistdetllist/drugnm" navindex="5" style="left:271px; top:147px; width:97px; height:19px; "/>
  210. <input id="input12" ref="/root/result/projhistdetlinfo/projhistdetllist/simsa" navindex="19" style="left:83px; top:259px; width:102px; height:19px; "/>
  211. <caption id="caption23" class="cell_1" style="left:0px; top:259px; width:80px; height:19px; ">심사</caption>
  212. <caption id="caption24" class="cell_1" style="left:188px; top:259px; width:80px; height:19px; ">심의종류</caption>
  213. <caption id="caption25" class="cell_1" style="left:371px; top:259px; width:80px; height:19px; ">심의결과</caption>
  214. <input id="input13" ref="/root/result/projhistdetlinfo/projhistdetllist/simsakind" navindex="20" style="left:271px; top:259px; width:97px; height:19px; "/>
  215. <input id="input14" ref="/root/result/projhistdetlinfo/projhistdetllist/simsarslt" navindex="21" style="left:454px; top:259px; width:97px; height:19px; "/>
  216. <caption id="caption26" class="cell_1" style="left:0px; top:327px; width:80px; height:19px; ">참여연구원</caption>
  217. <output id="output1" ref="/root/result/projhistdetlinfo/projhistdetllist/bresearcher" class="output_fix" style="left:83px; top:304px; width:468px; height:19px; "/>
  218. <caption id="caption27" class="cell_1" style="left:0px; top:304px; width:80px; height:19px; ">공동연구자</caption>
  219. <output id="output2" ref="/root/result/projhistdetlinfo/projhistdetllist/aresearcher" class="output_fix" style="left:83px; top:327px; width:468px; height:19px; "/>
  220. <caption id="caption28" class="cell_1" style="left:188px; top:281px; width:80px; height:19px; ">증례수</caption>
  221. <input id="input15" ref="/root/result/projhistdetlinfo/projhistdetllist/samplecnt" navindex="23" style="left:271px; top:281px; width:97px; height:19px; "/>
  222. <caption id="caption29" class="cell_1" style="left:0px; top:281px; width:80px; height:19px; ">최초승인일</caption>
  223. <input id="input16" ref="/root/result/projhistdetlinfo/projhistdetllist/fstcnfmdd" navindex="22" inputtype="date" style="left:83px; top:281px; width:102px; height:19px; "/>
  224. <input id="input17" ref="/root/result/projhistdetlinfo/projhistdetllist/stage" navindex="10" style="left:83px; top:193px; width:102px; height:19px; "/>
  225. <line id="line5" class="line_2" style="x1:0px; y1:20px; x2:548px; y2:20px; font-family:돋움체; "/>
  226. <line id="line2" class="line_2" style="x1:2px; y1:144px; x2:550px; y2:144px; font-family:돋움체; "/>
  227. <line id="line3" class="line_2" style="x1:2px; y1:167px; x2:550px; y2:167px; font-family:돋움체; "/>
  228. <line id="line6" class="line_2" style="x1:0px; y1:191px; x2:553px; y2:191px; font-family:돋움체; "/>
  229. <line id="line7" class="line_2" style="x1:0px; y1:213px; x2:553px; y2:213px; font-family:돋움체; "/>
  230. <line id="line8" class="line_2" style="x1:2px; y1:235px; x2:555px; y2:235px; font-family:돋움체; "/>
  231. <line id="line9" class="line_2" style="x1:2px; y1:257px; x2:555px; y2:257px; font-family:돋움체; "/>
  232. <line id="line10" class="line_2" style="x1:2px; y1:279px; x2:555px; y2:279px; font-family:돋움체; "/>
  233. <line id="line11" class="line_2" style="x1:0px; y1:301px; x2:553px; y2:301px; font-family:돋움체; "/>
  234. <line id="line12" class="line_2" style="x1:2px; y1:325px; x2:555px; y2:325px; font-family:돋움체; "/>
  235. <line id="line13" class="line_2" style="x1:2px; y1:348px; x2:555px; y2:348px; font-family:돋움체; "/>
  236. <caption id="caption30" class="cell_1" style="left:0px; top:470px; width:80px; height:19px; ">첨부파일</caption>
  237. <input id="ipt_attfilenm" ref="/root/result/projhistdetlinfo/projhistdetllist/attfilenm" class="input_default" disabled="true" navindex="28" style="left:83px; top:470px; width:337px; height:19px; font-family:굴림체; font-size:8pt; color:#0000ff; text-align:left; vertical-align:middle; "/>
  238. <button id="btn_insert" class="btn2_letter4" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:421px; top:470px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  239. <caption>첨부파일</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
  243. //파일의 크기를 측정한다.
  244. var maxsize = upload1.attribute("filesize");
  245. var name = model.getValue(xreqdesc + "/attfilenm");
  246. if(name != '' || name == '-'){
  247. var fileupdata = messageBox(name + " 파일 수정을" , "S001");
  248. if(fileupdata == '6'){
  249. //파일 삭제
  250. //input박스에 나타난 명을 제거
  251. ipt_attfilenm.value = "";
  252. //파일 저장
  253. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  254. var fileopen = window.fileDialog("open","|","false");
  255. var name = fileopen;
  256. //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
  257. var filename = name.lastIndexOf("\\");
  258. //open 파일명를 input박스에 넣는다.
  259. ipt_attfilenm.value = fileopen.substring(filename + 1);
  260. //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
  261. model.makeValue(xsendfile + "/file", name);
  262. model.refresh();
  263. //파일 크기가 너무 큰경우 메세지를 띄운다.
  264. if (!checkFileSize(upload1)){
  265. ipt_attfilenm.value = "";
  266. messageBox("파일 크기가 최대치(" + maxsize + "Byte)를", "E003");
  267. model.resetInstanceNode(xsendfile + "/file");
  268. }
  269. model.makeValue(xreqdesc + "/fileyn", 'Y');
  270. }else if(fileupdata == '7'){
  271. messageBox(name + " 파일 수정을 하지", "E007");
  272. model.makeValue(xreqdesc + "/fileyn", 'N');
  273. }
  274. }else{
  275. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  276. var fileopen = window.fileDialog("open","|","false");
  277. //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
  278. model.makeValue(xreqdesc + "/attfilenm", fileopen);
  279. var name = fileopen;
  280. //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
  281. var filename = name.lastIndexOf("\\");
  282. //open 파일명를 input박스에 넣는다.
  283. ipt_attfilenm.value = fileopen.substring(filename + 1);
  284. //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
  285. model.makeValue(xsendfile + "/file", name);
  286. model.refresh();
  287. //파일 크기가 너무 큰경우 메세지를 띄운다.
  288. if (!checkFileSize(upload1)){
  289. ipt_attfilenm.value = "";
  290. messageBox("파일 크기가 최대치(" + maxsize + "Byte)를", "E003");
  291. model.resetInstanceNode(xsendfile + "/file");
  292. }
  293. model.makeValue(xreqdesc + "/fileyn", 'Y');
  294. }
  295. ]]>
  296. </script>
  297. </button>
  298. <line id="line15" class="line_2" style="x1:0px; y1:467px; x2:553px; y2:467px; font-family:돋움체; "/>
  299. <line id="line16" class="line_3" style="x1:0px; y1:492px; x2:553px; y2:492px; font-family:돋움체; "/>
  300. <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:80px; height:19px; ">기관코드</caption>
  301. <select1 id="cmb_instcd" ref="/root/result/projhistdetlinfo/projhistdetllist/instcd" class="combo_defalut" disabled="true" appearance="minimal" style="left:83px; top:0px; width:185px; height:19px; ">
  302. <choices>
  303. <itemset nodeset="/root/init/C0048list/C0048">
  304. <label ref="cdnm"/>
  305. <value ref="cdid"/>
  306. </itemset>
  307. </choices>
  308. </select1>
  309. <line id="line17" class="line_2" style="x1:0px; y1:43px; x2:548px; y2:43px; font-family:돋움체; "/>
  310. </group>
  311. <caption id="cap_title" class="tit_1" style="left:5px; top:0px; width:121px; height:13px; ">과제입력 및 수정</caption>
  312. <line id="line4" class="line_1" style="x1:482px; y1:45px; x2:1036px; y2:45px; "/>
  313. <caption id="caption14" class="tit_2" style="left:482px; top:27px; width:123px; height:13px; ">입력/조회</caption>
  314. <button id="btn_save" class="btn5_letter2" navindex="26" style="left:934px; top:24px; width:42px; height:19px; ">
  315. <caption>저장</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. fSave();
  319. ]]>
  320. </script>
  321. </button>
  322. <group id="grp_projhist" style="left:10px; top:20px; width:465px; height:535px; ">
  323. <datagrid id="grd_projhist" nodeset="/root/result/projhistinfo/projhistlist" class="datagrid2" caption="순번^과제번호^첨부&#xA;파일^심사^심의종류^심의결과^승인일^첨부파일명^과제코드" colsep="^" colwidth="34, 100, 36, 75, 60, 60, 80, 180, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:29px; width:460px; height:494px; ">
  324. <col ref="seqno" style="text-align:center; "/>
  325. <col ref="studycd" visibility="hidden"/>
  326. <col ref="fileyn" style="text-align:center; "/>
  327. <col ref="simsa"/>
  328. <col ref="simsakind"/>
  329. <col ref="simsarslt"/>
  330. <col ref="cnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  331. <col ref="attfilenm"/>
  332. <col ref="attfilepath" visibility="hidden"/>
  333. <col ref="instcd" visibility="hidden"/>
  334. <script type="javascript" ev:event="ondblclick">
  335. <![CDATA[
  336. fGetProjHistDetail();
  337. model.setValue( "/root/send/selrow", grd_projhist.row );
  338. ]]>
  339. </script>
  340. <script type="javascript" ev:event="onaftersort">
  341. <![CDATA[
  342. grd_projhist.gridToInstance();
  343. ]]>
  344. </script>
  345. </datagrid>
  346. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:460px; y2:25px; "/>
  347. <caption id="caption15" class="tit_2" style="left:5px; top:7px; width:123px; height:13px; ">과제이력</caption>
  348. <button id="btn_hisnew" class="btn2_letter4" style="left:395px; top:5px; width:64px; height:19px; ">
  349. <caption>이력신규</caption>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. var instcd = opener.window.javascript.getParameter("SMRIS00201_instcd");
  353. if( instcd != getUserInfo("dutplceinstcd") ){
  354. messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
  355. return;
  356. }else{
  357. fNewProjHist();
  358. }
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_hisdel" class="btn2_letter4" style="left:330px; top:5px; width:64px; height:19px; ">
  363. <caption>이력삭제</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. var instcd = opener.window.javascript.getParameter("SMRIS00201_instcd");
  367. if( instcd != getUserInfo("dutplceinstcd") ){
  368. messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
  369. return;
  370. }else{
  371. fDelProjHist();
  372. }
  373. ]]>
  374. </script>
  375. </button>
  376. </group>
  377. <button id="btn_new" class="btn2_letter2" style="left:890px; top:24px; width:42px; height:19px; ">
  378. <caption>신규</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. fNewProj();
  382. ]]>
  383. </script>
  384. </button>
  385. <line id="line14" class="line_3" style="x1:476px; y1:45px; x2:476px; y2:543px; border-color:#0000ff; "/>
  386. <upload id="upload1" filesize="5242880" nodeset="/root/send/savedata/file" ext="zip" filecount="5" style="left:540px; top:480px; width:20px; height:20px; "/>
  387. <caption id="cpt_studycd" visibility="hidden" style="left:97px; top:23px; width:240px; height:20px; font-weight:bold; color:#0000ff; text-align:right; "/>
  388. <button id="btn_cancel" class="btn4_letter2" style="left:979px; top:22px; width:56px; height:22px; ">
  389. <caption>닫기</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. model.close();
  393. ]]>
  394. </script>
  395. </button>
  396. <button id="btn_down" class="btn2_letter4" navindex="29" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:968px; top:520px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  397. <caption>다운로드</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. if(model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm") == "") {
  401. messageBox("다운로드 할 파일을 ", "C002");
  402. return;
  403. } else if( model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm") == "" ) {
  404. messageBox("저장된 파일이 존재하지 않습니다.", "E999");
  405. return;
  406. } else {
  407. //파일명를 받아옴
  408. var getfilenm = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm");
  409. var getfilepath = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilepath");
  410. model.setValue("/root/send/attfilenm", getfilenm );
  411. model.setValue("/root/send/attfilepath", getfilepath );
  412. //파일명이 있는 경우 다운로드
  413. if(getfilenm != ""){
  414. //파일명을 받아옴
  415. var filenm = model.getValue("/root/result/projhistdetlinfo/projhistdetllist/attfilenm");
  416. //파일명의 확장자만 받아옴
  417. var fileext = filenm.lastIndexOf(".");
  418. var ext = filenm.substring(fileext +1);
  419. //파일을 다운로드 하기 위해 저장할 창을 띄움
  420. var filesave = window.fileDialog("save","|",false,filenm,ext,"All Files(*.*)|*.*");
  421. //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
  422. if (filesave != "") {
  423. model.download(getActionURL("TRRIS00206") + "&attfilepath=" + getfilepath + "&filepathcolnm=attfilepath", filesave);
  424. }
  425. }
  426. }
  427. ]]>
  428. </script>
  429. </button>
  430. <textarea id="ta_projnm" ref="/root/result/projhistdetlinfo/projhistdetllist/projnm" navindex="3" scroll="autovscroll" style="left:565px; top:95px; width:468px; height:98px; padding-right:20; "/>
  431. <textarea id="ta_projspec" ref="/root/result/projhistdetlinfo/projhistdetllist/projspec" navindex="24" scroll="autovscroll" style="left:565px; top:400px; width:468px; height:114px; padding-right:20; "/>
  432. </xhtml:body>
  433. </xhtml:html>