SPIIA00106_보고서정보.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. <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. var nosave = opener.javascript.getParameter("nosave");
  98. model.setValue("/root/send/srchjudgappdg", judgappdg);
  99. model.setValue("/root/send/srchjudgkind", judgkind);
  100. model.setValue("/root/send/srchinstcd", instcd);
  101. model.setValue("/root/send/srchsubjid", subjid);
  102. model.setValue("/root/send/report", report);
  103. model.setValue("/root/send/srchreptkind", reptkind);
  104. model.setValue("/root/send/srchreptseqno", reptseqno);
  105. //보고서 조회에 필요한 값 설정
  106. model.setValue("/root/send/searchitem2/instcd", instcd);
  107. model.setValue("/root/send/searchitem2/subjid", subjid);
  108. model.setValue("/root/send/searchitem2/reptseqno",reptseqno);
  109. model.setValue("/root/send/searchitem2/reptkind", reptkind);
  110. model.setValue("/root/send/searchitem2/autosrchyn", "Y");
  111. if ( model.getValue("/root/send/srchjudgkind") == 'A' || model.getValue("/root/send/srchjudgkind") == 'B' ) {
  112. submit("TRIIA00168");
  113. } else {
  114. submit("TRIIA00165");
  115. }
  116. if(nosave =='Y'){
  117. button1.disabled=true;
  118. } else {
  119. button1.disabled=false;
  120. }
  121. model.setValue("/root/send/searchitem2/roothospidxcasecnt", model.getValue("/root/main/judgconf/subjinfo/roothospidxcasecnt"));
  122. model.setValue("/root/send/searchitem2/judgappdg", model.getValue("/root/main/judgconf/sjudgconf/judgappdg"));
  123. model.setValue("/root/send/searchitem2/subjno", model.getValue("/root/main/judgconf/subjinfo/subjno"));
  124. model.setValue("/root/send/searchitem2/subjnm", model.getValue("/root/main/judgconf/subjinfo/subjnm"));
  125. model.setValue("/root/send/searchitem2/resercnfmyn", "2");
  126. model.setValue("/root/send/searchitem2/autosrchyn", "Y");
  127. //해당 보고서별 iviewer 호출
  128. if ( reptkind == 1 ) {
  129. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00200_보완답변서.xrw";
  130. }
  131. else if ( reptkind == 2 ) {
  132. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00300_중간보고서.xrw";
  133. }
  134. else if ( reptkind == 3 ) {
  135. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00500_SAE(원내).xrw";
  136. }
  137. else if ( reptkind == 4 ) {
  138. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00600_SAE(원외).xrw";
  139. }
  140. else if ( reptkind == 5 ) {
  141. //iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00700_변경계획서.xrw";
  142. setParameter("instcd", model.getValue("/root/send/searchitem2/instcd"));
  143. setParameter("subjid", model.getValue("/root/send/searchitem2/subjid"));
  144. setParameter("reptseqno", model.getValue("/root/send/searchitem2/reptseqno"));
  145. setParameter("reptkind", model.getValue("/root/send/searchitem2/reptkind"));
  146. setParameter("totstdycost", model.getValue("/root/send/searchitem2/totstdycost"));
  147. setParameter("direccost", model.getValue("/root/send/searchitem2/direccost"));
  148. setParameter("reqinstcd", model.getValue("/root/send/searchitem2/reqinstcd"));
  149. setParameter("actionyn", "N");
  150. iviewer1.src = "../../reqsubjcmpyweb/xrw/SPIRB00100_과제변경항목.xrw";
  151. }
  152. else if ( reptkind == 6 ) {
  153. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00800_종료보고서.xrw";
  154. }
  155. else if ( reptkind == 7 ) {
  156. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00900_결과보고서.xrw";
  157. }
  158. else if ( reptkind == 8 ) {
  159. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB00400_지속심의.xrw";
  160. }
  161. else if ( reptkind == "A" ) {
  162. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01100_변동위반보고서.xrw";
  163. }
  164. else if ( reptkind == "B" ) {
  165. iviewer1.src = "../../reqsubjcmpyweb/xrw/SSIRB01200_연구자보고서.xrw";
  166. }
  167. else if (reptkind == 9 || reptkind == 0 ) {
  168. iviewer1.visible = false;
  169. }
  170. model.refresh();
  171. ]]>
  172. </script>
  173. <submission id="TRIIA00165" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgconf"/>
  174. <submission id="TXIIA00136" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem2"/>
  175. <submission id="TRIIA00168" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgconf"/>
  176. </model>
  177. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  178. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  179. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  180. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  181. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  183. </xhtml:head>
  184. <xhtml:body pagewidth="1220" pageheight="670" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  185. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1200px; height:640px; ">
  186. <caption id="caption35" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">보고서</caption>
  187. <button id="button19" class="btn2_letter2" style="left:820px; top:5px; width:42px; height:19px; ">
  188. <caption>닫기</caption>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. window.close();
  192. ]]>
  193. </script>
  194. </button>
  195. <line id="line15" class="line_1" style="x1:5px; y1:25px; x2:860px; y2:25px; "/>
  196. <caption id="caption37" class="cell_1" style="left:5px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">과제번호</caption>
  197. <input id="input32" ref="/root/main/judgconf/subjinfo/subjno" class="input_default" style="left:105px; top:57px; width:110px; height:19px; "/>
  198. <caption id="caption38" class="cell_1" style="left:5px; top:80px; width:95px; height:42px; text-align:center; vertical-align:middle; ">과제명</caption>
  199. <input id="input34" ref="/root/main/judgconf/subjinfo/itemnm" class="input_default" style="left:320px; top:57px; width:110px; height:19px; "/>
  200. <caption id="caption43" class="cell_1" style="left:220px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">품목명</caption>
  201. <caption id="caption44" class="cell_1" style="left:435px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">성분명</caption>
  202. <input id="input39" ref="/root/main/judgconf/subjinfo/comnm" class="input_default" style="left:535px; top:57px; width:110px; height:19px; "/>
  203. <caption id="caption47" class="cell_1" style="left:650px; top:55px; width:95px; height:23px; text-align:center; vertical-align:middle; ">시험책임자</caption>
  204. <input id="input40" ref="/root/main/judgconf/subjinfo/respstdynm" class="input_default" style="left:750px; top:57px; width:110px; height:19px; "/>
  205. <textarea id="textarea2" ref="/root/main/judgconf/subjinfo/subjnm" style="left:105px; top:80px; width:755px; height:42px; "/>
  206. <caption id="caption7" class="cell_1" style="left:5px; top:30px; width:95px; height:23px; text-align:center; vertical-align:middle; ">의뢰자</caption>
  207. <input id="input5" ref="/root/main/judgconf/subjinfo/cmpynm" class="input_default" style="left:105px; top:32px; width:755px; height:19px; "/>
  208. <iviewer id="iviewer1" style="left:5px; top:175px; width:1185px; height:460px; "/>
  209. <caption id="caption1" class="cell_1" style="left:5px; top:124px; width:95px; height:23px; text-align:center; vertical-align:middle; ">반려</caption>
  210. <caption id="caption2" class="cell_1" style="left:105px; top:125px; width:130px; height:23px; text-align:center; vertical-align:middle; ">반려일자</caption>
  211. <caption id="caption3" class="cell_1" style="left:240px; top:125px; width:620px; height:23px; text-align:center; vertical-align:middle; ">반려사유</caption>
  212. <input id="input1" ref="/root/send/rtnresn" class="input_default" disabled="true" style="left:240px; top:152px; width:620px; height:19px; "/>
  213. <input id="input2" ref="/root/send/rtndate" class="input_default" disabled="true" inputtype="date" style="left:105px; top:152px; width:130px; height:19px; "/>
  214. <bool id="bool1" ref="/root/send/rtnbtn" style="left:5px; top:152px; width:95px; height:20px; ">
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. if ( model.getValue("/root/send/rtnbtn") == 'true') {
  218. input2.disabled = false;
  219. input1.disabled = false;
  220. input2.value = getCurrentDate();
  221. } else {
  222. input2.disabled = true;
  223. input1.disabled = true;
  224. input2.value = "";
  225. }
  226. ]]>
  227. </script>
  228. </bool>
  229. <button id="button1" class="btn5_letter2" _auth="X" style="left:770px; top:5px; width:42px; height:19px; ">
  230. <caption>저장</caption>
  231. <script type="javascript" ev:event="onclick">
  232. <![CDATA[
  233. if ( model.getValue("/root/send/rtnbtn") == 'true' && model.getValue("/root/send/rtnresn") == '' ) {
  234. messageBox("반려사유는 필수입력사항은", "I003");
  235. return;
  236. } else {
  237. submit("TXIIA00136");
  238. }
  239. window.close();
  240. ]]>
  241. </script>
  242. </button>
  243. </group>
  244. </xhtml:body>
  245. </xhtml:html>