Hidistro.UI.Web/Admin/Settings/ManageLogs.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.settings
{
    using ASPNET.WebControls;
    using Hidistro.ControlPanel.Store;
    using Hidistro.Core.Entities;
    using Hidistro.Core.Enums;
    using Hidistro.Entities.Store;
    using Hidistro.UI.Common.Controls;
    using Hidistro.UI.ControlPanel.Utility;
    using Hidistro.UI.Web.Admin.Ascx;
    using System;
    using System.Collections.Specialized;
    using System.Drawing;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class ManageLogs : AdminPage
    {
        protected Button btnClear;
        protected Button btnDel;
        protected Button btnQueryLogs;
        protected Button Button1;
        protected Button Button4;
        protected ucDateTimePicker calFromDate;
        protected ucDateTimePicker calToDate;
        protected Repeater dlstLog1;
        protected LogsUserNameDropDownList dropOperationUserNames;
        private string FromDate;
        public int lastDay;
        protected Pager pager;
        protected PageSize PageSize1;
        protected Script Script5;
        protected Script Script6;
        protected Script Script7;
        protected Script Script9;
        protected HtmlForm thisForm;
        private string ToDate;

        protected ManageLogs() : base("m09", "szp12")
        {
            this.FromDate = "";
            this.ToDate = "";
        }

        public void BindLogs()
        {
            DbQueryResult logs = EventLogs.GetLogs(this.GetOperationLogQuery());
            this.dlstLog1.DataSource = logs.Data;
            this.dlstLog1.DataBind();
            this.SetSearchControl();
            this.pager.TotalRecords = logs.TotalRecords;
        }

        protected void btnClear_Click(object sender, EventArgs e)
        {
            if (EventLogs.DeleteAllLogs())
            {
                this.BindLogs();
                this.ShowMsg("成功删除了所有操作日志", true);
            }
后面还有 195 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。