SSIRB01200_연구자보고서.xrw 30 KB

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