Exemplo n.º 1
0
 public async Task GetDisCountInfoAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "DisCountInfoListKey";// SysCacheKey.DisCountInfoListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <DisCountInfoEntity> list = null;
             list = DisCountInfoDA.Instance.GetDisCountInfoAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 2
0
 public async Task GetSysUserAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "SysUserListKey";// SysCacheKey.SysUserListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <SysUserEntity> list = null;
             list = SysUserDA.Instance.GetSysUserAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 3
0
 public async Task GetCommentShowAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "CommentShowListKey";// SysCacheKey.CommentShowListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <CommentShowEntity> list = null;
             list = CommentShowDA.Instance.GetCommentShowAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 4
0
 public async Task GetReturnXSAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "ReturnXSListKey";// SysCacheKey.ReturnXSListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <ReturnXSEntity> list = null;
             list = ReturnXSDA.Instance.GetReturnXSAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 5
0
 public async Task GetAssetWithdrawAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "AssetWithdrawListKey";// SysCacheKey.AssetWithdrawListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <AssetWithdrawEntity> list = null;
             list = AssetWithdrawDA.Instance.GetAssetWithdrawAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 6
0
 public async Task GetGYRoleAuthAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "GYRoleAuthListKey";// SysCacheKey.GYRoleAuthListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <GYRoleAuthEntity> list = null;
             list = GYRoleAuthDA.Instance.GetGYRoleAuthAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 7
0
 public async Task GetWZShopCartAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "WZShopCartListKey";// SysCacheKey.WZShopCartListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <MemWZShopCartEntity> list = null;
             list = MemWZShopCartDA.Instance.GetWZShopCartAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 8
0
 public async Task GetDicEnumAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = SysCacheKey.DicEnumListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <DicEnumEntity> list = null;
             list = DicEnumDA.Instance.GetDicEnumAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 9
0
 public async Task GetProductStyleExtAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "ProductStyleExtListKey";// SysCacheKey.ProductStyleExtListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <ProductStyleExtEntity> list = null;
             list = ProductStyleExtDA.Instance.GetProductStyleExtAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 10
0
 public async Task GetWeChatMsgAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "WeChatMsgListKey";// SysCacheKey.WeChatMsgListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <WeChatMsgEntity> list = null;
             list = WeChatMsgDA.Instance.GetWeChatMsgAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 11
0
 public async Task GetStatisticTradeAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "StatisticTradeListKey";// SysCacheKey.StatisticTradeListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <StatisticTradeEntity> list = null;
             list = StatisticTradeDA.Instance.GetStatisticTradeAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 12
0
 public async Task GetOrderMsgMemAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "OrderMsgMemListKey";// SysCacheKey.OrderMsgMemListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <OrderMsgMemEntity> list = null;
             list = OrderMsgMemDA.Instance.GetOrderMsgMemAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 13
0
 public async Task GetIssueContentAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "IssueContentListKey";// SysCacheKey.IssueContentListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <IssueContentEntity> list = null;
             list = IssueContentDA.Instance.GetIssueContentAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 14
0
 public async Task GetWzAdClassRAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "WzAdClassRListKey";// SysCacheKey.WzAdClassRListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <WzAdClassREntity> list = null;
             list = WzAdClassRDA.Instance.GetWzAdClassRAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 15
0
 public async Task GetStoreBusscopeAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "StoreBusscopeListKey";// SysCacheKey.StoreBusscopeListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <MemStoreBusscopeEntity> list = null;
             list = MemSupplierBusscopeDA.Instance.GetStoreBusscopeAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 16
0
 public async Task GetPayAliResultAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "PayAliResultListKey";// SysCacheKey.PayAliResultListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <PayAliResultEntity> list = null;
             list = PayAliResultDA.Instance.GetPayAliResultAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 17
0
 public async Task GetCGProductTLogAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "CGProductTLogListKey";// SysCacheKey.CGProductTLogListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <CGProductTLogEntity> list = null;
             list = CGProductTLogDA.Instance.GetCGProductTLogAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 18
0
 public async Task GetPartsProductFoundAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "PartsProductFoundListKey";// SysCacheKey.PartsProductFoundListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <PartsProductFoundEntity> list = null;
             list = PartsProductFoundDA.Instance.GetPartsProductFoundAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 19
0
 public async Task GetClassBrandAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "ClassBrandListKey";// SysCacheKey.ClassBrandListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <ClassBrandEntity> list = null;
             list = ClassBrandDA.Instance.GetClassBrandAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 20
0
 public async Task GetSuggestRecordAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "SuggestRecordListKey";// SysCacheKey.SuggestRecordListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <SuggestRecordEntity> list = null;
             list = SuggestRecordDA.Instance.GetSuggestRecordAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 21
0
 public async Task GetMemWareHouseAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "MemWareHouseListKey";// SysCacheKey.MemWareHouseListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <MemWareHouseEntity> list = null;
             list = MemWareHouseDA.Instance.GetMemWareHouseAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 22
0
 public async Task GetWLPsOrderDetailAll()
 {
     await Task.Run(() =>
     {
         string _cachekey = "WLPsOrderDetailListKey";// SysCacheKey.WLPsOrderDetailListKey;
         object obj       = MemCache.GetCache(_cachekey);
         if (obj == null)
         {
             IList <WLPsOrderDetailEntity> list = null;
             list = WLPsOrderDetailDA.Instance.GetWLPsOrderDetailAll();
             MemCache.AddCache(_cachekey, list);
         }
     });
 }
Exemplo n.º 23
0
        public VWProductNomalParamEntity GetProductNormalParamById(int pid)
        {
            VWProductNomalParamEntity entity = new VWProductNomalParamEntity();
            string _cachekey = "GetProductNormalParamById" + pid;// SysCacheKey.ProductExtListKey;
            object obj       = MemCache.GetCache(_cachekey);

            if (obj == null)
            {
                entity = ProductExtDA.Instance.GetParamById(pid);
                if (entity != null && entity.ProductId > 0)
                {
                    if (entity.ClassId > 0)
                    {
                        entity.ClassName = ClassesFoundBLL.Instance.GetClassesFound(entity.ClassId).Name;
                    }
                    if (entity.BrandId > 0)
                    {
                        BrandEntity brand = BrandBLL.Instance.GetBrand(entity.BrandId);
                        if (brand != null && brand.Id > 0)
                        {
                            entity.BrandName = brand.Name;
                            if (string.IsNullOrEmpty(entity.Factory))
                            {
                                entity.Factory = brand.Manufacturer;
                            }
                        }
                    }
                    if (entity.UnitId > 0)
                    {
                        DicUnitEnumEntity unit = DicUnitEnumBLL.Instance.GetDicUnitEnum(entity.UnitId);
                        if (unit != null && unit.Id > 0)
                        {
                            entity.UnitName = unit.Name;
                        }
                        else
                        {
                            entity.UnitName = "件";
                        }
                    }
                    MemCache.AddCache(_cachekey, entity);
                }
            }
            else
            {
                entity = (VWProductNomalParamEntity)obj;
            }
            return(entity);
        }
Exemplo n.º 24
0
        //取显示出来的爆品列表
        public IList <VWProductBaoPinEntity> GetProductBaoPinShowList(bool iscache = false)
        {
            IList <VWProductBaoPinEntity> list = null;

            if (!iscache)
            {
                list = ProductBaoPinDA.Instance.GetProductBaoPinShowList();
                foreach (VWProductBaoPinEntity entity in list)
                {
                    if (entity.ProductDetailId > 0)
                    {
                        entity.ProductDetail = ProductBLL.Instance.GetProVWByDetailId(entity.ProductDetailId);
                        entity.ProductId     = entity.ProductDetail.ProductId;
                        if (entity.ProductDetail.BrandId > 0)
                        {
                            entity.Brand = BrandBLL.Instance.GetBrand(entity.ProductDetail.BrandId);
                        }
                    }
                }
            }
            else
            {
                string _cachekey = "GetProductBaoPinShowList";// SysCacheKey.ProductBaoPinListKey;
                object obj       = MemCache.GetCache(_cachekey);
                if (obj == null)
                {
                    list = ProductBaoPinDA.Instance.GetProductBaoPinShowList();
                    foreach (VWProductBaoPinEntity entity in list)
                    {
                        if (entity.ProductDetailId > 0)
                        {
                            entity.ProductDetail = ProductBLL.Instance.GetProVWByDetailId(entity.ProductDetailId);
                            entity.ProductId     = entity.ProductDetail.ProductId;
                            if (entity.ProductDetail.BrandId > 0)
                            {
                                entity.Brand = BrandBLL.Instance.GetBrand(entity.ProductDetail.BrandId);
                            }
                        }
                    }
                    MemCache.AddCache(_cachekey, list);
                }
                else
                {
                    list = (IList <VWProductBaoPinEntity>)obj;
                }
            }
            return(list);
        }
Exemplo n.º 25
0
        /// <summary>
        /// 根据主键获取一个DicEnum实体记录。
        /// 该方法提供给其他实体的业务逻辑层(Logic)方法调用
        /// </summary>
        /// <returns>DicEnum实体</returns>
        /// <param name="columns">要返回的列</param>
        public DicEnumEntity GetDicEnum(int id)
        {
            string _cachekey = SysCacheKey.DicEnumListKey;
            object _objcache = MemCache.GetCache(_cachekey);
            List <DicEnumEntity> _objlistall = null;//总数

            if (_objcache != null)
            {
                _objlistall = (List <DicEnumEntity>)_objcache;
                var templist = from c in _objlistall
                               where c.Id == id
                               select c;
                return((DicEnumEntity)templist);
            }
            return(DicEnumDA.Instance.GetDicEnum(id));
        }
Exemplo n.º 26
0
        public IList <B2BNoticeEntity> GetB2BNoticeListTop4(int systemtype)
        {
            IList <B2BNoticeEntity> list = null;
            string _cachekey             = "GetB2BNoticeListTop4_" + systemtype;// GetB2BNoticeListTop4;
            object obj = MemCache.GetCache(_cachekey);

            if (obj == null)
            {
                list = B2BNoticeDA.Instance.GetB2BNoticeListTop4(systemtype);
            }
            else
            {
                list = (IList <B2BNoticeEntity>)obj;
            }
            return(list);
        }
Exemplo n.º 27
0
        public StatisticCommentNumEntity GetCommentNumByProductId(int productid)
        {
            string _cachekey = "GetCommentNumByProductId_" + productid;// SysCacheKey.StatisticCommentNumListKey;
            object obj       = MemCache.GetCache(_cachekey);
            StatisticCommentNumEntity entity = new StatisticCommentNumEntity();

            if (obj == null)
            {
                entity = StatisticCommentNumDA.Instance.GetCommentNumByProductId(productid);
            }
            else
            {
                entity = (StatisticCommentNumEntity)obj;
            }
            return(entity);
        }
Exemplo n.º 28
0
        public IList <DicUnitEnumEntity> GetDicUnitEnumAll()
        {
            IList <DicUnitEnumEntity> list = null;
            string _cachekey = "GetDicUnitEnumAll";    // SysCacheKey.DicUnitEnumListKey;
            object obj       = MemCache.GetCache(_cachekey);

            if (obj == null)
            {
                list = DicUnitEnumDA.Instance.GetDicUnitEnumAll();
                MemCache.AddCache(_cachekey, list);
            }
            else
            {
                list = (IList <DicUnitEnumEntity>)obj;
            }
            return(list);
        }
Exemplo n.º 29
0
        public IList <CarTypeSeriesEntity> GetCarTypeSeriesAll(int standbrandid, int ParentBrandId)
        {
            IList <CarTypeSeriesEntity> list = null;
            string _cachekey = "GetCarTypeSeriesAll_" + standbrandid + "_" + ParentBrandId;// SysCacheKey.CarTypeSeriesListKey;
            object obj       = MemCache.GetCache(_cachekey);

            if (obj == null)
            {
                list = CarTypeSeriesDA.Instance.GetCarTypeSeriesAll(standbrandid, ParentBrandId);
                MemCache.AddCache(_cachekey, list);
            }
            else
            {
                list = (IList <CarTypeSeriesEntity>)obj;
            }
            return(list);
        }
        public IList <StaticClassesFoundEntity> GetSubStaticByClassId(int classid, int level)
        {
            IList <StaticClassesFoundEntity> list = null;
            string _cachekey = "GetSubStaticClassByClassId_" + classid + "_" + level;
            object obj       = MemCache.GetCache(_cachekey);

            if (obj == null)
            {
                list = StaticClassesFoundDA.Instance.GetSubStaticByClassId(classid, level);
                MemCache.AddCache(_cachekey, list);
            }
            else
            {
                list = (IList <StaticClassesFoundEntity>)obj;
            }
            return(list);
        }