SMISB02000_연구자과제의뢰확인각종보고서.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. <mainlist>
  11. <reptlist>
  12. <acptdd/>
  13. <reptkind/>
  14. <subjno/>
  15. <cmpynm/>
  16. <itemnm/>
  17. <resercnfmyn/>
  18. <reserrtnresn/>
  19. <instcd/>
  20. <subjid/>
  21. <reptseqno/>
  22. <subjnm/>
  23. <roothospidxcasecnt/>
  24. <judgappdg/>
  25. <reptseqno/>
  26. <totstdycost/>
  27. <direccost/>
  28. <judgdd/>
  29. <irbjudgappdg/>
  30. <inptflag/>
  31. <rc/>
  32. <croinstcd/>
  33. <publicyn/>
  34. </reptlist>
  35. </mainlist>
  36. </main>
  37. <send>
  38. <data>
  39. <resercnfmyn>1</resercnfmyn>
  40. <reptkind/>
  41. <acptdd1/>
  42. <acptdd2/>
  43. <cmpynm/>
  44. <itemnm/>
  45. <userid>10301936</userid>
  46. <screenmenu/>
  47. </data>
  48. <searchitem>
  49. <instcd/>
  50. <subjid/>
  51. <reptkind/>
  52. </searchitem>
  53. <searchitem2>
  54. <instcd/>
  55. <subjid/>
  56. <reptseqno/>
  57. <reptkind/>
  58. <judgappdg/>
  59. <roothospidxcasecnt/>
  60. <subjno/>
  61. <subjnm/>
  62. <totstdycost/>
  63. <direccost/>
  64. <autosrchyn/>
  65. <actionyn/>
  66. <judgdd/>
  67. <resercnfmyn/>
  68. </searchitem2>
  69. <data2>
  70. <subjid/>
  71. <instcd/>
  72. <confyn/>
  73. <reserrtnresn/>
  74. <reptkind/>
  75. <reptseqno/>
  76. <screenmenu/>
  77. <inptflag/>
  78. <rc/>
  79. <croinstcd/>
  80. <publicyn/>
  81. </data2>
  82. </send>
  83. <hidden>
  84. <item/>
  85. </hidden>
  86. </root>
  87. </instance>
  88. <submission id="TRISB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/mainlist"/>
  89. <submission id="TXISB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden"/>
  90. </model>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. model.setValue("/root/send/data/acptdd1", (((getCurrentDate()).toDate("YYYYMMDD")).getAddDate(-1,"Y")).getDateFormat("YYYYMMDD") );
  94. model.setValue("/root/send/data/acptdd2", getCurrentDate());
  95. model.setValue("/root/send/data/screenmenu", getScreenMenuParameter());
  96. //Test
  97. //model.setValue("/root/send/data/screenmenu", "R" );
  98. var screenmenu = model.getValue("/root/send/data/screenmenu");
  99. /*if ( screenmenu == 'C' ) {
  100. grd_reptlist.caption = "의뢰일자^보고서종류^과제번호^의뢰자^품목명^의뢰자확인^의뢰자반려사유^instcd^subjid^reptseqno^subjnm^roothospidxcasecnt^judgappdg^reptseqno";
  101. } else {
  102. //grd_reptlist.caption = "의뢰일자^보고서종류^과제번호^의뢰자^품목명^연구자확인^연구자반려사유^instcd^subjid^reptseqno^subjnm^roothospidxcasecnt^judgappdg^reptseqno";
  103. grd_reptlist.caption = "작성자^의뢰일자^보고서종류^과제번호^의뢰자^품목명^연구자확인^연구자반려사유^instcd^subjid^reptseqno^subjnm^roothospidxcasecnt^judgappdg^reptseqno^caption1^caption3^caption4";
  104. }*/
  105. //20090518 이창록 수정
  106. if ( screenmenu == "C" ) {
  107. grd_reptlist.colHidden(grd_reptlist.colRef("rc"))=true;
  108. }
  109. submit("TRISB02001");
  110. //model.refresh();
  111. ]]>
  112. </script>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. </xhtml:head>
  117. <xhtml:body>
  118. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
  119. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">각종보고서확인</caption>
  120. </group>
  121. <group id="group3" style="left:0px; top:15px; width:1194px; height:37px; vertical-align:top; ">
  122. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  123. <caption id="caption11" class="search_name" style="left:10px; top:8px; width:86px; height:17px; text-align:left; ">확인유무 :</caption>
  124. <select1 id="combo1" ref="/root/send/data/resercnfmyn" class="combo_search" appearance="minimal" style="left:99px; top:8px; width:71px; height:19px; ">
  125. <choices>
  126. <item>
  127. <label>전체</label>
  128. <value/>
  129. </item>
  130. <item>
  131. <label>확인</label>
  132. <value>2</value>
  133. </item>
  134. <item>
  135. <label>미확인</label>
  136. <value>1</value>
  137. </item>
  138. <item>
  139. <label>반려</label>
  140. <value>3</value>
  141. </item>
  142. </choices>
  143. </select1>
  144. <caption id="caption1" class="search_name" style="left:445px; top:8px; width:86px; height:17px; text-align:left; ">의뢰일자 :</caption>
  145. <caption id="caption2" class="search_name" style="left:731px; top:8px; width:86px; height:17px; text-align:left; ">의뢰자 :</caption>
  146. <input id="ipt_itemnm" ref="/root/send/data/cmpynm" class="input_search" style="left:805px; top:8px; width:100px; height:17px; ">
  147. <script type="javascript" ev:event="onkeyup">
  148. <![CDATA[
  149. inputEnterKey("btn_sea","DOMActivate");
  150. ]]>
  151. </script>
  152. </input>
  153. <button id="btn_sea" class="btn1_letter2" _auth="R" style="left:1127px; top:6px; width:56px; height:22px; ">
  154. <caption>조회</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. submit("TRISB02001");
  158. //model.setValue("/root/send/srchitemnm",model.getValue("/root/send/srchitemnm")+"%");
  159. //submit("TRIIS01101");
  160. //model.setValue("/root/send/srchitemnm","");
  161. //model.refresh();
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line1" class="line_4" style="x1:1117px; y1:9px; x2:1117px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  166. <select1 id="combo2" ref="/root/send/data/reptkind" class="combo_search" appearance="minimal" style="left:280px; top:8px; width:160px; height:19px; ">
  167. <choices>
  168. <item>
  169. <label>전체</label>
  170. <value/>
  171. </item>
  172. <item>
  173. <label>보완답변서</label>
  174. <value>1</value>
  175. </item>
  176. <item>
  177. <label>중간보고서</label>
  178. <value>2</value>
  179. </item>
  180. <item>
  181. <label>SAE(원내)</label>
  182. <value>3</value>
  183. </item>
  184. <item>
  185. <label>SAE(원외)</label>
  186. <value>4</value>
  187. </item>
  188. <item>
  189. <label>변경계획서</label>
  190. <value>5</value>
  191. </item>
  192. <item>
  193. <label>종료보고서</label>
  194. <value>6</value>
  195. </item>
  196. <item>
  197. <label>결과보고서</label>
  198. <value>7</value>
  199. </item>
  200. <item>
  201. <label>지속심의서</label>
  202. <value>8</value>
  203. </item>
  204. </choices>
  205. </select1>
  206. <caption id="caption3" class="search_name" style="left:176px; top:8px; width:99px; height:17px; text-align:left; ">보고서종류 :</caption>
  207. <input id="input1" ref="/root/send/data/itemnm" class="input_search" style="left:990px; top:8px; width:120px; height:19px; ">
  208. <script type="javascript" ev:event="onkeyup">
  209. <![CDATA[
  210. inputEnterKey("btn_sea","DOMActivate");
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption4" class="search_name" style="left:916px; top:8px; width:86px; height:17px; text-align:left; ">품목명 :</caption>
  215. <input id="ipt_date1" ref="/root/send/data/acptdd1" class="input_default" inputtype="date" style="left:535px; top:7px; width:90px; height:19px; "/>
  216. <input id="ipt_date2" ref="/root/send/data/acptdd2" class="input_default" inputtype="date" style="left:630px; top:7px; width:90px; height:19px; "/>
  217. </group>
  218. <line id="line2" class="line_1" style="x1:5px; y1:55px; x2:1195px; y2:55px; "/>
  219. <iviewer id="iviewer1" style="left:0px; top:290px; width:1195px; height:475px; "/>
  220. <line id="line9" class="line_3" style="x1:5px; y1:267px; x2:1195px; y2:267px; "/>
  221. <caption id="caption13" class="tit_2" style="left:10px; top:275px; width:140px; height:13px; ">작성된 내용</caption>
  222. <caption id="caption85" class="tit_2" style="left:352px; top:273px; width:120px; height:14px; ">확인여부</caption>
  223. <caption id="caption86" class="tit_2" style="left:750px; top:273px; width:70px; height:13px; ">반려사유</caption>
  224. <datagrid id="grd_reptlist" nodeset="/root/main/mainlist/reptlist" caption="작성자^의뢰일자^보고서종류^과제번호^의뢰자^품목명^연구자확인^연구자반려사유^instcd^subjid^reptseqno^subjnm^roothospidxcasecnt^judgappdg^reptseqno^caption1^caption3^caption4" colsep="^" colwidth="96, 100, 100, 100, 150, 150, 95, 349, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:60px; width:1190px; height:205px; ">
  225. <col disabled="true" ref="rc" type="combo">
  226. <choices>
  227. <item>
  228. <label>책임연구자</label>
  229. <value>R</value>
  230. </item>
  231. <item>
  232. <label>의뢰자</label>
  233. <value>C</value>
  234. </item>
  235. <item>
  236. <label>공동연구자</label>
  237. <value>P</value>
  238. </item>
  239. </choices>
  240. </col>
  241. <col ref="acptdd" type="inputdate"/>
  242. <col disabled="true" ref="reptkind" type="combo" style="text-align:center; ">
  243. <choices>
  244. <item>
  245. <label>보완답변서</label>
  246. <value>1</value>
  247. </item>
  248. <item>
  249. <label>중간보고서</label>
  250. <value>2</value>
  251. </item>
  252. <item>
  253. <label>SAE(원내)</label>
  254. <value>3</value>
  255. </item>
  256. <item>
  257. <label>SAE(원외)</label>
  258. <value>4</value>
  259. </item>
  260. <item>
  261. <label>변경계획서</label>
  262. <value>5</value>
  263. </item>
  264. <item>
  265. <label>종료보고서</label>
  266. <value>6</value>
  267. </item>
  268. <item>
  269. <label>결과보고서</label>
  270. <value>7</value>
  271. </item>
  272. <item>
  273. <label>지속심의서</label>
  274. <value>8</value>
  275. </item>
  276. <item>
  277. <label>변동/위반보고서</label>
  278. <value>A</value>
  279. </item>
  280. <item>
  281. <label>연구자보고서</label>
  282. <value>B</value>
  283. </item>
  284. </choices>
  285. </col>
  286. <col ref="subjno"/>
  287. <col ref="cmpynm"/>
  288. <col ref="itemnm"/>
  289. <col disabled="true" ref="resercnfmyn" type="combo" style="text-align:center; ">
  290. <choices>
  291. <item>
  292. <label>미확인</label>
  293. <value>1</value>
  294. </item>
  295. <item>
  296. <label>확인</label>
  297. <value>2</value>
  298. </item>
  299. <item>
  300. <label>반려</label>
  301. <value>3</value>
  302. </item>
  303. </choices>
  304. </col>
  305. <col ref="reserrtnresn"/>
  306. <col ref="instcd" visibility="hidden"/>
  307. <col ref="subjid" visibility="hidden"/>
  308. <col ref="reptseqno" visibility="hidden"/>
  309. <col ref="subjnm" visibility="hidden"/>
  310. <col ref="roothospidxcasecnt" visibility="hidden"/>
  311. <col ref="judgappdg" visibility="hidden"/>
  312. <col ref="reptseqno" visibility="hidden"/>
  313. <col ref="inptflag" visibility="hidden"/>
  314. <col ref="croinstcd" visibility="hidden"/>
  315. <col ref="publicyn" visibility="hidden"/>
  316. <script type="javascript" ev:event="onclick">
  317. <![CDATA[
  318. if ( isDataCell() ) {
  319. model.setValue("/root/send/data2/subjid",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/subjid"));
  320. model.setValue("/root/send/data2/instcd",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/instcd"));
  321. model.setValue("/root/send/data2/reptkind",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind"));
  322. model.setValue("/root/send/data2/reptseqno",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptseqno"));
  323. model.setValue("/root/send/data2/inptflag",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/inptflag"));
  324. model.setValue("/root/send/data2/rc",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/rc"));
  325. model.setValue("/root/send/data2/croinstcd",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/croinstcd"));
  326. model.setValue("/root/send/data2/publicyn",model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/publicyn"));
  327. iviewer1.visible = true;
  328. model.setValue("/root/send/searchitem2/subjid", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/subjid"));
  329. model.setValue("/root/send/searchitem2/instcd", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/instcd"));
  330. model.setValue("/root/send/searchitem2/reptseqno", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptseqno"));
  331. model.setValue("/root/send/searchitem2/reptkind", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind"));
  332. model.setValue("/root/send/searchitem2/judgappdg", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/judgappdg"));
  333. model.setValue("/root/send/searchitem2/judgdd", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/judgdd"));
  334. model.setValue("/root/send/searchitem2/roothospidxcasecnt", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/roothospidxcasecnt"));
  335. model.setValue("/root/send/searchitem2/subjno", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/subjno"));
  336. model.setValue("/root/send/searchitem2/subjnm", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/subjnm"));
  337. model.setValue("/root/send/searchitem2/resercnfmyn", model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/resercnfmyn"));
  338. model.setValue("/root/send/searchitem2/autosrchyn", "Y");
  339. setParameter("actionyn", "N");
  340. model.refresh();
  341. //해당 보고서별 iviewer 호출
  342. if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 1 ) {
  343. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00200_보완답변서.xrw";
  344. }
  345. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 2 ) {
  346. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00300_중간보고서.xrw";
  347. }
  348. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 3 )
  349. {
  350. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00500_SAE(원내).xrw";
  351. }
  352. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 4 ) {
  353. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00600_SAE(원외).xrw";
  354. }
  355. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 5 ) {
  356. //iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00700_변경계획서.xrw";
  357. setParameter("instcd", model.getValue("/root/send/searchitem2/instcd"));
  358. setParameter("subjid", model.getValue("/root/send/searchitem2/subjid"));
  359. setParameter("reptseqno", model.getValue("/root/send/searchitem2/reptseqno"));
  360. setParameter("reptkind", model.getValue("/root/send/searchitem2/reptkind"));
  361. setParameter("totstdycost", model.getValue("/root/send/searchitem2/totstdycost"));
  362. setParameter("direccost", model.getValue("/root/send/searchitem2/direccost"));
  363. setParameter("reqinstcd", model.getValue("/root/send/searchitem2/reqinstcd"));
  364. setParameter("actionyn", "N");
  365. // window.load("../../../crc/reqsubjcmpyweb/xrw/SPIRB00100_과제변경항목.xrw","modal","code", "left:200px; top:50px; width:1500px; height:540px;min:hidden;max:hidden;resize:false;" ,"", "");
  366. iviewer1.src = "../../reqsubjcmpyweb/xrw/SPIRB00100_과제변경항목.xrw";
  367. }
  368. else if (model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 6 ) {
  369. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00800_종료보고서.xrw";
  370. }
  371. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 7 ) {
  372. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00900_결과보고서.xrw";
  373. }
  374. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == 8 ) {
  375. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00400_지속심의.xrw";
  376. }
  377. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == "A" ) {
  378. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01100_변동위반보고서.xrw";
  379. }
  380. else if ( model.getValue("/root/main/mainlist/reptlist["+grd_reptlist.row+"]/reptkind") == "B" ) {
  381. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01200_연구자보고서.xrw";
  382. }
  383. }
  384. ]]>
  385. </script>
  386. </datagrid>
  387. <button id="btn_save" class="btn5_letter2" _auth="X" style="left:1150px; top:270px; width:42px; height:19px; ">
  388. <caption>저장</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. if ( model.getValue("/root/main/mainlist/reptlist["+ grd_reptlist.row +"]/irbjudgappdg") != '-' ) {
  392. messageBox("IRB 심의를 한 보고서입니다. 수정하실 수 없습니다.", "I999");
  393. return;
  394. }
  395. if ( model.getValue("/root/send/data2/confyn") == '3' && model.getValue("/root/send/data2/reserrtnresn") == "" ) {
  396. messageBox("반려사유는 필수입력항목입니다.", "I");
  397. return;
  398. } else if ( model.getValue("/root/send/data2/confyn") == '' ) {
  399. messageBox("확인여부를 선택하여 주십시오.", "I999");
  400. return;
  401. } else {
  402. model.setValue("/root/send/data2/screenmenu", model.getValue("/root/send/data/screenmenu"));
  403. submit("TXISB02001");
  404. /*
  405. if ( model.getValue("/root/send/data2/reptkind") == '5' && model.getValue("/root/send/data2/confyn") =='2' ) {
  406. if ( iviewer1.model.getValue("/root/main/updtsubj/item/direccost") != 0 || iviewer1.model.getValue("/root/main/updtsubj/item/direccost") != '' ) {
  407. setParameter("subjid", model.getValue("/root/send/data2/subjid"));
  408. setParameter("instcd", model.getValue("/root/send/data2/instcd"));
  409. open("SMISA00102");
  410. }
  411. } */
  412. }
  413. cmb_confyn.select(0);
  414. model.setValue("/root/send/data2/reserrtnresn","");
  415. submit("TRISB02001");
  416. ]]>
  417. </script>
  418. </button>
  419. <select1 id="cmb_confyn" ref="/root/send/data2/confyn" class="combo_search" appearance="minimal" style="left:422px; top:270px; width:293px; height:19px; ">
  420. <choices>
  421. <item>
  422. <label>- 선택 -</label>
  423. <value/>
  424. </item>
  425. <item>
  426. <label>미확인</label>
  427. <value>1</value>
  428. </item>
  429. <item>
  430. <label>확인</label>
  431. <value>2</value>
  432. </item>
  433. <item>
  434. <label>반려</label>
  435. <value>3</value>
  436. </item>
  437. </choices>
  438. </select1>
  439. <input id="ipt_reserrtnresn" ref="/root/send/data2/reserrtnresn" class="input_default" style="left:820px; top:270px; width:325px; height:19px; "/>
  440. </xhtml:body>
  441. </xhtml:html>