SMRIF02720_연구비 정산서.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <repdetl>
  11. <R0272001/>
  12. <R0272002/>
  13. <R0272003/>
  14. <R0272004/>
  15. <R0272005/>
  16. <R0272006/>
  17. <R0272007/>
  18. <R0272008/>
  19. <R0272009/>
  20. <R0272010/>
  21. <R0272011/>
  22. <R0272012/>
  23. <R0272013/>
  24. <R0272014/>
  25. <R0272015/>
  26. <R0272016/>
  27. <R0272017/>
  28. <R0272018/>
  29. <R0272019/>
  30. <R0272020/>
  31. <R0272021/>
  32. <R0272022/>
  33. <R0272023/>
  34. <R0272024/>
  35. <R0272025/>
  36. <R0272026/>
  37. <R0272027/>
  38. <R0272028/>
  39. <R0272029/>
  40. <R0272030/>
  41. <R0272031/>
  42. <R0272032/>
  43. <R0272033/>
  44. <R0272034/>
  45. <R0272035/>
  46. <R0272036/>
  47. </repdetl>
  48. <repmain>
  49. <inistcd/>
  50. <bsdd/>
  51. <projcd/>
  52. <projnm/>
  53. <reptcd/>
  54. <reptnm/>
  55. <rshid/>
  56. <rshnm/>
  57. <bsid/>
  58. <bsnm/>
  59. <seqno/>
  60. </repmain>
  61. </main>
  62. <send/>
  63. <init/>
  64. <hidden>
  65. </hidden>
  66. <temp/>
  67. </root>
  68. </instance>
  69. <instance id="instance2">
  70. <root/>
  71. </instance>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../mis/ctmsweb/js/SMRIF02101.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. function fSetInitData(){
  82. //보고서 기본값 셋팅.
  83. model.setValue("/root/main/repdetl/R0272001",model.getValue("/root/main/repmain/projnm"));
  84. model.setValue("/root/main/repdetl/R0272002",model.getValue("/root/main/repmain/empldeptnm"));
  85. model.setValue("/root/main/repdetl/R0272003",model.getValue("/root/main/repmain/rshnm"));
  86. model.setValue("/root/main/repdetl/R0272004",model.getValue("/root/main/repmain/fromdd"));
  87. model.setValue("/root/main/repdetl/R0272005",model.getValue("/root/main/repmain/todd"));
  88. //model.setValue("/root/main/repdetl/R0272006",model.getValue("/root/main/repmain/reqfirm"));
  89. model.setValue("/root/main/repdetl/R0272007",model.getValue("/root/main/repmain/projamt"));
  90. var sBigo0 = "원내 연구비 과제";
  91. var sBigo1 = " * 연구기자재 임차료, 시설비 \n * 연구기자재구입비";
  92. var sBigo2 = " * 시약.재료구입비, 시험분석료 \n * 외부전산처리비";
  93. var sBigo3 = " * 시제품. 시작품. 시험설비 제작경비";
  94. var sBigo4 = " * 국내여비";
  95. var sBigo5 = " * 제세공과금(우편, 전화사용료 등) \n * 인쇄비, 복사비, 슬라이드 제작비\n * 사무용품비, 비품/소모품구입비";
  96. var sBigo6 = " * 회의비(원내과제 인정안됨), \n * 세미나(학회) 참가비\n * 전문가자문료, 원고료, 번역료...\n * 도서, 자료구입비";
  97. var sBigo7 = " * 회의식대(원내과제 인정안됨)";
  98. var sBigo8 = " * 인센티브(참여연구원의 보상. 장려금) \n (원내과제 인정안됨)";
  99. var sBigo9 = " *외부위탁 연구의뢰비(원내과제 인정안됨)";
  100. model.setValue("/root/main/repdetl/R0272006",sBigo0);
  101. model.setValue("/root/main/repdetl/R0272017",sBigo1);
  102. model.setValue("/root/main/repdetl/R0272019",sBigo2);
  103. model.setValue("/root/main/repdetl/R0272021",sBigo3);
  104. model.setValue("/root/main/repdetl/R0272023",sBigo4);
  105. model.setValue("/root/main/repdetl/R0272025",sBigo5);
  106. model.setValue("/root/main/repdetl/R0272027",sBigo6);
  107. model.setValue("/root/main/repdetl/R0272029",sBigo7);
  108. model.setValue("/root/main/repdetl/R0272032",sBigo8);
  109. model.setValue("/root/main/repdetl/R0272034",sBigo9);
  110. model.refresh();
  111. }
  112. function fAmtCalc(){
  113. var amt1 = model.getValue("/root/main/repdetl/R0272011");
  114. var amt2 = model.getValue("/root/main/repdetl/R0272014");
  115. var amt3 = model.getValue("/root/main/repdetl/R0272016");
  116. var amt4 = model.getValue("/root/main/repdetl/R0272018");
  117. var amt5 = model.getValue("/root/main/repdetl/R0272020");
  118. var amt6 = model.getValue("/root/main/repdetl/R0272022");
  119. var amt7 = model.getValue("/root/main/repdetl/R0272024");
  120. var amt8 = model.getValue("/root/main/repdetl/R0272026");
  121. var amt9 = model.getValue("/root/main/repdetl/R0272028");
  122. var amt10 = model.getValue("/root/main/repdetl/R0272031");
  123. var amt11 = model.getValue("/root/main/repdetl/R0272033");
  124. if( amt1.length == 0 ){ amt1 = 0; }else{ amt1 = parseInt(amt1); }
  125. if( amt2.length == 0 ){ amt2 = 0; }else{ amt2 = parseInt(amt2); }
  126. if( amt3.length == 0 ){ amt3 = 0; }else{ amt3 = parseInt(amt3); }
  127. if( amt4.length == 0 ){ amt4 = 0; }else{ amt4 = parseInt(amt4); }
  128. if( amt5.length == 0 ){ amt5 = 0; }else{ amt5 = parseInt(amt5); }
  129. if( amt6.length == 0 ){ amt6 = 0; }else{ amt6 = parseInt(amt6); }
  130. if( amt7.length == 0 ){ amt7 = 0; }else{ amt7 = parseInt(amt7); }
  131. if( amt8.length == 0 ){ amt8 = 0; }else{ amt8 = parseInt(amt8); }
  132. if( amt9.length == 0 ){ amt9 = 0; }else{ amt9 = parseInt(amt9); }
  133. if( amt10.length == 0 ){ amt10 = 0; }else{ amt10 = parseInt(amt10); }
  134. if( amt11.length == 0 ){ amt11 = 0; }else{ amt11 = parseInt(amt11); }
  135. model.setValue("/root/main/repdetl/R0272035", (amt1+amt2+amt3+amt4+amt5+amt6+amt7+amt8+amt9+amt10+amt11) );
  136. model.refresh();
  137. }
  138. // 최종저장시 한번더 계산
  139. function fLastAmtSave(){
  140. fAmtCalc();
  141. }
  142. ]]>
  143. </script>
  144. </xhtml:head>
  145. <xhtml:body pagewidth="660">
  146. <script type="javascript" ev:event="onloadcomplete">
  147. <![CDATA[
  148. fSetInitData(); // <-- 개인적으로 처리해야 할 로직 삽입
  149. ]]>
  150. </script>
  151. <group id="group3" style="left:0px; top:45px; width:649px; height:82px; padding:1; border-style:inset; ">
  152. <caption id="caption15" class="cell_1" style="left:449px; top:0px; width:40px; height:19px; ">소속</caption>
  153. <input id="input9" ref="/root/main/repdetl/R0272002" navindex="2" style="left:489px; top:0px; width:157px; height:19px; "/>
  154. <caption id="caption16" class="cell_1" style="left:449px; top:20px; width:40px; height:19px; ">성명</caption>
  155. <caption id="caption17" class="cell_1" style="left:0px; top:0px; width:64px; height:39px; ">과제명</caption>
  156. <caption id="caption18" class="cell_1" style="left:0px; top:40px; width:64px; height:19px; ">연구기간</caption>
  157. <caption id="caption19" class="cell_1" style="left:0px; top:60px; width:84px; height:19px; text-align:center; ">연구비 총액</caption>
  158. <caption id="caption20" class="cell_1" style="left:394px; top:0px; width:54px; height:39px; text-align:center; ">
  159. <![CDATA[연구
  160. 책임자]]>
  161. </caption>
  162. <caption id="caption21" class="cell_1" style="left:298px; top:40px; width:95px; height:19px; ">연구 의뢰기관</caption>
  163. <input id="input10" ref="/root/main/repdetl/R0272003" navindex="3" style="left:489px; top:20px; width:129px; height:19px; "/>
  164. <input id="input11" ref="/root/main/repdetl/R0272004" navindex="4" inputtype="date" style="left:65px; top:40px; width:100px; height:19px; "/>
  165. <input id="input12" ref="/root/main/repdetl/R0272005" navindex="5" inputtype="date" style="left:197px; top:40px; width:100px; height:19px; "/>
  166. <caption id="caption22" style="left:173px; top:40px; width:20px; height:20px; ">~</caption>
  167. <textarea id="textarea2" ref="/root/main/repdetl/R0272001" navindex="1" scroll="autovscroll" style="left:65px; top:0px; width:328px; height:39px; font-size:8pt; text-align:left; vertical-align:middle; "/>
  168. <caption id="caption23" style="left:622px; top:20px; width:25px; height:19px; ">(인)</caption>
  169. <input id="input13" ref="/root/main/repdetl/R0272006" navindex="6" style="left:394px; top:40px; width:252px; height:19px; "/>
  170. <caption id="caption24" class="cell_1" style="left:238px; top:60px; width:59px; height:19px; text-align:center; ">정산액</caption>
  171. <caption id="caption25" class="cell_1" style="left:449px; top:60px; width:50px; height:19px; text-align:center; ">잔액</caption>
  172. <caption id="caption26" style="left:220px; top:61px; width:15px; height:19px; ">원</caption>
  173. <caption id="caption27" style="left:426px; top:61px; width:15px; height:19px; ">원</caption>
  174. <caption id="caption28" style="left:627px; top:61px; width:15px; height:19px; ">원</caption>
  175. <input id="input22" ref="/root/main/repdetl/R0272007" navindex="7" format="#,###" style="left:85px; top:60px; width:131px; height:19px; text-align:right; "/>
  176. <input id="input23" ref="/root/main/repdetl/R0272008" navindex="8" format="#,###" style="left:298px; top:60px; width:122px; height:19px; text-align:right; "/>
  177. <input id="input24" ref="/root/main/repdetl/R0272009" navindex="9" format="#,###" style="left:500px; top:60px; width:124px; height:19px; text-align:right; "/>
  178. </group>
  179. <caption id="caption1" style="left:120px; top:0px; width:430px; height:36px; font-family:맑은 고딕; font-size:18pt; font-weight:bold; text-decoration:underline; text-align:center; ">연 구 비 정 산 서</caption>
  180. <caption id="caption2" style="left:5px; top:155px; width:210px; height:20px; font-weight:bold; ">정산내역 (상세하게 기재)</caption>
  181. <group id="group1" style="left:0px; top:175px; width:650px; height:435px; ">
  182. <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:55px; height:24px; text-align:center; ">목</caption>
  183. <caption id="caption3" class="cell_1" style="left:56px; top:0px; width:75px; height:24px; text-align:center; ">세목</caption>
  184. <caption id="caption4" class="cell_1" style="left:0px; top:25px; width:55px; height:39px; text-align:center; ">인건비</caption>
  185. <caption id="caption5" class="cell_1" style="left:316px; top:0px; width:98px; height:24px; text-align:center; ">사용금액 (원)</caption>
  186. <caption id="caption6" class="cell_1" style="left:415px; top:0px; width:235px; height:24px; text-align:center; ">비 고</caption>
  187. <caption id="caption8" class="cell_1" style="left:56px; top:65px; width:75px; height:91px; text-align:center; ">
  188. <![CDATA[연구장비
  189. 재료비]]>
  190. </caption>
  191. <caption id="caption9" class="cell_1" style="left:132px; top:0px; width:183px; height:24px; text-align:center; ">세세목</caption>
  192. <caption id="caption10" class="cell_1" style="left:132px; top:65px; width:183px; height:35px; text-align:center; ">연구기자재 및 시설비</caption>
  193. <caption id="caption11" class="cell_1" style="left:56px; top:25px; width:75px; height:19px; font-size:9pt; text-align:center; ">내부 인건비</caption>
  194. <caption id="caption12" class="cell_1" style="left:56px; top:45px; width:75px; height:19px; font-size:9pt; text-align:center; ">외부 인건비</caption>
  195. <input id="input1" ref="/root/main/repdetl/R0272010" navindex="10" style="left:132px; top:25px; width:183px; height:19px; "/>
  196. <input id="input2" ref="/root/main/repdetl/R0272011" navindex="11" style="left:316px; top:25px; width:98px; height:19px; text-align:right; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. fAmtCalc();
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </input>
  204. <input id="input3" ref="/root/main/repdetl/R0272012" navindex="12" style="left:415px; top:25px; width:235px; height:19px; "/>
  205. <input id="input4" ref="/root/main/repdetl/R0272013" navindex="13" style="left:132px; top:45px; width:183px; height:19px; "/>
  206. <input id="input5" ref="/root/main/repdetl/R0272014" navindex="14" style="left:316px; top:45px; width:98px; height:19px; text-align:right; ">
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. fAmtCalc();
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </input>
  214. <input id="input6" ref="/root/main/repdetl/R0272015" navindex="15" style="left:415px; top:45px; width:235px; height:19px; "/>
  215. <caption id="caption14" class="cell_1" style="left:0px; top:65px; width:55px; height:300px; text-align:center; ">인건비</caption>
  216. <caption id="caption29" class="cell_1" style="left:132px; top:101px; width:183px; height:35px; text-align:center; ">재료비 및 전산처리비</caption>
  217. <textarea id="textarea1" ref="/root/main/repdetl/R0272016" navindex="16" scroll="autohscroll" style="left:316px; top:65px; width:98px; height:35px; text-align:right; vertical-align:middle; ">
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. fAmtCalc();
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </textarea>
  225. <textarea id="textarea6" ref="/root/main/repdetl/R0272018" navindex="18" scroll="autohscroll" style="left:316px; top:101px; width:98px; height:35px; text-align:right; vertical-align:middle; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. fAmtCalc();
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </textarea>
  233. <input id="input7" ref="/root/main/repdetl/R0272020" navindex="20" style="left:316px; top:137px; width:98px; height:19px; text-align:right; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. fAmtCalc();
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </input>
  241. <caption id="caption30" class="cell_1" style="left:132px; top:137px; width:183px; height:19px; font-size:9pt; text-align:center; ">시작품 제작비</caption>
  242. <input id="input8" ref="/root/main/repdetl/R0272022" navindex="22" style="left:316px; top:157px; width:98px; height:19px; text-align:right; ">
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. fAmtCalc();
  246. model.refresh();
  247. ]]>
  248. </script>
  249. </input>
  250. <caption id="caption13" class="cell_1" style="left:132px; top:157px; width:183px; height:19px; font-size:9pt; text-align:center; ">여비</caption>
  251. <caption id="caption35" class="cell_1" style="left:132px; top:177px; width:183px; height:53px; font-size:9pt; text-align:center; ">
  252. <![CDATA[수용비
  253. 및 수수료]]>
  254. </caption>
  255. <textarea id="textarea7" ref="/root/main/repdetl/R0272024" navindex="24" scroll="autohscroll" style="left:316px; top:177px; width:98px; height:53px; text-align:right; vertical-align:middle; ">
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. fAmtCalc();
  259. model.refresh();
  260. ]]>
  261. </script>
  262. </textarea>
  263. <textarea id="textarea8" ref="/root/main/repdetl/R0272026" navindex="26" scroll="autohscroll" style="left:316px; top:231px; width:98px; height:78px; text-align:right; vertical-align:middle; ">
  264. <script type="javascript" ev:event="xforms-value-changed">
  265. <![CDATA[
  266. fAmtCalc();
  267. model.refresh();
  268. ]]>
  269. </script>
  270. </textarea>
  271. <caption id="caption37" class="cell_1" style="left:132px; top:231px; width:183px; height:78px; font-size:9pt; text-align:center; ">
  272. <![CDATA[기술정보
  273. 활동비]]>
  274. </caption>
  275. <caption id="caption39" class="cell_1" style="left:56px; top:157px; width:75px; height:172px; text-align:center; ">
  276. <![CDATA[연구
  277. 활동비 ]]>
  278. </caption>
  279. <input id="input14" ref="/root/main/repdetl/R0272028" navindex="28" style="left:316px; top:310px; width:98px; height:19px; text-align:right; ">
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. fAmtCalc();
  283. model.refresh();
  284. ]]>
  285. </script>
  286. </input>
  287. <caption id="caption40" class="cell_1" style="left:132px; top:310px; width:183px; height:19px; font-size:9pt; text-align:center; ">과제관리비</caption>
  288. <caption id="caption42" class="cell_1" style="left:56px; top:330px; width:75px; height:35px; text-align:center; ">연구수당</caption>
  289. <textarea id="textarea9" ref="/root/main/repdetl/R0272031" navindex="31" scroll="autohscroll" style="left:316px; top:330px; width:98px; height:35px; text-align:right; vertical-align:middle; ">
  290. <script type="javascript" ev:event="xforms-value-changed">
  291. <![CDATA[
  292. fAmtCalc();
  293. model.refresh();
  294. ]]>
  295. </script>
  296. </textarea>
  297. <textarea id="textarea10" ref="/root/main/repdetl/R0272030" navindex="30" scroll="autohscroll" style="left:132px; top:330px; width:183px; height:35px; vertical-align:middle; "/>
  298. <caption id="caption44" class="cell_1" style="left:0px; top:366px; width:315px; height:19px; font-size:9pt; text-align:center; ">위탁연구개발비</caption>
  299. <input id="input15" ref="/root/main/repdetl/R0272033" navindex="33" style="left:316px; top:366px; width:98px; height:19px; text-align:right; ">
  300. <script type="javascript" ev:event="xforms-value-changed">
  301. <![CDATA[
  302. fAmtCalc();
  303. model.refresh();
  304. ]]>
  305. </script>
  306. </input>
  307. <caption id="caption46" class="cell_2" style="left:0px; top:386px; width:315px; height:19px; font-size:9pt; text-align:center; ">계</caption>
  308. <input id="input16" ref="/root/main/repdetl/R0272035" navindex="35" style="left:316px; top:386px; width:98px; height:19px; text-align:right; "/>
  309. <input id="input17" ref="/root/main/repdetl/R0272036" navindex="36" style="left:415px; top:386px; width:235px; height:19px; "/>
  310. <textarea id="textarea11" ref="/root/main/repdetl/R0272017" navindex="17" scroll="autohscroll" style="left:415px; top:65px; width:235px; height:35px; vertical-align:middle; "/>
  311. <textarea id="textarea12" ref="/root/main/repdetl/R0272019" navindex="19" scroll="autohscroll" style="left:415px; top:101px; width:235px; height:35px; vertical-align:middle; "/>
  312. <input id="input18" ref="/root/main/repdetl/R0272021" navindex="21" style="left:415px; top:137px; width:235px; height:19px; "/>
  313. <input id="input19" ref="/root/main/repdetl/R0272023" navindex="23" style="left:415px; top:157px; width:235px; height:19px; "/>
  314. <textarea id="textarea13" ref="/root/main/repdetl/R0272025" navindex="25" scroll="autohscroll" style="left:415px; top:177px; width:235px; height:53px; vertical-align:middle; "/>
  315. <textarea id="textarea14" ref="/root/main/repdetl/R0272027" navindex="27" scroll="autohscroll" style="left:415px; top:231px; width:235px; height:78px; vertical-align:middle; "/>
  316. <input id="input20" ref="/root/main/repdetl/R0272029" navindex="29" style="left:415px; top:310px; width:235px; height:19px; "/>
  317. <input id="input21" ref="/root/main/repdetl/R0272034" navindex="34" style="left:415px; top:366px; width:235px; height:19px; "/>
  318. <textarea id="textarea15" ref="/root/main/repdetl/R0272032" navindex="32" scroll="autohscroll" style="left:415px; top:330px; width:235px; height:35px; vertical-align:middle; "/>
  319. </group>
  320. </xhtml:body>
  321. </xhtml:html>