SSIRB01000_보완답변서작성.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  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. <verplan/>
  32. <veraprv/>
  33. <vercrf/>
  34. <verib/>
  35. <attfile/>
  36. <reptchoose/>
  37. <screenmenu/>
  38. <stdykind2/>
  39. <rc/>
  40. <resercnfmyn/>
  41. <firstdg/>
  42. <firstjudgdd/>
  43. </item>
  44. </reptdetl>
  45. <reptlist>
  46. <item>
  47. <subjno/>
  48. <judgdd/>
  49. <judgkind/>
  50. <judgrslt/>
  51. <judgitem/>
  52. <judgitem1/>
  53. <judgitem2/>
  54. <judgitem3/>
  55. <judgitem4/>
  56. </item>
  57. </reptlist>
  58. </main>
  59. <send>
  60. <savedata>
  61. </savedata>
  62. <searchitem>
  63. <reptkind/>
  64. <subjid/>
  65. <instcd/>
  66. <reptseqno/>
  67. <consorflag/>
  68. <croinstcd/>
  69. </searchitem>
  70. </send>
  71. <hidden>
  72. </hidden>
  73. <init>
  74. <hosp>
  75. <ret>
  76. <instcd/>
  77. <hospnm/>
  78. </ret>
  79. </hosp>
  80. </init>
  81. <rex>
  82. <view>
  83. <appformhead>
  84. <subjnm/>
  85. <subjno/>
  86. <hospnm/>
  87. <depthngnm/>
  88. <cdnm/>
  89. <usernm/>
  90. <hospcd/>
  91. <judgdd/>
  92. <judgappdg/>
  93. <engsubjnm/>
  94. <telnumber/>
  95. </appformhead>
  96. <irsdcollareser>
  97. <subjid/>
  98. <instcd/>
  99. <userid/>
  100. <userkind/>
  101. <usernm/>
  102. <posnm/>
  103. <jobposnm/>
  104. </irsdcollareser>
  105. <imcmreqinst>
  106. <cmpynm/>
  107. <prsdnm/>
  108. <jobposnm/>
  109. </imcmreqinst>
  110. </view>
  111. <basesubjinfo>
  112. <basesubjinfo>
  113. <subjid/>
  114. <perchgrid/>
  115. <acptyn/>
  116. <judgkind/>
  117. <subjnm/>
  118. <subjpwd/>
  119. <clinictrgtflag/>
  120. <reqinstflag/>
  121. <stdycostsuppinst/>
  122. <stdycostsuppinstnm/>
  123. <itemnm/>
  124. <comnm/>
  125. <allidxcase/>
  126. <stdystartdd/>
  127. <stdyenddd/>
  128. <appdd/>
  129. <testeeaprvflag/>
  130. <relprstdata1/>
  131. <relprstdata2/>
  132. <relprstdata3/>
  133. <relprstdata4/>
  134. <relprstdata5/>
  135. <prstdataetc5/>
  136. <resercd/>
  137. <reqinstcd/>
  138. <concernrela/>
  139. <verplan/>
  140. <veraprv/>
  141. <vercrf/>
  142. <verib/>
  143. <consorflag/>
  144. <deptcd/>
  145. <reqcnfmyn/>
  146. <inqrgoal/>
  147. <trgtsick/>
  148. <inqrmthd/>
  149. <stdykind1/>
  150. <etctrgt1/>
  151. <stdykind2/>
  152. <etctrgt2/>
  153. <stdykind3/>
  154. <manynation/>
  155. <manyinst/>
  156. <cmcinstcnt/>
  157. <stdykind4/>
  158. <etctrgt4/>
  159. <stdytrgt/>
  160. <etctrgt/>
  161. <agenestdyflag/>
  162. <cellcurestdyyn/>
  163. <testeestat/>
  164. <fratesteeflag/>
  165. <stdyspcl1/>
  166. <stdyspcl2/>
  167. <stdyspcl3/>
  168. <stdyspcl4/>
  169. <stdyspcl5/>
  170. <stdyspcl6/>
  171. <stdyspcl7/>
  172. <examadjthosp/>
  173. <examadjtprf/>
  174. <allexamresppos/>
  175. <allexamrespnm/>
  176. <foodscrtgovpassyn/>
  177. <prmisnnatiyn/>
  178. <intermarketyn/>
  179. <judgkindcode/>
  180. <reqinstchrgid/>
  181. <reqinstchrgnm/>
  182. <reqinstjobposnm/>
  183. <croinstnm/>
  184. </basesubjinfo>
  185. </basesubjinfo>
  186. <basehospinfo>
  187. <basehospinfo>
  188. <subjid/>
  189. <instcd/>
  190. <subjno/>
  191. <condd/>
  192. <reqyn/>
  193. <reqdt/>
  194. <totstdycost/>
  195. <direccost/>
  196. <stdystartdd/>
  197. <stdyenddd/>
  198. <crccaprvyn/>
  199. <crccaprvdd/>
  200. <rtnresn/>
  201. <roothospidxcasecnt/>
  202. <depomthd/>
  203. <respstdyempno/>
  204. <respstdycnfmsubjyn/>
  205. <respstdycnfmexecyn/>
  206. <respstdycnfmselfyn/>
  207. <mdlreptdd/>
  208. <subjenddd/>
  209. <subjdiscontinudd/>
  210. <subjdiscontinuresn/>
  211. <subrecuyn/>
  212. <subrecuenddd/>
  213. <reqjudgcostdepoyn/>
  214. <reqjudgcostdepodd/>
  215. <irbjudgcostamt/>
  216. <irbjudgcostdepoyn/>
  217. <irbjudgcostdepodd/>
  218. <irbjudgflag/>
  219. <conacptyn/>
  220. <conacptdd/>
  221. <conyn/>
  222. <concondd/>
  223. <examdrugwinyn/>
  224. <examdrugwindd/>
  225. <stdycostcalcyn/>
  226. <captyn/>
  227. <captdd/>
  228. <crcccnfm1/>
  229. <crcccnfm2/>
  230. <crcccnfm3/>
  231. <irbjudgyn/>
  232. <subjattfile/>
  233. <judgcnvtyn/>
  234. <mdlschedd/>
  235. <endschedd/>
  236. <rsltschedd/>
  237. <contschedd/>
  238. </basehospinfo>
  239. </basehospinfo>
  240. <data>
  241. <cnts1/>
  242. <cnts2/>
  243. <resercnfmyn/>
  244. <acptdd/>
  245. <firstdg/>
  246. <firstjudgdd/>
  247. </data>
  248. </rex>
  249. <temp/>
  250. </root>
  251. </instance>
  252. <submission id="TRIRB00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  253. <submission id="TRIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  254. <submission id="TRIRB00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptlist"/>
  255. <submission id="TXIRB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  256. <submission id="TRIRS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  257. <submission id="TRIRS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  258. <submission id="TRIRS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basehospinfo"/>
  259. <submission id="TRIRS00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  260. <submission id="TRIRB00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptlist"/>
  261. <submission id="TXIRB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  262. <submission id="TXIRS00199" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  263. <submission id="TXIRB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  264. <submission id="TXIRB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden"/>
  265. <submission id="TXIRS00198" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  266. </model>
  267. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  268. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  269. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  270. <script type="javascript" ev:event="xforms-ready">
  271. <![CDATA[
  272. //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
  273. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  274. ipt_filenm.visible = true;
  275. btn_fileatt.visible = false;
  276. btn_filedel.visible = false;
  277. btn_tmpsave.visible = false;
  278. btn_reptacpt.visible = false;
  279. btn_filedown.visible=true;
  280. button1.visible = false;
  281. }
  282. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  283. ipt_filenm.visible = true;
  284. btn_fileatt.visible = false;
  285. btn_filedel.visible = false;
  286. btn_tmpsave.visible = false;
  287. btn_reptacpt.visible = false;
  288. btn_filedown.visible=true;
  289. button1.visible = false;
  290. }
  291. submit("TRIRB00102"); //병원 조회
  292. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  293. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  294. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  295. model.setValue("/root/send/searchitem/reptkind", parent.model.getValue("/root/send/searchitem2/reptkind"));
  296. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  297. if ( consorflag == "Y" ) {
  298. submit("TRIRB00107"); //공동과제보완답변서 대상 조회
  299. model.setValue("/root/send/searchitem/consorflag", "Y");
  300. } else {
  301. submit("TRIRB00105"); //보완답변서 대상 조회
  302. }
  303. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  304. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  305. submit("TRIRB00104"); //보완답변서 내용 조회
  306. // model.setValue("/root/main/reptdetl/item/cnts1", model.getValue("/root/main/reptlist/item/judgitem"));
  307. }
  308. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  309. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  310. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  311. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  312. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  313. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  314. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  315. // model.setValue("/root/main/reptdetl/item/verplan", parent.model.getValue("/root/send/searchitem2/verplan"));
  316. // model.setValue("/root/main/reptdetl/item/veraprv", parent.model.getValue("/root/send/searchitem2/veraprv"));
  317. // model.setValue("/root/main/reptdetl/item/vercrf", parent.model.getValue("/root/send/searchitem2/vercrf"));
  318. // model.setValue("/root/main/reptdetl/item/verib", parent.model.getValue("/root/send/searchitem2/verib"));
  319. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  320. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  321. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  322. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  323. model.setValue("/root/send/searchitem/croinstcd", parent.model.getValue("/root/send/searchitem2/croinstcd"));
  324. model.refresh();
  325. ]]>
  326. </script>
  327. </xhtml:head>
  328. <xhtml:body guideline="2,420;">
  329. <line id="line13" class="line_3" style="x1:5px; y1:400px; x2:1170px; y2:400px; "/>
  330. <caption id="caption10" class="cell_1" style="left:837px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">IB</caption>
  331. <caption id="caption11" class="cell_1" style="left:355px; top:96px; width:405px; height:23px; text-align:center; vertical-align:middle; ">보완지적사항</caption>
  332. <select1 id="cmb_instcd" ref="/root/main/reptdetl/item/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:112px; top:67px; width:100px; height:19px; ">
  333. <choices>
  334. <itemset nodeset="/root/init/hosp/ret">
  335. <label ref="hospnm"/>
  336. <value ref="instcd"/>
  337. </itemset>
  338. </choices>
  339. </select1>
  340. <caption id="caption12" class="cell_1" style="left:765px; top:96px; width:405px; height:23px; text-align:center; vertical-align:middle; ">답변내용</caption>
  341. <select1 id="cmb_acptyn" ref="/root/main/reptdetl/item/acptyn" class="combo_search" disabled="true" appearance="minimal" style="left:340px; top:67px; width:100px; height:19px; ">
  342. <choices>
  343. <item>
  344. <label>접수</label>
  345. <value>Y</value>
  346. </item>
  347. <item>
  348. <label>미접수</label>
  349. <value>N</value>
  350. </item>
  351. </choices>
  352. </select1>
  353. <caption id="caption3" class="cell_1" style="left:5px; top:66px; width:105px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
  354. <caption id="caption4" class="cell_1" style="left:217px; top:66px; width:120px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  355. <caption id="caption5" class="cell_1" style="left:445px; top:42px; width:60px; height:48px; text-align:center; vertical-align:middle; ">VERSION</caption>
  356. <caption id="caption14" class="cell_1" style="left:217px; top:41px; width:120px; height:23px; text-align:center; vertical-align:middle; ">최초계획서 심사일</caption>
  357. <input id="ipt_verplan" ref="/root/main/reptdetl/item/verplan" class="input_default" style="left:579px; top:44px; width:253px; height:19px; "/>
  358. <caption id="caption6" class="cell_1" style="left:507px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">계획서</caption>
  359. <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" editable="false" style="left:355px; top:120px; width:405px; height:270px; "/>
  360. <caption id="caption7" class="cell_1" style="left:5px; top:41px; width:105px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  361. <input id="ipt_judgappdg" ref="/root/main/reptdetl/item/judgappdg" class="input_default" editable="false" style="left:112px; top:42px; width:100px; height:19px; "/>
  362. <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" style="left:765px; top:120px; width:405px; height:270px; "/>
  363. <input id="ipt_vercrf" ref="/root/main/reptdetl/item/vercrf" class="input_default" style="left:579px; top:68px; width:253px; height:19px; "/>
  364. <caption id="caption8" class="cell_1" style="left:507px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">CRF</caption>
  365. <input id="ipt_fstplanjudgdd" ref="/root/main/reptdetl/item/fstplanjudgdd" class="input_search" disabled="true" inputtype="date" appearance="input" style="left:340px; top:42px; width:100px; height:19px; "/>
  366. <caption id="caption9" class="cell_1" style="left:837px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">동의서</caption>
  367. <input id="ipt_veraprv" ref="/root/main/reptdetl/item/veraprv" class="input_default" style="left:909px; top:44px; width:253px; height:19px; "/>
  368. <input id="ipt_verib" ref="/root/main/reptdetl/item/verib" class="input_default" style="left:909px; top:68px; width:253px; height:19px; "/>
  369. <line id="line2" class="line_1" style="x1:5px; y1:35px; x2:1171px; y2:35px; "/>
  370. <caption id="caption1" class="tit_2" style="left:15px; top:15px; width:140px; height:14px; ">보완답변서</caption>
  371. <button id="btn_fileatt" class="btn2_letter4" _auth="X" style="left:730px; top:5px; width:64px; height:19px; ">
  372. <caption>파일첨부</caption>
  373. <script type="javascript" ev:event="DOMActivate">
  374. <![CDATA[
  375. if ( model.getValue("/root/main/reptdetl/item/acptyn") == '' ) {
  376. messageBox("임시저장 후 첨부파일을 올리세요", "I");
  377. return;
  378. }
  379. var maxsize = upload1.attribute("filesize");
  380. files = window.fileDialog("open", "|", true);
  381. filelist = files.split("|");
  382. for(var i = 0 ; i < filelist.length ; i++ ) {
  383. grd_attach.addRow(false);
  384. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  385. if (!checkFileSize(upload1)){
  386. grd_attach.removeItem();
  387. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  388. return;
  389. }
  390. }
  391. if ( filelist[0] != "") {
  392. if (submit("TXIRS00199")) {
  393. messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
  394. model.removeNodeset("/root/send/attach");
  395. parent.model.setValue("/root/temp/ivieweryn", "N"); //중간보고서 iviewer 호출 여부 = N
  396. parent.btn_report1.selected = true;
  397. parent.btn_report1.dispatch("DOMActivate");
  398. model.refresh();
  399. }
  400. }
  401. submit("TRIRB00104"); //보완답변서 내용 조회
  402. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  403. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  404. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  405. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  406. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  407. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  408. model.setValue("/root/main/reptdetl/item/fstplanjudgdd", parent.model.getValue("/root/send/searchitem2/judgdd"));
  409. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  410. model.setValue("/root/main/reptdetl/item/stdykind2", parent.model.getValue("/root/send/searchitem2/stdykind2"));
  411. model.setValue("/root/main/reptdetl/item/rc", parent.model.getValue("/root/send/searchitem2/rc"));
  412. model.refresh();
  413. ]]>
  414. </script>
  415. </button>
  416. <button id="btn_filedel" class="btn5_letter4" _auth="X" style="left:796px; top:5px; width:64px; height:19px; ">
  417. <caption>첨부삭제</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. //접수 후 수정불가
  421. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  422. messageBox("이미 접수되어 저장 또는 수정", "E001");
  423. return;
  424. } else {
  425. if (submit("TXIRS00198")) {
  426. messageBox("첨부파일이 삭제되었습니다.","I999");
  427. model.refresh();
  428. }
  429. }
  430. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  431. submit("TRIRB00104"); //보완답변서 내용 조회
  432. }
  433. ]]>
  434. </script>
  435. </button>
  436. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:528px; top:5px; width:200px; height:19px; "/>
  437. <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:975px; top:5px; width:75px; height:19px; ">
  438. <caption>보고서접수</caption>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. //접수 후 수정불가
  442. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  443. messageBox("이미 접수되어 저장 또는 수정", "E001");
  444. return;
  445. }
  446. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  447. if ( reptseqno != '') {
  448. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  449. }
  450. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  451. model.setValue("/root/send/savedata/reptkind", "1"); //보고서종류=보완답변서(1)
  452. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  453. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  454. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  455. if ( model.getValue("/root/main/reptdetl/item/reptchoose") == 'V') {
  456. model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
  457. } else {
  458. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  459. }
  460. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  461. var instcd = model.getValue("/root/send/savedata/instcd");
  462. if ( instcd == '' ) {
  463. messageBox("병원을 ", "C002");
  464. }
  465. submit("TXIRB00102");
  466. } else {
  467. submit("TXIRB00101");
  468. }
  469. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  470. parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
  471. parent.btn_report1.selected = true;
  472. parent.btn_report1.dispatch("DOMActivate");
  473. model.removeNodeset("/root/send/savedata");
  474. model.makeNode("/root/send/savedata");
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:863px; top:5px; width:64px; height:19px; ">
  479. <caption>임시저장</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. //접수 후 수정불가
  483. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  484. messageBox("이미 접수되어 저장 또는 수정", "E001");
  485. return;
  486. }
  487. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  488. if ( reptseqno != '') {
  489. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  490. }
  491. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  492. model.setValue("/root/send/savedata/reptkind", "1"); //보고서종류=보완답변서(1)
  493. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  494. model.setValue( "/root/send/searchitem/reptseqno",model.getValue("/root/hidden/ret/reptseqno"));
  495. model.makeValue("/root/send/savedata/croinstcd", model.getValue("/root/send/searchitem/croinstcd"));
  496. if ( model.getValue("/root/main/reptdetl/item/reptchoose") == 'V') {
  497. model.makeValue("/root/send/savedata/judgkind", "S"); //심의종류
  498. } else {
  499. model.makeValue("/root/send/savedata/judgkind", "N"); //심의종류
  500. }
  501. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  502. var instcd = model.getValue("/root/send/savedata/instcd");
  503. if ( instcd == '' ) {
  504. messageBox("병원을 ", "C002");
  505. }
  506. submit("TXIRB00102");
  507. } else {
  508. submit("TXIRB00101");
  509. }
  510. parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
  511. parent.btn_report1.selected = true;
  512. parent.btn_report1.dispatch("DOMActivate");
  513. model.removeNodeset("/root/send/savedata");
  514. model.makeNode("/root/send/savedata");
  515. ]]>
  516. </script>
  517. </button>
  518. <button id="button18" class="btn2_letter8" _auth="P" style="left:1055px; top:5px; width:108px; height:19px; ">
  519. <caption>보완답변서 출력</caption>
  520. <script type="javascript" ev:event="DOMActivate">
  521. <![CDATA[
  522. if(submit("TRIRS00101")) {
  523. submit("TRIRS00102");
  524. submit("TRIRS00103");
  525. model.setValue("/root/rex/data/cnts1", model.getValue("/root/main/reptdetl/item/cnts1"));
  526. model.setValue("/root/rex/data/cnts2", model.getValue("/root/main/reptdetl/item/cnts2"));
  527. model.setValue("/root/rex/data/acptdd", model.getValue("/root/main/reptdetl/item/acptdd"));
  528. model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
  529. model.setValue("/root/rex/data/firstdg", model.getValue("/root/main/reptdetl/item/firstdg"));
  530. model.setValue("/root/rex/data/firstjudgdd", model.getValue("/root/main/reptdetl/item/firstjudgdd"));
  531. var cnts1 = model.getValue("/root/rex/data/cnts1");
  532. var cnts2 = model.getValue("/root/rex/data/cnts2");
  533. var j = 0;
  534. var p = 0;
  535. var k = 0;
  536. model.makeNode("/root/rex/reptdetl");
  537. if ( cnts1.indexOf("\n",p ) >=0 ){
  538. while ( (j = cnts1.indexOf("\n",p ))>=0){
  539. var sdata = cnts1.substring( p, j );
  540. p = j + 1;
  541. k = k + 1;
  542. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
  543. }
  544. if ( p<cnts1.length){ // 제일 마지막 엔터 뒤 문장 처리
  545. var sdata = cnts1.substring( p, cnts1.length );
  546. k = k + 1;
  547. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
  548. }
  549. } else { //엔터없을때 처리
  550. k = k + 1;
  551. model.makeNode("/root/rex/reptdetl");
  552. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", cnts1);
  553. }
  554. var j = 0;
  555. var p = 0;
  556. var k = 0;
  557. if ( cnts2.indexOf("\n",p ) >=0 ){
  558. while ( (j = cnts2.indexOf("\n",p ))>=0){
  559. var sdata = cnts2.substring( p, j );
  560. p = j + 1;
  561. k = k + 1;
  562. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  563. }
  564. if ( p<cnts2.length){ // 제일 마지막 엔터 뒤 문장 처리
  565. var sdata = cnts2.substring( p, cnts2.length );
  566. k = k + 1;
  567. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  568. }
  569. } else { //엔터없을때 처리
  570. k = k + 1;
  571. model.makeNode("/root/rex/reptdetl");
  572. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", cnts2);
  573. }
  574. // ***** 2009.11.18 김재우 추가(출력시 Version 4개 항목을 지정해줌) *****
  575. model.makeValue("/root/rex/reptdetl/item/verplan", model.getValue("/root/main/reptdetl/item/verplan"));
  576. model.makeValue("/root/rex/reptdetl/item/veraprv", model.getValue("/root/main/reptdetl/item/veraprv"));
  577. model.makeValue("/root/rex/reptdetl/item/vercrf", model.getValue("/root/main/reptdetl/item/vercrf"));
  578. model.makeValue("/root/rex/reptdetl/item/verib", model.getValue("/root/main/reptdetl/item/verib"));
  579. // ***** 2009.11.18 끝 *****
  580. exeReportPreview("PSIRB00200", "XMLSTR" , "/root/rex");
  581. }
  582. ]]>
  583. </script>
  584. </button>
  585. <datagrid id="datagrid1" nodeset="/root/main/reptlist/item" caption="과제번호^심사일^종류^심사결과" colsep="^" colwidth="93, 68, 85, 70" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:95px; width:345px; height:295px; ">
  586. <col ref="subjno"/>
  587. <col ref="judgdd" format="yyyy-mm-dd"/>
  588. <col disabled="true" ref="judgkind" type="combo">
  589. <choices>
  590. <item>
  591. <label>보완답변서</label>
  592. <value>1</value>
  593. </item>
  594. <item>
  595. <label>중간보고서</label>
  596. <value>2</value>
  597. </item>
  598. <item>
  599. <label>SAE(원내)</label>
  600. <value>3</value>
  601. </item>
  602. <item>
  603. <label>SAE(원외)</label>
  604. <value>4</value>
  605. </item>
  606. <item>
  607. <label>변경계획서</label>
  608. <value>5</value>
  609. </item>
  610. <item>
  611. <label>종료보고서</label>
  612. <value>6</value>
  613. </item>
  614. <item>
  615. <label>결과보고서</label>
  616. <value>7</value>
  617. </item>
  618. <item>
  619. <label>지속심의서</label>
  620. <value>8</value>
  621. </item>
  622. <item>
  623. <label>면제신청</label>
  624. <value>E</value>
  625. </item>
  626. <item>
  627. <label>신속심의신청</label>
  628. <value>N</value>
  629. </item>
  630. <item>
  631. <label>정규심의신청</label>
  632. <value>S</value>
  633. </item>
  634. </choices>
  635. </col>
  636. <col disabled="true" ref="judgrslt" type="combo">
  637. <choices>
  638. <item>
  639. <label>승인</label>
  640. <value>Y</value>
  641. </item>
  642. <item>
  643. <label>시정승인</label>
  644. <value>A</value>
  645. </item>
  646. <item>
  647. <label>반려</label>
  648. <value>R</value>
  649. </item>
  650. <item>
  651. <label>보완후재심</label>
  652. <value>V</value>
  653. </item>
  654. <item>
  655. <label>부결</label>
  656. <value>B</value>
  657. </item>
  658. <item>
  659. <label>승인된시험중지</label>
  660. <value>N</value>
  661. </item>
  662. <item>
  663. <label>저장</label>
  664. <value>S</value>
  665. </item>
  666. </choices>
  667. </col>
  668. <script type="javascript" ev:event="onclick">
  669. <![CDATA[
  670. if (messageBox("신규로 보고서를 작성합니다.", "Q003") != 6 ){
  671. return;
  672. } else {
  673. var judgitem1 = model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem1") + "\n";
  674. var judgitem2 = model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem2") + "\n";
  675. var judgitem3 = model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem3") + "\n";
  676. var judgitem4 = model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem4") + "\n";
  677. model.setValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem", judgitem1+judgitem2+judgitem3+judgitem4);
  678. model.setValue("/root/main/reptdetl/item/cnts1", model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgitem"));
  679. model.setValue("/root/main/reptdetl/item/reptchoose", model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgrslt"));
  680. model.setValue("/root/main/reptdetl/item/reptkind", model.getValue("/root/main/reptlist/item["+datagrid1.row+"]/judgkind"));
  681. model.setValue("/root/main/reptdetl/item/cnts2", "");
  682. model.setValue("/root/main/reptdetl/item/reptseqno", "");
  683. if ( model.getValue("/root/hidden/ret/reptseqno") != '' ) {
  684. model.setValue("/root/hidden/ret/reptseqno", "");
  685. }
  686. }
  687. model.refresh();
  688. ]]>
  689. </script>
  690. </datagrid>
  691. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="52428800" validate="true" style="left:390px; top:5px; width:100px; height:20px; "/>
  692. <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:120px; top:170px; width:665px; height:150px; ">
  693. <col ref="file"/>
  694. </datagrid>
  695. <button id="button1" class="btn5_letter2" _auth="X" style="left:930px; top:5px; width:42px; height:19px; ">
  696. <caption>삭제</caption>
  697. <script type="javascript" ev:event="DOMActivate">
  698. <![CDATA[
  699. //접수 후 수정불가
  700. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  701. messageBox("이미 접수되어 저장 또는 수정", "E001");
  702. return;
  703. }
  704. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  705. if ( reptseqno != '') {
  706. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  707. }
  708. if (model.getValue("/root/send/searchitem/consorflag") == 'Y') {
  709. /* var instcd = model.getValue("/root/send/savedata/instcd");
  710. if ( instcd == '' ) {
  711. messageBox("병원을 ", "C002");
  712. } */
  713. submit("TXIRB00104");
  714. } else {
  715. submit("TXIRB00103");
  716. }
  717. model.refresh();
  718. parent.model.setValue("/root/temp/ivieweryn", "N"); //종료보고서 iviewer 호출 여부 = N
  719. parent.btn_report1.selected = true;
  720. parent.btn_report1.dispatch("DOMActivate");
  721. ]]>
  722. </script>
  723. </button>
  724. </xhtml:body>
  725. </xhtml:html>