SPRAF01100_차입금원리금상환등록관리.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>원리금상환관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <loanlist>
  12. </loanlist>
  13. </list1>
  14. </main>
  15. <send>
  16. <retrparams>
  17. <instcd/>
  18. <lncd/>
  19. </retrparams>
  20. <temp>
  21. <maxno/>
  22. </temp>
  23. </send>
  24. <init/>
  25. <target/>
  26. <temp/>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  32. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  34. <submission id="TRRAF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list1"/>
  35. <submission id="TXRAF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list1/loanlist" resultref="/root/temp"/>
  36. <bind id="bindMaxNo" ref="/root/send/temp/maxno" calculate="max(/root/main/list1/loanlist/tims)"/>
  37. </model>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. model.removenode( "/root/main/loanlist");
  41. misfMsterDetailSet(grd_loanlist, null, "TRRAF01101", "Y");
  42. model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/wndparams/instcd"))
  43. model.setValue("/root/send/retrparams/lncd", model.getValue("/root/target/wndparams/lncd"))
  44. model.refresh();
  45. fRetrieve();
  46. ]]>
  47. </script>
  48. <script type="javascript">
  49. <![CDATA[
  50. //저장버튼을 눌렸을 경우
  51. function fSave()
  52. {
  53. var dlgRslt = messageBox("원리금상환정보를 ", "Q002");
  54. if(dlgRslt != "6") return;
  55. misfSave("TXRAF01101");
  56. }
  57. function fRetrieve()
  58. {
  59. submit("TRRAF01101");
  60. model.refresh();
  61. }
  62. function fCalcRntamt()
  63. {
  64. if(model.getValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt") == "") model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt", "0");
  65. if(model.getValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt") == "") model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt", "0");
  66. grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("rntamt")) = parseInt(grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("prinamt")))
  67. + parseInt(grd_loanlist.valueMatrix(grd_loanlist.row, grd_loanlist.colRef("restamt")));
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="840" pageheight="820" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="group3" scroll="auto" style="left:0px; top:40px; width:820px; height:765px; ">
  74. <group id="grp_sea" style="left:0px; top:10px; width:820px; height:35px; vertical-align:top; ">
  75. <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; "/>
  76. <button id="btn_search" class="btn1_letter2" navindex="30" style="left:750px; top:5px; width:56px; height:22px; text-align:left; ">
  77. <caption>조회</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. fRetrieve();
  81. ]]>
  82. </script>
  83. </button>
  84. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">원리금상환번호 :</caption>
  85. <line id="line5" class="line_4" style="x1:730px; y1:5px; x2:730px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  86. <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; "/>
  87. </group>
  88. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:818px; y2:70px; text-align:center; "/>
  89. <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; ">
  90. <col ref="instcd" visibility="hidden"/>
  91. <col ref="lncd" visibility="hidden" style="text-align:center; "/>
  92. <col ref="tims" type="input"/>
  93. <col ref="payym" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  94. <col disabled="true" ref="rntamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
  95. <col ref="prinamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
  96. <col ref="restamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
  97. <col ref="unwthdrwamt" type="input" format="#,###" style="text-align:right; padding-right:3; "/>
  98. <script type="javascript" ev:event="onaftersort">
  99. <![CDATA[
  100. grd_loanlist.gridToInstance();
  101. ]]>
  102. </script>
  103. <script type="javascript" ev:event="onendedit">
  104. <![CDATA[
  105. if(grd_loanlist.col == grd_loanlist.colRef("prinamt") || grd_loanlist.col == grd_loanlist.colRef("restamt"))
  106. {
  107. fCalcRntamt();
  108. }
  109. ]]>
  110. </script>
  111. </datagrid>
  112. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">원리금상환표</caption>
  113. <button id="btn_excsave" class="btn2_letter4" style="left:641px; top:50px; width:64px; height:19px; text-align:center; ">
  114. <caption>엑셀저장</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. misfSaveExcel(grd_loanlist, getUserInfo("dutplceinstnm") + " 원리금상환목록");
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="button1" class="btn2_letter4" style="left:576px; top:50px; width:64px; height:19px; text-align:center; ">
  122. <caption>엑셀입력</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. misfSaveExcel(grd_loanlist, getUserInfo("dutplceinstnm") + " 원리금상환목록");
  126. ]]>
  127. </script>
  128. </button>
  129. <button id="btn_addrow" class="btn2_letter3" style="left:711px; top:50px; width:53px; height:19px; text-align:center; ">
  130. <caption>행추가</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. misfGridIUD(grd_loanlist, "A");
  134. model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/instcd", model.getValue("/root/send/retrparams/instcd"));
  135. model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/lncd", model.getValue("/root/send/retrparams/lncd"));
  136. // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/rntamt", "0");
  137. // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/prinamt", "0");
  138. // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/restamt", "0");
  139. // model.setValue(grd_loanlist.nodeset + "[" + grd_loanlist.row + "]/unwthdrwamt","0");
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="btn_delrow" class="btn2_letter3" style="left:765px; top:50px; width:53px; height:19px; text-align:center; ">
  145. <caption>행삭제</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. misfGridIUD(grd_loanlist, "D");
  149. ]]>
  150. </script>
  151. </button>
  152. <output id="output1" ref="/root/send/temp/maxno" style="left:175px; top:50px; width:25px; height:19px; "/>
  153. <button id="button2" class="btn4_letter2" style="left:760px; top:742px; width:56px; height:22px; ">
  154. <caption>저장</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. window.close();
  158. ]]>
  159. </script>
  160. </button>
  161. </group>
  162. <group id="group4" scroll="auto" style="left:0px; top:13px; width:820px; height:27px; ">
  163. <button id="btn_save" class="btn4_letter2" style="left:761px; top:4px; width:56px; height:22px; ">
  164. <caption>저장</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fSave();
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:820px; y2:25px; "/>
  172. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
  173. <caption>출력</caption>
  174. </button>
  175. </group>
  176. <group id="group1" style="left:0px; top:0px; width:820px; height:15px; ">
  177. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">원리금상환등록관리</caption>
  178. </group>
  179. </xhtml:body>
  180. </xhtml:html>