123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <entryy/>
- <fromdd/>
- <todd/>
- </cond>
- <itemexpendmmexpslist>
- <itemexpendmmexpslistinfo>
- <itemexpend/>
- <bugt/>
- <mmexps/>
- <expstot/>
- <bal/>
- </itemexpendmmexpslistinfo>
- </itemexpendmmexpslist>
- </main>
- <send/>
- <init>
- <settlemm/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- function fInit(){
- //현재시스템 년도에서 월-2 한 값으로 세팅
- var prestyear = getCurrentDate().toDate().getAddDate(-2, "M").getDateFormat();
- var prestyy = parseInt(prestyear.substr(0, 4));
- var prestmm = parseInt(prestyear.substr(4, 2));
-
- //비교할 년도
- var varyear = getCurrentDate().toDate().getAddDate(1, "Y").getDateFormat();
- var varyy = parseInt(varyear.substr(0, 4));
-
- if(prestyy < varyy){
- if(prestmm >= 2){
- var fentryy = prestyy.toString();
- model.setValue("/root/main/cond/entryy", fentryy);
- model.refresh();
- }else if(prestmm <= 3){
- var ventryy = getCurrentDate().substr(0, 4);
- model.setValue("/root/main/cond/entryy", ventryy);
- model.refresh();
- }
- }//if END
-
- //화면 오픈시 조회기간 세팅(월의 첫날짜와 마지막 날짜)
- var sDate = getNewDate();
- var CurrentDate = getCurrentDate();
-
- var lastDate = sDate.getFullYear();
- lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
- lastDate = lastDate.toString() + sDate.getMonthDay();
- model.setValue("/root/main/cond/fromdd", CurrentDate.substr(0,6)+"01");
- model.setValue("/root/main/cond/todd", lastDate);
-
- var edate = model.getValue("/root/main/cond/todd");
- var todd = edate.substr(4, 2);
- if(edate != ""){
- if(todd == "10" || todd == "11" || todd == "12"){
- model.setValue("/root/init/settlemm", todd);
- }else{
- todd = edate.substr(5, 1);
- model.setValue("/root/init/settlemm", todd);
- }
- }
-
- model.refresh();
- }//fInit END
- ]]>
- </script>
- <submission id="TRAYA02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/itemexpendmmexpslist"/>
- <bind id="bind1" ref="/root/main/itemexpendmmexpslist/itemexpendmmexpslistinfo/bal" calculate="../bugt - ../expstot"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:98px; height:14px; ">결산관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:775px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:685px; y1:7px; x2:685px; y2:29px; "/>
- <button id="button4" class="btn1_letter2" style="left:700px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDateCheck();
-
- function fDateCheck(){
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
-
- //사업년도 유효시작일 세팅(당해년도 3월 1일)
- var nowYear = model.getValue("/root/main/cond/entryy") + "0301";
- var lastDay = "28";
-
- //다음해가 윤년인지 아닌지를 확인하기 위해 가져온 년도
- // var fuYear = getCurrentDate().toDate().getAddDate(1, "Y").getDateFormat().substr(0, 4);
- var fuYear = parseInt(model.getValue("/root/main/cond/entryy"));
- var fYear = fuYear + 1;
-
- //윤년계산
- if( (0 == (fYear % 4) && 0 != (fYear %100)) || 0 == fYear % 400 ){
- lastDay = "29";
- }else{
- lastDay = "28"
- }
-
- //사업년도 유효종료일 세팅(차년도 2월말)
- var afterYear = fYear.toString() + "02" + lastDay;
-
- if((nowYear > fromdd) || (todd > afterYear)){
- messageBox("입력한 사업년도내 기간 이외에는 입력할 수", "I004");
- model.setFocus("ipt_fromdd");
- return;
- }else{
- submit("TRAYA02201");
- }
- grd_itemexpendlist.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_itemexpendlist.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_itemexpendlist.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_itemexpendlist.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- }//fDateCheck END
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:25px; top:10px; width:91px; height:17px; ">사업년도 :</caption>
- <caption id="caption12" class="search_name" style="left:310px; top:10px; width:91px; height:17px; ">결산기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:505px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="2" inputtype="date" style="left:525px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fLastDate();
- function fLastDate(){
- //종료일자 변경선택시 결산월 변경 출력
- var edate = model.getValue("/root/main/cond/todd");
- var todd = edate.substr(4, 2);
- if(edate != ""){
- if(todd == "10" || todd == "11" || todd == "12"){
- model.setValue("/root/init/settlemm", todd);
- }else{
- todd = edate.substr(5, 1);
- model.setValue("/root/init/settlemm", todd);
- }
- model.refresh();
- }
- }//fLastDate END
- ]]>
- </script>
- </input>
- <input id="ipt_entryy" ref="/root/main/cond/entryy" class="input_s_essential" maxlength="4" style="left:125px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="1" inputtype="date" style="left:405px; top:9px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDateSet();
- function fDateSet(){
- //시작일자 입력시 종료일자를 시작일자로 자동표시
- var sdate = model.getValue("/root/main/cond/fromdd");
-
- if(sdate != ""){
- //조회기간 설정시 선택한 시작기간에 속한 달의 마지막날로 세팅
- var eDate = sdate.toDate();
- var lastDate = sdate.toDate().getDateFormat().substr(0, 4);
- lastDate = lastDate.toString() + (( eDate.getMonth() + 1 > 9 ) ? eDate.getMonth() + 1 : "0" + (eDate.getMonth() + 1));
- lastDate = lastDate.toString() + eDate.getMonthDay();
- model.setValue("/root/main/cond/todd", lastDate);
-
- //시작일자에 의해 종료일자 세팅될시 결산월 출력
- var edate = model.getValue("/root/main/cond/todd");
- var todd = edate.substr(4, 2);
- if(edate != ""){
- if(todd == "10" || todd == "11" || todd == "12"){
- model.setValue("/root/init/settlemm", todd);
- }else{
- todd = edate.substr(5, 1);
- model.setValue("/root/init/settlemm", todd);
- }
- }
- model.refresh();
- }
- model.setFocus("ipt_todd");
- }//fDateSet END
- ]]>
- </script>
- </input>
- </group>
- <button id="button100" class="btn6_letter9" disable.background-image="../../../com/commonweb/images/dis_btn6_letter9.gif" style="left:635px; top:53px; width:140px; height:22px; background-image:../../../com/commonweb/images/btn6_letter9.gif; ">
- <caption>비목별 월지출내역서</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPreview();
- function fPreview(){
- exeReportPreview("RPAYA02201", "XMLSTR");
- }//fPreview END
- ]]>
- </script>
- </button>
- <caption id="caption26" class="hand" style="left:460px; top:57px; width:75px; height:17px; vertical-align:middle; ">결산월 :</caption>
- <output id="opt_settlemm" ref="/root/init/settlemm" class="output_fix" style="left:540px; top:55px; width:55px; height:19px; text-align:center; "/>
- <caption id="caption2" class="hand" style="left:460px; top:57px; width:75px; height:17px; vertical-align:middle; ">결산월 :</caption>
- <caption id="caption3" style="left:600px; top:55px; width:25px; height:20px; ">월</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:76px; width:126px; height:13px; ">비목별 월지출내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:775px; y2:92px; "/>
- <datagrid id="grd_itemexpendlist" nodeset="/root/main/itemexpendmmexpslist/itemexpendmmexpslistinfo" caption="비목^예산^월지출액^지출누계^잔액" colsep="^" colwidth="169, 148, 146, 146, 166" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" subtotalposition="below" style="left:0px; top:97px; width:775px; height:635px; ">
- <col ref="itemexpend" style="text-align:center; "/>
- <col ref="bugt" format="(-)#,###" style="text-align:right; "/>
- <col ref="mmexps" format="(-)#,###" style="text-align:right; "/>
- <col ref="expstot" format="(-)#,###" style="text-align:right; "/>
- <col ref="bal" format="(-)#,###" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|