46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
@model IEnumerable<GODATA.Models.AuditLog.AuditModel>
|
|
@if (Model != null && Model.Count() > 0)
|
|
{
|
|
@*<div class="Table_Wrp FullTable_Wrp AuditFullTbl">*@
|
|
<div class="AuditFullTbl">
|
|
@(Html.Kendo().Grid<GODATA.Models.AuditLog.AuditModel>(Model)
|
|
.Name("grid_AuditLog").Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.UserName);
|
|
columns.Bound(c => c.IPAddress);
|
|
columns.Bound(c => c.URLAccessed);
|
|
columns.Bound(c => c.TimeAccessed).Format("{0:dd-MM-yyyy HH:mm:ss}");
|
|
columns.Bound(c => c.ControllerName);
|
|
columns.Bound(c => c.MethodName);
|
|
columns.Bound(c => c.InputParameters);
|
|
})
|
|
.Pageable()
|
|
.EnableCustomBinding(true)
|
|
.Scrollable()
|
|
.Events(events => events.DataBound("addTitleAttribute")).Resizable(resize => resize.Columns(true))
|
|
.DataSource(dataSource => dataSource
|
|
.Ajax()
|
|
.Batch(true)
|
|
.PageSize((int)ViewBag.pageSize)
|
|
.Read(read => read.Action("ShowAuditLogPager", "AuditLog", new { startDate = ViewBag.StartDate, endDate = ViewBag.EndDate,total = ViewBag.total, }))
|
|
.Total((int)ViewBag.total)
|
|
)
|
|
)
|
|
|
|
|
|
</div>
|
|
|
|
}
|
|
else
|
|
{
|
|
<div id="divNoDataFound_AuditLog" class="divNoDataFound no_data">
|
|
<span>
|
|
<p class="fs16"></p>
|
|
<p></p>
|
|
</span>
|
|
</div>
|
|
}
|
|
<script>
|
|
showHideExcelIcon_AuditLog();
|
|
</script>
|