123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>예산안관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <A00008>
- <cdid/>
- <cdnm/>
- </A00008>
- <A00010>
- <cdid/>
- <cdnm/>
- </A00010>
- <A00011>
- <cdid/>
- <cdnm/>
- </A00011>
- <A00012>
- <cdid/>
- <cdnm/>
- </A00012>
- <A00013>
- <cdid/>
- <cdnm/>
- </A00013>
- <supitemcd>
- <cdid/>
- <cdnm/>
- </supitemcd>
- <remove/>
- </init>
- <main>
- <bugtlist>
- <supitemcd/>
- <supitemnm/>
- <infitemcd/>
- <infitemnm/>
- <bugtetc/>
- <inbugtamt/>
- <outbugtamt/>
- <bugtconyn/>
- <inexflag/>
- </bugtlist>
- <bugtdetl>
- <mngtyy/>
- <inexflag/>
- <bugtdd/>
- <supitemcd/>
- <infitemcd/>
- <bugtamt/>
- <bugtetc/>
- <bugtconyn/>
- <status/>
- </bugtdetl>
- </main>
- <send>
- </send>
- <hidden>
- </hidden>
- <temp>
- <mngtyy/>
- <fromdd/>
- <todd/>
- <srchflag>1</srchflag>
- <title/>
- <recdd/>
- <chrgnm/>
- <chairnm/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH00001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetCodeList( new Array("A00008","A00010","A00011","A00012","A00013"), new Array("/root/init","/root/init","/root/init","/root/init","/root/init"));//호스피스 코드 조회
- fRemoveNode(new Array("A00008","A00010","A00011","A00012","A00013"));//콤보 공백 제거
-
- getdate = getCurrentDate();
- cmb_payyy.value = getdate.substring(0,4);
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
-
-
- ]]>
- </script>
- <submission id="TRMNH04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/supitemcd"/>
- <submission id="TRMNH04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bugtlist"/>
- <submission id="TRMNH04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bugtdetl"/>
- <submission id="TXMNH04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXMNH04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRMNH00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function supitemcd() {
- model.removeNodeset("/root/init/supitemcd");
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/remove";
- model.removenode("/root/send");
- model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtdetl/inexflag"));
- submit("TRMNH04301");
-
- }
-
- function fSave(flag) {
- model.setValue("/root/main/bugtdetl/status",flag);
- model.removenode("/root/send");
- model.makeValue("/root/send/mngtyy", model.getValue("/root/main/bugtdetl/mngtyy"));
- model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtdetl/inexflag"));
- model.makeValue("/root/send/bugtdd", model.getValue("/root/main/bugtdetl/bugtdd"));
-
- var supitemcd = model.getValue("/root/main/bugtdetl/supitemcd");
- model.makeValue("/root/send/supitemcd",supitemcd.substr(0,2));
- var infitemcd = model.getValue("/root/main/bugtdetl/infitemcd");
- if(infitemcd== ""){
- infitemcd ="00";
- }
- model.makeValue("/root/send/infitemcd", infitemcd);
- model.makeValue("/root/send/bugtamt", model.getValue("/root/main/bugtdetl/bugtamt"));
- model.makeValue("/root/send/bugtetc", model.getValue("/root/main/bugtdetl/bugtetc"));
- model.makeValue("/root/send/status", model.getValue("/root/main/bugtdetl/status"));
- submit("TXMNH04301");
- }
-
- function fSearch() {
- model.removeNodeset("/root/main/bugtlist");
- model.resetInstanceNode("/root/main/bugtdetl");
- model.removenode("/root/send");
- model.makeValue("/root/send/mngtyy", model.getValue("/root/temp/mngtyy"));
- model.makeValue("/root/send/srchflag", model.getValue("/root/temp/srchflag"));
- model.makeValue("/root/send/fromdd", model.getValue("/root/temp/fromdd"));
- model.makeValue("/root/send/todd", model.getValue("/root/temp/todd"));
- submit("TRMNH04302");
-
- cmb_mngtyy.disabled = false;
- rdo_inexflag.disabled = false;
- cmb_supitemcd.disabled = false;
- cmb_infitemcd.disabled = false;
- }
- function fClicedGrid() {
- model.removeNodeset("/root/main/bugtdetl");
- model.removenode("/root/send");
- model.makeValue("/root/send/mngtyy", model.getValue("/root/temp/mngtyy"));
- model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/inexflag"));
- model.makeValue("/root/send/supitemcd", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/supitemcd"));
- model.makeValue("/root/send/infitemcd", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/infitemcd"));
- submit("TRMNH04303");
- supitemcd();
- cmb_supitemcd.dispatch("xforms-value-changed");
-
- cmb_mngtyy.disabled = true;
- rdo_inexflag.disabled = true;
- cmb_supitemcd.disabled = true;
- cmb_infitemcd.disabled = true;
- }
-
- function fClear() {
- model.resetInstanceNode("/root/main/bugtdetl");
-
- cmb_mngtyy.disabled = false;
- rdo_inexflag.disabled = false;
- cmb_supitemcd.disabled = false;
- cmb_infitemcd.disabled = false;
- model.refresh();
- }
-
- function fCnfm() {
- if(messageBox("","Q002") != 6) return;
- var xCntPath = "/root/main/bugtlist";
- var cnfmamt ="";
- var sCntData =
- "mngtyy"
- + "▦inexflag"
- + "▦supitemcd"
- + "▦infitemcd"
- + "▦cnfmamt"
- + "▦cnfmdd"
- + "▩" ;
-
- for(i=1; i < grd_incmexpslist.rows; i++){
- if( model.getValue(xCntPath + "["+ i + "]/bugtconyn") =="N" ){
-
- if(model.getValue(xCntPath + "["+ i + "]/inexflag") =="01"){
- cnfmamt = model.getValue(xCntPath + "["+ i + "]/inbugtamt" )
- }else{
- cnfmamt = model.getValue(xCntPath + "["+ i + "]/outbugtamt" )
- }
-
- sCntData +=
- cmb_payyy.value
- + "▦" + model.getValue(xCntPath + "["+ i + "]/inexflag")
- + "▦" + model.getValue(xCntPath + "["+ i + "]/supitemcd")
- + "▦" + model.getValue(xCntPath + "["+ i + "]/infitemcd")
- + "▦" + cnfmamt
- + "▦" + getCurrentDate()
- + "▩" ;
- }
- }
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/sCntData" ,sCntData );
-
- submit("TXMNH04302");
-
- fSearch();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">예산안관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:697px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1063px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1047px; y1:7px; x2:1047px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:10px; width:91px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_srchflag" ref="/root/temp/srchflag" appearance="full" cellspacing="100" cols="2" overflow="visible" style="left:100px; top:13px; width:260px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>관리연도</label>
- <value>1</value>
- </item>
- <item>
- <label>예산산정일</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchflag = model.getValue(rdo_srchflag.attribute("ref"));
-
- if(srchflag == "1") {
- cmb_payyy.disabled = false;
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- } else {
- cmb_payyy.disabled = true;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_payyy" ref="/root/temp/mngtyy" class="combo_search" appearance="minimal" style="left:170px; top:11px; width:89px; height:19px; ">
- <choices>
- <item>
- <label>2000년</label>
- <value>2000</value>
- </item>
- <item>
- <label>2001년</label>
- <value>2001</value>
- </item>
- <item>
- <label>2002년</label>
- <value>2002</value>
- </item>
- <item>
- <label>2003년</label>
- <value>2003</value>
- </item>
- <item>
- <label>2004년</label>
- <value>2004</value>
- </item>
- <item>
- <label>2005년</label>
- <value>2005</value>
- </item>
- <item>
- <label>2006년</label>
- <value>2006</value>
- </item>
- <item>
- <label>2007년</label>
- <value>2007</value>
- </item>
- <item>
- <label>2008년</label>
- <value>2008</value>
- </item>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011년</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012년</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013년</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014년</label>
- <value>2014</value>
- </item>
- <item>
- <label>2015년</label>
- <value>2015</value>
- </item>
- <item>
- <label>2016년</label>
- <value>2016</value>
- </item>
- <item>
- <label>2017년</label>
- <value>2017</value>
- </item>
- <item>
- <label>2018년</label>
- <value>2018</value>
- </item>
- <item>
- <label>2019년</label>
- <value>2019</value>
- </item>
- <item>
- <label>2020년</label>
- <value>2020</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch()
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/temp/todd" class="input_default" disabled="true" navindex="2" inputtype="date" style="left:465px; top:10px; width:83px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_todd.value.substr(0,4) != cmb_payyy.value ){
- messageBox("관리년도 범위를 벗어 났습니다.", "E");
- ipt_todd.value =getCurrentDate();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_default" disabled="true" navindex="1" inputtype="date" style="left:362px; top:10px; width:86px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fromdd.value.substr(0,4) != cmb_payyy.value ){
- messageBox("관리년도 범위를 벗어 났습니다.", "E");
- ipt_fromdd.value =getCurrentDate();
- }
- ]]>
- </script>
- </input>
- <button id="button6" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "예산안관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_incmexpslist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;");
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_incmexpslist" nodeset="/root/main/bugtlist" scroll="auto" caption="예산산정일^caption1^항목분류^상세항목^상세항목^비고^수입^지출^확정여부^" colsep="^" colwidth="100, 6, 143, 6, 100, 325, 191, 181, 116, 21" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:1194px; height:510px; text-align:center; ">
- <col ref="bugtdd" format="yyyy-mm-dd"/>
- <col ref="supitemcd" visibility="hidden"/>
- <col ref="supitemnm" style="text-align:center; "/>
- <col ref="infitemcd" visibility="hidden"/>
- <col ref="infitemnm" style="text-align:center; "/>
- <col ref="bugtetc" style="text-align:left; "/>
- <col ref="inbugtamt" format="#,###"/>
- <col ref="outbugtamt" format="#,###"/>
- <col ref="bugtconyn" style="text-align:center; "/>
- <col ref="inexflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- fClicedGrid();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_incmexpslist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:58px; width:139px; height:14px; ">예산안 내역리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <button id="button15" class="btn2_letter3" style="left:1049px; top:594px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClear();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:1148px; top:594px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/bugtdetl/status")=="update"){
- fSave("delete");
- }
- fSearch();
- ]]>
- </script>
- </button>
- <button id="btn_incmexpssave" class="btn5_letter2" style="left:1104px; top:594px; width:46px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/main/bugtdetl/status")=="update"){
- fSave("update");
- }else{
- fSave("insert");
- }
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="tit_2" style="left:3px; top:599px; width:133px; height:14px; ">예산안금액 등록</caption>
- <line id="line4" class="line_1" style="x1:2px; y1:614px; x2:1193px; y2:614px; "/>
- <input id="ipt_bugtetc" ref="/root/main/bugtdetl/bugtetc" class="input_default" navindex="12" style="left:176px; top:671px; width:594px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:2px; top:669px; width:172px; height:23px; text-align:center; vertical-align:middle; ">비고</caption>
- <line id="line7" class="line_3" style="x1:0px; y1:693px; x2:1194px; y2:693px; "/>
- <line id="line6" class="line_2" style="x1:2px; y1:668px; x2:1194px; y2:668px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:643px; x2:1194px; y2:643px; "/>
- <caption id="caption5" class="cell_1" style="left:2px; top:619px; width:172px; height:23px; text-align:center; vertical-align:middle; ">관리연도</caption>
- <caption id="caption8" class="cell_1" style="left:387px; top:620px; width:172px; height:23px; text-align:center; vertical-align:middle; ">수입(지출)구분</caption>
- <caption id="caption12" class="cell_1" style="left:772px; top:620px; width:172px; height:23px; text-align:center; vertical-align:middle; ">예산상정일자</caption>
- <select1 id="rdo_inexflag" ref="/root/main/bugtdetl/inexflag" navindex="21" appearance="full" cols="3" overflow="visible" style="left:561px; top:621px; width:209px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수입</label>
- <value>01</value>
- </item>
- <item>
- <label>지출</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- supitemcd();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell_1" style="left:2px; top:644px; width:172px; height:23px; text-align:center; vertical-align:middle; ">항목분류</caption>
- <caption id="caption19" class="cell_1" style="left:387px; top:645px; width:172px; height:23px; text-align:center; vertical-align:middle; ">상세항목</caption>
- <caption id="caption20" class="cell_1" style="left:772px; top:670px; width:172px; height:23px; text-align:center; vertical-align:middle; ">확정여부</caption>
- <output id="opt_bugtconyn" ref="/root/main/bugtdetl/bugtconyn" class="output_fix" style="left:946px; top:671px; width:245px; height:19px; "/>
- <select1 id="cmb_infitemcd" ref="/root/main/bugtdetl/infitemcd" class="combo_default" appearance="minimal" style="left:561px; top:646px; width:209px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/remove">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_bugtdd" ref="/root/main/bugtdetl/bugtdd" class="input_default" inputtype="date" style="left:946px; top:621px; width:245px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_bugtdd.value.substr(0,4) != cmb_mngtyy.value ){
- messageBox("예산상정일자가 관리년도 범위를 벗어났습니다." , "E");
- ipt_bugtdd.value = "";
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_bugtamt" ref="/root/main/bugtdetl/bugtamt" class="input_default" maxlength="10" format="#,###,###,###" style="left:946px; top:646px; width:245px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:772px; top:645px; width:172px; height:23px; text-align:center; vertical-align:middle; ">예산금액</caption>
- <button id="button3" class="btn2_letter6" style="left:1107px; top:55px; width:86px; height:19px; ">
- <caption>예산안 확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfm();
- ]]>
- </script>
- </button>
- <select1 id="cmb_supitemcd" ref="/root/main/bugtdetl/supitemcd" class="combo_default" appearance="minimal" style="left:176px; top:646px; width:209px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/supitemcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var supitemcd = model.getValue("/root/main/bugtdetl/supitemcd");
- var leng = supitemcd.length;
- if(leng > 2){
- var supgrup = supitemcd.substr(leng-5,leng);
- }
-
- if(supgrup == '00008')
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00008";
- else if(supgrup == '00010')
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00010";
- else if(supgrup == '00011')
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00011";
- else if(supgrup == '00012')
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00012";
- else if(supgrup == '00013')
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00013";
- else
- cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/remove";
- cmb_infitemcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mngtyy" ref="/root/main/bugtdetl/mngtyy" class="combo_search" appearance="minimal" style="left:176px; top:621px; width:209px; height:19px; ">
- <choices>
- <item>
- <label>2000년</label>
- <value>2000</value>
- </item>
- <item>
- <label>2001년</label>
- <value>2001</value>
- </item>
- <item>
- <label>2002년</label>
- <value>2002</value>
- </item>
- <item>
- <label>2003년</label>
- <value>2003</value>
- </item>
- <item>
- <label>2004년</label>
- <value>2004</value>
- </item>
- <item>
- <label>2005년</label>
- <value>2005</value>
- </item>
- <item>
- <label>2006년</label>
- <value>2006</value>
- </item>
- <item>
- <label>2007년</label>
- <value>2007</value>
- </item>
- <item>
- <label>2008년</label>
- <value>2008</value>
- </item>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011년</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012년</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013년</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014년</label>
- <value>2014</value>
- </item>
- <item>
- <label>2015년</label>
- <value>2015</value>
- </item>
- <item>
- <label>2016년</label>
- <value>2016</value>
- </item>
- <item>
- <label>2017년</label>
- <value>2017</value>
- </item>
- <item>
- <label>2018년</label>
- <value>2018</value>
- </item>
- <item>
- <label>2019년</label>
- <value>2019</value>
- </item>
- <item>
- <label>2020년</label>
- <value>2020</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn2_letter8" style="left:997px; top:55px; width:108px; height:19px; ">
- <caption>회계연도 예산안</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = true;
- ipt_recdd.value = getCurrentDate();
-
-
-
-
- ]]>
- </script>
- </button>
- <group id="group2" visibility="hidden" style="left:865px; top:70px; width:185px; height:170px; background-color:#87CEFA; ">
- <button id="button5" class="btn5_letter2" navindex="36" style="left:118px; top:140px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = false;
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter2" navindex="35" style="left:75px; top:140px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var totcnt = 1;
- var incnt = 1;
- var outcnt = 1;
-
- var inbugtamt = 0;
- var outbugtamt = 0;
- var supitemnm ="";
- var infitemnm = "";
- var bugtetc = "";
- var totinamt = 0;
- var totoutamt = 0;
- var rowCnt = 23;
-
- model.removeNodeset("/root/tmp/printlist");
-
-
- for(var i = grd_incmexpslist.fixedRows; i < grd_incmexpslist.rows; i++) {
- inbugtamt = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("inbugtamt"));
- outbugtamt = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("outbugtamt"));
- supitemnm = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("supitemnm"));
- infitemnm = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("infitemnm"));
- bugtetc = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("bugtetc"));
-
- if(inbugtamt != "" && inbugtamt != null) {
- if(totcnt == incnt) {
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/supitemnm", supitemnm);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/infitemnm", infitemnm);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/inbugtamt", inbugtamt);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/bugtetc", bugtetc);
- totcnt ++;
- incnt ++;
- } else {
- model.makeValue("/root/tmp/printlist[" + incnt + "]/supitemnm", supitemnm);
- model.makeValue("/root/tmp/printlist[" + incnt + "]/infitemnm", infitemnm);
- model.makeValue("/root/tmp/printlist[" + incnt + "]/inbugtamt", inbugtamt);
- model.makeValue("/root/tmp/printlist[" + incnt + "]/bugtetc", bugtetc);
- incnt++;
- }
- totinamt += parseInt(inbugtamt);
- }
-
- if(outbugtamt != "" && outbugtamt != null) {
- if(totcnt == outcnt) {
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/supitemnm1", supitemnm);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/infitemnm1", infitemnm);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/outbugtamt", outbugtamt);
- model.makeValue("/root/tmp/printlist[" + totcnt + "]/bugtetc1", bugtetc);
- totcnt ++;
- outcnt ++;
- } else {
- model.makeValue("/root/tmp/printlist[" + outcnt + "]/supitemnm1", supitemnm);
- model.makeValue("/root/tmp/printlist[" + outcnt + "]/infitemnm1", infitemnm);
- model.makeValue("/root/tmp/printlist[" + outcnt + "]/outbugtamt", outbugtamt);
- model.makeValue("/root/tmp/printlist[" + outcnt + "]/bugtetc1", bugtetc);
- outcnt++;
- }
- totoutamt += parseInt(outbugtamt);
- }
- }
- var result = parseInt(totcnt / rowCnt);
- var cnt = getNodesetCount("/root/tmp/printlist");
-
- if(result == 0 || totcnt == rowCnt) {
- for(var i = cnt; i < rowCnt; i++) {
- grd_printlist.addRow();
- }
-
- } else {
- for(var i = cnt; i < rowCnt*(result+1); i++) {
- grd_printlist.addRow(false);
- }
- }
-
-
- model.makeValue("/root/tmp/totinamt", totinamt);
- model.makeValue("/root/tmp/totoutamt", totoutamt);
- model.makeValue("/root/tmp/title", model.getValue("/root/temp/title"));
- model.makeValue("/root/tmp/recdd", model.getValue("/root/temp/recdd"));
- model.makeValue("/root/tmp/chrgnm", model.getValue("/root/temp/chrgnm"));
- model.makeValue("/root/tmp/chairnm", model.getValue("/root/temp/chairnm"));
-
- exeReportPreview("RPMNH04300", "XMLSTR");
- group2.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption9" style="left:10px; top:10px; width:87px; height:20px; font-family:돋움체; font-weight:bold; ">예산안 타이틀</caption>
- <caption id="caption10" style="left:10px; top:60px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">작성일자 :</caption>
- <input id="ipt_recdd" ref="/root/temp/recdd" navindex="31" inputtype="date" style="left:82px; top:60px; width:95px; height:19px; "/>
- <caption id="caption11" style="left:10px; top:85px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">담 당 자 :</caption>
- <caption id="caption13" style="left:10px; top:110px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">위 원 장 :</caption>
- <input id="ipt_chrgnm" ref="/root/temp/chrgnm" navindex="33" style="left:82px; top:85px; width:95px; height:19px; "/>
- <input id="ipr_chairnm" ref="/root/temp/chairnm" navindex="34" style="left:82px; top:112px; width:95px; height:19px; "/>
- <input id="ipt_title" ref="/root/temp/title" navindex="30" style="left:10px; top:30px; width:167px; height:19px; "/>
- </group>
- <datagrid id="grd_printlist" nodeset="/root/tmp/printlist" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:510px; top:185px; width:350px; height:150px; ">
- <col ref="supitemnm"/>
- <col ref="infitemnm"/>
- <col ref="outbugtamt"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|