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
/
KnowledgeManagement
/
View File Name :
_Index.cshtml
@using PagedList.Mvc; @model PagedList.IPagedList<RER_Project.DataAccess.Functions.StoryOrCase.Fn_StoryCase_List> @using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ var meta = AppUserService.GetCurrent(); } <div class="table-responsive"> <table class="footable table table-hover dataTables" data-page-size="10" data-filter=#filter> <thead> <tr> <th>Component</th> @*<th>Sub Component</th>*@ <th>Significant Change </th> <th>Product Type</th> <th>Product</th> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin ) { <th>Creator</th> } <th>Action</th> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin) { <th>Status</th> } </tr> </thead> <tbody> @foreach (var item in Model) { <tr> <td>@item.component_name</td> @*<td>@item.sub_component_name</td>*@ <td>@item.significant_change</td> <td>@item.product_type</td> <td>@item.title</td> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin) { <td>@item.created_by_name</td> } <td> <a class="btn btn-default btn-xs" href="/knowledgeManagement/addStoryOrCase?id=@item.id" title="Edit"><i class="fa fa-edit"></i></a> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin) { <a class="btn btn-default btn-xs" onclick="deleteProduct(@item.id)" title="Delete"><i class="fa fa-trash"></i></a> } <a class="btn btn-default btn-xs" href="/knowledgeManagement/viewStoryOrCase?id=@item.id" title="View"><i class="fa fa-eye"></i></a> </td> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin) { <td> <select class="form-control required" name="StatusId" id="StatusId-@item.id" data-api="/common/select/StoryCaseStatus" data-api-selected-value="@item.status_id" onchange="changeStatus(@item.id,@item.status_id)"> </select> </td> } </tr> } </tbody> </table> <div align="center"> @if (Model.Count > 0) { @Html.PagedListPager(Model, page => Url.Action("Index", new { page, title = ViewBag.Title, componentId = ViewBag.ComponentId, subComponentId = ViewBag.SubComponentId, productTypeId = ViewBag.ProductTypeId, significantChangeId = ViewBag.SignificantChangeId, fromDate = ViewBag.FromDate, toDate = ViewBag.ToDate }), PagedListRenderOptions.ClassicPlusFirstAndLast) } </div> </div> <link href="~/Content/plugins/dataTables/datatables.min.css" rel="stylesheet" /> <script src="~/Scripts/plugins/dataTables/datatables.min.js"></script> <script> $(document).ready(function () { window.initializeSelectApis(); window.initializeCascadeComponent(); }); function deleteProduct(id) { if (!window.confirmAction()) { return false; } const ajx = window.getAjaxRequest("/knowledgeManagement/delete?id=" + id, "GET", ""); ajx.done(function (response) { ShowMessage("success", "Deleted Successfully"); window.location = "/knowledgeManagement/storyOrCase"; }); ajx.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } function showDetails(id, groupId) { AjaxForm.popup("/vst/excelupload"); } function changeStatus(id, status) { var statusId = "#StatusId-" + id.toString(); var c = $(statusId).val(); if (c && status.toString() !== c) { $.ajax({ type: "POST", url: "/knowledgeManagement/changeStatus", data: { id: id, statusId: $(statusId).val() }, success: function (data) { if (data == true) { WorkForce.loader.hide(); ShowMessage("success", "Status changed successfully"); } else { WorkForce.loader.hide(); ShowMessage("warning", data); } }, error: function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }, }); } } </script>