Example #1
0
        /// <summary>
        /// 首页职工之家数据绑定
        /// </summary>
        private void WorkHomeBind()
        {
            var auction = auctionSerivce.GetHighlights();
            var events  = eeSerivce.GetHomeEvent();
            var online  = onlineService.GetHomeOnline();

            auction.AddRange(events);
            auction.AddRange(online);
            rptHome.DataSource = auction.OrderByDescending(p => p.CreateTime).Take(5);
            rptHome.DataBind();
        }