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
/
mapqa
/
Views
/
Map
/
FarmersDiary
/
View File Name :
_FarmerDiaryLandTab.cshtml
@model RER_Project.DataAccess.ViewModels.Baseline.BaselineViewModel <div class="table-responsive" style="margin-top: 16px;"> <table class="table table-bordered table-hover" name="tblLand_@ViewBag.FiscalYear" id="tblLand_@ViewBag.FiscalYear"> <thead> <tr> <th>Land Status</th> <th> @if (@Model.MemberDetailView.Commodity == 2) { <span>Area of Pond </span> } else { <span>Irrigated Land</span> } </th> <th> @if (Model.MemberDetailView.Commodity == 2) { <span> Land Probability for Pond </span> } else { <span>Non Irrigated Land</span> } </th> @if (Model.MemberDetailView.Commodity != 2) { <th> Land With Probability Of Irrigation </th> } <th>Land Unit</th> <th>Remarks</th> </tr> </thead> <tbody id="tblLand_@ViewBag.FiscalYearBody"> </tbody> </table> </div> <script type="text/javascript"> var commodityId = @Model.MemberDetailView.Commodity; if (commodityId == 2) { $("#lblIrrigatedLand").text("Area of Pond"); $("#lblNonIrrigatedLand").text("Land Probability for Pond"); $("#divLandProbabilityOfIrrigation").hide(); $("#LandProbabilityOfIrrigation").removeClass("required"); } function loadLand() { const ajax = request(); function request() { const url = '/farmer_diary/land/member/' + @Model.MemberDetailView.Id + "/fiscal/" + '@ViewBag.FiscalYear'; return window.getAjaxRequest(url, "Get", @Model.MemberDetailView.Id); } ajax.done(function (response) { addLandToTable(response); }); ajax.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function addLandToTable(response) { console.log(response); debugger; $('#tblLand_@ViewBag.FiscalYear tbody > tr').remove(); var table = $("#tblLand_@ViewBag.FiscalYear tbody"); response.forEach(function (x) { var row = "<tr>"; // row += "<td>" + x.fiscal_year + "</td>"; //row += "<td>" + x.quadrimester + "</td>"; row += "<td>" + x.status_name + "</td>"; row += "<td>" + getNumberWithComma(x.irrigated_land) + "</td>"; row += "<td>" + getNumberWithComma(x.non_irrigated_land) + "</td>"; if (commodityId != 2) { row += "<td>" + getNumberWithComma(x.land_probability_of_irrigation) + "</td>"; } row += "<td>" + x.unit_name + "</td>"; row += "<td>" + x.remarks + "</td>"; table.append(row); }) } </script> @{ /* For Fish Commodity (Just changing Level and following below strategy ) ============================================================= ========================================================================================== | OtherCommodity Fish Commodity | | | | IrrigatedLand mapped to Area of Pond in database | | | | Non IrrigatedLand mapped to Land Probability for Pond in database | */ }