public StoreBrandMappingEntity GetStoreListByItem(string ItemId
                                                          , int Page
                                                          , int PageSize
                                                          , string Longitude
                                                          , string Latitude
                                                          , out string strError)
        {
            StoreBrandMappingEntity storeInfo = new StoreBrandMappingEntity();

            try
            {
                storeInfo.TotalCount = _currentDAO.GetStoreListByItemCount(ItemId, Page, PageSize, Longitude, Latitude);
                IList <StoreBrandMappingEntity> list = new List <StoreBrandMappingEntity>();
                DataSet ds = new DataSet();
                ds = _currentDAO.GetStoreListByItem(ItemId, Page, PageSize, Longitude, Latitude);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    list = DataTableToObject.ConvertToList <StoreBrandMappingEntity>(ds.Tables[0]);
                }
                strError = "ok";
                storeInfo.StoreBrandList = list;
            }
            catch (Exception ex) {
                strError = ex.ToString();
            }
            return(storeInfo);
        }
        /// <summary>
        /// 获取门店详情
        /// </summary>
        /// <param name="StoreId"></param>
        /// <returns></returns>
        public StoreBrandMappingEntity GetStoreDetail(string StoreId)
        {
            StoreBrandMappingEntity info = new StoreBrandMappingEntity();
            DataSet ds = new DataSet();

            ds = _currentDAO.GetStoreDetail(StoreId);
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                info = DataTableToObject.ConvertToObject <JIT.CPOS.BS.Entity.StoreBrandMappingEntity>(ds.Tables[0].Rows[0]);
            }
            ObjectImagesBLL imageServer = new ObjectImagesBLL(this.CurrentUserInfo);

            info.ImageList = imageServer.QueryByEntity(new ObjectImagesEntity()
            {
                ObjectId = StoreId
            }, null);

            return(info);
        }
        public StoreBrandMappingEntity GetStoreListByCity(string city
                                                          , int Page
                                                          , int PageSize
                                                          , string Longitude
                                                          , string Latitude
                                                          , string beginDate
                                                          , string endDate
                                                          , out string strError)
        {
            if (Longitude == null || Longitude.Length == 0)
            {
                Longitude = "0";
            }
            if (Latitude == null || Latitude.Length == 0)
            {
                Latitude = "0";
            }
            StoreBrandMappingEntity storeInfo = new StoreBrandMappingEntity();

            try
            {
                storeInfo.TotalCount = _currentDAO.GetStoreListByCityCount(city, Page, PageSize, Longitude, Latitude);
                IList <StoreBrandMappingEntity> list = new List <StoreBrandMappingEntity>();
                DataSet ds = new DataSet();
                ds = _currentDAO.GetStoreListByCity(city, Page, PageSize, Longitude, Latitude, beginDate, endDate);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    list = DataTableToObject.ConvertToList <StoreBrandMappingEntity>(ds.Tables[0]);
                }
                strError = "ok";
                storeInfo.StoreBrandList = list;
            }
            catch (Exception ex)
            {
                strError = ex.ToString();
            }
            return(storeInfo);
        }
Esempio n. 4
0
 public void Update(StoreBrandMappingEntity pEntity, bool pIsUpdateNullField, IDbTransaction pTran)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField, pTran);
 }
Esempio n. 5
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param>
 public void Update(StoreBrandMappingEntity pEntity, IDbTransaction pTran)
 {
     Update(pEntity, true, pTran);
 }
Esempio n. 6
0
 /// <summary>
 /// 在事务内创建一个新实例
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param>
 public void Create(StoreBrandMappingEntity pEntity, IDbTransaction pTran)
 {
     _currentDAO.Create(pEntity, pTran);
 }
Esempio n. 7
0
 /// <summary>
 /// 创建一个新实例
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Create(StoreBrandMappingEntity pEntity)
 {
     _currentDAO.Create(pEntity);
 }
Esempio n. 8
0
 /// <summary>
 /// 分页根据实体条件查询实体
 /// </summary>
 /// <param name="pQueryEntity">以实体形式传入的参数</param>
 /// <param name="pOrderBys">排序组合</param>
 /// <returns>符合条件的实体集</returns>
 public PagedQueryResult <StoreBrandMappingEntity> PagedQueryByEntity(StoreBrandMappingEntity pQueryEntity, OrderBy[] pOrderBys, int pPageSize, int pCurrentPageIndex)
 {
     return(_currentDAO.PagedQueryByEntity(pQueryEntity, pOrderBys, pPageSize, pCurrentPageIndex));
 }
Esempio n. 9
0
 /// <summary>
 /// 根据实体条件查询实体
 /// </summary>
 /// <param name="pQueryEntity">以实体形式传入的参数</param>
 /// <param name="pOrderBys">排序组合</param>
 /// <returns>符合条件的实体集</returns>
 public StoreBrandMappingEntity[] QueryByEntity(StoreBrandMappingEntity pQueryEntity, OrderBy[] pOrderBys)
 {
     return(_currentDAO.QueryByEntity(pQueryEntity, pOrderBys));
 }
Esempio n. 10
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="pEntity"></param>
 public void Delete(StoreBrandMappingEntity pEntity)
 {
     _currentDAO.Delete(pEntity);
 }
Esempio n. 11
0
 public void Update(StoreBrandMappingEntity pEntity, bool pIsUpdateNullField)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField);
 }
Esempio n. 12
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Update(StoreBrandMappingEntity pEntity)
 {
     Update(pEntity, true);
 }