123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- <?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>SMRAT01290_부동산임대공급가액명세서</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <texlist>
- </texlist>
- </list>
- </main>
- <send>
- <retrparam>
- <addtaxpnt/>
- <addtaxyy/>
- <instcd/>
- <todate/>
- <frdate/>
- <entrregno/>
- <loanuser/>
- </retrparam>
- <save>
- <texlist/>
- </save>
- <prtparam>
- <todate/>
- <frdate/>
- <addtaxpnt/>
- <addr/>
- <entrregno/>
- <instcdnm/>
- </prtparam>
- </send>
- <init>
- <init_reptkind>
- <item>
- <label>1기예정</label>
- <value>1</value>
- </item>
- <item>
- <label>1기확정</label>
- <value>2</value>
- </item>
- <item>
- <label>2기예정</label>
- <value>3</value>
- </item>
- <item>
- <label>2기확정</label>
- <value>4</value>
- </item>
- </init_reptkind>
- <tempyyyy/>
- </init>
- <temp/>
- <hidden>
- </hidden>
- <target/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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/RAM001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize()
- {
- model.removenode("/root/main/list/texlist");
- misfMsterDetailSet(grd_texlist, null, "TRRAT01291", "Y");
- // 7월 25일 이정훈 수정
- model.setValue("/root/send/retrparam/addtaxyy", getCurrentDate().substr(0, 4)) - 1;
- model.setValue("/root/init/tempyyyy", getCurrentDate().substr(0, 4));
-
- //model.setValue("/root/send/retrparam/addtaxyy", model.getValue("/root/target/yyyy"));
- //model.setValue("/root/init/tempyyyy", model.getValue("/root/target/yyyy"));
- // 기간 세팅
- model.setValue("/root/send/retrparam/frdate", getCurrentDate());
- model.setValue("/root/send/retrparam/todate", getCurrentDate());
- // 기관코드 세팅
- misfComboComCdListMulti("Z0007","cmb_instcd");
- model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
-
-
- //grd_texlist.rowheight(0) = 35;
-
- fSetReptKind();
- fSetDate();
- fSearch();
-
- model.refresh();
- }
-
- function fSetReptKind()
- {
- /* 07.25 이정훈 수정*/
- var sMonth = getCurrentDate().substr(4, 2);
-
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- model.setValue("/root/send/retrparam/addtaxpnt", "1");
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- model.setValue("/root/send/retrparam/addtaxpnt", "2");
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- model.setValue("/root/send/retrparam/addtaxpnt", "3");
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- model.setValue("/root/send/retrparam/addtaxpnt", "4");
- }
-
-
- //model.setValue("/root/send/retrparam/addtaxpnt", model.getValue("/root/target/reptkind"));
- //model.refresh();
- }
-
-
- function fSetDate()
- {
- if(model.getValue("/root/send/retrparam/addtaxyy").length != 4)
- {
- messageBox("년도가 잘못되었습니다.", "I999");
- model.setFocus("ipt_yyyy");
- return;
- }
- var sReptKind = model.getValue("/root/send/retrparam/addtaxpnt");
- if(sReptKind == "1")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0101");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0331");
- }
- else if(sReptKind == "2")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0101");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0630");
- }
- else if(sReptKind == "3")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0701");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "0930");
- }
- else if(sReptKind == "4")
- {
- model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/addtaxyy") + "0701");
- model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/addtaxyy") + "1231");
- }
- model.refresh();
- }
-
- function fSearch() {
- if(ipt_yyyy.value == "") {
- messageBox("년도를","C001");
- model.setFocus("ipt_yyyy");
- }else if(ipt_yyyy.value > tempyyyy.value) {
- messageBox(tempyyyy.value+"년도","E011");
- model.setFocus("ipt_yyyy");
- }else{
- submit("TRRAT01291");
- }
- }
-
- function fPrint() {
- if(ipt_yyyy.value == "") {
- messageBox("년도를","C001");
- model.setFocus("ipt_yyyy");
- }else if(grd_texlist.rows == grd_texlist.fixedRows) {
- messageBox("출력할 내용이","I004");
- }else{
- if(rdo_reptkind.value == "1") {
- model.setValue("/root/send/prtparam/addtaxpnt","1기 예정");
- }else if (rdo_reptkind.value == "2") {
- model.setValue("/root/send/prtparam/addtaxpnt","1기 확정");
- }else if(rdo_reptkind.value == "3") {
- model.setValue("/root/send/prtparam/addtaxpnt","2기 예정");
- }else {
- model.setValue("/root/send/prtparam/addtaxpnt","2기 확정");
- }
-
- model.setValue("/root/send/prtparam/instcdnm", cmb_instcd.label);
- model.setValue("/root/send/prtparam/frdate",ipt_frdate.value.substr(4,2) );
- model.setValue("/root/send/prtparam/todate",ipt_todate.value.substr(4,2) );
-
- exeReportPreview("RPRAT01290","XMLSTR","/root/send/prtparam");
- }
- }
-
- function fSave() {
- if(grd_texlist.row == "-1") {
- messageBox("저장할 내용이","I004");
- }else if(ipt_yyyy.value != "" && ipt_yyyy.value != tempyyyy.value ) {
- messageBox(tempyyyy.value+"년도의 내용만 저장이","I006");
- }else{
- model.setValue( "/root/send/save/texlist", grd_texlist.getUpdateData());
- submit("TXRAT01291"); // 저장
- }
- }
- ]]>
- </script>
- <submission id="TRRAT01291" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
- <submission id="TXRAT01291" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="color:#4d4d4d; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_1" style="left:0px; top:0px; width:1195px; height:30px; ">
- <caption id="cap_6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">부동산 임대공급가액 명세서</caption>
- <caption id="cap_4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="grp_3" scroll="auto" style="left:0px; top:55px; width:1195px; height:725px; ">
- <case id="case2" selected="true">
- <caption id="cap_2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
- </case>
- <switch id="swt_1" class="sw_box" style="left:0px; top:80px; width:1195px; height:615px; border-style:solid; ">
- <case id="case2" style="left:0px; top:0px; width:1193px; height:638px; ">
- <caption id="cap_5" class="tit_2" style="left:5px; top:10px; width:195px; height:18px; ">부동산 임대공급가액 명세서</caption>
- <datagrid id="grd_texlist" nodeset="/root/main/list/texlist" caption="년도^신고유형^기관코드^seq^층·호수^면적(㎡)^상호(성명)^사업자등록번호^입주일^퇴거일^보증금^월세^합계^보증금이자^월세(계)" colwidth="35, 35, 35, 35, 60, 90, 200, 115, 100, 100, 100, 100, 105, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:585px; ">
- <col ref="addtaxyy" visibility="hidden"/>
- <col ref="addtaxpnt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <col ref="layer" type="input" style="text-align:center; "/>
- <col ref="vol" type="input" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="loanuser" type="input" style="text-align:left; padding-right:1; "/>
- <col ref="entrregno" type="input" format="999-99-99999" style="text-align:center; "/>
- <col ref="loanindt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="loanoutdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="grntamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
- <col ref="mmamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
- <col ref="amt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
- <col ref="grntrest" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
- <col ref="loaninamt" type="input" format="(-)#,###" savetype="digit" maxlength="15" style="text-align:right; padding-right:1; "/>
- <col ref="deployeeentrregno" visibility="hidden"/>
- <col ref="deployeecustnm" visibility="hidden"/>
- <col ref="deployeesupaddr" visibility="hidden"/>
- <col ref="deployeeinfaddr" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_texlist.gridToInstance;
- ]]>
- </script>
- </datagrid>
- <line id="lin_1" class="line_1" style="x1:0px; y1:30px; x2:1193px; y2:30px; "/>
- <button id="btn_7" class="btn2_letter2" style="left:1143px; top:5px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfSaveExcel(grd_texlist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_texlist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1030px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_yyyy.value == "") {
- messageBox("년도를","C001");
- model.setFocus("ipt_yyyy");
- }else if(ipt_yyyy.value < tempyyyy.value) {
- messageBox(tempyyyy.value+"년도만","I006");
- model.setFocus("ipt_yyyy");
- }else{
- grd_texlist.addRow();
- grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("addtaxyy")) = ipt_yyyy.value;
- grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("instcd")) = cmb_instcd.value;
- grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("addtaxpnt")) = rdo_reptkind.value;
-
- if(ipt_regno.value != "") {
- grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("loanuser")) = ipt_loanuser.value;
- grd_texlist.valueMatrix(grd_texlist.row, grd_texlist.colRef("entrregno")) = ipt_regno.value;
- }
- else {
- }
- }
- ]]>
- </script>
- </button>
- <button id="button18" class="btn2_letter3" style="left:1087px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_texlist, "D");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" navindex="-1" editable="false" inputtype="date" style="left:912px; top:12px; width:100px; height:19px; "/>
- <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" navindex="-1" editable="false" inputtype="date" style="left:785px; top:12px; width:100px; height:19px; "/>
- <line id="line10" class="line_4" style="x1:1105px; y1:8px; x2:1105px; y2:62px; "/>
- <caption id="caption10" class="search_name" style="left:686px; top:12px; width:100px; height:17px; ">기 간 :</caption>
- <caption id="caption1" class="search_name" style="left:686px; top:40px; width:99px; height:17px; ">사업자번호 :</caption>
- <select1 id="rdo_reptkind" ref="/root/send/retrparam/addtaxpnt" class="radio_search" navindex="-1" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:365px; top:40px; width:305px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDate();
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:280px; top:12px; width:85px; height:17px; ">년 도 :</caption>
- <input id="ipt_loanuser" ref="/root/send/retrparam/loanuser" navindex="-1" imemode="hangul" style="left:912px; top:40px; width:160px; height:19px; "/>
- <button id="btn_entregnohelp" class="icon_search" style="left:891px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("14", ipt_regno, "", "entrregno,loanuser,temp,temp1,addr");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_regno" ref="/root/send/retrparam/entrregno" navindex="-1" format="999-99-99999" style="left:785px; top:40px; width:100px; height:19px; text-align:center; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:23px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:280px; top:40px; width:90px; height:17px; ">신고유형 :</caption>
- <input id="ipt_yyyy" ref="/root/send/retrparam/addtaxyy" class="input_s_essential" navindex="-1" maxlength="4" style="left:365px; top:12px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDate();
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:5px; top:12px; width:101px; height:17px; ">기 관 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/retrparam/instcd" class="combo_s_essential" disabled="true" navindex="-1" appearance="minimal" style="left:85px; top:12px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption4" style="left:892px; top:14px; width:16px; height:16px; ">~</caption>
- <output id="tempyyyy" ref="/root/init/tempyyyy" navindex="-1" visibility="hidden" maxlength="4" style="left:460px; top:12px; width:70px; height:19px; text-align:center; "/>
- </group>
- <group id="grp_4" scroll="auto" style="left:0px; top:25px; width:1195px; height:30px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1185px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint() ;
- ]]>
- </script>
- </button>
- <button id="button39" class="btn4_letter2" style="left:1132px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- fSearch();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|