示例#1
0
        public List <PowerGroupInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetPowerGroupList().OrderBy(l => l.Sort).ToList());
            }

            string key = GlobalKey.POWERGROUP_LIST;
            List <PowerGroupInfo> list = MangaCache.Get(key) as List <PowerGroupInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetPowerGroupList().OrderBy(l => l.Sort).ToList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#2
0
        public List <PaymentWayInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetPaymentWayList());
            }

            string key = GlobalKey.PAYMENTWAY_LIST;
            List <PaymentWayInfo> list = MangaCache.Get(key) as List <PaymentWayInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetPaymentWayList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#3
0
        public List <GiveupCauseInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetGiveupCauseList());
            }

            string key = GlobalKey.GIVEUPCAUSE_LIST;
            List <GiveupCauseInfo> list = MangaCache.Get(key) as List <GiveupCauseInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetGiveupCauseList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#4
0
文件: Talks.cs 项目: shaohaiou/comopp
        public List <TalkInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetTalkList());
            }

            string          key  = GlobalKey.TALK_LIST;
            List <TalkInfo> list = MangaCache.Get(key) as List <TalkInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetTalkList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#5
0
        public List <ModuleInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetModuleList().OrderBy(l => l.Sort).ToList());
            }

            string            key  = GlobalKey.MODULE_LIST;
            List <ModuleInfo> list = MangaCache.Get(key) as List <ModuleInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetModuleList().OrderBy(l => l.Sort).ToList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#6
0
        public List <CorporationInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetCorporationList().OrderBy(l => l.Sort).ToList());
            }

            string key = GlobalKey.CORPORATION_LIST;
            List <CorporationInfo> list = MangaCache.Get(key) as List <CorporationInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetCorporationList().OrderBy(l => l.Sort).ToList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#7
0
文件: Cars.cs 项目: shaohaiou/comopp
        public List <CarBrandInfo> GetCarBrandList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetCarBrandList().OrderBy(l => l.NameIndex).ThenBy(l => l.Name).ToList());
            }

            string key = GlobalKey.CARBRAND_LIST;
            List <CarBrandInfo> list = MangaCache.Get(key) as List <CarBrandInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetCarBrandList().OrderBy(l => l.NameIndex).ThenBy(l => l.Name).ToList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#8
0
        public List <CustomerLevelInfo> GetList(bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetCustomerLevelList().OrderBy(l => l.Sort).ToList());
            }

            string key = GlobalKey.CUSTOMERLEVEL_LIST;
            List <CustomerLevelInfo> list = MangaCache.Get(key) as List <CustomerLevelInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetCustomerLevelList().OrderBy(l => l.Sort).ToList();
                MangaCache.Max(key, list);
            }
            return(list);
        }
示例#9
0
        public List <CustomerInfo> GetCustomerListByCorporation(int cid, bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetCustomerListByCorporation(cid));
            }

            string key = GlobalKey.CUSTOMER_LIST + "_corp" + cid;
            List <CustomerInfo> list = MangaCache.Get(key) as List <CustomerInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetCustomerListByCorporation(cid);
                MangaCache.Max(key, list);
            }

            return(list);
        }
示例#10
0
        public List <CustomerConnectRecordInfo> GetListByCustomerID(int cid, bool fromCache = false)
        {
            if (!fromCache)
            {
                return(CommonDataProvider.Instance().GetCustomerConnectRecordListByCustomerID(cid));
            }

            string key = GlobalKey.CUSTOMERCONNECTRECORD_LIST + "_c" + cid;
            List <CustomerConnectRecordInfo> list = MangaCache.Get(key) as List <CustomerConnectRecordInfo>;

            if (list == null)
            {
                list = CommonDataProvider.Instance().GetCustomerConnectRecordListByCustomerID(cid);
                MangaCache.Max(key, list);
            }

            return(list);
        }