SSIRB00900_결과보고서.xrw 25 KB

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