📄 logdetail.aspx.cs
字号:
namespace PowerEasy.WebSite.Admin.Accessories
{
using PowerEasy.Common;
using PowerEasy.Controls;
using PowerEasy.Logging;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
public class LogDetail : AdminPage
{
protected Label LblCategory;
protected Label LblLogId;
protected Label LblMessage;
protected Label LblPostString;
protected Label LblPriority;
protected Label LblScriptName;
protected Label LblSource;
protected Label LblTimestamp;
protected Label LblTitle;
protected Label LblUserIP;
protected Label LblUserName;
protected ExtendedSiteMapPath SmpNavigator;
protected void Page_Load(object sender, EventArgs e)
{
if ((!base.IsPostBack && (base.PreviousPage != null)) && (base.PreviousPage.Items["LogId"] != null))
{
LogInfo logById = new DBLog().GetLogById(DataConverter.CLng(base.PreviousPage.Items["LogId"]));
this.LblLogId.Text = logById.LogId.ToString();
this.LblCategory.Text = BasePage.EnumToHtml<LogCategory>(logById.Category);
this.LblMessage.Text = logById.Message;
this.LblPostString.Text = logById.PostString;
this.LblPriority.Text = BasePage.EnumToHtml<LogPriority>(logById.Priority);
this.LblScriptName.Text = logById.ScriptName;
this.LblSource.Text = logById.Source;
this.LblTimestamp.Text = logById.Timestamp.ToString();
this.LblTitle.Text = logById.Title;
this.LblUserIP.Text = logById.UserIP;
this.LblUserName.Text = logById.UserName;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -