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
/
map
/
Views
/
ActivityReporting
/
Edit File Name :
Index1.cshtml
@using RER_Project.BusinessLayer.BusinessService; @model List<RER_Project.DataAccess.ViewModels.Activity.ActivityReportingDetailView> @{ var meta = AppUserService.GetCurrent(); var levelUser = UserService.GetUserDetailByUserId(meta.UserId); } <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-8"> <ol class="breadcrumb"> <li class="active"> <strong>Activity Reports</strong> </li> </ol> </div> @if (!meta.IsAdministrator) { <div class="col-lg-4"> <div class="title-action"> <a href="@("/activities/reporting/createother")" class="btn btn-primary">Create</a> </div> </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="table-responsive" style="margin-top: 16px;"> <table class="footable table table-hover dataTables" data-page-size="10" data-filter=#filter> <thead> <tr> <th>Component Name</th> <th>Sub Component Name</th> <th>Activity Name</th> <th>Start Date</th> <th>End Date</th> <th>Fiscal Year</th> <th>Actions</th> </tr> </thead> <tbody> @if (Model.Count() > 0) { foreach (var item in Model) { <tr> <td>@item.ComponentName</td> <td>@item.SubcomponentName</td> <td>@item.ActivityName</td> <td style="width:100px;">@Convert.ToDateTime(item.StartDate).ToShortDateString()</td> <td style="width:100px;">@Convert.ToDateTime(item.EndDate).ToShortDateString()</td> <td style="width:150px;">@item.FiscalYear</td> <td> @if (meta.IsAdministrator) { <a class="btn btn-default btn-xs" href="@("/activities/report/detailsother?reportId=" + item.ActivityReportingId)"> <i class="fa fa-eye"></i> </a> } else { <a class="btn btn-default btn-xs" href="@("/activities/reporting/updateother?reportId=" + item.ActivityReportingId)"> <i class="fa fa-edit"></i> </a> <a class="btn btn-default btn-xs" href="@("/activities/report/detailsother?reportId=" + item.ActivityReportingId)"> <i class="fa fa-eye"></i> </a> <a class="btn btn-default btn-xs" href="@("/activities/report/delete?reportId=" + item.ActivityReportingId)"> <i class="fa fa-trash"></i> </a> } </td> </tr> } } else { <tr><td align="center" colspan="5">No Records Found</td></tr> } </tbody> </table> </div> </div> </div> </div> </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.initializeCascadeLocation(); }) $("#searchPlanning").off("click").on("click", function () { debugger; const a = $("#ProjectId").val(); //projectId = $("#ProjectId").val(); WorkForce.loader.show(); loadMembers(); }) function loadMembers() { const projectId = $("#ProjectId").val(); $('#loadPartialView').load("/activities/reporting/search?projectId=" + projectId, 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(); }); } $(document).ready(function () { $('.dataTables').DataTable({ pageLength: 20, stateSave: true, dom: '<"html5buttons"B>lTfgitp', buttons: [ //{ extend: 'copy' }, //{ extend: 'csv' }, //{ extend: 'excel', title: 'ExampleFile' }, //{ extend: 'pdf', title: 'ExampleFile' }, //{ // customize: function (win) { // $(win.document.body).addClass('white-bg'); // $(win.document.body).css('font-size', '10px'); // $(win.document.body).find('table') // .addClass('compact') // .css('font-size', 'inherit'); // } //} ] }); }); function submitReport(reportId, verificationId) { function request() { const url = "/activities/report/submit"; const data = JSON.stringify({ 'reportId': reportId, 'verificationId': verificationId }); return window.getAjaxRequest(url, "POST", data); } if (!window.confirmAction()) { return; } WorkForce.loader.show(); const ajax = request(); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); window.location = "/activitylist/activity"; }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); } </script>
Save