📄 welcome.cs
字号:
namespace PowerEasy.WebSite.Controls
{
using PowerEasy.Components;
using PowerEasy.Enumerations;
using PowerEasy.ModelControls;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public class Welcome : BaseWebPart, IWebPartPermissibility
{
protected Literal LitAdminName;
protected Literal LitComment;
protected Literal LitContent;
protected Literal LitDateTime;
protected Literal LitMessage;
protected Literal LitSignin;
protected PowerEasy.Enumerations.OperateCode m_OperateCode;
protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(base.Title))
{
base.Title = "欢迎登录系统";
}
this.LitAdminName.Text = PEContext.Current.Admin.AdminName;
this.LitDateTime.Text = DateTime.Now.ToString();
this.LitContent.Text = "0";
this.LitSignin.Text = "0";
this.LitComment.Text = "0";
this.LitMessage.Text = "0";
}
[Personalizable(PersonalizationScope.User)]
public PowerEasy.Enumerations.OperateCode OperateCode
{
get
{
return this.m_OperateCode;
}
set
{
this.m_OperateCode = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -