SSIRB00900_결과보고서.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>결과보고서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reptdetl>
  11. <item>
  12. <instcd/>
  13. <subjid/>
  14. <subjno/>
  15. <reptseqno/>
  16. <judgappdg/>
  17. <reptkind/>
  18. <fstplanjudgdd/>
  19. <acptyn/>
  20. <acptdd/>
  21. <subjnm/>
  22. <roothospidxcasecnt/>
  23. <prcsidxcase/>
  24. <cnts1/>
  25. <cnts2/>
  26. <cnts3/>
  27. <cnts4/>
  28. <cnts5/>
  29. <cnts6/>
  30. <cnts7/>
  31. <acptdd/>
  32. <attfile/>
  33. <screenmenu/>
  34. <stdykind2/>
  35. <rc/>
  36. <resercnfmyn/>
  37. </item>
  38. </reptdetl>
  39. </main>
  40. <send>
  41. <savedata>
  42. </savedata>
  43. <searchitem>
  44. <reptkind/>
  45. <subjid/>
  46. <instcd/>
  47. <reptseqno/>
  48. <consorflag/>
  49. <croinstcd/>
  50. </searchitem>
  51. </send>
  52. <hidden/>
  53. <init>
  54. <hosp>
  55. <ret>
  56. <instcd/>
  57. <hospnm/>
  58. </ret>
  59. </hosp>
  60. </init>
  61. <rex>
  62. <view>
  63. <appformhead>
  64. <subjnm/>
  65. <subjno/>
  66. <hospnm/>
  67. <depthngnm/>
  68. <cdnm/>
  69. <usernm/>
  70. <hospcd/>
  71. </appformhead>
  72. <irsdcollareser>
  73. <subjid/>
  74. <instcd/>
  75. <userid/>
  76. <userkind/>
  77. <usernm/>
  78. <posnm/>
  79. <jobposnm/>
  80. </irsdcollareser>
  81. <irsdpharmst>
  82. <subjid/>
  83. <instcd/>
  84. <userid/>
  85. <userkind/>
  86. <usernm/>
  87. <posnm/>
  88. <jobposnm/>
  89. </irsdpharmst>
  90. <irsdcodi>
  91. <subjid/>
  92. <instcd/>
  93. <userid/>
  94. <userkind/>
  95. <usernm/>
  96. <posnm/>
  97. <jobposnm/>
  98. </irsdcodi>
  99. <imcmreqinst>
  100. <cmpynm/>
  101. <prsdnm/>
  102. <jobposnm/>
  103. </imcmreqinst>
  104. </view>
  105. <basesubjinfo>
  106. <basesubjinfo>
  107. <subjid/>
  108. <perchgrid/>
  109. <acptyn/>
  110. <judgkind/>
  111. <subjnm/>
  112. <subjpwd/>
  113. <clinictrgtflag/>
  114. <reqinstflag/>
  115. <stdycostsuppinst/>
  116. <stdycostsuppinstnm/>
  117. <itemnm/>
  118. <comnm/>
  119. <allidxcase/>
  120. <stdystartdd/>
  121. <stdyenddd/>
  122. <appdd/>
  123. <testeeaprvflag/>
  124. <relprstdata1/>
  125. <relprstdata2/>
  126. <relprstdata3/>
  127. <relprstdata4/>
  128. <relprstdata5/>
  129. <prstdataetc5/>
  130. <resercd/>
  131. <reqinstcd/>
  132. <concernrela/>
  133. <verplan/>
  134. <veraprv/>
  135. <vercrf/>
  136. <verib/>
  137. <consorflag/>
  138. <deptcd/>
  139. <reqcnfmyn/>
  140. <inqrgoal/>
  141. <trgtsick/>
  142. <inqrmthd/>
  143. <stdykind1/>
  144. <etctrgt1/>
  145. <stdykind2/>
  146. <etctrgt2/>
  147. <stdykind3/>
  148. <manynation/>
  149. <manyinst/>
  150. <cmcinstcnt/>
  151. <stdykind4/>
  152. <etctrgt4/>
  153. <stdytrgt/>
  154. <etctrgt/>
  155. <agenestdyflag/>
  156. <cellcurestdyyn/>
  157. <testeestat/>
  158. <fratesteeflag/>
  159. <stdyspcl1/>
  160. <stdyspcl2/>
  161. <stdyspcl3/>
  162. <stdyspcl4/>
  163. <stdyspcl5/>
  164. <stdyspcl6/>
  165. <stdyspcl7/>
  166. <examadjthosp/>
  167. <examadjtprf/>
  168. <allexamresppos/>
  169. <allexamrespnm/>
  170. <foodscrtgovpassyn/>
  171. <prmisnnatiyn/>
  172. <intermarketyn/>
  173. <judgkindcode/>
  174. <reqinstchrgid/>
  175. <reqinstchrgnm/>
  176. </basesubjinfo>
  177. </basesubjinfo>
  178. <basehospinfo>
  179. <basehospinfo>
  180. <subjid/>
  181. <instcd/>
  182. <subjno/>
  183. <condd/>
  184. <reqyn/>
  185. <reqdt/>
  186. <totstdycost/>
  187. <direccost/>
  188. <stdystartdd/>
  189. <stdyenddd/>
  190. <crccaprvyn/>
  191. <crccaprvdd/>
  192. <rtnresn/>
  193. <roothospidxcasecnt/>
  194. <depomthd/>
  195. <respstdyempno/>
  196. <respstdycnfmsubjyn/>
  197. <respstdycnfmexecyn/>
  198. <respstdycnfmselfyn/>
  199. <mdlreptdd/>
  200. <subjenddd/>
  201. <subjdiscontinudd/>
  202. <subjdiscontinuresn/>
  203. <subrecuyn/>
  204. <subrecuenddd/>
  205. <reqjudgcostdepoyn/>
  206. <reqjudgcostdepodd/>
  207. <irbjudgcostamt/>
  208. <irbjudgcostdepoyn/>
  209. <irbjudgcostdepodd/>
  210. <irbjudgflag/>
  211. <conacptyn/>
  212. <conacptdd/>
  213. <conyn/>
  214. <concondd/>
  215. <examdrugwinyn/>
  216. <examdrugwindd/>
  217. <stdycostcalcyn/>
  218. <captyn/>
  219. <captdd/>
  220. <crcccnfm1/>
  221. <crcccnfm2/>
  222. <crcccnfm3/>
  223. <irbjudgyn/>
  224. <subjattfile/>
  225. <judgcnvtyn/>
  226. <mdlschedd/>
  227. <endschedd/>
  228. <rsltschedd/>
  229. <contschedd/>
  230. </basehospinfo>
  231. </basehospinfo>
  232. <data>
  233. <cnts/>
  234. <acptdd/>
  235. <prcsidxcase/>
  236. <resercnfmyn/>
  237. </data>
  238. </rex>
  239. <temp/>
  240. </root>
  241. </instance>
  242. <submission id="TRIRB00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  243. <submission id="TRIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  244. <submission id="TXIRB00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  245. <submission id="TRIRS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  246. <submission id="TRIRS00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  247. <submission id="TRIRS00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basehospinfo"/>
  248. <submission id="TXIRB00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  249. <submission id="TRIRS00135" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  250. <submission id="TXIRS00189" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  251. <submission id="TXIRB00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  252. <submission id="TXIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  253. <submission id="TXIRS00188" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  254. </model>
  255. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  256. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  257. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  258. <script type="javascript" ev:event="xforms-ready">
  259. <![CDATA[
  260. //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
  261. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  262. ipt_filenm.visible = true;
  263. btn_fileatt.visible = false;
  264. btn_filedel.visible = false;
  265. btn_tmpsave.visible = false;
  266. btn_reptacpt.visible = false;
  267. btn_filedown.visible=true;
  268. button1.visible = false;
  269. }
  270. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  271. ipt_filenm.visible = true;
  272. btn_fileatt.visible = false;
  273. btn_filedel.visible = false;
  274. btn_tmpsave.visible = false;
  275. btn_reptacpt.visible = false;
  276. btn_filedown.visible=true;
  277. button1.visible = false;
  278. }
  279. submit("TRIRB00122"); //병원 조회
  280. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  281. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  282. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  283. model.setValue("/root/send/searchitem/reptkind", parent.model.getValue("/root/send/searchitem2/reptkind"));
  284. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  285. if ( consorflag == "Y" ) {
  286. model.setValue("/root/send/searchitem/consorflag", "Y");
  287. }
  288. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  289. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  290. submit("TRIRB00124"); //결과보고서 내용 조회
  291. }
  292. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  293. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  294. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  295. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  296. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  297. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  298. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  299. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  300. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  301. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  302. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  303. model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
  304. model.refresh();
  305. ]]>
  306. </script>
  307. </xhtml:head>
  308. <xhtml:body guideline="2,417;1,1194;">
  309. <input id="ipt_judgappdg" ref="/root/main/reptdetl/item/judgappdg" class="input_default" disabled="true" editable="false" style="left:107px; top:33px; width:100px; height:19px; "/>
  310. <caption id="caption82" class="cell_1" style="left:5px; top:106px; width:100px; height:255px; text-align:center; vertical-align:middle; ">결과 보고 내용</caption>
  311. <caption id="caption83" class="cell_1" style="left:700px; top:56px; width:100px; height:23px; text-align:center; vertical-align:middle; ">목표례수</caption>
  312. <caption id="caption21" class="cell_1" style="left:5px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  313. <caption id="caption23" class="cell_1" style="left:210px; top:31px; width:180px; height:23px; text-align:center; vertical-align:middle; ">최초임상시험 계획서 심사일자</caption>
  314. <input id="ipt_subjnm" ref="/root/main/reptdetl/item/subjnm" class="input_default" disabled="true" editable="false" style="left:107px; top:58px; width:590px; height:19px; "/>
  315. <select1 id="cmb_instcd" ref="/root/main/reptdetl/item/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:597px; top:33px; width:100px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/hosp/ret">
  318. <label ref="hospnm"/>
  319. <value ref="instcd"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. <caption id="caption24" class="cell_1" style="left:495px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
  324. <input id="ipt_subjno" ref="/root/main/reptdetl/item/subjno" class="input_default" disabled="true" editable="false" style="left:107px; top:83px; width:590px; height:19px; "/>
  325. <select1 id="cmb_acptyn" ref="/root/main/reptdetl/item/acptyn" class="combo_search" disabled="true" appearance="minimal" style="left:802px; top:33px; width:100px; height:19px; ">
  326. <choices>
  327. <item>
  328. <label>접수</label>
  329. <value>Y</value>
  330. </item>
  331. <item>
  332. <label>미접수</label>
  333. <value>N</value>
  334. </item>
  335. </choices>
  336. </select1>
  337. <caption id="caption25" class="cell_1" style="left:700px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  338. <caption id="caption26" class="cell_1" style="left:5px; top:56px; width:100px; height:23px; text-align:center; vertical-align:middle; ">연구과제명</caption>
  339. <input id="ipt_roothospidxcasecnt" ref="/root/main/reptdetl/item/roothospidxcasecnt" class="input_default" disabled="true" editable="false" style="left:802px; top:57px; width:100px; height:19px; "/>
  340. <caption id="caption27" class="cell_1" style="left:5px; top:81px; width:100px; height:23px; text-align:center; vertical-align:middle; ">과제번호</caption>
  341. <button id="button9" class="btn2_letter8" _auth="P" style="left:794px; top:5px; width:108px; height:19px; ">
  342. <caption>결과보고서 출력</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. if(submit("TRIRS00131")) {
  346. submit("TRIRS00132");
  347. submit("TRIRS00133");
  348. model.setValue("/root/rex/data/cnts", model.getValue("/root/main/reptdetl/item/cnts1"));
  349. model.setValue("/root/rex/data/acptdd", model.getValue("/root/main/reptdetl/item/acptdd"));
  350. model.setValue("/root/rex/data/prcsidxcase", model.getValue("/root/main/reptdetl/item/prcsidxcase"));
  351. model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
  352. var data = model.getValue("/root/rex/data/cnts");
  353. var j = 0;
  354. var p = 0;
  355. var k = 0;
  356. if ( data.indexOf("\n",p ) >=0 ){
  357. while ( (j = data.indexOf("\n",p ))>=0){
  358. var sdata = data.substring( p, j );
  359. p = j + 1;
  360. k = k + 1;
  361. model.makeValue("/root/rex/reptdetl/item[1]/cntsinfo["+k+"]/cnts", sdata.replace("\n","") );
  362. }
  363. if ( p<data.length){ // 제일 마지막 엔터 뒤 문장 처리
  364. var sdata = data.substring( p, data.length );
  365. k = k + 1;
  366. model.makeValue("/root/rex/reptdetl/item[1]/cntsinfo["+k+"]/cnts", sdata.replace("\n","") );
  367. }
  368. } else { //엔터없을때 처리
  369. k = k + 1;
  370. model.makeNode("/root/rex/reptdetl");
  371. model.makeValue("/root/rex/reptdetl/item[1]/cntsinfo["+k+"]/cnts", data);
  372. }
  373. exeReportPreview("PSIRB00900", "XMLSTR" , "/root/rex");
  374. }
  375. ]]>
  376. </script>
  377. </button>
  378. <caption id="caption1" class="cell_1" style="left:700px; top:81px; width:100px; height:23px; text-align:center; vertical-align:middle; ">진행례수</caption>
  379. <input id="ipt_prcsidxcase" ref="/root/main/reptdetl/item/prcsidxcase" class="input_default" style="left:802px; top:82px; width:100px; height:19px; "/>
  380. <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts1" style="left:107px; top:106px; width:795px; height:255px; "/>
  381. <line id="line13" class="line_3" style="x1:5px; y1:362px; x2:903px; y2:362px; "/>
  382. <input id="ipt_fstplanjudgdd" ref="/root/main/reptdetl/item/fstplanjudgdd" class="input_search" disabled="true" inputtype="date" style="left:392px; top:33px; width:100px; height:19px; "/>
  383. <line id="line2" class="line_1" style="x1:5px; y1:26px; x2:901px; y2:26px; "/>
  384. <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:538px; top:5px; width:64px; height:19px; ">
  385. <caption>첨부삭제</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. //접수 후 수정불가
  389. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  390. messageBox("이미 접수되어 저장 또는 수정", "E001");
  391. return;
  392. } else {
  393. if (submit("TXIRS00188")) {
  394. messageBox("첨부파일이 삭제되었습니다.","I999");
  395. model.refresh();
  396. }
  397. }
  398. submit("TRIRB00124"); //결과보고서 내용 조회
  399. ]]>
  400. </script>
  401. </button>
  402. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:270px; top:5px; width:200px; height:19px; "/>
  403. <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:472px; top:5px; width:64px; height:19px; ">
  404. <caption>파일첨부</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
  408. messageBox("임시저장 후 첨부파일을 올리세요", "I");
  409. return;
  410. }
  411. var maxsize = upload1.attribute("filesize");
  412. files = window.fileDialog("open", "|", true);
  413. filelist = files.split("|");
  414. for(var i = 0 ; i < filelist.length ; i++ ) {
  415. grd_attach.addRow(false);
  416. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  417. if (!checkFileSize(upload1)){
  418. grd_attach.removeItem();
  419. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  420. return;
  421. }
  422. }
  423. if ( filelist[0] != "") {
  424. if (submit("TXIRS00189")) {
  425. messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
  426. model.removeNodeset("/root/send/attach");
  427. parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
  428. parent.btn_report7.selected = true;
  429. parent.btn_report7.dispatch("DOMActivate");
  430. model.refresh();
  431. }
  432. }
  433. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  434. submit("TRIRB00124"); //결과보고서 내용 조회
  435. }
  436. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  437. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  438. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  439. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  440. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  441. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  442. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  443. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  444. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  445. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  446. model.refresh();
  447. ]]>
  448. </script>
  449. </button>
  450. <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:605px; top:5px; width:64px; height:19px; ">
  451. <caption>임시저장</caption>
  452. <script type="javascript" ev:event="DOMActivate">
  453. <![CDATA[
  454. //접수 후 수정불가
  455. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  456. messageBox("이미 접수되어 저장 또는 수정", "E001");
  457. return;
  458. }
  459. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  460. if ( reptseqno != '') {
  461. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  462. }
  463. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  464. model.setValue("/root/send/savedata/reptkind", "7"); //보고서종류=결과보고서(7)
  465. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  466. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  467. model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
  468. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  469. submit("TXIRB00122");
  470. } else {
  471. submit("TXIRB00121");
  472. }
  473. model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
  474. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  475. model.refresh();
  476. parent.model.setValue("/root/temp/ivieweryn", "N"); //결과보고서 iviewer 호출 여부 = N
  477. parent.btn_report7.selected = true;
  478. parent.btn_report7.dispatch("DOMActivate");
  479. model.removeNodeset("/root/send/savedata");
  480. model.makeNode("/root/send/savedata");
  481. ]]>
  482. </script>
  483. </button>
  484. <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:672px; top:5px; width:75px; height:19px; ">
  485. <caption>보고서접수</caption>
  486. <script type="javascript" ev:event="DOMActivate">
  487. <![CDATA[
  488. //접수 후 수정불가
  489. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  490. messageBox("이미 접수되어 저장 또는 수정", "E001");
  491. return;
  492. }
  493. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  494. if ( reptseqno != '') {
  495. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  496. }
  497. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  498. model.setValue("/root/send/savedata/reptkind", "7"); //보고서종류=결과보고서(7)
  499. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  500. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  501. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  502. model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
  503. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  504. submit("TXIRB00122");
  505. } else {
  506. submit("TXIRB00121");
  507. }
  508. model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
  509. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  510. model.refresh();
  511. parent.model.setValue("/root/temp/ivieweryn", "N"); //결과보고서 iviewer 호출 여부 = N
  512. parent.btn_report7.selected = true;
  513. parent.btn_report7.dispatch("DOMActivate");
  514. model.removeNodeset("/root/send/savedata");
  515. model.makeNode("/root/send/savedata");
  516. ]]>
  517. </script>
  518. </button>
  519. <caption id="caption7" class="tit_2" style="left:10px; top:10px; width:140px; height:14px; ">결과보고서</caption>
  520. <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:475px; top:5px; width:64px; height:19px; ">
  521. <caption>내려받기</caption>
  522. <script type="javascript" ev:event="DOMActivate">
  523. <![CDATA[
  524. var s = model.getValue("/root/main/reptdetl/item/attfile");
  525. var ss = s.split("/");
  526. var filepath = "";
  527. var filenm = "";
  528. for ( var i = 0; i < ss.length; i ++){
  529. if ( i < ss.length -2 ) {
  530. filepath = filepath+ss[i] +"/";
  531. } else if ( i < ss.length -1 ) {
  532. filepath = filepath+ss[i] ;
  533. } else {
  534. filenm = ss[i];
  535. }
  536. }
  537. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  538. if (localfile != "") {
  539. model.download(getActionURL("TRIRS00135")+"&filepath="+filepath,localfile);
  540. var rtn = messageBox("파일을", "Q004");
  541. if( rtn == 6 ) {
  542. window.exec(localfile);
  543. }
  544. }
  545. ]]>
  546. </script>
  547. </button>
  548. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="52428800" validate="true" style="left:185px; top:5px; width:100px; height:20px; "/>
  549. <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:130px; top:180px; width:665px; height:150px; ">
  550. <col ref="file"/>
  551. </datagrid>
  552. <button id="button1" class="btn5_letter2" _auth="X" style="left:750px; top:5px; width:42px; height:19px; ">
  553. <caption>삭제</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. //접수 후 수정불가
  557. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  558. messageBox("이미 접수되어 저장 또는 수정", "E001");
  559. return;
  560. }
  561. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  562. if ( reptseqno != '') {
  563. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  564. }
  565. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  566. submit("TXIRB00124");
  567. } else {
  568. submit("TXIRB00123");
  569. }
  570. model.refresh();
  571. parent.model.setValue("/root/temp/ivieweryn", "N"); //결과보고서 iviewer 호출 여부 = N
  572. parent.btn_report7.selected = true;
  573. parent.btn_report7.dispatch("DOMActivate");
  574. ]]>
  575. </script>
  576. </button>
  577. </xhtml:body>
  578. </xhtml:html>