SSIRB00300_중간보고서.xrw 24 KB

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