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
/
GroupMembers
/
View File Name :
_memberFinance.cshtml
@model RER_Project.DataAccess.Models.MemberFinance <div class="modal-dialog width"> <div class="modal-content"> <div class="modal-header"> <span class="close" id="closeMember" data-dismiss="modal" aria-hidden="true">×</span> <label style="font-size:medium;"><b>Access To Finance (@ViewBag.MemberName)</b></label> </div> <div class="modal-body"> <form id="CreateCoopForm"> @if (Model != null) { <dl class="dl-horizontal"> <dt> <strong>Access to Loan (Nrs)</strong> : </dt> <dd> <input type="number" id="LoanAccess" name="LoanAccess" class="form-control required" value="@Model.LoanAccess" /> <input type="hidden" value="@ViewBag.MemberId" id="MemberId" name="MemberId" /> <input type="hidden" value="@ViewBag.GroupId" id="GroupId" name="GroupId" /> <input type="hidden" value="@Model.Id" id="Id" name="Id" /> </dd> <dt> <strong>Subsidized Loan (Nrs)</strong> : </dt> <dd> <input type="number" id="SubsidizedLoan" name="SubsidizedLoan" class="form-control required" value="@Model.SubsidizedLoan"/> </dd> <dt> <strong>BFIs/Coop (Class)</strong> : </dt> <dd> <select type="text" class="form-control required" name="ClassId" id="ClassId" data-api="/banks-class/select" onchange="showDiv(this)" data-api-selected-value="@Model.ClassId"></select> </dd> <dt> <strong> BFIs </strong> : </dt> <dd> <select type="text" class="form-control" name="BankNameId" id="BankNameId" data-api="/banks-name-by-type/select" data-api-selected-value="@Model.BankNameId" disabled=""></select> </dd> <dt class="hide-div"> <strong>Coop Name/Others</strong> : </dt> <dd class="hide-div"> <input type="text" id="CoopOther" name="CoopOther" class="form-control" value="@Model.CoopOther"/> </dd> <dt class="pull-right"> <a class="btn btn-primary" id="SubmitBtn">Save</a> <a href=@("/group-members?groupId="+ ViewBag.GroupId) class="btn btn-default">Back</a> </dt> </dl> } else { <dl class="dl-horizontal"> <dt> <strong>Access to Loan (Nrs)</strong> : </dt> <dd> <input type="number" id="LoanAccess" name="LoanAccess" class="form-control required"/> <input type="hidden" value="@ViewBag.MemberId" id="MemberId" name="MemberId" /> <input type="hidden" value="@ViewBag.GroupId" id="GroupId" name="GroupId" /> </dd> <dt> <strong>Subsidized Loan (Nrs)</strong> : </dt> <dd> <input type="number" id="SubsidizedLoan" name="SubsidizedLoan" class="form-control required" /> </dd> <dt> <strong>BFIs/Coop (Class)</strong> : </dt> <dd> <select type="text" class="form-control required" name="ClassId" id="ClassId" data-api="/banks-class/select" onchange="showDiv(this)"></select> </dd> <dt> <strong> BFIs </strong> : </dt> <dd> <select type="text" class="form-control" name="BankNameId" id="BankNameId" data-api="/banks-name-by-type/select" disabled=""></select> </dd> <dt class="hide-div"> <strong>Coop Name/Others</strong> : </dt> <dd class="hide-div"> <input type="text" id="CoopOther" name="CoopOther" class="form-control" /> </dd> <dt class="pull-right"> <a class="btn btn-primary" id="SubmitBtn">Save</a> <a href=@("/group-members?groupId="+ ViewBag.GroupId) class="btn btn-default">Back</a> </dt> </dl> } </form> </div> </div> </div> <script type="text/javascript"> $(document).ready(function () { window.initializeSelectApis(); window.initializeCascadeLocation(); $('.hide-div').hide(); }); function showDiv(select) { debugger if (select.value === "5" || select.value === "6") { $(".hide-div").show(); } else { $(".hide-div").hide(); } }; $("#SubmitBtn").off("click").on("click", function () { function request(model) { const url = "/members-finance/create"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); } let mid = $("#MemberId").val(); let gid = $("#GroupId").val(); let id = $("Id").val(); debugger const form = $("#CreateCoopForm"); $.validator.unobtrusive.parse(form); if (!form.valid()) { return false; } if (!window.confirmAction()) { return; } WorkForce.loader.show(); const model = window.serializeForm(form); const ajax = request(model); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); window.location = "/group-members?groupId=" + gid; }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); }) </script>