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
/
GroupMembers
/
Edit File Name :
ApprovedGroupMembersList.cshtml
@model RER_Project.DataAccess.ViewModels.GroupMembers.GroupMembersViewModel c <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-8"> <ol class="breadcrumb"> <li class="active"> <strong>Group Member Information</strong><br /><br /> <small> @if (Model.MemberDetailViews.Count > 0) { <small> Location : <strong> @Model.MemberDetailViews[0].Province, @Model.MemberDetailViews[0].District, @Model.MemberDetailViews[0].Municipality </strong><br /> Group Name: <strong>@Model.MemberDetailViews[0].GroupName</strong><br /> Group No:<strong> @Model.MemberDetailViews[0].GroupNo</strong><br /> Commodity Name: <strong>@Model.MemberDetailViews[0].CommodityName</strong> </small> } </small> </li> </ol> </div> <div class="col-lg-4"> <div class="title-action"> </div> </div> </div> <div class="wrapper wrapper-content animated fadeInRight"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <table class="table"> <thead> <tr> <th>Name</th> <th>Ward</th> <th>Gender</th> <th>Origin</th> <th>Ethnicity</th> <th>Migration</th> <th>Positions</th> <th>Contact No</th> <th>Action</th> </tr> </thead> <tbody> @foreach (var item in Model.MemberDetailViews) { <tr> <td>@item.FirstName @item.LastName</td> <td>@item.WardNo</td> <td>@item.Gender</td> <td>@item.Origin</td> <td><input type="hidden" id="EthnicityId" name="EthnicityId" value="@item.EthnicityId" />@item.Ethinicity</td> <td><input type="hidden" id="MigrationId" name="MigrationId" value="@item.MigrationId" />@item.Migration</td> <td><input type="hidden" id="PositionId" name="PositionId" value="@item.PositionId" />@item.Positions</td> <td>@item.ContactNo</td> <td> <a href="/gals_questions_answers/list/@item.Id" title="View GALS" style="font-size:15px;padding:5px"><i class="fa fa-eye"></i></a> </td> </tr> } </tbody> </table> <div class="row"> <div class="form-group col-md-1 pull-right"> <a href="/groups" class="btn btn-default"> <i class="fa fa-arrow-circle-o-left" aria-hidden="true"></i> Back</a> </div> </div> </div> </div> </div> </div> <div class="modal inmodal" id="approve" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content animated fadeIn"> <div class="modal-header" style="padding:8px"> <strong>Are you sure you want to approve this group ?</strong> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> </div> <div class="modal-body"> <p> <div class="row"> <div class="form-group col-md-12"> <label for="title" style="display:block"><strong>Remarks :</strong> </label> <textarea rows="4" style="width:100%;resize:none" name="Remarks" id="Remarks"></textarea> </div> </div> </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-white" data-dismiss="modal">Close</button> <a href="#" onclick="approveGroup('@Model.GroupId')" id="ApproveBtn" class="btn btn-success"><i class="fa fa-check"></i> Approve</a> </div> </div> </div> </div> <div class="modal inmodal" id="reject" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content animated fadeIn"> <div class="modal-header" style="padding:8px"> <strong>Are you sure you want to reject this group ?</strong> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> </div> <div class="modal-body"> <p> <div class="row"> <div class="form-group col-md-12"> <label for="title" style="display:block"><strong>Remarks :</strong> </label> <textarea rows="4" style="width:100%;resize:none" name="Remarks" id="RemarkForRejected"></textarea> </div> </div> </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-white" data-dismiss="modal">Close</button> <a href="#" onclick="rejectGroup('@Model.GroupId')" id="RejectBtn" class="btn btn-danger"><i class="fa fa-times"></i> Reject</a> </div> </div> </div> </div> @* <a href="#" onclick="rejectGroup('@Model.GroupId')" id="RejectBtn" class="btn btn-danger"><i class="fa fa-times"></i> Reject</a>*@ </div> <script type="text/javascript"> $(function () { canCreateGroupMember(); l }); function canCreateGroupMember() { var totalCurrentGroupMember = @Model.GroupMembers.Count; var totalBeneficiaries = @Model.Groups.BeneficiariesNo; if (totalCurrentGroupMember == totalBeneficiaries) { $('.showCreateBtn').hide(); } else { $('.showCreateBtn').show(); } } function finalizeGroup(id) { WorkForce.loader.show(); let conf = confirm(`Are you sure you want to finalize this group ?`); if (!conf) { return; } else { var ajax = request(id); ajax.done(function (response) { WorkForce.loader.hide(); if (response) { ShowMessage("success", "This group has been finalized."); window.location.href = "/groups?page=1"; } else {//No. of member created should be equal to No. of beneficiaries ShowMessage("error", "No. of member created should be equal to No. of beneficiaries."); } }); 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); } function requestForApprove(id) { const url = "/group/approve"; let remarks = document.getElementById('Remarks').value; const data = JSON.stringify({ "ModuleMemberId": id, "Remarks": remarks }); console.log(data); return window.getAjaxRequest(url, "POST", data); } function requestForReject(id) { let remarks = document.getElementById('RemarkForRejected').value; const url = "/group/reject"; const data = JSON.stringify({ "ModuleMemberId": id, "Remarks": remarks }); console.log(window.getAjaxRequest(url, "POST", data)) return window.getAjaxRequest(url, "POST", data); } function rejectGroup(id) { WorkForce.loader.show(); let conf = confirm(`Are you sure you want to Reject this group ?`); if (!conf) { return; } else { var ajax = requestForReject(id); ajax.done(function (response) { WorkForce.loader.hide(); if (response) { ShowMessage("success", "This group has been Approved Successfully."); window.location.href = "/groups?page=1"; } else {//No. of member created should be equal to No. of beneficiaries ShowMessage("error", "Unable to Approved Currently."); } }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("Error", xhr.responseText); }); } } function approveGroup(id) { WorkForce.loader.show(); let conf = confirm(`Are you sure you want to Approved this group ?`); if (!conf) { return; } else { var ajax = requestForApprove(id); ajax.done(function (response) { WorkForce.loader.hide(); if (response) { ShowMessage("success", "This group has been Approved Successfully."); window.location.href = "/groups?page=1"; } else {//No. of member created should be equal to No. of beneficiaries ShowMessage("error", "Unable to Approved Currently."); } }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("Error", xhr.responseText); }); } } </script>
Save