示例#1
0
 public void LoadList(ILookupServiceRepository lookupServiceRepository)
 {
     this.ListCareerLevel    = lookupServiceRepository.GetAllCareerLevel();
     this.ListManager        = lookupServiceRepository.GetAllManager();
     this.ListStaffManager   = lookupServiceRepository.GetAllStaffManager();
     this.ListOfficeLocation = lookupServiceRepository.GetAllOfficeLocation();
 }
示例#2
0
 public UserManagementController(IUserManagementRepository userManagementRepository, ILookupServiceRepository lookupServiceRepository)
 {
     this._lookupServiceRepository = lookupServiceRepository;
     this._lookupServiceRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email });
     this._userManagementRepository = userManagementRepository;
     this._userManagementRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email });
 }
示例#3
0
        public void LoadCountryObject(ILookupServiceRepository lookupServiceRepository)
        {
            ICountry country = default(Country);

            if (CountryId != string.Empty)
            {
                IList <ICountry> countries = lookupServiceRepository.GetAllCountry();
                if (countries.Count != 0)
                {
                    country = countries.SingleOrDefault(x => x.Id == CountryId);
                }
            }

            this.CountryObject = country;
        }
示例#4
0
文件: Utility.cs 项目: odchie/PMS
        public static IList <ICountry> GetCountries1(ILookupServiceRepository lookupServiceRepository)
        {
            string cacheKey  = LanguagePrefix() + CacheKeys.CountryList;
            object countries = CacheManager.Get(cacheKey);

            if (countries == null)
            {
                IList <ICountry> returnList = lookupServiceRepository.GetAllCountry();
                CacheManager.Add(cacheKey, returnList);
                return(returnList);
            }
            else
            {
                return((IList <ICountry>)countries);
            }
        }
示例#5
0
 public void LoadList(ILookupServiceRepository lookupServiceRepository)
 {
     this.ListCountry = lookupServiceRepository.GetAllCountry();
 }