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
/
GALSGroup
/
View File Name :
GetFemaleMembersforGALS.cshtml
@model RER_Project.DataAccess.ViewModels.GroupMembers.GroupMembersViewModel @using RER_Project.BusinessLayer.BusinessService @{ var meta = AppUserService.GetCurrent(); } <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-12"> <div id="currentMemberId"></div> <strong><span style="font-size:medium">Female Member Information </span></strong><br /> <br /> <div class="row"> <div class="col-lg-12"> <span style="font-size: 100%;"> Group Name:<strong> @Model.FnShortGroupInformation.group_name</strong> <strong></strong> </span> <span style="font-size: 100%;"> Province:<strong> @Model.FnShortGroupInformation.province</strong> <strong></strong> </span> <span style="font-size: 100%;"> District: <strong>@Model.FnShortGroupInformation.district</strong><strong></strong> </span> <span style="font-size: 100%;"> Municipality: <strong> @Model.FnShortGroupInformation.municipality</strong> </span> </div> </div> <br /> <div class="row"> <div class="col-lg-8"> <span style="font-size: 100%;"> Ward:<strong> @Model.FnShortGroupInformation.ward </strong> </span> <span style="font-size: 100%;"> Commodity: <strong> @Model.FnShortGroupInformation.commodity</strong> </span> <span style="font-size: 100%;"> # of Beneficiaries: <strong>@Model.FnShortGroupInformation.beneficiaries_no</strong> </span> </div> </div> <br /> <div class="row"> <div class="col-lg-12"> @if (meta.RoleId == 8) { <span style="font-size:100%;color:red" class="pull-right"> <strong> Note: Please check on the GALS member inorder to notify EDF to fill GALs form from the field </strong> </span> } </div> </div> </div> </div> <div class="wrapper wrapper-content animated"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <table class="table table-striped dataTables" id="femaleMemberInList"> <thead> <tr> <th>SN.</th> <th>Name</th> <th>Ward</th> <th>Gender</th> <th>Origin</th> <th>Ethnicity</th> <th>Positions</th> @* <th>Contact No</th>*@ <th>GALS Form and Score</th> <th> <center> GALS Status <br /> @*@if (Model.FnShortGroupInformation.is_group_gals_complete == false) { <small id="AllSelectGals" style="color:blue">Select All</small> }*@ </center> </th> <th><center>Action</center></th> </tr> </thead> <tbody> @{ int serialNo = 1; } @foreach (var item in Model.FnGroupMembersList) { <tr> <td> <label> @serialNo</label> @{ serialNo++; } </td> <td>@item.first_name @item.last_name </td> <td>@item.ward_no</td> <td><span>Female</span> </td> <td>@item.origin</td> <td>@item.ethnicity</td> <td>@item.positions</td> <td> <a class='' style='font-size:14px;padding:5px' onclick="getGALSData('@item.id')"><i style='cursor:pointer;' class='fa fa-eye'></i></a> <a href="@("/gals?memberId=" + item.id)" title="GALS" style="font-size:15px;padding:5px"> <span class="badge"> <small>Count @item.total_gals </small> </span> </a> </td> <td> <center> @if (item.is_gals == true) { if (meta.RoleId != 8) { <p class="text-center text-success"><i class="fa fa-check"></i></p> } else { if (Model.FnShortGroupInformation.is_group_gals_complete == true) { <input type="checkbox" name="memberId" value="@item.id" class="chkbxq" id="IsGals" checked disabled> } else { <input type="checkbox" name="memberId" class="chkbxq" value="@item.id" id="IsGals" checked> } } } else { if (meta.RoleId != 8) { <p class="text-center text-danger"><i class="fa fa-times"></i></p> } else { if (Model.FnShortGroupInformation.is_group_gals_complete == true) { <input type="checkbox" class="chkbxq" name="memberId" id="IsGals" value="@item.id" disabled> } else { <input type="checkbox" class="chkbxq" name="memberId" id="IsGals" value="@item.id"> } } } </center> </td> <td> <center> <a target="_blank" class="btn btn-default btn-xs" href="/group-members/group/@item.group_id/member/@item.id" title="View @item.first_name @item.last_name Details" style="color:dodgerblue"><i class="fa fa-eye"></i></a></center> </td> </tr> } </tbody> </table> <div class="row"> <div class="col-lg-12"> @if (meta.RoleId != 8) { <a href="/groups" class="btn btn-default"><i class="fa fa-arrow-circle-o-left"></i> Back</a> } else { <a href="/female/groups" class="btn btn-default"><i class="fa fa-arrow-circle-o-left"></i> Back</a> } @if (meta.RoleId == 8) { if (Model.FnShortGroupInformation.is_group_gals_complete == false) { <div id="HideCompleteDiv"> @*<a class="btn btn-primary pull-right" id="Save">Save </a>*@ <a class="btn btn-primary pull-right" id="CompleteGalsForm" style="margin-right:15px">Complete</a> <span class="pull-right" style="color:red;padding-top:6px;"> <strong>(Once clicked on Complete , feasible gals member is set)</strong> </span> </div> } } </div> @if (Model.FnShortGroupInformation.is_group_gals_complete == true && meta.RoleId == 8 ) { <h2 style="color:green" id="MsgAfterCompleteClk" class="pull-right">Already Selected Feasible GALS Member </h2> } </div> </div> </div> </div> </div> <div> @{ Html.RenderAction("ViewGALSData", "GALSGroup");} </div> </div> <link href="~/Content/datatables.min.css" rel="stylesheet" /> <script src="~/Scripts/datatables.min.js"></script> <script> $(document).ready(function () { $('.dataTables').DataTable({ stateSave: true, fixedHeader: true, pageLength: 15, dom: '<"html5buttons"B>lTfgitp', buttons: [] }); $("#Save").on("click", function () { var members = []; $("input:checkbox[name=memberId]:checked").each(function () { members.push($(this).val()); }); WorkForce.loader.show(); var groupId = @Model.FnShortGroupInformation.group_id; var model = { memberIds: members, groupId: groupId }; const ajax = request(model); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); $(".chkbxq").prop("disabled", true); }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); }); function request(model) { const url = "/gals_members/save"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); } @*$("#AllSelectGals").on("click", function () { let conf = confirm(`Are you sure you want to select all GALS Member?`); if (!conf) { return; } else { var groupId = @Model.FnShortGroupInformation.group_id; var model = { groupId: groupId }; const ajax = requestToMakeAllGALSMember(model); ajax.done(function (response) { if (response.value === true) { window.location.href = window.location.href; } WorkForce.loader.hide(); showNotification("success"); }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); } }) function requestToMakeAllGALSMember(model) { const url = "/gals_members/make_all_temp_gals"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); }*@ $("#CompleteGalsForm").on("click", function () { let conf = confirm(`Are you sure you want to perform this action?`); if (!conf) { return; } else { var groupId = @Model.FnShortGroupInformation.group_id; var model = { groupId: groupId }; const ajax = requestGroupForComplete(model); ajax.done(function (response) { if (response.value === true) { $(".chkbxq").prop("disabled", true); $('#HideCompleteDiv').hide(); } $('#AllSelectGals').hide(); WorkForce.loader.hide(); showNotification("success"); }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); } }); function requestGroupForComplete(model) { const url = "/gals_members/complete"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); } }); $(":checkbox").change(function () { //alert(this.value) var memberId = (this).value; WorkForce.loader.show(); var groupId = @Model.FnShortGroupInformation.group_id; var model = { memberId: memberId, groupId: groupId }; const ajax = requestAMemberForGals(model); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); }); function requestAMemberForGals(model) { const url = "/gals_members/save/one_to_one"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); } </script> <style> table td, th { border: 1px solid #e7eaec; } input[type=checkbox] { transform: scale(1.5); } </style>