1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/System/OperateLog.js" type="text/javascript"></script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/OperateLog/Excel")">
- @Html.PositionCondition()
- <div class="p_title">
- <div style="padding-left: 5px;">
- 开始时间:@Html.TextBox(new TextBoxOptions
- {
- ID = "StartTime",
- Name = "StartTime",
- TextBoxType = TextBoxType.DateTime,
- Validator = new ValidatorBox { Required = true, MissingMessage = "必须填写开始结束时间才能进行查询" },
- Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd HH:mm:ss")
- },
- new Dictionary<string, string> { { "data-condition", "dgLogList" } })
- 结束时间:@Html.TextBox(new TextBoxOptions
- {
- ID = "EndTime",
- Name = "EndTime",
- TextBoxType = TextBoxType.DateTime,
- Validator = new ValidatorBox { Required = true, MissingMessage = "必须填写开始结束时间才能进行查询" },
- Value = DateTime.Now.AddHours(+1).ToString("yyyy-MM-dd HH:mm:ss")
- },
- new Dictionary<string, string> { { "data-condition", "dgLogList" } })</div>
- </div>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 操作日志列表</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="OperateID"},
- new BoundFieldColumn { FieldName="LoginID", HeaderText="用户名", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="IP", HeaderText="IP地址", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="Operate", HeaderText="操作类型", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="IsSuccessDesc", HeaderText="是否成功", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="TableName", HeaderText="操作表名", Align=AlignStyle.Center, Width=0.1, OverflowLength=20 },
- new BoundFieldColumn { FieldName="OperateTime", HeaderText="操作时间", Align=AlignStyle.Center, Width=0.1 , Formatter = Formatter.LongDate },
- new BoundFieldColumn { FieldName="SourceUrl", HeaderText="页面地址", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
- new BoundFieldColumn { FieldName="Detail", HeaderText="操作详情", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 }
- },
- PageSize = 50,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/OperateLog/List"),
- ID = "dgLogList",
- IsAutoLoad = false,
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|