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

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