SSIRB00800_종료보고서.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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. <cnts8/>
  32. <cnts9/>
  33. <cnts10/>
  34. <cnts11/>
  35. <cnts12/>
  36. <cnts13/>
  37. <acptdd/>
  38. <attfile/>
  39. <screenmenu/>
  40. <stdykind2/>
  41. <rc/>
  42. <resercnfmyn/>
  43. </item>
  44. </reptdetl>
  45. </main>
  46. <send>
  47. <savedata>
  48. </savedata>
  49. <searchitem>
  50. <reptkind/>
  51. <subjid/>
  52. <instcd/>
  53. <reptseqno/>
  54. <consorflag/>
  55. <croinstcd/>
  56. </searchitem>
  57. <attach/>
  58. </send>
  59. <hidden/>
  60. <init>
  61. <hosp>
  62. <ret>
  63. <instcd/>
  64. <hospnm/>
  65. </ret>
  66. </hosp>
  67. </init>
  68. <rex>
  69. <view>
  70. <appformhead>
  71. <subjnm/>
  72. <subjno/>
  73. <hospnm/>
  74. <depthngnm/>
  75. <cdnm/>
  76. <usernm/>
  77. <hospcd/>
  78. </appformhead>
  79. <irsdcollareser>
  80. <subjid/>
  81. <instcd/>
  82. <userid/>
  83. <userkind/>
  84. <usernm/>
  85. <posnm/>
  86. <jobposnm/>
  87. </irsdcollareser>
  88. <imcmreqinst>
  89. <cmpynm/>
  90. <prsdnm/>
  91. <jobposnm/>
  92. </imcmreqinst>
  93. <irsdpharmst>
  94. <usernm/>
  95. <posnm/>
  96. <jobposnm/>
  97. <subjid/>
  98. <instcd/>
  99. <userid/>
  100. <userkind/>
  101. </irsdpharmst>
  102. <irsdcodi>
  103. <usernm/>
  104. <posnm/>
  105. <jobposnm/>
  106. <subjid/>
  107. <instcd/>
  108. <userid/>
  109. <userkind/>
  110. </irsdcodi>
  111. <imcmreser>
  112. <usernm/>
  113. <hometel/>
  114. <cmpytelno/>
  115. <faxno/>
  116. <email/>
  117. </imcmreser>
  118. </view>
  119. <basesubjinfo>
  120. <basesubjinfo>
  121. <subjid/>
  122. <perchgrid/>
  123. <acptyn/>
  124. <judgkind/>
  125. <subjnm/>
  126. <subjpwd/>
  127. <clinictrgtflag/>
  128. <reqinstflag/>
  129. <stdycostsuppinst/>
  130. <stdycostsuppinstnm/>
  131. <itemnm/>
  132. <comnm/>
  133. <allidxcase/>
  134. <stdystartdd/>
  135. <stdyenddd/>
  136. <appdd/>
  137. <testeeaprvflag/>
  138. <relprstdata1/>
  139. <relprstdata2/>
  140. <relprstdata3/>
  141. <relprstdata4/>
  142. <relprstdata5/>
  143. <prstdataetc5/>
  144. <resercd/>
  145. <reqinstcd/>
  146. <concernrela/>
  147. <verplan/>
  148. <veraprv/>
  149. <vercrf/>
  150. <verib/>
  151. <consorflag/>
  152. <deptcd/>
  153. <reqcnfmyn/>
  154. <inqrgoal/>
  155. <trgtsick/>
  156. <inqrmthd/>
  157. <stdykind1/>
  158. <etctrgt1/>
  159. <stdykind2/>
  160. <etctrgt2/>
  161. <stdykind3/>
  162. <manynation/>
  163. <manyinst/>
  164. <cmcinstcnt/>
  165. <stdykind4/>
  166. <etctrgt4/>
  167. <stdytrgt/>
  168. <etctrgt/>
  169. <agenestdyflag/>
  170. <cellcurestdyyn/>
  171. <testeestat/>
  172. <fratesteeflag/>
  173. <stdyspcl1/>
  174. <stdyspcl2/>
  175. <stdyspcl3/>
  176. <stdyspcl4/>
  177. <stdyspcl5/>
  178. <stdyspcl6/>
  179. <stdyspcl7/>
  180. <examadjthosp/>
  181. <examadjtprf/>
  182. <allexamresppos/>
  183. <allexamrespnm/>
  184. <foodscrtgovpassyn/>
  185. <prmisnnatiyn/>
  186. <intermarketyn/>
  187. <judgkindcode/>
  188. <reqinstchrgid/>
  189. <reqinstchrgnm/>
  190. <reqinstjobposnm/>
  191. <croinstnm/>
  192. </basesubjinfo>
  193. </basesubjinfo>
  194. <basehospinfo>
  195. <basehospinfo>
  196. <subjid/>
  197. <instcd/>
  198. <subjno/>
  199. <condd/>
  200. <reqyn/>
  201. <reqdt/>
  202. <totstdycost/>
  203. <direccost/>
  204. <stdystartdd/>
  205. <stdyenddd/>
  206. <crccaprvyn/>
  207. <crccaprvdd/>
  208. <rtnresn/>
  209. <roothospidxcasecnt/>
  210. <depomthd/>
  211. <respstdyempno/>
  212. <respstdycnfmsubjyn/>
  213. <respstdycnfmexecyn/>
  214. <respstdycnfmselfyn/>
  215. <mdlreptdd/>
  216. <subjenddd/>
  217. <subjdiscontinudd/>
  218. <subjdiscontinuresn/>
  219. <subrecuyn/>
  220. <subrecuenddd/>
  221. <reqjudgcostdepoyn/>
  222. <reqjudgcostdepodd/>
  223. <irbjudgcostamt/>
  224. <irbjudgcostdepoyn/>
  225. <irbjudgcostdepodd/>
  226. <irbjudgflag/>
  227. <conacptyn/>
  228. <conacptdd/>
  229. <conyn/>
  230. <concondd/>
  231. <examdrugwinyn/>
  232. <examdrugwindd/>
  233. <stdycostcalcyn/>
  234. <captyn/>
  235. <captdd/>
  236. <crcccnfm1/>
  237. <crcccnfm2/>
  238. <crcccnfm3/>
  239. <irbjudgyn/>
  240. <subjattfile/>
  241. <judgcnvtyn/>
  242. <mdlschedd/>
  243. <endschedd/>
  244. <rsltschedd/>
  245. <contschedd/>
  246. </basehospinfo>
  247. </basehospinfo>
  248. <data>
  249. <roothospidxcasecnt/>
  250. <prcsidxcase/>
  251. <cnts1/>
  252. <cnts2/>
  253. <cnts3/>
  254. <cnts4/>
  255. <cnts5/>
  256. <cnts6/>
  257. <cnts7/>
  258. <cnts8/>
  259. <cnts9/>
  260. <cnts10/>
  261. <cnts11/>
  262. <cnts12/>
  263. <cnts13/>
  264. <acptdd/>
  265. <resercnfmyn/>
  266. </data>
  267. </rex>
  268. <temp/>
  269. </root>
  270. </instance>
  271. <submission id="TRIRB00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  272. <submission id="TRIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  273. <submission id="TXIRB00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  274. <submission id="TRIRS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  275. <submission id="TRIRS00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  276. <submission id="TRIRS00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basehospinfo"/>
  277. <submission id="TXIRB00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  278. <submission id="TRIRS00135" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  279. <submission id="TXIRS00189" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  280. <submission id="TXIRB00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  281. <submission id="TXIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  282. <submission id="TXIRS00188" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  283. </model>
  284. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  285. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  286. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  287. <script type="javascript" ev:event="xforms-ready">
  288. <![CDATA[
  289. //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
  290. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  291. ipt_filenm.visible = true;
  292. btn_fileatt.visible = false;
  293. btn_filedel.visible = false;
  294. btn_tmpsave.visible = false;
  295. btn_reptacpt.visible = false;
  296. btn_filedown.visible=true;
  297. button1.visible = false;
  298. }
  299. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  300. ipt_filenm.visible = true;
  301. btn_fileatt.visible = false;
  302. btn_filedel.visible = false;
  303. btn_tmpsave.visible = false;
  304. btn_reptacpt.visible = false;
  305. btn_filedown.visible=true;
  306. button1.visible = false;
  307. }
  308. submit("TRIRB00122"); //병원 조회
  309. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  310. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  311. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  312. model.setValue("/root/send/searchitem/reptkind", parent.model.getValue("/root/send/searchitem2/reptkind"));
  313. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  314. if ( consorflag == "Y" ) {
  315. model.setValue("/root/send/searchitem/consorflag", "Y");
  316. }
  317. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  318. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  319. submit("TRIRB00124"); //종료보고서 내용 조회
  320. }
  321. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  322. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  323. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  324. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  325. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  326. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  327. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  328. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  329. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  330. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  331. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  332. model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
  333. model.refresh();
  334. ]]>
  335. </script>
  336. </xhtml:head>
  337. <xhtml:body guideline="2,417;1,1195;">
  338. <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; "/>
  339. <caption id="caption82" class="cell_1" style="left:5px; top:106px; width:100px; height:255px; text-align:center; vertical-align:middle; ">종료 보고 내용</caption>
  340. <caption id="caption83" class="cell_1" style="left:700px; top:56px; width:100px; height:23px; text-align:center; vertical-align:middle; ">목표례수</caption>
  341. <caption id="caption21" class="cell_1" style="left:5px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  342. <caption id="caption23" class="cell_1" style="left:210px; top:31px; width:180px; height:23px; text-align:center; vertical-align:middle; ">최초임상시험 계획서 심사일자</caption>
  343. <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; "/>
  344. <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; ">
  345. <choices>
  346. <itemset nodeset="/root/init/hosp/ret">
  347. <label ref="hospnm"/>
  348. <value ref="instcd"/>
  349. </itemset>
  350. </choices>
  351. </select1>
  352. <caption id="caption24" class="cell_1" style="left:495px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
  353. <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; "/>
  354. <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; ">
  355. <choices>
  356. <item>
  357. <label>접수</label>
  358. <value>Y</value>
  359. </item>
  360. <item>
  361. <label>미접수</label>
  362. <value>N</value>
  363. </item>
  364. </choices>
  365. </select1>
  366. <caption id="caption25" class="cell_1" style="left:700px; top:31px; width:100px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  367. <caption id="caption26" class="cell_1" style="left:5px; top:56px; width:100px; height:23px; text-align:center; vertical-align:middle; ">연구과제명</caption>
  368. <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; "/>
  369. <caption id="caption27" class="cell_1" style="left:5px; top:81px; width:100px; height:23px; text-align:center; vertical-align:middle; ">과제번호</caption>
  370. <button id="button9" class="btn2_letter8" _auth="P" style="left:794px; top:5px; width:108px; height:19px; ">
  371. <caption>종료보고서 출력</caption>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. if(submit("TRIRS00131")) {
  375. submit("TRIRS00132");
  376. submit("TRIRS00133");
  377. model.setValue("/root/rex/data/roothospidxcasecnt", model.getValue("/root/main/reptdetl/item/roothospidxcasecnt"));
  378. model.setValue("/root/rex/data/prcsidxcase", model.getValue("/root/main/reptdetl/item/prcsidxcase"));
  379. model.setValue("/root/rex/data/cnts1", model.getValue("/root/main/reptdetl/item/cnts1"));
  380. model.setValue("/root/rex/data/cnts2", model.getValue("/root/main/reptdetl/item/cnts2"));
  381. model.setValue("/root/rex/data/cnts3", model.getValue("/root/main/reptdetl/item/cnts3"));
  382. model.setValue("/root/rex/data/cnts4", model.getValue("/root/main/reptdetl/item/cnts4"));
  383. model.setValue("/root/rex/data/cnts5", model.getValue("/root/main/reptdetl/item/cnts5"));
  384. model.setValue("/root/rex/data/cnts6", model.getValue("/root/main/reptdetl/item/cnts6"));
  385. model.setValue("/root/rex/data/cnts7", model.getValue("/root/main/reptdetl/item/cnts7"));
  386. model.setValue("/root/rex/data/cnts8", model.getValue("/root/main/reptdetl/item/cnts8"));
  387. model.setValue("/root/rex/data/cnts9", model.getValue("/root/main/reptdetl/item/cnts9"));
  388. model.setValue("/root/rex/data/cnts10", model.getValue("/root/main/reptdetl/item/cnts10"));
  389. model.setValue("/root/rex/data/cnts11", model.getValue("/root/main/reptdetl/item/cnts11"));
  390. model.setValue("/root/rex/data/cnts12", model.getValue("/root/main/reptdetl/item/cnts12"));
  391. model.setValue("/root/rex/data/cnts13", model.getValue("/root/main/reptdetl/item/cnts13"));
  392. model.setValue("/root/rex/data/acptdd", model.getValue("/root/main/reptdetl/item/acptdd"));
  393. model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
  394. var cnts2 = model.getValue("/root/rex/data/cnts2");
  395. var cnts4 = model.getValue("/root/rex/data/cnts4");
  396. var cnts5 = model.getValue("/root/rex/data/cnts5");
  397. var cnts6 = model.getValue("/root/rex/data/cnts6");
  398. var cnts7 = model.getValue("/root/rex/data/cnts7");
  399. var cnts8 = model.getValue("/root/rex/data/cnts8");
  400. var cnts9 = model.getValue("/root/rex/data/cnts9");
  401. var cnts10 = model.getValue("/root/rex/data/cnts10");
  402. var cnts11 = model.getValue("/root/rex/data/cnts11");
  403. var cnts12 = model.getValue("/root/rex/data/cnts12");
  404. var cnts13 = model.getValue("/root/rex/data/cnts13");
  405. var j = 0;
  406. var p = 0;
  407. var k = 0;
  408. if ( cnts2.indexOf("\n",p ) >=0 ){
  409. while ( (j = cnts2.indexOf("\n",p ))>=0){
  410. var sdata = cnts2.substring( p, j );
  411. p = j + 1;
  412. k = k + 1;
  413. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  414. }
  415. if ( p<cnts2.length){ // 제일 마지막 엔터 뒤 문장 처리
  416. var sdata = cnts2.substring( p, cnts2.length );
  417. k = k + 1;
  418. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  419. }
  420. } else { //엔터없을때 처리
  421. k = k + 1;
  422. model.makeNode("/root/rex/reptdetl");
  423. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", cnts2);
  424. }
  425. if ( cnts4.indexOf("\n",p ) >=0 ){
  426. while ( (j = cnts4.indexOf("\n",p ))>=0){
  427. var sdata = cnts4.substring( p, j );
  428. p = j + 1;
  429. k = k + 1;
  430. model.makeValue("/root/rex/reptdetl/item[1]/cnts4info["+k+"]/cnts4", sdata.replace("\n","") );
  431. }
  432. if ( p<cnts4.length){ // 제일 마지막 엔터 뒤 문장 처리
  433. var sdata = cnts4.substring( p, cnts4.length );
  434. k = k + 1;
  435. model.makeValue("/root/rex/reptdetl/item[1]/cnts4info["+k+"]/cnts4", sdata.replace("\n","") );
  436. }
  437. } else { //엔터없을때 처리
  438. k = k + 1;
  439. model.makeNode("/root/rex/reptdetl");
  440. model.makeValue("/root/rex/reptdetl/item[1]/cnts4info["+k+"]/cnts4", cnts4);
  441. }
  442. if ( cnts5.indexOf("\n",p ) >=0 ){
  443. while ( (j = cnts5.indexOf("\n",p ))>=0){
  444. var sdata = cnts5.substring( p, j );
  445. p = j + 1;
  446. k = k + 1;
  447. model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", sdata.replace("\n","") );
  448. }
  449. if ( p<cnts5.length){ // 제일 마지막 엔터 뒤 문장 처리
  450. var sdata = cnts5.substring( p, cnts5.length );
  451. k = k + 1;
  452. model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", sdata.replace("\n","") );
  453. }
  454. } else { //엔터없을때 처리
  455. k = k + 1;
  456. model.makeNode("/root/rex/reptdetl");
  457. model.makeValue("/root/rex/reptdetl/item[1]/cnts5info["+k+"]/cnts5", cnts5);
  458. }
  459. if ( cnts6.indexOf("\n",p ) >=0 ){
  460. while ( (j = cnts6.indexOf("\n",p ))>=0){
  461. var sdata = cnts6.substring( p, j );
  462. p = j + 1;
  463. k = k + 1;
  464. model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", sdata.replace("\n","") );
  465. }
  466. if ( p<cnts6.length){ // 제일 마지막 엔터 뒤 문장 처리
  467. var sdata = cnts6.substring( p, cnts6.length );
  468. k = k + 1;
  469. model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", sdata.replace("\n","") );
  470. }
  471. } else { //엔터없을때 처리
  472. k = k + 1;
  473. model.makeNode("/root/rex/reptdetl");
  474. model.makeValue("/root/rex/reptdetl/item[1]/cnts6info["+k+"]/cnts6", cnts6);
  475. }
  476. if ( cnts7.indexOf("\n",p ) >=0 ){
  477. while ( (j = cnts7.indexOf("\n",p ))>=0){
  478. var sdata = cnts7.substring( p, j );
  479. p = j + 1;
  480. k = k + 1;
  481. model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", sdata.replace("\n","") );
  482. }
  483. if ( p<cnts7.length){ // 제일 마지막 엔터 뒤 문장 처리
  484. var sdata = cnts7.substring( p, cnts7.length );
  485. k = k + 1;
  486. model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", sdata.replace("\n","") );
  487. }
  488. } else { //엔터없을때 처리
  489. k = k + 1;
  490. model.makeNode("/root/rex/reptdetl");
  491. model.makeValue("/root/rex/reptdetl/item[1]/cnts7info["+k+"]/cnts7", cnts7);
  492. }
  493. if ( cnts8.indexOf("\n",p ) >=0 ){
  494. while ( (j = cnts8.indexOf("\n",p ))>=0){
  495. var sdata = cnts8.substring( p, j );
  496. p = j + 1;
  497. k = k + 1;
  498. model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", sdata.replace("\n","") );
  499. }
  500. if ( p<cnts8.length){ // 제일 마지막 엔터 뒤 문장 처리
  501. var sdata = cnts8.substring( p, cnts8.length );
  502. k = k + 1;
  503. model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", sdata.replace("\n","") );
  504. }
  505. } else { //엔터없을때 처리
  506. k = k + 1;
  507. model.makeNode("/root/rex/reptdetl");
  508. model.makeValue("/root/rex/reptdetl/item[1]/cnts8info["+k+"]/cnts8", cnts8);
  509. }
  510. if ( cnts9.indexOf("\n",p ) >=0 ){
  511. while ( (j = cnts9.indexOf("\n",p ))>=0){
  512. var sdata = cnts9.substring( p, j );
  513. p = j + 1;
  514. k = k + 1;
  515. model.makeValue("/root/rex/reptdetl/item[1]/cnts9info["+k+"]/cnts9", sdata.replace("\n","") );
  516. }
  517. if ( p<cnts9.length){ // 제일 마지막 엔터 뒤 문장 처리
  518. var sdata = cnts9.substring( p, cnts9.length );
  519. k = k + 1;
  520. model.makeValue("/root/rex/reptdetl/item[1]/cnts9info["+k+"]/cnts9", sdata.replace("\n","") );
  521. }
  522. } else { //엔터없을때 처리
  523. k = k + 1;
  524. model.makeNode("/root/rex/reptdetl");
  525. model.makeValue("/root/rex/reptdetl/item[1]/cnts9info["+k+"]/cnts9", cnts9);
  526. }
  527. if ( cnts10.indexOf("\n",p ) >=0 ){
  528. while ( (j = cnts10.indexOf("\n",p ))>=0){
  529. var sdata = cnts10.substring( p, j );
  530. p = j + 1;
  531. k = k + 1;
  532. model.makeValue("/root/rex/reptdetl/item[1]/cnts10info["+k+"]/cnts10", sdata.replace("\n","") );
  533. }
  534. if ( p<cnts10.length){ // 제일 마지막 엔터 뒤 문장 처리
  535. var sdata = cnts10.substring( p, cnts10.length );
  536. k = k + 1;
  537. model.makeValue("/root/rex/reptdetl/item[1]/cnts10info["+k+"]/cnts10", sdata.replace("\n","") );
  538. }
  539. } else { //엔터없을때 처리
  540. k = k + 1;
  541. model.makeNode("/root/rex/reptdetl");
  542. model.makeValue("/root/rex/reptdetl/item[1]/cnts10info["+k+"]/cnts10", cnts10);
  543. }
  544. if ( cnts11.indexOf("\n",p ) >=0 ){
  545. while ( (j = cnts11.indexOf("\n",p ))>=0){
  546. var sdata = cnts11.substring( p, j );
  547. p = j + 1;
  548. k = k + 1;
  549. model.makeValue("/root/rex/reptdetl/item[1]/cnts11info["+k+"]/cnts11", sdata.replace("\n","") );
  550. }
  551. if ( p<cnts11.length){ // 제일 마지막 엔터 뒤 문장 처리
  552. var sdata = cnts11.substring( p, cnts11.length );
  553. k = k + 1;
  554. model.makeValue("/root/rex/reptdetl/item[1]/cnts11info["+k+"]/cnts11", sdata.replace("\n","") );
  555. }
  556. } else { //엔터없을때 처리
  557. k = k + 1;
  558. model.makeNode("/root/rex/reptdetl");
  559. model.makeValue("/root/rex/reptdetl/item[1]/cnts11info["+k+"]/cnts11", cnts11);
  560. }
  561. if ( cnts12.indexOf("\n",p ) >=0 ){
  562. while ( (j = cnts12.indexOf("\n",p ))>=0){
  563. var sdata = cnts12.substring( p, j );
  564. p = j + 1;
  565. k = k + 1;
  566. model.makeValue("/root/rex/reptdetl/item[1]/cnts12info["+k+"]/cnts12", sdata.replace("\n","") );
  567. }
  568. if ( p<cnts12.length){ // 제일 마지막 엔터 뒤 문장 처리
  569. var sdata = cnts12.substring( p, cnts12.length );
  570. k = k + 1;
  571. model.makeValue("/root/rex/reptdetl/item[1]/cnts12info["+k+"]/cnts12", sdata.replace("\n","") );
  572. }
  573. } else { //엔터없을때 처리
  574. k = k + 1;
  575. model.makeNode("/root/rex/reptdetl");
  576. model.makeValue("/root/rex/reptdetl/item[1]/cnts12info["+k+"]/cnts12", cnts12);
  577. }
  578. if ( cnts13.indexOf("\n",p ) >=0 ){
  579. while ( (j = cnts13.indexOf("\n",p ))>=0){
  580. var sdata = cnts13.substring( p, j );
  581. p = j + 1;
  582. k = k + 1;
  583. model.makeValue("/root/rex/reptdetl/item[1]/cnts13info["+k+"]/cnts13", sdata.replace("\n","") );
  584. }
  585. if ( p<cnts13.length){ // 제일 마지막 엔터 뒤 문장 처리
  586. var sdata = cnts13.substring( p, cnts13.length );
  587. k = k + 1;
  588. model.makeValue("/root/rex/reptdetl/item[1]/cnts13info["+k+"]/cnts13", sdata.replace("\n","") );
  589. }
  590. } else { //엔터없을때 처리
  591. k = k + 1;
  592. model.makeNode("/root/rex/reptdetl");
  593. model.makeValue("/root/rex/reptdetl/item[1]/cnts13info["+k+"]/cnts13", cnts13);
  594. }
  595. exeReportPreview("PSIRB00800", "XMLSTR" , "/root/rex");
  596. }
  597. ]]>
  598. </script>
  599. </button>
  600. <caption id="caption1" class="cell_1" style="left:700px; top:81px; width:100px; height:23px; text-align:center; vertical-align:middle; ">진행례수</caption>
  601. <input id="ipt_prcsidxcase" ref="/root/main/reptdetl/item/prcsidxcase" class="input_default" style="left:802px; top:82px; width:100px; height:19px; "/>
  602. <caption id="caption2" class="cell_1" style="left:107px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">중도탈락례수</caption>
  603. <input id="ipt_cnts1" ref="/root/main/reptdetl/item/cnts1" class="input_default" style="left:209px; top:106px; width:100px; height:19px; "/>
  604. <caption id="caption3" class="cell_1" style="left:312px; top:105px; width:100px; height:23px; text-align:center; vertical-align:middle; ">중도탈락사유</caption>
  605. <input id="ipt_cnts2" ref="/root/main/reptdetl/item/cnts2" class="input_default" style="left:414px; top:106px; width:488px; height:19px; "/>
  606. <caption id="caption4" class="cell_1" style="left:107px; top:130px; width:100px; height:23px; text-align:center; vertical-align:middle; ">발생한 원내SAE</caption>
  607. <input id="ipt_cnts3" ref="/root/main/reptdetl/item/cnts3" class="input_default" style="left:209px; top:131px; width:100px; height:19px; "/>
  608. <caption id="caption5" class="cell_1" style="left:312px; top:130px; width:100px; height:23px; text-align:center; vertical-align:middle; ">발생한 SAE내용</caption>
  609. <input id="ipt_cnts4" ref="/root/main/reptdetl/item/cnts4" class="input_default" style="left:414px; top:131px; width:488px; height:19px; "/>
  610. <caption id="caption6" class="cell_1" style="left:107px; top:155px; width:202px; height:22px; text-align:center; vertical-align:middle; ">임상연구 진행중 계획서 위반내용</caption>
  611. <caption id="caption9" class="cell_1" style="left:107px; top:179px; width:202px; height:32px; text-align:center; vertical-align:middle; ">임상연구 진행중 계획서 예외적용 내용</caption>
  612. <caption id="caption10" class="cell_1" style="left:107px; top:213px; width:202px; height:22px; text-align:center; vertical-align:middle; ">기타 임상연구진행중 발생된 문제점</caption>
  613. <textarea id="tar_cnts5" ref="/root/main/reptdetl/item/cnts5" style="left:312px; top:155px; width:588px; height:22px; "/>
  614. <textarea id="tar_cnts6" ref="/root/main/reptdetl/item/cnts6" style="left:312px; top:179px; width:588px; height:32px; "/>
  615. <textarea id="tar_cnts7" ref="/root/main/reptdetl/item/cnts7" style="left:312px; top:213px; width:588px; height:22px; "/>
  616. <line id="line13" class="line_3" style="x1:5px; y1:362px; x2:903px; y2:362px; "/>
  617. <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; "/>
  618. <line id="line2" class="line_1" style="x1:5px; y1:26px; x2:901px; y2:26px; "/>
  619. <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:533px; top:5px; width:64px; height:19px; ">
  620. <caption>첨부삭제</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. //접수 후 수정불가
  624. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  625. messageBox("이미 접수되어 저장 또는 수정", "E001");
  626. return;
  627. } else {
  628. if (submit("TXIRS00188")) {
  629. messageBox("첨부파일이 삭제되었습니다.","I999");
  630. model.refresh();
  631. }
  632. }
  633. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  634. submit("TRIRB00124"); //종료보고서 내용 조회
  635. }
  636. ]]>
  637. </script>
  638. </button>
  639. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:265px; top:5px; width:200px; height:19px; "/>
  640. <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:467px; top:5px; width:64px; height:19px; ">
  641. <caption>파일첨부</caption>
  642. <script type="javascript" ev:event="DOMActivate">
  643. <![CDATA[
  644. if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
  645. messageBox("임시저장 후 첨부파일을 올리세요", "I");
  646. return;
  647. }
  648. var maxsize = upload1.attribute("filesize");
  649. files = window.fileDialog("open", "|", true);
  650. filelist = files.split("|");
  651. for(var i = 0 ; i < filelist.length ; i++ ) {
  652. grd_attach.addRow(false);
  653. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  654. if (!checkFileSize(upload1)){
  655. grd_attach.removeItem();
  656. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  657. return;
  658. }
  659. }
  660. if ( filelist[0] != "") {
  661. if (submit("TXIRS00189")) {
  662. messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
  663. model.removeNodeset("/root/send/attach");
  664. parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
  665. parent.btn_report6.selected = true;
  666. parent.btn_report6.dispatch("DOMActivate");
  667. model.refresh();
  668. }
  669. }
  670. submit("TRIRB00124"); //종료보고서 내용 조회
  671. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  672. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  673. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  674. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  675. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  676. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  677. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  678. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  679. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  680. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  681. model.refresh();
  682. ]]>
  683. </script>
  684. </button>
  685. <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:600px; top:5px; width:64px; height:19px; ">
  686. <caption>임시저장</caption>
  687. <script type="javascript" ev:event="DOMActivate">
  688. <![CDATA[
  689. //접수 후 수정불가
  690. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  691. messageBox("이미 접수되어 저장 또는 수정", "E001");
  692. return;
  693. }
  694. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  695. if ( reptseqno != '') {
  696. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  697. }
  698. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  699. model.setValue("/root/send/savedata/reptkind", "6"); //보고서종류=종료보고서(6)
  700. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  701. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  702. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  703. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  704. var instcd = model.getValue("/root/send/savedata/instcd");
  705. if ( instcd == '' ) {
  706. messageBox("병원을 ", "C002");
  707. }
  708. submit("TXIRB00122");
  709. } else {
  710. submit("TXIRB00121");
  711. }
  712. model.setValue("/root/main/reptdetl/item/acptyn", "N"); //접수여부를 미접수로 보여줌.
  713. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  714. model.refresh();
  715. parent.model.setValue("/root/temp/ivieweryn", "N"); //종료보고서 iviewer 호출 여부 = N
  716. parent.btn_report6.selected = true;
  717. parent.btn_report6.dispatch("DOMActivate");
  718. model.removeNodeset("/root/send/savedata");
  719. model.makeNode("/root/send/savedata");
  720. ]]>
  721. </script>
  722. </button>
  723. <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:667px; top:5px; width:75px; height:19px; ">
  724. <caption>보고서접수</caption>
  725. <script type="javascript" ev:event="DOMActivate">
  726. <![CDATA[
  727. //접수 후 수정불가
  728. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  729. messageBox("이미 접수되어 저장 또는 수정", "E001");
  730. return;
  731. }
  732. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  733. if ( reptseqno != '') {
  734. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  735. }
  736. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  737. model.setValue("/root/send/savedata/reptkind", "6"); //보고서종류=종료보고서(6)
  738. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  739. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  740. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  741. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  742. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  743. var instcd = model.getValue("/root/send/savedata/instcd");
  744. if ( instcd == '' ) {
  745. messageBox("병원을 ", "C002");
  746. }
  747. submit("TXIRB00122");
  748. } else {
  749. submit("TXIRB00121");
  750. }
  751. model.setValue("/root/main/reptdetl/item/acptyn", "Y"); //접수여부를 접수로 보여줌.
  752. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  753. model.refresh();
  754. parent.model.setValue("/root/temp/ivieweryn", "N"); //종료보고서 iviewer 호출 여부 = N
  755. parent.btn_report6.selected = true;
  756. parent.btn_report6.dispatch("DOMActivate");
  757. model.removeNodeset("/root/send/savedata");
  758. model.makeNode("/root/send/savedata");
  759. ]]>
  760. </script>
  761. </button>
  762. <caption id="caption7" class="tit_2" style="left:10px; top:10px; width:140px; height:14px; ">종료보고서</caption>
  763. <caption id="caption8" class="cell_1" style="left:107px; top:237px; width:202px; height:22px; text-align:center; vertical-align:middle; ">결과보고서 제출 일정</caption>
  764. <caption id="caption11" class="cell_1" style="left:107px; top:261px; width:202px; height:22px; text-align:center; vertical-align:middle; ">기타보고사항(결과요약 등)</caption>
  765. <caption id="caption12" class="cell_1" style="left:107px; top:285px; width:100px; height:75px; text-align:center; vertical-align:middle; ">조기종료인 경우</caption>
  766. <caption id="caption13" class="cell_1" style="left:210px; top:285px; width:100px; height:25px; text-align:center; vertical-align:middle; ">사유(구체적)</caption>
  767. <caption id="caption14" class="cell_1" style="left:210px; top:312px; width:100px; height:47px; text-align:center; vertical-align:middle; ">피험자 안전과 관련된 Action Plan</caption>
  768. <textarea id="textarea1" ref="/root/main/reptdetl/item/cnts8" style="left:312px; top:237px; width:588px; height:22px; "/>
  769. <textarea id="textarea2" ref="/root/main/reptdetl/item/cnts9" style="left:312px; top:261px; width:588px; height:22px; "/>
  770. <textarea id="textarea3" ref="/root/main/reptdetl/item/cnts10" style="left:312px; top:285px; width:588px; height:22px; "/>
  771. <textarea id="textarea4" ref="/root/main/reptdetl/item/cnts12" disabled="true" style="left:380px; top:309px; width:520px; height:25px; "/>
  772. <textarea id="textarea5" ref="/root/main/reptdetl/item/cnts13" disabled="true" style="left:380px; top:336px; width:520px; height:25px; "/>
  773. <select1 id="radio1" ref="/root/main/reptdetl/item/cnts11" appearance="full" overflow="visible" style="left:320px; top:315px; width:55px; height:40px; border-style:none; ">
  774. <choices>
  775. <item>
  776. <label>있다</label>
  777. <value>1</value>
  778. </item>
  779. <item>
  780. <label>없다</label>
  781. <value>2</value>
  782. </item>
  783. </choices>
  784. <script type="javascript" ev:event="xforms-value-changed">
  785. <![CDATA[
  786. var cnts11 = model.getValue("/root/main/reptdetl/item/cnts11");
  787. textarea4.disabled = true;
  788. textarea5.disabled = true;
  789. if ( cnts11 == "1" ) {
  790. textarea4.disabled = false;
  791. }
  792. if ( cnts11 == "2" ) {
  793. textarea5.disabled = false;
  794. }
  795. model.refresh();
  796. ]]>
  797. </script>
  798. </select1>
  799. <button id="btn_filedown" class="btn2_letter4" visibility="hidden" _auth="R" style="left:470px; top:5px; width:64px; height:19px; ">
  800. <caption>내려받기</caption>
  801. <script type="javascript" ev:event="DOMActivate">
  802. <![CDATA[
  803. var s = model.getValue("/root/main/reptdetl/item/attfile");
  804. var ss = s.split("/");
  805. var filepath = "";
  806. var filenm = "";
  807. for ( var i = 0; i < ss.length; i ++){
  808. if ( i < ss.length -2 ) {
  809. filepath = filepath+ss[i] +"/";
  810. } else if ( i < ss.length -1 ) {
  811. filepath = filepath+ss[i] ;
  812. } else {
  813. filenm = ss[i];
  814. }
  815. }
  816. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  817. if (localfile != "") {
  818. model.download(getActionURL("TRIRS00135")+"&filepath="+filepath,localfile);
  819. var rtn = messageBox("파일을", "Q004");
  820. if( rtn == 6 ) {
  821. window.exec(localfile);
  822. }
  823. }
  824. ]]>
  825. </script>
  826. </button>
  827. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="52428800" validate="true" style="left:145px; top:5px; width:100px; height:20px; "/>
  828. <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:245px; top:80px; width:665px; height:150px; ">
  829. <col ref="file"/>
  830. </datagrid>
  831. <button id="button1" class="btn5_letter2" _auth="X" style="left:745px; top:5px; width:42px; height:19px; ">
  832. <caption>삭제</caption>
  833. <script type="javascript" ev:event="DOMActivate">
  834. <![CDATA[
  835. //접수 후 수정불가
  836. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  837. messageBox("이미 접수되어 저장 또는 수정", "E001");
  838. return;
  839. }
  840. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  841. if ( reptseqno != '') {
  842. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  843. }
  844. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  845. /*var instcd = model.getValue("/root/send/savedata/instcd");
  846. if ( instcd == '' ) {
  847. messageBox("병원을 ", "C002");
  848. }*/
  849. submit("TXIRB00124");
  850. } else {
  851. submit("TXIRB00123");
  852. }
  853. model.refresh();
  854. parent.model.setValue("/root/temp/ivieweryn", "N"); //종료보고서 iviewer 호출 여부 = N
  855. parent.btn_report6.selected = true;
  856. parent.btn_report6.dispatch("DOMActivate");
  857. ]]>
  858. </script>
  859. </button>
  860. </xhtml:body>
  861. </xhtml:html>