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
/
VITA
/
Views
/
Map
/
MemberBaseline
/
Edit File Name :
_IncomeTab.cshtml
@model RER_Project.DataAccess.ViewModels.Baseline.BaselineViewModel <h3><u><span id="mainCommodityName">@Model.MemberDetailView.CommodityName Commodity</span></u></h3> <div class="table-responsive" style="margin-top: 16px;"> <table class="table table-bordered table-hover display " name="tblIncome" id="tblIncomeForMainCommodity" style="width:100%"> <thead> <tr> <th rowspan="2" style="text-align:center;padding-top:20px;">Product</th> <th colspan="5" scope="colgroup" style="text-align:center">Quantity</th> <th rowspan="2" style="padding-top:20px;text-align:center">Price Rate (Rs)</th> <th rowspan="2" style="text-align:center;padding-top:20px;">Total Sales (Rs)</th> <th colspan="2" style="text-align:center">Area</th> @* <th rowspan="2" style="text-align:center;padding-top:20px;">Trader</th>*@ <th rowspan="2" style="text-align:center;padding-top:20px;">POS</th> </tr> <tr> <th style="text-align:center">Production </th> <th style="text-align:center">Consumption </th> <th style="text-align:center">Loss </th> <th style="text-align:center">Sales </th> <th style="text-align:center"> Unit</th> @*<th style="text-align:center">Sales (Rs)</th> <th style="text-align:center">Income (Rs)</th>*@ <th style="text-align:center">Production</th> <th style="text-align:center">Unit </th> </tr> </thead> <tbody id="tblBaselineIncomeBody"> </tbody> <tfoot style="line-height:30px;background-color:#edf0ee;color:black" id="tblBaselineIncomeFooter"> </tfoot> </table> </div> <h3><u><span>Other Commodity</span></u></h3> <div class="table-responsive"> <table class="table table-bordered table-hover " name="tblIncomeForOtherCommodity" id="tblIncomeForOtherCommodity"> <thead> <tr> <th style="text-align:center;">Product</th> <th style="text-align:center;">Total Income</th> </tr> </thead> <tbody id="tblBaselineIncomeForOtherCommodityBody"> </tbody> <tfoot style="line-height:30px;background-color:#edf0ee;color:black" id="tblBaselineIncomeForOtherCommodityFooter"> </tfoot> </table> </div> <script> function loadIncomeList() { $('#CommodityIncome').trigger("change"); $('.CommodityError').hide(); $('.CategoryError').hide(); $('.income_show_hide').hide(); const ajax = request(); function request() { const url = '/baseline/income/member/' + @Model.MemberDetailView.Id; return window.getAjaxRequest(url, "Get", @Model.MemberDetailView.Id); } ajax.done(function (response) { addIncomeToTable(response); }); ajax.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function addIncomeToTable(response) { $('#tblIncomeForMainCommodity tbody > tr').remove(); $('#tblIncomeForMainCommodity tfoot > tr').remove(); var tableForMainCommodity = $("#tblIncomeForMainCommodity tbody"); $('#tblIncomeForOtherCommodity tbody > tr').remove(); $('#tblIncomeForOtherCommodity tfoot > tr').remove(); var tableForOtherCommodity = $("#tblIncomeForOtherCommodity tbody"); var totalSalesAmount = 0; var totalIncomeForOtherCommodity = 0; response.forEach(function (x) { if (x.commodity_name !== "Other") { var row = "<tr>"; row += "<td>" + x.category_name + "</td>"; row += "<td>" + getNumberWithComma(x.harvesting_production_quantity) + "</td>"; row += "<td>" + getNumberWithComma(x.consumption_quantity) + "</td>"; row += "<td>" + getNumberWithComma(x.loss_quantity) + "</td>"; row += "<td>" + Number(parseFloat(x.sales_quantity||0).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 0 }) + "</td>"; row += "<td>" + x.income_quantity_unit + "</td>"; row += "<td><center>" + getNumberWithComma(x.sales_price_per_unit||0) + "</center></td>"; row += "<td><center>" + Number(parseFloat(x.total_sales_amount||0).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) + "</center></td>"; row += "<td>" + x.production_area||0 + "</td>"; row += "<td>" + x.production_area_unit + "</td>"; //row += "<td>" + x.trader + "</td>"; row += "<td>" + x.point_of_selling + "</td>"; totalSalesAmount += parseFloat(x.total_sales_amount||0); tableForMainCommodity.append(row); } else { var row = "<tr>"; row += "<td>" + x.category_name + "</td>"; row += "<td><center>" + Number(parseFloat(x.investment).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) + "</center></td>"; totalIncomeForOtherCommodity += parseFloat(x.investment||0); tableForOtherCommodity.append(row); } }) var tblFooterForMainCommodity = $("#tblIncomeForMainCommodity tfoot"); var footerRow = `<tr> <td ><strong>Total :</strong></td> <td colspan="6"></td> <td><strong><center> Rs. ${Number(parseFloat(totalSalesAmount).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) }</center></strong></td> <td colspan="6"></td></tr>` tblFooterForMainCommodity.append(footerRow); var tblFooterForOtherCommodity = $("#tblIncomeForOtherCommodity tfoot"); var footerForOtherCommodityRow = `<tr> <td ><strong>Total :</strong></td> <td><strong><center> Rs. ${Number(parseFloat(totalIncomeForOtherCommodity).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) }</center></strong></td></tr>` tblFooterForOtherCommodity.append(footerForOtherCommodityRow); } function getIncomeByMemberId(id) { const ajax = request(); function request() { const url = '/baseline/income/' + id; return window.getAjaxRequest(url, "Get",id); } ajax.done(function (response) { $('#popUpCollectionDateNepali').html(response.CollectionDateNepali); $('#popUpHarvestingProductionQuantity').html(response.HarvestingProductionQuantity); $('#popUpConsumptionQuantity').html(response.ConsumptionQuantity); $('#popUpLossQuantity').html(response.LossQuantity); $('#popUpSalesQuantity').html(response.SalesQuantity); $('#popUpInvestment').html(response.Investment); $('#popUpTotalSalesAmount').html(response.TotalSalesAmount); $('#popUpPointOfSelling').html(response.PointOfSelling); $('#popUpMember').html('@Model.MemberDetailView.FirstName @Model.MemberDetailView.LastName' ); $('#popUpTraderName').val(response.TraderId); $('#ViewIncome').modal('show'); }) } </script> <style> .select2-selection__rendered { line-height: 29px !important; } .select2-container .select2-selection--single { height: 33px !important; } .select2-selection__arrow { height: 32px !important; } </style>
Save