当前位置: 首页>>代码示例>>C#>>正文


C# Core.PagingInfo类代码示例

本文整理汇总了C#中CY.UME.Core.PagingInfo的典型用法代码示例。如果您正苦于以下问题:C# CY.UME.Core.PagingInfo类的具体用法?C# CY.UME.Core.PagingInfo怎么用?C# CY.UME.Core.PagingInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CY.UME.Core.PagingInfo类属于命名空间,在下文中一共展示了CY.UME.Core.PagingInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: bind

        /// <summary>
        /// 绑定年级
        /// </summary>
        public void bind(bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<Grade> graderList = Grade.GetAllGrade(pagingInfo);

            if (graderList.Count > 0)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = Grade.GetGradesCount();

                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = graderList;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();

                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:35,代码来源:GradeManage.aspx.cs

示例2: Bind

        private void Bind(Core.Business.Album albums, String Sort, bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            System.Data.DataTable albumTB = CY.UME.Core.Business.Album.GetAll(albums, Sort, pagingInfo);

            if (albumTB.Rows.Count >= 1)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = CY.UME.Core.Business.Album.GetAlbumCount(albums);//绑定总条数

                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = albumTB;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:31,代码来源:AlbumManage.aspx.cs

示例3: bind

        /// <summary>
        /// 绑定学校
        /// </summary>
        public void bind(int proID, string Name, bool isTrue)
        {
            if (isTrue)
                AspNetPager1.RecordCount = University.GetUniversitysCount(proID, Name);//绑定总条数

            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<University> universityList = University.GetUniversityByProIdAndName(pagingInfo, proID, Name);

            if (universityList.Count > 0)
            {
                //绑定学校
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = universityList;
                Repeater1.DataBind();
            }
            else
            {
                AspNetPager1.Visible = false;

                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:36,代码来源:UniversityManage.aspx.cs

示例4: bind

        /// <summary>
        /// 根据日志主题、内容关键字、开始时间和结束时间查询
        /// </summary>
        /// <param name="Subject">主题 "" 表示所有</param>
        /// <param name="Key">内容关键字 "" 表示所有</param>
        /// <param name="BeginTime">发布日期开始时间 "" 表示所有</param>
        /// <param name="EndTime">发布日期结束时间 "" 表示所有</param>
        /// <returns></returns>
        public void bind(string Subject, string Key, string BeginTime, string EndTime, bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<CY.UME.Core.Business.Blog> blogList = CY.UME.Core.Business.Blog.GetAllBlogsBySubjectKeyDate(pagingInfo, Subject, Key, BeginTime, EndTime);//查询
            List<Blogplus> blogplus = new List<Blogplus>();
            for (int i = 0; i < blogList.Count; i++)
            {
                Blogplus tempblogplus = new Blogplus();
                tempblogplus.Id = blogList[i].Id;
                tempblogplus.AccountId = blogList[i].AccountId;
                tempblogplus.AccountName = blogList[i].AccountName;
                tempblogplus.Subject = blogList[i].Subject;
                tempblogplus.TypeId = blogList[i].TypeId;
                tempblogplus.ViewNum = blogList[i].ViewNum;
                tempblogplus.ReplyNum = blogList[i].ReplyNum;
                tempblogplus.TraceNum = blogList[i].TraceNum;
                tempblogplus.DateCreated = blogList[i].DateCreated;
                tempblogplus.NoReply = blogList[i].NoReply;
                tempblogplus.ViewSet = blogList[i].ViewSet;
                tempblogplus.Password = blogList[i].Password;
                tempblogplus.BlogContent = blogList[i].BlogContent;
                tempblogplus.IP = blogList[i].IP;
                tempblogplus.Tag = blogList[i].Tag;

                if (CY.UME.Core.Business.Recommend.IsRecommend(blogList[i].Id.ToString(), "blog"))
                {
                    tempblogplus.Oper = "decommend";
                }
                else
                {
                    tempblogplus.Oper = "recommend";
                }
                blogplus.Add(tempblogplus);
            }
            if (blogplus.Count >= 1)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = CY.UME.Core.Business.Blog.GetBlogsCount(Subject, Key, BeginTime, EndTime);//绑定总条数

                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = blogplus;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:68,代码来源:BlogManage.aspx.cs

示例5: bind

        /// <summary>
        /// 绑定图片
        /// </summary>
        /// <param name="AlbumName">相册名称</param>
        /// <param name="PictureName">图片名称</param>
        /// <param name="beginTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        public void bind(string AccountName, string AlbumName, string PictureName, string beginTime, string endTime, bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<CY.UME.Core.Business.Picture> pictureList = CY.UME.Core.Business.Picture.GetPicturesByWhere(AccountName, pagingInfo, AlbumName, PictureName, beginTime, endTime);
            List<Pictureplus> pictuerplus = Getpicpluslist(pictureList);

            if (pictuerplus.Count >= 1)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = CY.UME.Core.Business.Picture.GetPicturesCount(AccountName, AlbumName, PictureName, beginTime, endTime);//绑定总条数

                //绑定图片信息
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = pictuerplus;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:40,代码来源:PictureManage.aspx.cs

示例6: BindData

        protected void BindData(CY.UME.Core.Business.Group group)
        {
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();

            pageInfo.CurrentPage = 1;
            pageInfo.PageSize = 20;

            if (group != null)
            {
                topicList = CY.UME.Core.Business.Topic.GetGroupTopicesByDateCreated(group.Id.ToString(), pageInfo);
            }

            int count = group.GetGroupTopicesNum();

            DDLGroup.SelectedValue = group.Id.ToString();
            authorname.Value = "";
            minviewnum.Value = "";
            maxviewnum.Value = "";
            minreplynum.Value = "";
            maxreplynum.Value = "";
            title.Value = "";
            isRecommend.SelectedIndex = 0;

            tm_HiddenPageSize.Value = "20";
            tm_HiddenRecordCount.Value = count.ToString();
            tm_HiddenSiteUrl.Value = SiteUrl;
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:27,代码来源:TopicManage.aspx.cs

示例7: bind

        /// <summary>
        /// 绑定学院信息
        /// </summary>
        /// <param name="CurrentPage"></param>
        /// <param name="PageSize"></param>
        /// <param name="proId">0表示所有</param>
        /// <param name="Name">""表示所有</param>
        public void bind(string uniId, string Name, bool isTrue)
        {
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();
            pageInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pageInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<College> collegeList = College.GetTopCollegeByUniIdAndName(Convert.ToInt32(uniId), Name, pageInfo);

            if (collegeList.Count > 0)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = College.GetCollegesCount(Convert.ToInt32(uniId), hfName.Value);//绑定总条数

                //绑定所有学院信息
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = collegeList;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:39,代码来源:CollegeManage.aspx.cs

示例8: BindData

        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;
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:25,代码来源:PictureManage.aspx.cs

示例9: bind

        /// <summary>
        /// 绑定专业
        /// </summary>
        public void bind(int ColId, string Name, string Des, bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<Major> majorlist = Major.GetMojorByCollegeIdAndName(pagingInfo, ColId, Name);

            if (majorlist.Count > 0)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = Major.GetMajorsCount(ColId, Name);//绑定总条数

                //绑定专业
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = majorlist;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:35,代码来源:MajorManage.aspx.cs

示例10: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
          Id = 0;
         if (Request.QueryString["uid"] != null)
         {
             Id = long.Parse(Request.QueryString["uid"].ToString());
         }
         else if (Session["user"] != null)
         {
             Id = long.Parse(Session["user"].ToString());
         }
         else
         {
             Response.Redirect("../Login.aspx");
             return;
         }
         CY.UME.Core.Business.Account currentacc = CY.UME.Core.Business.Account.Load(Id);
         int type = -2;
         CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo { CurrentPage = 1, PageSize = 6 };
         accgroups = currentacc.GetGroupsByType(pageInfo, type) as List<CY.UME.Core.Business.Group>;
         TotalGroupCount = CY.UME.Core.Business.Group.GetGroupsCountByType(type, currentacc, null);
     }
     catch
     {
         return;
     }
 }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:29,代码来源:MyGroup.ascx.cs

示例11: BindData

        protected void BindData(CY.UME.Core.Business.Activities active)
        {
            CY.UME.Core.PagingInfo pageInfo = new CY.UME.Core.PagingInfo();

            pageInfo.CurrentPage = 1;
            pageInfo.PageSize = 20;

            if (active != null)
            {
                topicList = CY.UME.Core.Business.Topic.GetActiveTopicesByDateCreated(active.Id.ToString(), pageInfo);
            }

            int count = active.GetActiveTopicesNum();

            authorname.Value = "";
            minviewnum.Value = "";
            maxviewnum.Value = "";
            minreplynum.Value = "";
            maxreplynum.Value = "";
            title.Value = "";

            tm_HiddenPageSize.Value = "20";
            tm_HiddenRecordCount.Value = count.ToString();
            tm_HiddenSiteUrl.Value = SiteUrl;
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:25,代码来源:TopManage.aspx.cs

示例12: bind

        private void bind(string Name, string UniversityId, string CollegeId, string TypeId, string Sort, bool isTrue)
        {
            CY.UME.Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<Core.Business.Resources> ResourcesTypeList = Core.Business.Resources.GetAllResources(Name, "", 0, UniversityId, CollegeId, TypeId, Sort, pagingInfo);

            if (ResourcesTypeList.Count > 0)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = Core.Business.Resources.GetResourcesCount(Name, "", 0, UniversityId, CollegeId, TypeId);//绑定总条数

                //绑定专业
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = ResourcesTypeList;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:32,代码来源:ResourcesManage.aspx.cs

示例13: BindData

        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;
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:27,代码来源:GroupPictureManage.aspx.cs

示例14: BindInfo

        private void BindInfo()
        {
            Core.PagingInfo paginfo = new CY.UME.Core.PagingInfo{CurrentPage=1,PageSize=20};
            List<CY.UME.Core.Business.Activities> list = CY.UME.Core.Business.Activities.GetAllCheck(paginfo).ToList();
            List<Activeplus> activeplus = new List<Activeplus>();
            for (int i = 0; i < list.Count; i++)
            {
                Activeplus tempactiveplus = new Activeplus();
                tempactiveplus.Id = list[i].Id;
                tempactiveplus.Name = list[i].Name;
                tempactiveplus.Organizer = list[i].Organizer;
                tempactiveplus.StartTime = list[i].StartTime;
                tempactiveplus.EndTime = list[i].EndTime;
                tempactiveplus.Sponsor = list[i].Sponsor;
                tempactiveplus.Pic = list[i].Pic;
                tempactiveplus.Overview = list[i].Overview;
                tempactiveplus.Slogans = list[i].Slogans;
                tempactiveplus.Type = list[i].Type;
                tempactiveplus.Address = list[i].Address;
                tempactiveplus.IsCheck = list[i].IsCheck;

                if (CY.UME.Core.Business.Recommend.IsRecommend(list[i].Id.ToString(), "active"))
                {
                    tempactiveplus.Oper = "decommend";
                }
                else
                {
                    tempactiveplus.Oper = "recommend";
                }
                activeplus.Add(tempactiveplus);
            }
            gvActive.DataSource = activeplus;
            gvActive.DataBind();
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:34,代码来源:ActiveManage.aspx.cs

示例15: bind

        private void bind(string Name, bool isTrue)
        {
            Core.PagingInfo pagingInfo = new CY.UME.Core.PagingInfo();
            pagingInfo.CurrentPage = AspNetPager1.CurrentPageIndex;
            pagingInfo.PageSize = AspNetPager1.PageSize = SetCurrentPageSize.CurrentPageSize;

            IList<CY.UME.Core.Business.ResourcesType> ResourcesTypeList = Core.Business.ResourcesType.GetAllResourcesType(Name, pagingInfo);

            if (ResourcesTypeList.Count > 0)
            {
                if (isTrue)
                    AspNetPager1.RecordCount = Core.Business.ResourcesType.GetResourcesCount(Name);//绑定总条数

                //绑定群组
                AspNetPager1.Visible = true;
                Repeater2.Visible = false;
                Repeater1.Visible = true;
                Repeater1.DataSourceID = "";
                Repeater1.DataSource = ResourcesTypeList;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.Visible = false;
                Repeater2.Visible = true;

                Repeater2.DataSourceID = "";
                Repeater2.DataSource = BindNoData("暂无数据");
                Repeater2.DataBind();
                AspNetPager1.Visible = false;
            }
        }
开发者ID:dalinhuang,项目名称:ume-v3,代码行数:32,代码来源:ResourcesTypeManage.aspx.cs


注:本文中的CY.UME.Core.PagingInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。