Пример #1
0
        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);
        }
Пример #2
0
        /// <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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 public void Update(StoreBrandMappingEntity pEntity, bool pIsUpdateNullField, IDbTransaction pTran)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField, pTran);
 }
Пример #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);
 }
Пример #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);
 }
Пример #7
0
 /// <summary>
 /// 创建一个新实例
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Create(StoreBrandMappingEntity pEntity)
 {
     _currentDAO.Create(pEntity);
 }
Пример #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));
 }
Пример #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));
 }
Пример #10
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="pEntity"></param>
 public void Delete(StoreBrandMappingEntity pEntity)
 {
     _currentDAO.Delete(pEntity);
 }
Пример #11
0
 public void Update(StoreBrandMappingEntity pEntity, bool pIsUpdateNullField)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField);
 }
Пример #12
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Update(StoreBrandMappingEntity pEntity)
 {
     Update(pEntity, true);
 }