コード例 #1
0
ファイル: WebsiteApi.ashx.cs プロジェクト: uvbs/mmp
        /// <summary>
        /// 获取幻灯片
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string GetProjectorList(HttpContext context)
        {
            CompanyWebsite_Config companyConfig = bllWebsite.GetCompanyWebsiteConfig();
            var dataList = bllSlide.ListByType(companyConfig.ShopAdType, bll.WebsiteOwner);
            List <CompanyWebsite_Navigate> resultList = new List <CompanyWebsite_Navigate>();

            foreach (var item in dataList)
            {
                CompanyWebsite_Navigate nav = new CompanyWebsite_Navigate();
                nav.AutoID            = item.AutoID;
                nav.NavigateName      = item.LinkText;
                nav.NavigateImage     = bll.GetImgUrl(item.ImageUrl);
                nav.NavigateType      = item.Type;
                nav.NavigateTypeValue = item.Link;
                nav.PlayIndex         = item.Sort;
                resultList.Add(nav);
            }
            return(Common.JSONHelper.ObjectToJson(resultList));
        }