Example #1
0
 public CustomRegionFileImporter(IUserFolder folder
                                 , IDomainSessionFactoryProvider provider
                                 , IHospitalRegistryService hospitalRegistryService
                                 , IEventAggregator events
                                 , [Import(LogNames.Session)] ILogWriter logger)
     : base(folder, provider, hospitalRegistryService, events, logger)
 {
 }
 public PhysicianFileImporter(IUserFolder folder
                              , IDomainSessionFactoryProvider provider
                              , IHospitalRegistryService hospitalRegistryService
                              , IEventAggregator events
                              , [Import(LogNames.Session)] ILogWriter logger
                              , IConfigurationService configurationService)
     : base(folder, provider, hospitalRegistryService, events, logger)
 {
     _configurationService = configurationService;
 }
 protected EntityFileImporter(IUserFolder folder
                              , IDomainSessionFactoryProvider provider
                              , IHospitalRegistryService hospitalRegistryService
                              , IEventAggregator events
                              , [Import(LogNames.Session)] ILogWriter logger)
 {
     Provider = provider;
     Logger   = logger;
     Folder   = folder;
     Events   = events;
     HospitalRegistryService = hospitalRegistryService;
     Description             = string.Format("{0} Import", ExportAttribute.ContractName);
     Inserted     = new List <object>();
     ImportErrors = new List <ImportError>();
 }
 public HospitalDataService(
     IHospitalRegistryService hospitalMappingService)
 {
     HospitalRegistryService = hospitalMappingService;
     /*Load list of states from DB, and just keep them in mem for reference*/
     GetAll <State>((o, e) =>
     {
         if (e == null)
         {
             StateCollection = o;
         }
         else
         {
             throw new NullReferenceException("Could not load State Definitions from local DB");
         }
     });
 }
        public HospitalRegion(IHospitalRegistryService service)
        {
            Service = service;

            this.PropertyChanged += (o, e) =>
            {
                if (string.Equals(e.PropertyName, "DefaultStates", StringComparison.OrdinalIgnoreCase))
                {
                    InitLazySelectedStates();
                }
            };

            if (DefaultStates == null)
            {
                DefaultStates = new StringCollection();
            }

            //if (_LazySelectedStates == null)
            //{
            InitLazySelectedStates();
            //}
        }