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
/
CaseRegistration
/
Edit File Name :
_caseRegistrationsList.cshtml
@using PagedList.Mvc; @using RER_Project.BusinessLayer.BusinessService @using RER_Project.Core.Helpers @model PagedList.IPagedList<RER_Project.DataAccess.Functions.FnIncidentCaseRegistrationList> @{ var meta = AppUserService.GetCurrent(); int currentPage = Convert.ToInt32(Request.QueryString["page"].ToString()); } <div class="row"> <div class="col-lg-12"> <div class="pull-right"> <span> <i class="fa fa-flag" style="font-size:18px;color:Highlight;" aria-hidden="true"></i> <strong>Initial</strong> <i class="fa fa-flag" style="font-size:18px;color:orange;" aria-hidden="true"></i> <strong>On Process</strong> <i class="fa fa-flag" style="font-size:18px;color:lightgreen;" aria-hidden="true"></i> <strong>Solved</strong> <i class="fa fa-flag" style="font-size:18px;color:green;" aria-hidden="true"></i> <strong>Solved and Closed</strong> <i class="fa fa-flag" style="font-size: 18px;color: #f0fc03;" aria-hidden="true"></i> <strong>Dropped and Closed</strong> <i class="fa fa-flag" style="font-size:18px;color:red;" aria-hidden="true"></i> <strong>Dropped Out</strong> </span> </div> </div> </div> <div class="table table-responsive table-striped table-hover table-bordered"> <table class="table table-striped" id="CaseRegistrationList"> <thead> <tr> <th>SN</th> <th>Case No.</th> <th>Name of Client</th> <th>District</th> <th>Municipality</th> <th>Registration Date</th> <th>Destination Country</th> <th>Case Type</th> <th>Uploaded By</th> <th>Current Status</th> <th>Latest Remarks</th> <th>Action</th> </tr> </thead> <tbody> @{ int serialNo = 1; } @foreach (var item in Model) { <tr> <td> <label> @((currentPage - 1) * 10 + @serialNo)</label> @{ serialNo++; } </td> <td>@item.id</td> <td style="white-space:nowrap;">@item.first_name @item.middle_name @item.last_name </td> <td>@item.district</td> <td>@item.municipality</td> <td>@item.registration_date_nepali BS</td> <td>@item.destination_country</td> <td>@item.case_type</td> <td> @if (item.case_status_id == 1) { <span> On Process By @item.work_flow_user </span> } else if (item.case_status_id == 2) { <span> Solved by @item.work_flow_user </span> } else if (item.case_status_id == 3) { <span>Solved and Closed By @item.work_flow_user </span> } else if (item.case_status_id == 4) { <span> Dropped By @item.work_flow_user </span> } else if (item.case_status_id == 5) { <span>Dropped and Closed by @item.work_flow_user</span> } else { <span> Initial By @item.intial_user </span> } </td> <td> @if (item.case_status_id == 1) { <span> <i class="fa fa-flag" style="font-size:18px;color:orange;" aria-hidden="true"></i> </span> } else if (item.case_status_id == 2) { <span><i class="fa fa-flag" style="font-size:18px;color:lightgreen;" aria-hidden="true"></i> </span> } else if (item.case_status_id == 3) { <span><i class="fa fa-flag" style="font-size:18px;color:green;" aria-hidden="true"></i> </span> } else if (item.case_status_id == 4) { <span><i class="fa fa-flag" style="font-size:18px;color:red;" aria-hidden="true"></i></span> } else { <span><i class="fa fa-flag" style="font-size:18px;color:Highlight;" aria-hidden="true"></i> </span> } </td> <td> @string.Join("", @item.remarks.Take(30)) </td> <td> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin || meta.RoleId == (int)EnumRoleHelper.Roles.MnE || meta.RoleId == (int)EnumRoleHelper.Roles.MnEOfficer || meta.RoleId == (int)EnumRoleHelper.Roles.MRC) { <a href="/caseregistration/edit/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-edit"></i></a> @*<a href="/caseregistration/delete/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-trash"></i></a>*@ } else if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin || meta.RoleId == (int)EnumRoleHelper.Roles.MnE || meta.RoleId == (int)EnumRoleHelper.Roles.MnEOfficer || meta.RoleId == (int)EnumRoleHelper.Roles.MRC) { if (item.case_status_id == 0 || item.case_status_id == null) { <a href="/caseregistration/edit/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-edit"></i></a> @*<a href="/caseregistration/delete/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-trash"></i></a>*@ } } else if (meta.RoleId == (int)EnumRoleHelper.Roles.MigrationOfficer) { <a href="/caseregistration/edit/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-edit"></i></a> <a href="/caseregistration/delete/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-trash"></i></a> } <a href="/caseregistration/details/@item.id" style="font-size:15px;padding:5px"> <i class="fa fa-eye"></i></a> </td> </tr> } </tbody> </table> <div align="center"> @if (Model.Count > 0) { @Html.PagedListPager(Model, page => Url.Action("Index", new { page, province = ViewBag.ProvinceId, district = ViewBag.DistrictId, municipality = ViewBag.MunicipalityId ,name = ViewBag.Name,country = ViewBag.Country,caseType = ViewBag.CaseType, status = ViewBag.CaseStatus,fromDate = ViewBag.FromDate, toDate = ViewBag.ToDate}), PagedListRenderOptions.ClassicPlusFirstAndLast) } </div> </div> <style> table td, th { border: 1px solid #e7eaec; } </style>
Save