123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <repdetl>
- <R0272001/>
- <R0272002/>
- <R0272003/>
- <R0272004/>
- <R0272005/>
- <R0272006/>
- <R0272007/>
- <R0272008/>
- <R0272009/>
- <R0272010/>
- <R0272011/>
- <R0272012/>
- <R0272013/>
- <R0272014/>
- <R0272015/>
- <R0272016/>
- <R0272017/>
- <R0272018/>
- <R0272019/>
- <R0272020/>
- <R0272021/>
- <R0272022/>
- <R0272023/>
- <R0272024/>
- <R0272025/>
- <R0272026/>
- <R0272027/>
- <R0272028/>
- <R0272029/>
- <R0272030/>
- <R0272031/>
- <R0272032/>
- <R0272033/>
- <R0272034/>
- <R0272035/>
- <R0272036/>
- </repdetl>
- <repmain>
- <inistcd/>
- <bsdd/>
- <projcd/>
- <projnm/>
- <reptcd/>
- <reptnm/>
- <rshid/>
- <rshnm/>
- <bsid/>
- <bsnm/>
- <seqno/>
- </repmain>
- </main>
- <send/>
- <init/>
- <hidden>
- </hidden>
- <temp/>
- </root>
- </instance>
- <instance id="instance2">
- <root/>
- </instance>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/ctmsweb/js/SMRIF02101.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetInitData(){
- //보고서 기본값 셋팅.
- model.setValue("/root/main/repdetl/R0272001",model.getValue("/root/main/repmain/projnm"));
- model.setValue("/root/main/repdetl/R0272002",model.getValue("/root/main/repmain/empldeptnm"));
- model.setValue("/root/main/repdetl/R0272003",model.getValue("/root/main/repmain/rshnm"));
- model.setValue("/root/main/repdetl/R0272004",model.getValue("/root/main/repmain/fromdd"));
- model.setValue("/root/main/repdetl/R0272005",model.getValue("/root/main/repmain/todd"));
- //model.setValue("/root/main/repdetl/R0272006",model.getValue("/root/main/repmain/reqfirm"));
- model.setValue("/root/main/repdetl/R0272007",model.getValue("/root/main/repmain/projamt"));
-
- var sBigo0 = "원내 연구비 과제";
- var sBigo1 = " * 연구기자재 임차료, 시설비 \n * 연구기자재구입비";
- var sBigo2 = " * 시약.재료구입비, 시험분석료 \n * 외부전산처리비";
- var sBigo3 = " * 시제품. 시작품. 시험설비 제작경비";
- var sBigo4 = " * 국내여비";
- var sBigo5 = " * 제세공과금(우편, 전화사용료 등) \n * 인쇄비, 복사비, 슬라이드 제작비\n * 사무용품비, 비품/소모품구입비";
- var sBigo6 = " * 회의비(원내과제 인정안됨), \n * 세미나(학회) 참가비\n * 전문가자문료, 원고료, 번역료...\n * 도서, 자료구입비";
- var sBigo7 = " * 회의식대(원내과제 인정안됨)";
- var sBigo8 = " * 인센티브(참여연구원의 보상. 장려금) \n (원내과제 인정안됨)";
- var sBigo9 = " *외부위탁 연구의뢰비(원내과제 인정안됨)";
-
- model.setValue("/root/main/repdetl/R0272006",sBigo0);
- model.setValue("/root/main/repdetl/R0272017",sBigo1);
- model.setValue("/root/main/repdetl/R0272019",sBigo2);
- model.setValue("/root/main/repdetl/R0272021",sBigo3);
- model.setValue("/root/main/repdetl/R0272023",sBigo4);
- model.setValue("/root/main/repdetl/R0272025",sBigo5);
- model.setValue("/root/main/repdetl/R0272027",sBigo6);
- model.setValue("/root/main/repdetl/R0272029",sBigo7);
- model.setValue("/root/main/repdetl/R0272032",sBigo8);
- model.setValue("/root/main/repdetl/R0272034",sBigo9);
-
- model.refresh();
- }
-
-
- function fAmtCalc(){
-
- var amt1 = model.getValue("/root/main/repdetl/R0272011");
- var amt2 = model.getValue("/root/main/repdetl/R0272014");
- var amt3 = model.getValue("/root/main/repdetl/R0272016");
- var amt4 = model.getValue("/root/main/repdetl/R0272018");
- var amt5 = model.getValue("/root/main/repdetl/R0272020");
- var amt6 = model.getValue("/root/main/repdetl/R0272022");
- var amt7 = model.getValue("/root/main/repdetl/R0272024");
- var amt8 = model.getValue("/root/main/repdetl/R0272026");
- var amt9 = model.getValue("/root/main/repdetl/R0272028");
- var amt10 = model.getValue("/root/main/repdetl/R0272031");
- var amt11 = model.getValue("/root/main/repdetl/R0272033");
-
- if( amt1.length == 0 ){ amt1 = 0; }else{ amt1 = parseInt(amt1); }
- if( amt2.length == 0 ){ amt2 = 0; }else{ amt2 = parseInt(amt2); }
- if( amt3.length == 0 ){ amt3 = 0; }else{ amt3 = parseInt(amt3); }
- if( amt4.length == 0 ){ amt4 = 0; }else{ amt4 = parseInt(amt4); }
- if( amt5.length == 0 ){ amt5 = 0; }else{ amt5 = parseInt(amt5); }
- if( amt6.length == 0 ){ amt6 = 0; }else{ amt6 = parseInt(amt6); }
- if( amt7.length == 0 ){ amt7 = 0; }else{ amt7 = parseInt(amt7); }
- if( amt8.length == 0 ){ amt8 = 0; }else{ amt8 = parseInt(amt8); }
- if( amt9.length == 0 ){ amt9 = 0; }else{ amt9 = parseInt(amt9); }
- if( amt10.length == 0 ){ amt10 = 0; }else{ amt10 = parseInt(amt10); }
- if( amt11.length == 0 ){ amt11 = 0; }else{ amt11 = parseInt(amt11); }
-
-
- model.setValue("/root/main/repdetl/R0272035", (amt1+amt2+amt3+amt4+amt5+amt6+amt7+amt8+amt9+amt10+amt11) );
-
- model.refresh();
- }
-
- // 최종저장시 한번더 계산
- function fLastAmtSave(){
- fAmtCalc();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="660">
- <script type="javascript" ev:event="onloadcomplete">
- <![CDATA[
- fSetInitData(); // <-- 개인적으로 처리해야 할 로직 삽입
- ]]>
- </script>
- <group id="group3" style="left:0px; top:45px; width:649px; height:82px; padding:1; border-style:inset; ">
- <caption id="caption15" class="cell_1" style="left:449px; top:0px; width:40px; height:19px; ">소속</caption>
- <input id="input9" ref="/root/main/repdetl/R0272002" navindex="2" style="left:489px; top:0px; width:157px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:449px; top:20px; width:40px; height:19px; ">성명</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:0px; width:64px; height:39px; ">과제명</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:40px; width:64px; height:19px; ">연구기간</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:60px; width:84px; height:19px; text-align:center; ">연구비 총액</caption>
- <caption id="caption20" class="cell_1" style="left:394px; top:0px; width:54px; height:39px; text-align:center; ">
- <![CDATA[연구
- 책임자]]>
- </caption>
- <caption id="caption21" class="cell_1" style="left:298px; top:40px; width:95px; height:19px; ">연구 의뢰기관</caption>
- <input id="input10" ref="/root/main/repdetl/R0272003" navindex="3" style="left:489px; top:20px; width:129px; height:19px; "/>
- <input id="input11" ref="/root/main/repdetl/R0272004" navindex="4" inputtype="date" style="left:65px; top:40px; width:100px; height:19px; "/>
- <input id="input12" ref="/root/main/repdetl/R0272005" navindex="5" inputtype="date" style="left:197px; top:40px; width:100px; height:19px; "/>
- <caption id="caption22" style="left:173px; top:40px; width:20px; height:20px; ">~</caption>
- <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; "/>
- <caption id="caption23" style="left:622px; top:20px; width:25px; height:19px; ">(인)</caption>
- <input id="input13" ref="/root/main/repdetl/R0272006" navindex="6" style="left:394px; top:40px; width:252px; height:19px; "/>
- <caption id="caption24" class="cell_1" style="left:238px; top:60px; width:59px; height:19px; text-align:center; ">정산액</caption>
- <caption id="caption25" class="cell_1" style="left:449px; top:60px; width:50px; height:19px; text-align:center; ">잔액</caption>
- <caption id="caption26" style="left:220px; top:61px; width:15px; height:19px; ">원</caption>
- <caption id="caption27" style="left:426px; top:61px; width:15px; height:19px; ">원</caption>
- <caption id="caption28" style="left:627px; top:61px; width:15px; height:19px; ">원</caption>
- <input id="input22" ref="/root/main/repdetl/R0272007" navindex="7" format="#,###" style="left:85px; top:60px; width:131px; height:19px; text-align:right; "/>
- <input id="input23" ref="/root/main/repdetl/R0272008" navindex="8" format="#,###" style="left:298px; top:60px; width:122px; height:19px; text-align:right; "/>
- <input id="input24" ref="/root/main/repdetl/R0272009" navindex="9" format="#,###" style="left:500px; top:60px; width:124px; height:19px; text-align:right; "/>
- </group>
- <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>
- <caption id="caption2" style="left:5px; top:155px; width:210px; height:20px; font-weight:bold; ">정산내역 (상세하게 기재)</caption>
- <group id="group1" style="left:0px; top:175px; width:650px; height:435px; ">
- <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:55px; height:24px; text-align:center; ">목</caption>
- <caption id="caption3" class="cell_1" style="left:56px; top:0px; width:75px; height:24px; text-align:center; ">세목</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:25px; width:55px; height:39px; text-align:center; ">인건비</caption>
- <caption id="caption5" class="cell_1" style="left:316px; top:0px; width:98px; height:24px; text-align:center; ">사용금액 (원)</caption>
- <caption id="caption6" class="cell_1" style="left:415px; top:0px; width:235px; height:24px; text-align:center; ">비 고</caption>
- <caption id="caption8" class="cell_1" style="left:56px; top:65px; width:75px; height:91px; text-align:center; ">
- <![CDATA[연구장비
- 재료비]]>
- </caption>
- <caption id="caption9" class="cell_1" style="left:132px; top:0px; width:183px; height:24px; text-align:center; ">세세목</caption>
- <caption id="caption10" class="cell_1" style="left:132px; top:65px; width:183px; height:35px; text-align:center; ">연구기자재 및 시설비</caption>
- <caption id="caption11" class="cell_1" style="left:56px; top:25px; width:75px; height:19px; font-size:9pt; text-align:center; ">내부 인건비</caption>
- <caption id="caption12" class="cell_1" style="left:56px; top:45px; width:75px; height:19px; font-size:9pt; text-align:center; ">외부 인건비</caption>
- <input id="input1" ref="/root/main/repdetl/R0272010" navindex="10" style="left:132px; top:25px; width:183px; height:19px; "/>
- <input id="input2" ref="/root/main/repdetl/R0272011" navindex="11" style="left:316px; top:25px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/main/repdetl/R0272012" navindex="12" style="left:415px; top:25px; width:235px; height:19px; "/>
- <input id="input4" ref="/root/main/repdetl/R0272013" navindex="13" style="left:132px; top:45px; width:183px; height:19px; "/>
- <input id="input5" ref="/root/main/repdetl/R0272014" navindex="14" style="left:316px; top:45px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/main/repdetl/R0272015" navindex="15" style="left:415px; top:45px; width:235px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:65px; width:55px; height:300px; text-align:center; ">인건비</caption>
- <caption id="caption29" class="cell_1" style="left:132px; top:101px; width:183px; height:35px; text-align:center; ">재료비 및 전산처리비</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </textarea>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </textarea>
- <input id="input7" ref="/root/main/repdetl/R0272020" navindex="20" style="left:316px; top:137px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption30" class="cell_1" style="left:132px; top:137px; width:183px; height:19px; font-size:9pt; text-align:center; ">시작품 제작비</caption>
- <input id="input8" ref="/root/main/repdetl/R0272022" navindex="22" style="left:316px; top:157px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption13" class="cell_1" style="left:132px; top:157px; width:183px; height:19px; font-size:9pt; text-align:center; ">여비</caption>
- <caption id="caption35" class="cell_1" style="left:132px; top:177px; width:183px; height:53px; font-size:9pt; text-align:center; ">
- <![CDATA[수용비
- 및 수수료]]>
- </caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </textarea>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </textarea>
- <caption id="caption37" class="cell_1" style="left:132px; top:231px; width:183px; height:78px; font-size:9pt; text-align:center; ">
- <![CDATA[기술정보
- 활동비]]>
- </caption>
- <caption id="caption39" class="cell_1" style="left:56px; top:157px; width:75px; height:172px; text-align:center; ">
- <![CDATA[연구
- 활동비 ]]>
- </caption>
- <input id="input14" ref="/root/main/repdetl/R0272028" navindex="28" style="left:316px; top:310px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption40" class="cell_1" style="left:132px; top:310px; width:183px; height:19px; font-size:9pt; text-align:center; ">과제관리비</caption>
- <caption id="caption42" class="cell_1" style="left:56px; top:330px; width:75px; height:35px; text-align:center; ">연구수당</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
-
- model.refresh();
- ]]>
- </script>
- </textarea>
- <textarea id="textarea10" ref="/root/main/repdetl/R0272030" navindex="30" scroll="autohscroll" style="left:132px; top:330px; width:183px; height:35px; vertical-align:middle; "/>
- <caption id="caption44" class="cell_1" style="left:0px; top:366px; width:315px; height:19px; font-size:9pt; text-align:center; ">위탁연구개발비</caption>
- <input id="input15" ref="/root/main/repdetl/R0272033" navindex="33" style="left:316px; top:366px; width:98px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAmtCalc();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption46" class="cell_2" style="left:0px; top:386px; width:315px; height:19px; font-size:9pt; text-align:center; ">계</caption>
- <input id="input16" ref="/root/main/repdetl/R0272035" navindex="35" style="left:316px; top:386px; width:98px; height:19px; text-align:right; "/>
- <input id="input17" ref="/root/main/repdetl/R0272036" navindex="36" style="left:415px; top:386px; width:235px; height:19px; "/>
- <textarea id="textarea11" ref="/root/main/repdetl/R0272017" navindex="17" scroll="autohscroll" style="left:415px; top:65px; width:235px; height:35px; vertical-align:middle; "/>
- <textarea id="textarea12" ref="/root/main/repdetl/R0272019" navindex="19" scroll="autohscroll" style="left:415px; top:101px; width:235px; height:35px; vertical-align:middle; "/>
- <input id="input18" ref="/root/main/repdetl/R0272021" navindex="21" style="left:415px; top:137px; width:235px; height:19px; "/>
- <input id="input19" ref="/root/main/repdetl/R0272023" navindex="23" style="left:415px; top:157px; width:235px; height:19px; "/>
- <textarea id="textarea13" ref="/root/main/repdetl/R0272025" navindex="25" scroll="autohscroll" style="left:415px; top:177px; width:235px; height:53px; vertical-align:middle; "/>
- <textarea id="textarea14" ref="/root/main/repdetl/R0272027" navindex="27" scroll="autohscroll" style="left:415px; top:231px; width:235px; height:78px; vertical-align:middle; "/>
- <input id="input20" ref="/root/main/repdetl/R0272029" navindex="29" style="left:415px; top:310px; width:235px; height:19px; "/>
- <input id="input21" ref="/root/main/repdetl/R0272034" navindex="34" style="left:415px; top:366px; width:235px; height:19px; "/>
- <textarea id="textarea15" ref="/root/main/repdetl/R0272032" navindex="32" scroll="autohscroll" style="left:415px; top:330px; width:235px; height:35px; vertical-align:middle; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|