Exemplo n.º 1
0
        protected void BindData(CY.UME.Core.Business.Group group)
        {
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();

            pageInfo.CurrentPage = 1;
            pageInfo.PageSize = 15;

            CY.UME.Core.Business.Album album =new CY.UME.Core.Business.Album();
            if (group != null)
            {
                album = group.GetGroupAlbum();
                picList = album.GetPictures(pageInfo);
            }

            int count = album.GetPictureCount();

            DDLGroup.SelectedValue = group.Id.ToString();

            minPubDate.Value = "";
            maxPubDate.Value = "";
            picname.Value = "";
            authorName.Value = "";

            gpm_HiddenPageSize.Value = "15";
            gpm_HiddenRecordCount.Value = count.ToString();
            gpm_HiddenSiteUrl.Value = SiteUrl;
        }
Exemplo n.º 2
0
        protected void BindData(CY.UME.Core.Business.Activities active)
        {
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();

            pageInfo.CurrentPage = 1;
            pageInfo.PageSize = 15;

            CY.UME.Core.Business.Album album = new CY.UME.Core.Business.Album();
            if (active != null)
            {
                album = active.GetActiveAlbum();
                picList = album.GetPictures(pageInfo);
            }

            int count = album.GetPictureCount();

            minPubDate.Value = "";
            maxPubDate.Value = "";
            picname.Value = "";
            authorName.Value = "";

            gpm_HiddenPageSize.Value = "15";
            gpm_HiddenRecordCount.Value = count.ToString();
            gpm_HiddenSiteUrl.Value = SiteUrl;
        }