public void BindData()
 {
     #region 绑定公共列表
     DataGrid1.AllowCustomPaging = false;
     DataGrid1.TableHeaderName   = "公共消息列表";
     DataGrid1.DataKeyField      = "pmid";
     DataGrid1.BindData(PrivateMessages.GetAnnouncePrivateMessageCollection(-1, 0));
     #endregion
 }
Example #2
0
        protected override void ShowPage()
        {
            pagetitle = "公共消息";

            if (!IsLogin())
            {
                return;
            }

            BindItems(announcepmcount);
            announcepmlist = PrivateMessages.GetAnnouncePrivateMessageCollection(16, pageid);
            newnoticecount = Notices.GetNewNoticeCountByUid(userid);
        }