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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }