Beispiel #1
0
        /// <summary>
        /// 绑定留言
        /// </summary>
        /// <param name="Account"></param>
        private void BindComment(CY.UME.Core.Business.Account account)
        {
            IList<CY.UME.Core.Business.SpaceComment> CommentList = new List<CY.UME.Core.Business.SpaceComment>();
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo { CurrentPage = 1, PageSize = 20 };

            if (account != null)
            {
                if (CurrentAccount != null && account.Id == CurrentAccount.Id)
                {
                    CommentList = account.GetSpaceComments(null, pageInfo);
                }
                else
                {
                    CommentList = account.GetPublicSpaceCommentsUnionSpecifiedAccountRelatedComments(account.Id, pageInfo);
                }
            }

            RPT_Comment.DataSourceID = "";
            RPT_Comment.DataSource = CommentList;
            RPT_Comment.DataBind();
        }