using FineUIPro; using iWareCommon.Common.Entity; using iWareLog.LOG.Service; using iWareWms.Code.Common.Entity; using iWareWms.Code.Excel.Service; using System; using System.Collections.Generic; namespace iWareWms.View.LOG.Operation { public partial class Operation : PageBase { protected override Grid GetGrid() { return OperationGrid; } protected override FineUIPro.DropDownList GetPageSizeDropDownList() { return ddlPageSize; } protected override List GetDataSource(int pageIndex, int pageSize, out string msg, out int totalNum, out int currentPage) { var message = OperationService.GetInstance().QueryByParam(new QueryParam { Search = new Dictionary { { "Log_backup1", tbWbLogType.Text.Trim() }, { "WbUserName", tbUserName.Text.Trim() } }, PageIndex = pageIndex, PageSize = pageSize }, out msg, out totalNum, out currentPage); var res = new List(); message.ForEach(x => res.Add(x)); return res; } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Query(1); } } ///// ///// 改变Type显示信息 ///// ///// ///// //protected string GetYesOrNo(object obj) //{ // return ((EYesOrNo)obj).ToString(); //} protected override void GetPath(object userName) { string msg; var message = OperationService.GetInstance().QueryByParam(new QueryParam { Search = new Dictionary { { "Log_backup1", tbWbLogType.Text.Trim() }, { "WbUserName", tbUserName.Text.Trim() } }, }, out msg); var datas = new List(); message.ForEach(x => datas.Add(x)); var path = ExcelService.GetInstance().ToExcel(CacheEntity.WorkBookDict["操作日志查询"], new Dictionary> { { "操作日志查询", datas } }, out msg); Session["ExcelPath"] = path; } protected override Window GetWindow() { return Window2; } protected override FineUIPro.Timer GetTimer() { return timer1; } } }