Пример #1
0
        /// <summary>
        /// 获取门店列表
        /// </summary>
        public string GetStoreListData()
        {
            var    service = new MarketStoreBLL(CurrentUserInfo);
            string content = string.Empty;

            string key = string.Empty;

            if (Request("MarketEventID") != null && Request("MarketEventID") != string.Empty)
            {
                key = Request("MarketEventID").ToString().Trim();
            }
            else
            {
                key = "-99";
            }

            var queryEntity = new MarketStoreEntity();

            queryEntity.MarketEventID = key;
            int pageIndex = Utils.GetIntVal(FormatParamValue(Request("page"))) - 1;

            var data           = service.GetList(queryEntity, pageIndex, PageSize);
            var dataTotalCount = service.GetListCount(queryEntity);

            content = string.Format("{{\"totalCount\":{1},\"topics\":{0}}}",
                                    data.ToJSON(),
                                    dataTotalCount);
            return(content);
        }