Esempio n. 1
0
        protected void BindData(CY.UME.Core.Business.Group group)
        {
            TBXGroupName.Text = group.Name;//群组名

            CY.UME.Core.Business.Album album = group.GetGroupAlbum();
            string imgUrl = CY.UME.Core.Global.GroupCoverAddress;

            if (album == null)
            {
                album = group.CreateGroupAlbum();
            }

            if (album.CoverPath.Length != 0)
            {
                imgUrl = album.CoverPath;
            }
            SelAddPermission.Value = group.AddPermission.ToString();
            this.ScanRight.Value = group.ViewPermission.ToString();
            DDLGroupType.SelectedValue = group.Type.ToString();
            this.LeaveWords.Value = group.LeaveWordsPermission.ToString();
            this.AddTopic.Value = group.AddTopicPermission.ToString();
            this.AddPicture.Value = group.AddPicturePermission.ToString();
            this.TopicReply.Value = group.AddTopicReplyPermission.ToString();
            this.PictureReply.Value = group.AddPictureReplyPermission.ToString();

            ImgGroupCover.ImageUrl = SiteUrl + imgUrl;//封面图片
            TBXPlaCard.Text = group.PlaCard;//群组公告
        }