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
/
FarmersDiary
/
Edit File Name :
_FarmerDiaryProductionPlanTab.cshtml
@model RER_Project.DataAccess.ViewModels.Baseline.BaselineViewModel <div class="table-responsive" style="margin-top: 16px;"> <table class="table table-bordered table-hover" name="tblProductionPlan_@ViewBag.FiscalYear" id="tblProductionPlan_@ViewBag.FiscalYear"> <thead> <tr> @*<th rowspan="2" style="text-align:center;">Fiscal Year</th> <th rowspan="2" style="text-align:center">Quadrimester</th>*@ <th rowspan="2" style="text-align:center;padding-top:20px">Product Name</th> <th colspan="4" style="text-align:center">Production</th> <th rowspan="2" style="text-align:center;padding-top:20px">Remarks</th> </tr> <tr> <th> Area</th> <th> Area Unit</th> <th> Quantity</th> <th> Quantity Unit</th> </tr> </thead> <tbody> </tbody> </table> </div> <script type="text/javascript"> function loadProduction() { debugger const ajax = request(); function request() { const url = '/farmer_diary/production_plan/member/' + @Model.MemberDetailView.Id + "/fiscal/" + '@ViewBag.FiscalYear'; return window.getAjaxRequest(url, "Get", @Model.MemberDetailView.Id); } ajax.done(function (response) { addProductionPlanListToTable(response); }); ajax.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function addProductionPlanListToTable(response) { $('#tblProductionPlan_@ViewBag.FiscalYear tbody > tr').remove(); var table = $("#tblProductionPlan_@ViewBag.FiscalYear tbody"); response.forEach(function (x) { var row = "<tr>"; //row += "<td>" +x.fiscal_year+ "</td>"; //row += "<td>" + x.quadtrimester + "</td>"; row += "<td>" + x.category + "</td>"; row += "<td>" + getNumberWithComma(x.production_area) + "</td>"; row += "<td>" + x.unit + "</td>"; row += "<td>" + getNumberWithComma(x.production_quantity) + "</td>"; row += "<td>" + x.quantity_unit + "</td>"; row += "<td>" + x.remarks + "</td>"; table.append(row); }) } function getIncomeByMemberId(id) { alert(id); } </script>
Save