SPIIA00106_보고서정보.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. <judgconf>
  11. <sjudgconf>
  12. <subjid/>
  13. <judgkind/>
  14. <judgappdg/>
  15. <instcd/>
  16. <judgconfkind/>
  17. <judgrslt/>
  18. <allpsnno/>
  19. <attntrpsnno/>
  20. <appcnt/>
  21. <rejtcnt/>
  22. <rejtresn/>
  23. <judgnonentry/>
  24. <nonentryresn/>
  25. <judgitem1/>
  26. <judgitem2/>
  27. <judgitem3/>
  28. <judgitem4/>
  29. <judgitem5/>
  30. <judgitem6/>
  31. <judgitem7/>
  32. <judgitem8/>
  33. <m/>
  34. <conftm/>
  35. <allentry/>
  36. <confplc/>
  37. <judgdd/>
  38. </sjudgconf>
  39. <subjinfo>
  40. <subjno/>
  41. <itemnm/>
  42. <comnm/>
  43. <respstdyempno/>
  44. <respstdynm/>
  45. <subjnm/>
  46. <cmpynm/>
  47. <roothospidxcasecnt/>
  48. </subjinfo>
  49. </judgconf>
  50. <temp>
  51. <conft/>
  52. <confd/>
  53. </temp>
  54. </main>
  55. <send>
  56. <srchjudgappdg/>
  57. <srchjudgkind/>
  58. <srchsubjid/>
  59. <srchinstcd/>
  60. <srchreptkind/>
  61. <srchreptseqno/>
  62. <report/>
  63. <rtnbtn/>
  64. <rtndate/>
  65. <rtnresn/>
  66. <searchitem2>
  67. <instcd/>
  68. <subjid/>
  69. <reptseqno/>
  70. <reptkind/>
  71. <judgappdg/>
  72. <roothospidxcasecnt/>
  73. <subjno/>
  74. <subjnm/>
  75. <totstdycost/>
  76. <direccost/>
  77. <autosrchyn/>
  78. <resercnfmyn/>
  79. </searchitem2>
  80. </send>
  81. <init>
  82. </init>
  83. <hidden>
  84. </hidden>
  85. </root>
  86. </instance>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. var judgappdg = opener.javascript.getParameter("judgappdg");
  90. var judgkind = opener.javascript.getParameter("judgkind");
  91. var instcd = opener.javascript.getParameter("instcd");
  92. var subjid = opener.javascript.getParameter("subjid");
  93. var confyn = opener.javascript.getParameter("confyn");
  94. var reptkind = opener.javascript.getParameter("reptkind");
  95. var reptseqno = opener.javascript.getParameter("reptseqno");
  96. var report = opener.javascript.getParameter("report");
  97. model.setValue("/root/send/srchjudgappdg", judgappdg);
  98. model.setValue("/root/send/srchjudgkind", judgkind);
  99. model.setValue("/root/send/srchinstcd", instcd);
  100. model.setValue("/root/send/srchsubjid", subjid);
  101. model.setValue("/root/send/report", report);
  102. model.setValue("/root/send/srchreptkind", reptkind);
  103. model.setValue("/root/send/srchreptseqno", reptseqno);
  104. //보고서 조회에 필요한 값 설정
  105. model.setValue("/root/send/searchitem2/instcd", instcd);
  106. model.setValue("/root/send/searchitem2/subjid", subjid);
  107. model.setValue("/root/send/searchitem2/reptseqno",reptseqno);
  108. model.setValue("/root/send/searchitem2/reptkind", reptkind);
  109. model.setValue("/root/send/searchitem2/autosrchyn", "Y");
  110. if ( model.getValue("/root/send/srchjudgkind") == 'A' || model.getValue("/root/send/srchjudgkind") == 'B' ) {
  111. submit("TRIIA00114");
  112. } else {
  113. submit("TRIIA00111");
  114. }
  115. model.setValue("/root/send/searchitem2/roothospidxcasecnt", model.getValue("/root/main/judgconf/subjinfo/roothospidxcasecnt"));
  116. model.setValue("/root/send/searchitem2/judgappdg", model.getValue("/root/main/judgconf/sjudgconf/judgappdg"));
  117. model.setValue("/root/send/searchitem2/subjno", model.getValue("/root/main/judgconf/subjinfo/subjno"));
  118. model.setValue("/root/send/searchitem2/subjnm", model.getValue("/root/main/judgconf/subjinfo/subjnm"));
  119. model.setValue("/root/send/searchitem2/resercnfmyn", "2");
  120. model.setValue("/root/send/searchitem2/autosrchyn", "Y");
  121. //해당 보고서별 iviewer 호출
  122. if ( reptkind == 1 ) {
  123. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00200_보완답변서.xrw";
  124. }
  125. else if ( reptkind == 2 ) {
  126. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00300_중간보고서.xrw";
  127. }
  128. else if ( reptkind == 3 ) {
  129. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00500_SAE(원내).xrw";
  130. }
  131. else if ( reptkind == 4 ) {
  132. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00600_SAE(원외).xrw";
  133. }
  134. else if ( reptkind == 5 ) {
  135. //iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00700_변경계획서.xrw";
  136. setParameter("instcd", model.getValue("/root/send/searchitem2/instcd"));
  137. setParameter("subjid", model.getValue("/root/send/searchitem2/subjid"));
  138. setParameter("reptseqno", model.getValue("/root/send/searchitem2/reptseqno"));
  139. setParameter("reptkind", model.getValue("/root/send/searchitem2/reptkind"));
  140. setParameter("totstdycost", model.getValue("/root/send/searchitem2/totstdycost"));
  141. setParameter("direccost", model.getValue("/root/send/searchitem2/direccost"));
  142. setParameter("reqinstcd", model.getValue("/root/send/searchitem2/reqinstcd"));
  143. setParameter("actionyn", "N");
  144. iviewer1.src = "../../reqsubjcmpyweb/xrw/SPIRB00100_과제변경항목.xrw";
  145. }
  146. else if ( reptkind == 6 ) {
  147. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00800_종료보고서.xrw";
  148. }
  149. else if ( reptkind == 7 ) {
  150. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00900_결과보고서.xrw";
  151. }
  152. else if ( reptkind == 8 ) {
  153. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00400_지속심의.xrw";
  154. }
  155. else if ( reptkind == "A" ) {
  156. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01100_변동위반보고서.xrw";
  157. }
  158. else if ( reptkind == "B" ) {
  159. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01200_연구자보고서.xrw";
  160. }
  161. else if (reptkind == 9 || reptkind == 0 ) {
  162. iviewer1.visible = false;
  163. }
  164. model.refresh();
  165. ]]>
  166. </script>
  167. <submission id="TRIIA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgconf"/>
  168. <submission id="TXIIA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem2"/>
  169. <submission id="TRIIA00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgconf"/>
  170. </model>
  171. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  172. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  173. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  174. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  175. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  176. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  177. </xhtml:head>
  178. <xhtml:body pagewidth="1220" pageheight="670" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  179. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1200px; height:640px; ">
  180. <caption id="caption35" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">보고서</caption>
  181. <button id="button19" class="btn2_letter2" style="left:820px; top:5px; width:42px; height:19px; ">
  182. <caption>닫기</caption>
  183. <script type="javascript" ev:event="onclick">
  184. <![CDATA[
  185. window.close();
  186. ]]>
  187. </script>
  188. </button>
  189. <line id="line15" class="line_1" style="x1:5px; y1:25px; x2:860px; y2:25px; "/>
  190. <caption id="caption37" class="cell_1" style="left:5px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">과제번호</caption>
  191. <input id="input32" ref="/root/main/judgconf/subjinfo/subjno" class="input_default" style="left:105px; top:57px; width:110px; height:19px; "/>
  192. <caption id="caption38" class="cell_1" style="left:5px; top:80px; width:95px; height:42px; text-align:center; vertical-align:middle; ">과제명</caption>
  193. <input id="input34" ref="/root/main/judgconf/subjinfo/itemnm" class="input_default" style="left:320px; top:57px; width:110px; height:19px; "/>
  194. <caption id="caption43" class="cell_1" style="left:220px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">품목명</caption>
  195. <caption id="caption44" class="cell_1" style="left:435px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">성분명</caption>
  196. <input id="input39" ref="/root/main/judgconf/subjinfo/comnm" class="input_default" style="left:535px; top:57px; width:110px; height:19px; "/>
  197. <caption id="caption47" class="cell_1" style="left:650px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">시험책임자</caption>
  198. <input id="input40" ref="/root/main/judgconf/subjinfo/respstdynm" class="input_default" style="left:750px; top:57px; width:110px; height:19px; "/>
  199. <textarea id="textarea2" ref="/root/main/judgconf/subjinfo/subjnm" style="left:105px; top:80px; width:755px; height:42px; "/>
  200. <caption id="caption7" class="cell_1" style="left:5px; top:30px; width:95px; height:23px; text-align:center; vertical-align:middle; ">의뢰자</caption>
  201. <input id="input5" ref="/root/main/judgconf/subjinfo/cmpynm" class="input_default" style="left:105px; top:32px; width:755px; height:19px; "/>
  202. <iviewer id="iviewer1" style="left:5px; top:175px; width:1185px; height:460px; "/>
  203. <caption id="caption1" class="cell_1" style="left:5px; top:124px; width:95px; height:23px; text-align:center; vertical-align:middle; ">반려</caption>
  204. <caption id="caption2" class="cell_1" style="left:105px; top:125px; width:130px; height:23px; text-align:center; vertical-align:middle; ">반려일자</caption>
  205. <caption id="caption3" class="cell_1" style="left:240px; top:125px; width:620px; height:23px; text-align:center; vertical-align:middle; ">반려사유</caption>
  206. <input id="input1" ref="/root/send/rtnresn" class="input_default" disabled="true" style="left:240px; top:152px; width:620px; height:19px; "/>
  207. <input id="input2" ref="/root/send/rtndate" class="input_default" disabled="true" inputtype="date" style="left:105px; top:152px; width:130px; height:19px; "/>
  208. <bool id="bool1" ref="/root/send/rtnbtn" style="left:5px; top:152px; width:95px; height:20px; ">
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. if ( model.getValue("/root/send/rtnbtn") == 'true') {
  212. input2.disabled = false;
  213. input1.disabled = false;
  214. input2.value = getCurrentDate();
  215. } else {
  216. input2.disabled = true;
  217. input1.disabled = true;
  218. input2.value = "";
  219. }
  220. ]]>
  221. </script>
  222. </bool>
  223. <button id="button1" class="btn5_letter2" _auth="X" style="left:770px; top:5px; width:42px; height:19px; ">
  224. <caption>저장</caption>
  225. <script type="javascript" ev:event="onclick">
  226. <![CDATA[
  227. if ( model.getValue("/root/send/rtnbtn") == 'true' && model.getValue("/root/send/rtnresn") == '' ) {
  228. messageBox("반려사유는 필수입력사항은", "I003");
  229. return;
  230. } else {
  231. submit("TXIIA00116");
  232. }
  233. window.close();
  234. ]]>
  235. </script>
  236. </button>
  237. </group>
  238. </xhtml:body>
  239. </xhtml:html>