| 34355 |
ranu |
1 |
<script type="text/javascript">
|
|
|
2 |
|
|
|
3 |
$(document).ready(function () {
|
|
|
4 |
// Initialize first table
|
|
|
5 |
var sanctionTable = $('#sanctiontable').DataTable({
|
|
|
6 |
"scrollX": true,
|
|
|
7 |
"scrollY": "518px",
|
|
|
8 |
scrollCollapse: true,
|
|
|
9 |
"fixedHeader": true,
|
|
|
10 |
"order": [[0, "desc"]],
|
|
|
11 |
fixedColumns: {
|
|
|
12 |
leftColumns: 3
|
|
|
13 |
},
|
|
|
14 |
dom: '<"top"lf>rt<"bottom"ip><"clear">' // Proper dom setup
|
|
|
15 |
});
|
|
|
16 |
|
|
|
17 |
// Initialize second table
|
|
|
18 |
var sanctionTableApproved = $('#sanctiontable-approved').DataTable({
|
|
|
19 |
"scrollX": true,
|
|
|
20 |
"scrollY": "518px",
|
|
|
21 |
scrollCollapse: true,
|
|
|
22 |
"fixedHeader": true,
|
|
|
23 |
"order": [[0, "desc"]],
|
|
|
24 |
fixedColumns: {
|
|
|
25 |
leftColumns: 3
|
|
|
26 |
},
|
|
|
27 |
dom: '<"top"lf>rt<"bottom"ip><"clear">' // Proper dom setup
|
|
|
28 |
});
|
|
|
29 |
|
|
|
30 |
// Adjust columns when tab changes
|
|
|
31 |
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|
|
32 |
// Wait for tab switch and then adjust columns
|
|
|
33 |
setTimeout(function () {
|
|
|
34 |
sanctionTable.columns.adjust().draw();
|
|
|
35 |
sanctionTableApproved.columns.adjust().draw();
|
|
|
36 |
}, 100); // Delay adjustment slightly to ensure tab switch is complete
|
|
|
37 |
});
|
|
|
38 |
});
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
$('#sanctiontable').on('click', '.loanCount', function () {
|
|
|
42 |
var fofoId = $(this).data('fofoid');
|
|
|
43 |
doGetAjaxRequestHandler(context + "/getLoanSummary?fofoId="
|
|
|
44 |
+ fofoId, function (response) {
|
|
|
45 |
$('#loanSummarydetail .modal-content').html(response);
|
|
|
46 |
|
|
|
47 |
});
|
|
|
48 |
});
|
|
|
49 |
|
|
|
50 |
$('#sanctiontable-approved').on('click', '.loanCount', function () {
|
|
|
51 |
var fofoId = $(this).data('fofoid');
|
|
|
52 |
doGetAjaxRequestHandler(context + "/getLoanSummary?fofoId="
|
|
|
53 |
+ fofoId, function (response) {
|
|
|
54 |
$('#loanSummarydetail .modal-content').html(response);
|
|
|
55 |
|
|
|
56 |
});
|
|
|
57 |
});
|
|
|
58 |
|
|
|
59 |
</script>
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
<section class="wrapper">
|
|
|
63 |
<div class="row">
|
|
|
64 |
<div class="col-lg-12">
|
|
|
65 |
<h3 class="page-header"><i class="icon_document_alt"></i>Sanction Request</h3>
|
|
|
66 |
<ol class="breadcrumb">
|
|
|
67 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
68 |
<li><i class="icon_document_alt"></i>Sanction Request</li>
|
|
|
69 |
|
|
|
70 |
</ol>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
<div class="col-lg-12">
|
|
|
74 |
<ul class="nav nav-tabs">
|
|
|
75 |
<li class="active"><a data-toggle="tab" href="#pending">Pending</a></li>
|
|
|
76 |
<li><a data-toggle="tab" href="#approved">Approved</a></li>
|
|
|
77 |
</ul>
|
|
|
78 |
|
|
|
79 |
<div class="tab-content">
|
|
|
80 |
<div id="pending" class="tab-pane fade in active">
|
|
|
81 |
<div class="col-lg-12">
|
|
|
82 |
|
|
|
83 |
<table class="table table-border table-condensed table-bordered" id="sanctiontable"
|
|
|
84 |
style="width:100%">
|
|
|
85 |
|
|
|
86 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
87 |
|
|
|
88 |
<tr style="color:black;">
|
|
|
89 |
<th>Id</th>
|
|
|
90 |
<th>Code</th>
|
|
|
91 |
<th>Partner Name</th>
|
|
|
92 |
<th>Lms</th>
|
|
|
93 |
<th>Lmtd</th>
|
|
|
94 |
<th>Mtd</th>
|
|
|
95 |
|
|
|
96 |
<th>limit</th>
|
|
|
97 |
<th>Available Limit</th>
|
|
|
98 |
<th>Utilization Amount</th>
|
|
|
99 |
<th>Interest</th>
|
|
|
100 |
<th>Credit Duration</th>
|
|
|
101 |
<th>Avg Credit Days</th>
|
|
|
102 |
<th>Active Loan</th>
|
|
|
103 |
|
|
|
104 |
<th>Risk</th>
|
|
|
105 |
<th>Total Investment</th>
|
|
|
106 |
|
|
|
107 |
<th>Short Investment</th>
|
|
|
108 |
<th>Wallet Amount</th>
|
|
|
109 |
<th>Requested By</th>
|
|
|
110 |
<th>Req Amount</th>
|
|
|
111 |
<th>Approval Amount</th>
|
|
|
112 |
<th>Free days</th>
|
|
|
113 |
<th>L2 Status</th>
|
|
|
114 |
<th>Final Status</th>
|
|
|
115 |
<th>Hold Stock</th>
|
|
|
116 |
<th>Provider</th>
|
|
|
117 |
<th>Action</th>
|
|
|
118 |
</tr>
|
|
|
119 |
</thead>
|
|
|
120 |
<tbody>
|
|
|
121 |
#foreach($sanctionRequest in $sanctionRequests)
|
|
|
122 |
#if($sanctionRequest.getRbmL2ApprovalStatus() ==
|
|
|
123 |
"PENDING" && $sanctionRequest.getStatus() != 'REJECTED')
|
|
|
124 |
<tr>
|
|
|
125 |
#parse("rbm-l2-pending-sanction-request.vm")
|
|
|
126 |
|
|
|
127 |
</tr>
|
|
|
128 |
#end
|
|
|
129 |
|
|
|
130 |
#end
|
|
|
131 |
|
|
|
132 |
</tbody>
|
|
|
133 |
|
|
|
134 |
</table>
|
|
|
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
<div id="approved" class="tab-pane fade">
|
|
|
138 |
<div class="col-lg-12">
|
|
|
139 |
|
|
|
140 |
<table class="table table-border table-condensed table-bordered" id="sanctiontable-approved"
|
|
|
141 |
style="width:100%">
|
|
|
142 |
|
|
|
143 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
144 |
|
|
|
145 |
<tr style="color:black;">
|
|
|
146 |
<th>Id</th>
|
|
|
147 |
<th>Code</th>
|
|
|
148 |
<th>Partner Name</th>
|
|
|
149 |
<th>Lms</th>
|
|
|
150 |
<th>Lmtd</th>
|
|
|
151 |
<th>Mtd</th>
|
|
|
152 |
|
|
|
153 |
<th>limit</th>
|
|
|
154 |
<th>Available Limit</th>
|
|
|
155 |
<th>Utilization Amount</th>
|
|
|
156 |
<th>Interest</th>
|
|
|
157 |
<th>Credit Duration</th>
|
|
|
158 |
<th>Avg Credit Days</th>
|
|
|
159 |
<th>Active Loan</th>
|
|
|
160 |
|
|
|
161 |
<th>Risk</th>
|
|
|
162 |
<th>Total Investment</th>
|
|
|
163 |
|
|
|
164 |
<th>Short Investment</th>
|
|
|
165 |
<th>Wallet Amount</th>
|
|
|
166 |
<th>Requested By</th>
|
|
|
167 |
<th>Req Amount</th>
|
|
|
168 |
<th>Approval Amount</th>
|
|
|
169 |
<th>Free days</th>
|
|
|
170 |
<th>L2 Status</th>
|
|
|
171 |
<th>Final Status</th>
|
|
|
172 |
<th>Hold Stock</th>
|
|
|
173 |
<th>Provider</th>
|
|
|
174 |
<th>Action</th>
|
|
|
175 |
</tr>
|
|
|
176 |
</thead>
|
|
|
177 |
<tbody>
|
|
|
178 |
#foreach($sanctionRequest in $sanctionRequests)
|
|
|
179 |
#if($sanctionRequest.getRbmL2ApprovalStatus() ==
|
|
|
180 |
"APPROVED" && $sanctionRequest.getStatus() != 'REJECTED')
|
|
|
181 |
<tr>
|
|
|
182 |
#parse("rbm-l2-approved-sanction-request.vm")
|
|
|
183 |
|
|
|
184 |
</tr>
|
|
|
185 |
#end
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
#end
|
|
|
189 |
|
|
|
190 |
</tbody>
|
|
|
191 |
|
|
|
192 |
</table>
|
|
|
193 |
</div>
|
|
|
194 |
</div>
|
|
|
195 |
</div>
|
|
|
196 |
</div>
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
<div id="loanSummarydetail" class="modal" role="dialog">
|
|
|
200 |
<div class="modal-dialog">
|
|
|
201 |
<div class="modal-content">
|
|
|
202 |
|
|
|
203 |
</div>
|
|
|
204 |
</div>
|
|
|
205 |
</div>
|
|
|
206 |
</section>
|