Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed


<script type="text/javascript">

    $(document).ready(function () {     
          var dtable = $('#loandetail').DataTable({
             
           });
    
    });
    
        $('#loandetail').on('click', '.loanCount', function() {
                var fofoId = $(this).data('fofoid');
                doGetAjaxRequestHandler(context + "/getLoanSummary?fofoId="
                        + fofoId, function(response) {
                                $('#loanSummarydetail .modal-content').html(response);

                        });
        });
     
</script>



<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Loan Summary</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>Loan Summary</li>  
                                                                
                        </ol>
                </div>
        </div>
        
            <div class="col-lg-12">
        <table class="table table-border table-condensed table-bordered" id="loandetail" style="width:100%">

            <thead class="row htable" style="background:#F5F5F5;">

            <tr style="color:black;">
                <th>Code</th>
                <th>Partner Name</th>
                <th>Total Investment</th>
                <th>Wallet Amount</th>
                <th>Limit</th>
                <th>Utilized Amount</th>
                <th>Available Limit</th>
                <th>Risk</th>
                <th>Loan Count</th>
              
                </tr>
            </thead>
            <tbody>
                #foreach($scr in $sdCreditRequirements)
                
                <tr>
                <td>$customRetailerMap.get($scr.getFofoId()).getCode()</td>
                                <td>$customRetailerMap.get($scr.getFofoId()).getBusinessName()</td>
                            <td>$currentPartnerDailyInvestmentMap.get($scr.getFofoId()).getTotalInvestment()</td>
                            <td>$userWalletMap.get($scr.getFofoId()).getAmount()</td>   
                                <td>$scr.getLimit().setScale(2,$ru)</td>
                                <td>$scr.getUtilizedAmount().setScale(2,$ru)</td>
                                <td>$scr.getAvailableLimit().setScale(2,$ru)</td>
                                <td>$scr.getRisk()</td>
                                <td class="loanCount" data-fofoid="$scr.getFofoId()" data-toggle="modal" data-target="#loanSummarydetail">$loanCountMap.get($scr.getFofoId())</td>
                                
                                   
                                </tr>
              #end

            </tbody>

        </table>
    </div>
    
    
    <div id="loanSummarydetail" class="modal" role="dialog">
          <div class="modal-dialog">
            <div class="modal-content">
             
    </div>
   </div>
 </div>
</section>