/// <summary> /// 商城管理日志列表 /// </summary> /// <param name="accountName">操作人</param> /// <param name="operation">操作动作</param> /// <param name="startTime">操作开始时间</param> /// <param name="endTime">操作结束时间</param> /// <param name="pageNumber">当前页数</param> /// <param name="pageSize">每页数</param> /// <returns></returns> public ActionResult MallAdminLogList(string accountName, string operation, string startTime, string endTime, int pageNumber = 1, int pageSize = 15) { int uid = AdminUsers.GetUidByAccountName(accountName); string condition = MallAdminLogs.GetMallAdminLogListCondition(uid, operation, startTime, endTime); PageModel pageModel = new PageModel(pageSize, pageNumber, MallAdminLogs.GetMallAdminLogCount(condition)); MallAdminLogListModel model = new MallAdminLogListModel() { MallAdminLogList = MallAdminLogs.GetMallAdminLogList(pageModel.PageSize, pageModel.PageNumber, condition), PageModel = pageModel, AccountName = accountName, Operation = operation, StartTime = startTime, EndTime = endTime }; MallUtils.SetAdminRefererCookie(string.Format("{0}?pageNumber={1}&pageSize={2}&accountName={3}&operation={4}&startTime={5}&endTime={6}", Url.Action("malladminloglist"), pageModel.PageNumber, pageModel.PageSize, accountName, operation, startTime, endTime)); return(View(model)); }
/// <summary> /// 店铺管理日志列表 /// </summary> /// <param name="storeName">店铺名称</param> /// <param name="operation">操作动作</param> /// <param name="startTime">操作开始时间</param> /// <param name="endTime">操作结束时间</param> /// <param name="storeId">店铺id</param> /// <param name="pageNumber">当前页数</param> /// <param name="pageSize">每页数</param> /// <returns></returns> public ActionResult MallAdminLogList(string storeName, string operation, string startTime, string endTime, int storeId = -1, int pageNumber = 1, int pageSize = 15) { string condition = MallAdminLogs.GetMallAdminLogListCondition(storeId, operation, startTime, endTime); PageModel pageModel = new PageModel(pageSize, pageNumber, MallAdminLogs.GetMallAdminLogCount(condition)); StoreAdminLogListModel model = new StoreAdminLogListModel() { MallAdminLogList = MallAdminLogs.GetMallAdminLogList(pageModel.PageSize, pageModel.PageNumber, condition), PageModel = pageModel, StoreId = storeId, StoreName = string.IsNullOrWhiteSpace(storeName) ? "全部店铺" : storeName, Operation = operation, StartTime = startTime, EndTime = endTime }; MallUtils.SetAdminRefererCookie(string.Format("{0}?pageNumber={1}&pageSize={2}&storeId={3}&storeName={4}&operation={5}&startTime={6}&endTime={7}", Url.Action("MallAdminloglist"), pageModel.PageNumber, pageModel.PageSize, storeId, storeName, operation, startTime, endTime)); return(View(model)); }