⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mymessage.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls.WebPart
{
    using PowerEasy.Accessories;
    using PowerEasy.Components;
    using PowerEasy.Controls;
    using PowerEasy.Enumerations;
    using PowerEasy.ModelControls;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.WebControls.WebParts;

    public class MyMessage : BaseWebPart, IWebPartPermissibility
    {
        protected ExtendedGridView GdvMessageList;
        protected PowerEasy.Enumerations.OperateCode m_OperateCode;
        protected int m_PageSize = 10;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(base.Title))
            {
                base.Title = "我的短消息";
            }
            this.GdvMessageList.DataSource = Message.GetMessageList(0, this.PageSize, PEContext.Current.Admin.UserName, 0);
            this.GdvMessageList.DataBind();
            base.Subtitle = "共" + Message.Count().ToString() + "条";
        }

        [Personalizable(PersonalizationScope.User)]
        public PowerEasy.Enumerations.OperateCode OperateCode
        {
            get
            {
                return this.m_OperateCode;
            }
            set
            {
                this.m_OperateCode = value;
            }
        }

        [WebBrowsable, Personalizable(PersonalizationScope.User), WebDisplayName("显示项目数"), WebDescription("显示项目数")]
        public int PageSize
        {
            get
            {
                return this.m_PageSize;
            }
            set
            {
                this.m_PageSize = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -