Exemplo n.º 1
0
        /// <summary>
        /// 获取门店列表
        /// </summary>
        public string GetDefaultStoreListData()
        {
            var    service = new StoreBLL(CurrentUserInfo);
            string content = string.Empty;

            string key = string.Empty;

            if (Request("StoreID") != null && Request("StoreID") != string.Empty)
            {
                key = Request("StoreID").ToString().Trim();
            }

            var queryEntity = new StoreEntity();

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

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

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