Example #1
0
        //绑定所有的相册
        private string BingAlbumType(CY.UME.Core.Business.Account account,CY.UME.Core.Business.Group group)
        {
            if (group == null)
            {
                throw new Exception("该群组不存在或已被删除");
            }

            int pageSize = 8;
            int viewPermission = 0;
            int albumCount = 0;

            if (!group.CheckIsGroupMember(account))
            {//判断是否是群组成员

                viewPermission = 1;
            }
            else
            {
                isManage = true;
            }

            albumList = group.GetGroupAlbum(viewPermission, new CY.UME.Core.PagingInfo { CurrentPage = 1, PageSize = pageSize });

            albumCount = group.GetGroupAlbumCount(viewPermission);

            if (albumList == null || albumCount == 0)
            {
                return "false";
            }
            DDLAlbum.DataTextField = "Name";
            DDLAlbum.DataValueField = "Id";
            DDLAlbum.DataSource = albumList;
            DDLAlbum.DataBind();

            return DDLAlbum.Items[0].Value;
        }