123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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="">
- <main>
- <list>
- <tangibleassetlist/>
- </list>
- </main>
- <send>
- <condition>
- <instcd/>
- <ym/>
- <acntcd>12205001</acntcd>
- <repayflag/>
- <mainmngtdeptcd/>
- <mainmngtdeptnm/>
- <workflag/>
- </condition>
- </send>
- <init>
- </init>
- <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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fOpenForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm()
- {
- misfComboComCdList("Z0007", cmb_instcd, "N");
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- cmb_instcd.refresh();
-
- model.removeNodeset(grid_tangibleassetlist.nodeset);
- grid_tangibleassetlist.refresh();
-
- // misfComboComCdListMulti("xxx", "cmb_acntcd");
-
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- }
-
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
- model.refresh();
-
- model.setFocus(pNextIndex);
- }
- }
- /*
- // 코멘트만 열어 주면 될 것 같음 - 테스트는 못 해 봄
- // 전송된 데이타를 자동분개하기 위한 프로시죠 콜
-
- // 감가상각을 마지막 일자에 전표가 생성되도록 하였으므로
- // 상각월의 마지막 날짜를 구하여 호출 한다.
- var strdate = model.getValue("/root/send/cndfrdprc/workmm");
- var stryer = strdate.substring(0,4) ;
- var strmon = strdate.substring(4,6) ;
- var lstday = new Date(stryer,strmon,'01');
- var chLeap = lstday.isLeapYear();
-
- switch (strmon) {
- case "01" : lstday = '31'; break;
- case "02" : if ( chLeap == true) {
- lstday = '29';
- } else
- {
- lstday = '28';
- }
- break;
- case "03" : lstday = '31'; break;
- case "04" : lstday = '30'; break;
- case "05" : lstday = '31'; break;
- case "06" : lstday = '30'; break;
- case "07" : lstday = '31'; break;
- case "08" : lstday = '31'; break;
- case "09" : lstday = '30'; break;
- case "10" : lstday = '31'; break;
- case "11" : lstday = '30'; break;
- case "12" : lstday = '31'; break;
- }
-
- dprcdate = strdate + lstday;
-
- model.resetInstanceNode ("/root/send/mksplip");
-
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/mksplip/instcd" , instcd);
- model.setValue("/root/send/mksplip/slipflag", "8");
- model.setValue("/root/send/mksplip/genrdd" , dprcdate);
- model.setValue("/root/send/mksplip/alldate" , "N");
- model.refresh();
- submit("TXRAA00204");
- model.refresh();
- */
-
- ]]>
- </script>
- <submission id="TRRAA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/list"/>
- <submission id="TXRAA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
- <submission id="TXRAA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cndfrdprc" resultref="/root/temp"/>
- <submission id="TXRAA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mksplip" resultref="/root/temp"/>
- <submission id="TXRAA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detailist" resultref="/root/temp"/>
- </model>
- </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:293px; height:14px; ">감가상각비</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:12px; width:1195px; height:685px; ">
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="cap_tangibleassetlist" class="tit_2" style="left:5px; top:55px; width:144px; height:13px; ">감가상각 목록</caption>
- <datagrid id="grid_tangibleassetlist" nodeset="/root/main/list/tangibleassetlist" caption="기관코드^이전상각일^물품구분^물품구분명^고정자산코드^갯수^계정코드^계정명^귀속부서코드^귀속부서명^상각구분^취득일^내용연수^상각방법^상각률^취득금액^취득증감^고정자산금액^상각누적액^상각잔액" colwidth="0,80,80,120,100,30,60,100,0,100,60,80,60,80,60,100,100,100,100,100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" 상colsep="^" style="left:0px; top:75px; width:1193px; height:605px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="prevrepayymdd" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="goodflaghngnm" style="text-align:left; "/>
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="goodqty" style="text-align:center; "/>
- <col ref="acntcd" style="text-align:left; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="cntrdeptcd" style="text-align:left; "/>
- <col ref="cntrdeptnm" style="text-align:left; "/>
- <col ref="repayflag" style="text-align:left; "/>
- <col ref="possndd" style="text-align:left; "/>
- <col ref="cntsyearno" format="#,###" style="text-align:center; "/>
- <col ref="repymthd" style="text-align:center; "/>
- <col ref="repayrate" format="#,###.##" style="text-align:right; "/>
- <col ref="baseamt" format="#,###" style="text-align:right; "/>
- <col ref="gainflucamt" format="#,###" style="text-align:right; "/>
- <col ref="fixasetamt" format="#,###" style="text-align:right; "/>
- <col ref="totrepayamt" format="#,###" style="text-align:right; "/>
- <col ref="repaybal" format="#,###" style="text-align:right; "/>
- </datagrid>
- <group id="group2" style="left:0px; top:1px; width:1195px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:33px; "/>
- <caption id="cap_goodflag_search" class="search_name" style="left:340px; top:10px; width:125px; height:17px; ">유형자산구분 :</caption>
- <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:470px; top:10px; width:235px; height:19px; ">
- <choices>
- <item>
- <label>의료장비</label>
- <value>12205001</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="16" style="left:1128px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset(grid_tangibleassetlist.nodeset);
- grid_tangibleassetlist.refresh();
- submit("TRRAA00201");
-
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:125px; top:9px; width:205px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; text-align:right; ">기 관 :</caption>
- </group>
- <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1035px; top:48px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grid_tangibleassetlist);
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="false" visibility="hidden" style="left:975px; top:47px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TXRAA00201") ;
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_depreciation" class="btn4_letter4" style="left:1103px; top:47px; width:80px; height:22px; ">
- <caption>감가상각</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/condition/workflag", "I");
-
- // for(var i = 1 ; i < 156 ; i++)
- // {
- submit("TXRAA00202");
- // }
-
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter4" visibility="hidden" style="left:120px; top:47px; width:80px; height:22px; ">
- <caption>자료전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TXRAA00203");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter6" visibility="visible" style="left:205px; top:47px; width:80px; height:22px; ">
- <caption>감가상각취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/condition/workflag", "D");
- submit("TXRAA00202");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|