RM.Web/RMBase/SysLog/SysLog_Left.aspx.cs

(完整代码) 1KB

using RM.Common.DotNetConfig;
using RM.Web.App_Code;
using System;
using System.IO;
using System.Text;
using System.Web.UI.HtmlControls;

namespace RM.Web.RMBase.SysLog
{
    public class SysLog_Left : PageBase
    {
        public StringBuilder strHtml = new StringBuilder();
        protected HtmlForm form1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.InitInfo();
            }
        }
        public void InitInfo()
        {
            string LogFilePath = ConfigHelper.GetAppSettings("LogFilePath");
            DirectoryInfo dir = new DirectoryInfo(LogFilePath);
            FileSystemInfo[] fileSystemInfos = dir.GetFileSystemInfos();
            for (int i = 0; i < fileSystemInfos.Length; i++)
            {
                FileInfo fsi = (FileInfo)fileSystemInfos[i];
                if (fsi.Name != "Backup_Restore_Log.log")
                {
                    this.strHtml.Append("<li>");
                    this.strHtml.Append(string.Concat(new string[]
					{
						"<div title='",
						fsi.Name,
						"' onclick=\"FileName('",
						fsi.Name,
						"')\">",
						fsi.Name,
						"</div>"
					}));
                    this.strHtml.Append("</li>");
                }
            }
        }
    }
}

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

AI 解读

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

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