コード例 #1
0
 public HospitalSectionProfileCreator(IHospitalRepository hospitalRepository, ISectionProfileRepository sectionProfileRepository, IHospitalUserSectionAccessRepository hospitalUserSectionAccessRepository, IHospitalUserRepository hospitalUserRepository)
 {
     this._hospitalRepository = hospitalRepository;
     _sectionProfileRepository = sectionProfileRepository;
     _hospitalUserSectionAccessRepository = hospitalUserSectionAccessRepository;
     this._hospitalUserRepository = hospitalUserRepository;
 }
コード例 #2
0
        public ReceptionUserModelCreator(IPersonDataAPIRepository personDataApiRepository, 
            IHospitalRepository hospitalRepository, IUserTypeRepository userTypeRepository,
            IPasswordHashManager passwordHashManager, IAccountNameCalculator accountNameCalculator)
        {
            _personDataApiRepository = personDataApiRepository;
            _hospitalRepository = hospitalRepository;
            _userTypeRepository = userTypeRepository;

            _passwordHashManager = passwordHashManager;
            _accountNameCalculator = accountNameCalculator;
        }
コード例 #3
0
 public ClinicRegistrationsService(ISectionProfileRepository sectionProfileRepository, IClinicManager clinicManager, ITokenManager tokenManager, IEmptyPlaceByTypeStatisticRepository emptyPlaceByTypeStatisticRepository, IClinicUserHospitalSectionProfileAccessRepository clinicUserHospitalSectionProfileAccessRepository, IHospitalRepository hospitalRepository, IReservationRepository reservationRepository, IMessageRepository messageRepository, IUserRepository userRepository, IHospitalSectionProfileRepository hospitalSectionProfileRepository, IHospitalManager hospitalManager, IClinicRepository clinicRepository, IReservationFileRepository reservationFile, IEmptyPlaceStatisticRepository emptyPlaceStatisticRepository)
 {
     _sectionProfileRepository = sectionProfileRepository;
     this._clinicManager = clinicManager;
     _tokenManager = tokenManager;
     _emptyPlaceByTypeStatisticRepository = emptyPlaceByTypeStatisticRepository;
     _clinicUserHospitalSectionProfileAccessRepository = clinicUserHospitalSectionProfileAccessRepository;
     _hospitalRepository = hospitalRepository;
     _reservationRepository = reservationRepository;
     _messageRepository = messageRepository;
     _userRepository = userRepository;
     this._hospitalSectionProfileRepository = hospitalSectionProfileRepository;
     this._hospitalManager = hospitalManager;
     _clinicRepository = clinicRepository;
     _reservationFileRepository = reservationFile;
     _emptyPlaceStatisticRepository = emptyPlaceStatisticRepository;
 }
コード例 #4
0
 public DepartmentRepository(IHospitalRepository hospitalRepository, Stream <Department> stream) : base(stream, "Department")
 {
     this.hospitalRepository = hospitalRepository;
     this.stream             = stream;
 }
コード例 #5
0
 public HospitalManager(IHospitalRepository hospitalRepository)
 {
     HospitalRepository = hospitalRepository;
 }
コード例 #6
0
 public HospitalController()
 {
     _hospitalRepository = new HospitalRepository();
 }
コード例 #7
0
        public async Task <IActionResult> GetById(Guid id, [FromServices] IHospitalRepository repository)
        {
            var result = await repository.GetById(id);

            return(Ok(_mapper.Map <HospitalViewModel>(result)));
        }
コード例 #8
0
 public HospitalService(IHospitalRepository hospitalRepository, IPatientRepository patientRepository)
 {
     _hospitalRepository = hospitalRepository;
     _patientRepository  = patientRepository;
 }
コード例 #9
0
 public HospitalController(IHospitalRepository hospitalRepository)
 {
     _hospitalRepository = hospitalRepository;
 }
コード例 #10
0
 public HospitalController(DoacaoContext context, IHospitalRepository hospitalRepository)
 {
     _context            = context;
     _hospitalRepository = hospitalRepository;
 }
コード例 #11
0
 public HospitalesModel(IHospitalRepository hospitalRepositoty)
 {
     _hospitalRepositoty = hospitalRepositoty;
 }
コード例 #12
0
 public HospitalsController(IHospitalRepository ihrep)
 {
     this.db = ihrep;
 }
コード例 #13
0
 public HospitalsController()
 {
     this.db = new EFHospitalRepository();
 }
コード例 #14
0
 public UsuarioController(DoacaoContext context, IUsuarioRepository usuarioRepository, IHospitalRepository hospitalRepository)
 {
     _context            = context;
     _usuarioRepository  = usuarioRepository;
     _hospitalRepository = hospitalRepository;
 }
コード例 #15
0
 public HospitalsController(IHospitalRepository hospitalRepository)
 {
     this.hospitalRepository = hospitalRepository;
 }
コード例 #16
0
 public IndexModel(IHospitalRepository repository)
 {
     this.repository = repository;
 }
コード例 #17
0
        public HospitalHealViewModel(Hospital hospital, IHospitalService hospitalService, IHospitalRepository hospitalRepository, bool showHospitalName = false)
        {
            HospitalID = hospital.CompanyID;

            HealingPrice = (double?)hospital.HealingPrice;

            HealingEnabled = hospital.HealingEnabled && SessionHelper.CurrentEntity.Is(EntityTypeEnum.Citizen);
            if (HealingEnabled)
            {
                var citizen = SessionHelper.LoggedCitizen;
                var result  = hospitalService.CanHealCitizen(SessionHelper.LoggedCitizen, hospital);
                CanHealYou      = result.isSuccess;
                NoHealingReason = result.ToString("<br/>"); //if there are no errors it will be empty.
                if (CanHealYou)
                {
                    CurrencySymbol = Persistent.Countries.GetCountryCurrency(hospital.Company.Region.Country).Symbol;
                    HealingPrice   = (double?)hospitalRepository.GetHealingPrice(hospital.CompanyID, citizen.ID).Cost;
                }
            }

            if (ShowHospitalName = showHospitalName)
            {
                HospitalName = hospital.Company.Entity.Name;
            }
        }
コード例 #18
0
 public HospitalHandler(IHospitalRepository hospitalRepository, IAddressRepositoty addressRepositoty)
 {
     _hospitalRepository = hospitalRepository;
     _addressRepositoty  = addressRepositoty;
 }
コード例 #19
0
 /// <summary>
 /// Inject your repository here
 /// </summary>
 /// <param name="hospitalRepository"></param>
 public HospitalController(IHospitalRepository hospitalRepository) =>
コード例 #20
0
        public static ViewCompanyViewModel GetViewModel(Company company, IProductRepository productRepository, ICompanyService companyService, CompanyRights rights, IRegionRepository regionRepository, IRegionService regionService, IHospitalRepository hospitalRepository)
        {
            switch (company.GetCompanyType())
            {
            case CompanyTypeEnum.Construction:
                return(new ViewConstructionCompanyViewModel(company, productRepository, companyService, rights, regionService, regionRepository));

            case CompanyTypeEnum.Developmenter:
                return(new ViewDevelopementCompanyViewModel(company, productRepository, companyService, rights, regionService, regionRepository));
            }

            switch (company.GetProducedProductType())
            {
            case ProductTypeEnum.MedicalSupplies:
                var hospitalService = DependencyResolver.Current.GetService <IHospitalService>();
                return(new ViewHospitalCompanyViewModel(company, productRepository, companyService, hospitalService, rights, regionService, regionRepository, hospitalRepository));
            }

            return(new ViewCompanyViewModel(company, productRepository, companyService, rights, regionService, regionRepository));
        }
コード例 #21
0
 public HospitalCommandHandler(IHospitalRepository hospitalRepository, IUnitOfWork uow)
 {
     _hospitalRepository = hospitalRepository;
     _uow = uow;
 }
コード例 #22
0
 public DoctorRepository(ICSVStream <Doctor> stream, ISequencer <UserID> sequencer, ITimeTableRepository timeTableRepository, IHospitalRepository hospitalRepository, IRoomRepository roomRepository, IUserRepository userRepository)
     : base(ENTITY_NAME, stream, sequencer, new DoctorIdGeneratorStrategy())
 {
     _timeTableRepository = timeTableRepository;
     _hospitalRepository  = hospitalRepository;
     _roomRepository      = roomRepository;
     _userRepository      = userRepository;
 }
コード例 #23
0
 public MainWindow()
 {
     InitializeComponent();
     repository = new HospitalRepository();
     UpdateListBox1();
 }
コード例 #24
0
 public InitializeModel(IHospitalRepository repository)
 {
     this.repository = repository;
 }
コード例 #25
0
        public async Task <IActionResult> GetAllByDesactive([FromServices] IHospitalRepository repository)
        {
            var result = await repository.GetAllDesactive(false);

            return(Ok(_mapper.Map <IEnumerable <HospitalViewModel> >(result)));
        }
コード例 #26
0
 public HospitalService(IHospitalRepository hospitalRepository, ILogger <HospitalService> logger)
 {
     _hospitalRepository = hospitalRepository;
     _logger             = logger;
 }
コード例 #27
0
 public AddPatientModel(IHospitalRepository repository)
 {
     this.repository = repository;
 }
コード例 #28
0
 public HospitalService(
     IHospitalRepository repoHospital
     )
 {
     _repoHospital = repoHospital;
 }
コード例 #29
0
ファイル: HospitalService.cs プロジェクト: Stanleyjie/Kr
 public HospitalService(IHospitalRepository hospitalRepository, IHospitalTagRepository hospitalTagRepository)
 {
     _hospitalRepository    = hospitalRepository ?? throw new System.ArgumentNullException(nameof(hospitalRepository));
     _hospitalTagRepository = hospitalTagRepository ?? throw new System.ArgumentNullException(nameof(hospitalTagRepository));
     _baseRepository        = _hospitalRepository;
 }
コード例 #30
0
 public DepartmentsModel(IHospitalRepository repository)
 {
     this.repository = repository;
 }
コード例 #31
0
 public SecretaryRepository(ICSVStream <Secretary> stream, ISequencer <UserID> sequencer, ITimeTableRepository timeTableRepository, IHospitalRepository hospitalRepository, IUserRepository userRepository) : base(ENTITY_NAME, stream, sequencer, new SecretaryIdGeneratorStrategy())
 {
     _timeTableRepository = timeTableRepository;
     _hospitalRepository  = hospitalRepository;
     _userRepository      = userRepository;
 }
コード例 #32
0
 public NewAdmissionModel(IHospitalRepository repository)
 {
     this.repository = repository;
 }
コード例 #33
0
ファイル: HospitalService.cs プロジェクト: Adedave/MedicApp
 public HospitalService(IHospitalRepository hospitalRepository)
 {
     _hospitalRepository = hospitalRepository;
 }
コード例 #34
0
 public HospitalManager(IHospitalRepository hospitalRepository)
 {
     this.hospitalRepository = hospitalRepository;
 }