SSIRB00200_보완답변서.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  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. <screenmenu/>
  37. <resercnfmyn/>
  38. <firstdg/>
  39. <firstjudgdd/>
  40. </item>
  41. </reptdetl>
  42. </main>
  43. <send>
  44. <savedata>
  45. </savedata>
  46. <searchitem>
  47. <reptkind/>
  48. <subjid/>
  49. <instcd/>
  50. <reptseqno/>
  51. </searchitem>
  52. </send>
  53. <hidden/>
  54. <init>
  55. <hosp>
  56. <ret>
  57. <instcd/>
  58. <hospnm/>
  59. </ret>
  60. </hosp>
  61. </init>
  62. <rex>
  63. <view>
  64. <appformhead>
  65. <subjnm/>
  66. <subjno/>
  67. <hospnm/>
  68. <depthngnm/>
  69. <cdnm/>
  70. <usernm/>
  71. <hospcd/>
  72. <judgdd/>
  73. <judgappdg/>
  74. </appformhead>
  75. <irsdcollareser>
  76. <subjid/>
  77. <instcd/>
  78. <userid/>
  79. <userkind/>
  80. <usernm/>
  81. <posnm/>
  82. <jobposnm/>
  83. </irsdcollareser>
  84. <imcmreqinst>
  85. <cmpynm/>
  86. <prsdnm/>
  87. <jobposnm/>
  88. </imcmreqinst>
  89. </view>
  90. <basesubjinfo>
  91. <basesubjinfo>
  92. <subjid/>
  93. <perchgrid/>
  94. <acptyn/>
  95. <judgkind/>
  96. <subjnm/>
  97. <subjpwd/>
  98. <clinictrgtflag/>
  99. <reqinstflag/>
  100. <stdycostsuppinst/>
  101. <stdycostsuppinstnm/>
  102. <itemnm/>
  103. <comnm/>
  104. <allidxcase/>
  105. <stdystartdd/>
  106. <stdyenddd/>
  107. <appdd/>
  108. <testeeaprvflag/>
  109. <relprstdata1/>
  110. <relprstdata2/>
  111. <relprstdata3/>
  112. <relprstdata4/>
  113. <relprstdata5/>
  114. <prstdataetc5/>
  115. <resercd/>
  116. <reqinstcd/>
  117. <concernrela/>
  118. <verplan/>
  119. <veraprv/>
  120. <vercrf/>
  121. <verib/>
  122. <consorflag/>
  123. <deptcd/>
  124. <reqcnfmyn/>
  125. <inqrgoal/>
  126. <trgtsick/>
  127. <inqrmthd/>
  128. <stdykind1/>
  129. <etctrgt1/>
  130. <stdykind2/>
  131. <etctrgt2/>
  132. <stdykind3/>
  133. <manynation/>
  134. <manyinst/>
  135. <cmcinstcnt/>
  136. <stdykind4/>
  137. <etctrgt4/>
  138. <stdytrgt/>
  139. <etctrgt/>
  140. <agenestdyflag/>
  141. <cellcurestdyyn/>
  142. <testeestat/>
  143. <fratesteeflag/>
  144. <stdyspcl1/>
  145. <stdyspcl2/>
  146. <stdyspcl3/>
  147. <stdyspcl4/>
  148. <stdyspcl5/>
  149. <stdyspcl6/>
  150. <stdyspcl7/>
  151. <examadjthosp/>
  152. <examadjtprf/>
  153. <allexamresppos/>
  154. <allexamrespnm/>
  155. <foodscrtgovpassyn/>
  156. <prmisnnatiyn/>
  157. <intermarketyn/>
  158. <judgkindcode/>
  159. <reqinstchrgid/>
  160. <reqinstchrgnm/>
  161. <reqinstjobposnm/>
  162. <croinstnm/>
  163. </basesubjinfo>
  164. </basesubjinfo>
  165. <basehospinfo>
  166. <basehospinfo>
  167. <subjid/>
  168. <instcd/>
  169. <subjno/>
  170. <condd/>
  171. <reqyn/>
  172. <reqdt/>
  173. <totstdycost/>
  174. <direccost/>
  175. <stdystartdd/>
  176. <stdyenddd/>
  177. <crccaprvyn/>
  178. <crccaprvdd/>
  179. <rtnresn/>
  180. <roothospidxcasecnt/>
  181. <depomthd/>
  182. <respstdyempno/>
  183. <respstdycnfmsubjyn/>
  184. <respstdycnfmexecyn/>
  185. <respstdycnfmselfyn/>
  186. <mdlreptdd/>
  187. <subjenddd/>
  188. <subjdiscontinudd/>
  189. <subjdiscontinuresn/>
  190. <subrecuyn/>
  191. <subrecuenddd/>
  192. <reqjudgcostdepoyn/>
  193. <reqjudgcostdepodd/>
  194. <irbjudgcostamt/>
  195. <irbjudgcostdepoyn/>
  196. <irbjudgcostdepodd/>
  197. <irbjudgflag/>
  198. <conacptyn/>
  199. <conacptdd/>
  200. <conyn/>
  201. <concondd/>
  202. <examdrugwinyn/>
  203. <examdrugwindd/>
  204. <stdycostcalcyn/>
  205. <captyn/>
  206. <captdd/>
  207. <crcccnfm1/>
  208. <crcccnfm2/>
  209. <crcccnfm3/>
  210. <irbjudgyn/>
  211. <subjattfile/>
  212. <judgcnvtyn/>
  213. <mdlschedd/>
  214. <endschedd/>
  215. <rsltschedd/>
  216. <contschedd/>
  217. </basehospinfo>
  218. </basehospinfo>
  219. <data>
  220. <cnts1/>
  221. <cnts2/>
  222. <resercnfmyn/>
  223. <acptdd/>
  224. <firstdg/>
  225. <firstjudgdd/>
  226. </data>
  227. </rex>
  228. </root>
  229. </instance>
  230. <submission id="TRIRB00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/hosp"/>
  231. <submission id="TRIRB00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/reptdetl"/>
  232. <submission id="TRIRS00135" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  233. <submission id="TXIRB00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  234. <submission id="TRIRS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/view"/>
  235. <submission id="TRIRS00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basesubjinfo"/>
  236. <submission id="TRIRS00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/rex/basehospinfo"/>
  237. </model>
  238. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  239. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  240. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  241. <script type="javascript" ev:event="xforms-ready">
  242. <![CDATA[
  243. //권한이 없는경우 보고서 상단의 파일첨부,첨부삭제,임시저장,보고서접수 버튼 숨기기
  244. if ( opener.javascript.getParameter("actionyn") == "N" ) {
  245. ipt_filenm.visible = true;
  246. btn_fileatt.visible = true;
  247. btn_tmpsave.visible = false;
  248. btn_reptacpt.visible = false;
  249. }
  250. if ( parent.model.getValue("/root/send/report") == "Y" ) {
  251. ipt_filenm.visible = true;
  252. btn_fileatt.visible = true;
  253. btn_tmpsave.visible = false;
  254. btn_reptacpt.visible = false;
  255. }
  256. submit("TRIRB00122"); //병원 조회
  257. model.setValue("/root/send/searchitem/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  258. model.setValue("/root/send/searchitem/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  259. model.setValue("/root/send/searchitem/reptseqno", parent.model.getValue("/root/send/searchitem2/reptseqno"));
  260. model.setValue("/root/send/searchitem/reptkind", parent.model.getValue("/root/send/searchitem2/reptkind"));
  261. var consorflag = parent.model.getValue("/root/send/searchitem/consorflag");
  262. if ( parent.javascript.getParameter("consorflag") == "Y" ) {
  263. submit("TRIRB00122");
  264. } else {
  265. //화면 오픈시 Y일 경우만 자동조회하고 Y가 아닐 경우는 빈 양식 오픈후 필수값만 세팅해준다.
  266. if ( parent.model.getValue("/root/send/searchitem2/autosrchyn") == "Y" ) {
  267. submit("TRIRB00124"); //보완답변서 내용 조회
  268. }
  269. model.setValue("/root/main/reptdetl/item/subjid", parent.model.getValue("/root/send/searchitem2/subjid"));
  270. model.setValue("/root/main/reptdetl/item/instcd", parent.model.getValue("/root/send/searchitem2/instcd"));
  271. model.setValue("/root/main/reptdetl/item/judgappdg", parent.model.getValue("/root/send/searchitem2/judgappdg"));
  272. model.setValue("/root/main/reptdetl/item/roothospidxcasecnt", parent.model.getValue("/root/send/searchitem2/roothospidxcasecnt"));
  273. model.setValue("/root/main/reptdetl/item/subjno", parent.model.getValue("/root/send/searchitem2/subjno"));
  274. model.setValue("/root/main/reptdetl/item/subjnm", parent.model.getValue("/root/send/searchitem2/subjnm"));
  275. model.setValue("/root/main/reptdetl/item/screenmenu", parent.model.getValue("/root/init/screenmenu"));
  276. model.makeValue("/root/main/reptdetl/item/resercnfmyn", parent.model.getValue("/root/send/searchitem2/resercnfmyn"));
  277. setParameter("reptchoose", model.getValue("/root/main/reptdetl/item/reptchoose"));
  278. }
  279. model.refresh();
  280. ]]>
  281. </script>
  282. </xhtml:head>
  283. <xhtml:body guideline="2,420;">
  284. <line id="line13" class="line_3" style="x1:5px; y1:400px; x2:1170px; y2:400px; "/>
  285. <caption id="caption10" class="cell_1" style="left:837px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">IB</caption>
  286. <caption id="caption11" class="cell_1" style="left:5px; top:96px; width:540px; height:23px; text-align:center; vertical-align:middle; ">보완지적사항</caption>
  287. <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; ">
  288. <choices>
  289. <itemset nodeset="/root/init/hosp/ret">
  290. <label ref="hospnm"/>
  291. <value ref="instcd"/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <caption id="caption12" class="cell_1" style="left:550px; top:96px; width:620px; height:23px; text-align:center; vertical-align:middle; ">답변내용</caption>
  296. <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; ">
  297. <choices>
  298. <item>
  299. <label>접수</label>
  300. <value>Y</value>
  301. </item>
  302. <item>
  303. <label>미접수</label>
  304. <value>N</value>
  305. </item>
  306. </choices>
  307. </select1>
  308. <caption id="caption3" class="cell_1" style="left:5px; top:66px; width:105px; height:23px; text-align:center; vertical-align:middle; ">선택된병원</caption>
  309. <caption id="caption4" class="cell_1" style="left:217px; top:66px; width:120px; height:23px; text-align:center; vertical-align:middle; ">접수여부</caption>
  310. <caption id="caption5" class="cell_1" style="left:445px; top:42px; width:60px; height:48px; text-align:center; vertical-align:middle; ">VERSION</caption>
  311. <caption id="caption14" class="cell_1" style="left:217px; top:41px; width:120px; height:23px; text-align:center; vertical-align:middle; ">최초계획서 심사일</caption>
  312. <input id="ipt_verplan" ref="/root/main/reptdetl/item/verplan" class="input_default" disabled="true" style="left:579px; top:44px; width:253px; height:19px; "/>
  313. <caption id="caption6" class="cell_1" style="left:507px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">계획서</caption>
  314. <textarea id="tar_cnts1" ref="/root/main/reptdetl/item/cnts1" style="left:5px; top:120px; width:540px; height:270px; "/>
  315. <caption id="caption7" class="cell_1" style="left:5px; top:41px; width:105px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  316. <input id="ipt_judgappdg" ref="/root/main/reptdetl/item/judgappdg" class="input_default" editable="false" style="left:112px; top:42px; width:100px; height:19px; "/>
  317. <textarea id="tar_cnts2" ref="/root/main/reptdetl/item/cnts2" style="left:550px; top:120px; width:620px; height:270px; "/>
  318. <input id="ipt_vercrf" ref="/root/main/reptdetl/item/vercrf" class="input_default" disabled="true" style="left:579px; top:68px; width:253px; height:19px; "/>
  319. <caption id="caption8" class="cell_1" style="left:507px; top:67px; width:70px; height:23px; text-align:center; vertical-align:middle; ">CRF</caption>
  320. <input id="ipt_fstplanjudgdd" ref="/root/main/reptdetl/item/fstplanjudgdd" class="input_search" inputtype="date" style="left:340px; top:42px; width:100px; height:19px; "/>
  321. <caption id="caption9" class="cell_1" style="left:837px; top:42px; width:70px; height:23px; text-align:center; vertical-align:middle; ">동의서</caption>
  322. <input id="ipt_veraprv" ref="/root/main/reptdetl/item/veraprv" class="input_default" disabled="true" style="left:909px; top:44px; width:253px; height:19px; "/>
  323. <input id="ipt_verib" ref="/root/main/reptdetl/item/verib" class="input_default" disabled="true" style="left:909px; top:68px; width:253px; height:19px; "/>
  324. <line id="line2" class="line_1" style="x1:5px; y1:35px; x2:1171px; y2:35px; "/>
  325. <caption id="caption1" class="tit_2" style="left:15px; top:15px; width:140px; height:14px; ">보완답변서</caption>
  326. <button id="btn_fileatt" class="btn2_letter4" _auth="R" style="left:765px; top:5px; width:64px; height:19px; ">
  327. <caption>내려받기</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. var s = model.getValue("/root/main/reptdetl/item/attfile");
  331. var ss = s.split("/");
  332. var filepath = "";
  333. var filenm = "";
  334. for ( var i = 0; i < ss.length; i ++){
  335. if ( i < ss.length -2 ) {
  336. filepath = filepath+ss[i] +"/";
  337. } else if ( i < ss.length -1 ) {
  338. filepath = filepath+ss[i] ;
  339. } else {
  340. filenm = ss[i];
  341. }
  342. }
  343. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  344. if (localfile != "") {
  345. model.download(getActionURL("TRIRS00135")+"&filepath="+filepath,localfile);
  346. var rtn = messageBox("파일을", "Q004");
  347. if( rtn == 6 ) {
  348. window.exec(localfile);
  349. }
  350. }
  351. ]]>
  352. </script>
  353. </button>
  354. <input id="ipt_filenm" ref="/root/main/reptdetl/item/attfile" class="input_default" style="left:563px; top:5px; width:200px; height:19px; "/>
  355. <button id="btn_reptacpt" class="btn2_letter5" _auth="X" style="left:965px; top:5px; width:75px; height:19px; ">
  356. <caption>보고서접수</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. //접수 후 수정불가
  360. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  361. messageBox("이미 접수되어 저장 또는 수정", "E001");
  362. return;
  363. }
  364. var reptseqno = model.getValue("/root/hidden/ret/reptseqno");
  365. if ( reptseqno != '') {
  366. model.setValue("/root/main/reptdetl/item/reptseqno", model.getValue("/root/hidden/ret/reptseqno"));
  367. }
  368. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  369. model.setValue("/root/send/savedata/reptkind", "1"); //보고서종류=보완답변서(1)
  370. model.setValue("/root/send/savedata/acptyn", "Y"); //접수여부=접수(Y)
  371. model.setValue("/root/send/savedata/acptdd", getCurrentDate()); //접수일=오늘날짜
  372. submit("TXIRB00121");
  373. parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
  374. parent.btn_report1.selected = true;
  375. parent.btn_report1.dispatch("DOMActivate");
  376. ]]>
  377. </script>
  378. </button>
  379. <button id="btn_tmpsave" class="btn2_letter4" _auth="X" style="left:898px; top:5px; width:64px; height:19px; ">
  380. <caption>임시저장</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. //접수 후 수정불가
  384. if ( model.getValue("/root/main/reptdetl/item/acptyn") == "Y" ) {
  385. messageBox("이미 접수되어 저장 또는 수정", "E001");
  386. return;
  387. }
  388. model.copyNode("/root/send/savedata", "/root/main/reptdetl/item");
  389. model.setValue("/root/send/savedata/reptkind", "1"); //보고서종류=보완답변서(1)
  390. model.setValue("/root/send/savedata/acptyn", "N"); //접수여부=미접수(N)
  391. submit("TXIRB00121");
  392. parent.model.setValue("/root/temp/ivieweryn", "N"); //보완답변서 iviewer 호출 여부 = N
  393. parent.btn_report1.selected = true;
  394. parent.btn_report1.dispatch("DOMActivate");
  395. ]]>
  396. </script>
  397. </button>
  398. <button id="button18" class="btn2_letter8" _auth="P" style="left:1055px; top:5px; width:108px; height:19px; ">
  399. <caption>보완답변서 출력</caption>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. if(submit("TRIRS00131")) {
  403. submit("TRIRS00132");
  404. submit("TRIRS00133");
  405. model.setValue("/root/rex/data/cnts1", model.getValue("/root/main/reptdetl/item/cnts1"));
  406. model.setValue("/root/rex/data/cnts2", model.getValue("/root/main/reptdetl/item/cnts2"));
  407. model.setValue("/root/rex/data/acptdd", model.getValue("/root/main/reptdetl/item/acptdd"));
  408. model.setValue("/root/rex/data/resercnfmyn", model.getValue("/root/main/reptdetl/item/resercnfmyn"));
  409. model.setValue("/root/rex/data/firstdg", model.getValue("/root/main/reptdetl/item/firstdg"));
  410. model.setValue("/root/rex/data/firstjudgdd", model.getValue("/root/main/reptdetl/item/firstjudgdd"));
  411. var cnts1 = model.getValue("/root/rex/data/cnts1");
  412. var cnts2 = model.getValue("/root/rex/data/cnts2");
  413. var j = 0;
  414. var p = 0;
  415. var k = 0;
  416. model.makeNode("/root/rex/reptdetl");
  417. if ( cnts1.indexOf("\n",p ) >=0 ){
  418. while ( (j = cnts1.indexOf("\n",p ))>=0){
  419. var sdata = cnts1.substring( p, j );
  420. p = j + 1;
  421. k = k + 1;
  422. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
  423. }
  424. if ( p<cnts1.length){ // 제일 마지막 엔터 뒤 문장 처리
  425. var sdata = cnts1.substring( p, cnts1.length );
  426. k = k + 1;
  427. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", sdata.replace("\n","") );
  428. }
  429. } else { //엔터없을때 처리
  430. k = k + 1;
  431. model.makeNode("/root/rex/reptdetl");
  432. model.makeValue("/root/rex/reptdetl/item[1]/cnts1info["+k+"]/cnts1", cnts1);
  433. }
  434. var j = 0;
  435. var p = 0;
  436. var k = 0;
  437. if ( cnts2.indexOf("\n",p ) >=0 ){
  438. while ( (j = cnts2.indexOf("\n",p ))>=0){
  439. var sdata = cnts2.substring( p, j );
  440. p = j + 1;
  441. k = k + 1;
  442. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  443. }
  444. if ( p<cnts2.length){ // 제일 마지막 엔터 뒤 문장 처리
  445. var sdata = cnts2.substring( p, cnts2.length );
  446. k = k + 1;
  447. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", sdata.replace("\n","") );
  448. }
  449. } else { //엔터없을때 처리
  450. k = k + 1;
  451. model.makeNode("/root/rex/reptdetl");
  452. model.makeValue("/root/rex/reptdetl/item[1]/cnts2info["+k+"]/cnts2", cnts2);
  453. }
  454. exeReportPreview("PSIRB00200", "XMLSTR" , "/root/rex");
  455. }
  456. ]]>
  457. </script>
  458. </button>
  459. </xhtml:body>
  460. </xhtml:html>