2018-06-07 00:45:47 +08:00
|
|
|
|
using Bootstrap.DataAccess;
|
|
|
|
|
using Longbow.Web.Mvc;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Query
|
|
|
|
|
{
|
2018-10-28 15:08:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2018-06-07 00:45:47 +08:00
|
|
|
|
public class QueryLogOption : PaginationOption
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string OperateType { get; set; }
|
2019-05-01 11:36:24 +08:00
|
|
|
|
|
2018-06-07 00:45:47 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2018-11-25 14:28:32 +08:00
|
|
|
|
public DateTime? OperateTimeStart { get; set; }
|
2019-05-01 11:36:24 +08:00
|
|
|
|
|
2018-06-07 00:45:47 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2018-11-25 14:28:32 +08:00
|
|
|
|
public DateTime? OperateTimeEnd { get; set; }
|
2019-05-01 11:36:24 +08:00
|
|
|
|
|
2018-06-07 00:45:47 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public QueryData<Log> RetrieveData()
|
|
|
|
|
{
|
2019-05-25 14:52:14 +08:00
|
|
|
|
var data = LogHelper.RetrievePages(this, OperateTimeStart, OperateTimeEnd, OperateType);
|
2018-06-07 00:45:47 +08:00
|
|
|
|
var ret = new QueryData<Log>();
|
2019-05-01 11:36:24 +08:00
|
|
|
|
ret.total = data.TotalItems;
|
|
|
|
|
ret.rows = data.Items;
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-02 15:35:25 +08:00
|
|
|
|
}
|