123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?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="">
- <main>
- <list1>
- <loanlist>
- </loanlist>
- </list1>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <lncd/>
- </retrparams>
- <temp>
- <maxno/>
- </temp>
- </send>
- <init/>
- <target/>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <submission id="TRRAF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list1"/>
- <submission id="TXRAF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list1/loanlist" resultref="/root/temp"/>
- <bind id="bindMaxNo" ref="/root/send/temp/maxno" calculate="max(/root/main/list1/loanlist/tims)"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode( "/root/main/loanlist");
-
- misfMsterDetailSet(grd_loanlist, null, "TRRAF01101", "Y");
-
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/wndparams/instcd"))
- model.setValue("/root/send/retrparams/lncd", model.getValue("/root/target/wndparams/lncd"))
- model.refresh();
- fRetrieve();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //저장버튼을 눌렸을 경우
- function fSave()
- {
- var dlgRslt = messageBox("원리금상환정보를 ", "Q002");
- if(dlgRslt != "6") return;
- misfSave("TXRAF01101");
- }
- function fRetrieve()
- {
- submit("TRRAF01101");
- model.refresh();
- }
-
- function fCalcRntamt()
- {
- if(model.getValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt") == "") model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt", "0");
- if(model.getValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt") == "") model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt", "0");
- grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("rntamt")) = parseInt(grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("prinamt")))
- + parseInt(grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("restamt")));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="840" pageheight="820" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:820px; height:765px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:820px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" bankground-color="#fffbf2" ellipseheight="10" style="left:0px; top:0px; width:820px; height:35px; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="30" style="left:750px; top:5px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">원리금상환번호 :</caption>
- <line id="line5" class="line_4" style="x1:730px; y1:5px; x2:730px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_lncd" ref="/root/send/retrparams/lncd" class="input_s_essential" disabled="true" navindex="99" maxlength="10" style="left:117px; top:8px; width:105px; height:19px; text-align:center; "/>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:818px; y2:70px; text-align:center; "/>
- <datagrid id="grd_loanlist" nodeset="/root/main/list1/loanlist" allowuserresize="false" caption="기관코드^원리금상환번호^회차^지급월^원리금^원금^이자^미회수원금" colsep="^" colwidth="0, 0, 100, 110, 150, 140, 140, 140" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:820px; height:665px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="lncd" visibility="hidden" style="text-align:center; "/>
- <col ref="tims" type="input"/>
- <col ref="payym" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="rntamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
- <col ref="prinamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
- <col ref="restamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
- <col ref="unwthdrwamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_loanlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_loanlist.col == grd_loanlist.colRef("prinamt") || grd_loanlist.col == grd_loanlist.colRef("restamt"))
- {
- fCalcRntamt();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">원리금상환표</caption>
- <button id="btn_excsave" class="btn2_letter4" style="left:641px; top:50px; width:64px; height:19px; text-align:center; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_loanlist, getUserInfo("dutplceinstnm") + " 원리금상환목록");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:576px; top:50px; width:64px; height:19px; text-align:center; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_loanlist, getUserInfo("dutplceinstnm") + " 원리금상환목록");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:711px; top:50px; width:53px; height:19px; text-align:center; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_loanlist, "A");
-
- model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/instcd", model.getValue("/root/send/retrparams/instcd"));
- model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/lncd", model.getValue("/root/send/retrparams/lncd"));
-
- // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/rntamt", "0");
- // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt", "0");
- // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt", "0");
- // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/unwthdrwamt","0");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:765px; top:50px; width:53px; height:19px; text-align:center; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_loanlist, "D");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/send/temp/maxno" style="left:175px; top:50px; width:25px; height:19px; "/>
- <button id="button2" class="btn4_letter2" style="left:760px; top:742px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:820px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:761px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSave();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:820px; y2:25px; "/>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <group id="group1" style="left:0px; top:0px; width:820px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">원리금상환등록관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|