Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30929 tejbeer 1
 
2
<script type="text/javascript">
3
 
4
    $(document).ready(function () {	
5
	  var dtable = $('#loandetail').DataTable({
6
 
7
	   });
8
 
9
    });
10
 
11
    	$('#loandetail').on('click', '.loanCount', function() {
12
		var fofoId = $(this).data('fofoid');
13
		doGetAjaxRequestHandler(context + "/getLoanSummary?fofoId="
14
			+ fofoId, function(response) {
15
				$('#loanSummarydetail .modal-content').html(response);
16
 
17
			});
18
	});
19
 
20
</script>
21
 
22
 
23
 
24
<section class="wrapper">
25
	<div class="row">
26
		<div class="col-lg-12">
27
			<h3 class="page-header"><i class="icon_document_alt"></i>Loan Summary</h3>
28
			<ol class="breadcrumb">
29
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
30
				<li><i class="icon_document_alt"></i>Loan Summary</li>	
31
 
32
			</ol>
33
		</div>
34
	</div>
35
 
36
	    <div class="col-lg-12">
37
        <table class="table table-border table-condensed table-bordered" id="loandetail" style="width:100%">
38
 
39
            <thead class="row htable" style="background:#F5F5F5;">
40
 
41
            <tr style="color:black;">
42
                <th>Code</th>
43
                <th>Partner Name</th>
44
                <th>Total Investment</th>
45
                <th>Wallet Amount</th>
46
                <th>Limit</th>
47
                <th>Utilized Amount</th>
48
                <th>Available Limit</th>
49
                <th>Risk</th>
50
                <th>Loan Count</th>
51
 
52
	        </tr>
53
            </thead>
54
            <tbody>
55
                #foreach($scr in $sdCreditRequirements)
56
 
57
                <tr>
58
                <td>$customRetailerMap.get($scr.getFofoId()).getCode()</td>
59
				<td>$customRetailerMap.get($scr.getFofoId()).getBusinessName()</td>
60
			    <td>$currentPartnerDailyInvestmentMap.get($scr.getFofoId()).getTotalInvestment()</td>
61
			    <td>$userWalletMap.get($scr.getFofoId()).getAmount()</td>	
62
				<td>$scr.getLimit().setScale(2,$ru)</td>
63
				<td>$scr.getUtilizedAmount().setScale(2,$ru)</td>
64
				<td>$scr.getAvailableLimit().setScale(2,$ru)</td>
65
				<td>$scr.getRisk()</td>
66
				<td class="loanCount" data-fofoid="$scr.getFofoId()" data-toggle="modal" data-target="#loanSummarydetail">$loanCountMap.get($scr.getFofoId())</td>
67
 
68
 
69
				</tr>
70
              #end
71
 
72
            </tbody>
73
 
74
        </table>
75
    </div>
76
 
77
 
78
    <div id="loanSummarydetail" class="modal" role="dialog">
79
	  <div class="modal-dialog">
80
	    <div class="modal-content">
81
 
82
    </div>
83
   </div>
84
 </div>
85
</section>