Пример #1
0
 public UnitOfWork(IPatientRepository patients,
                   IBranchRepository branches,
                   IEventRepository events,
                   ILookUpRepository lookUps,
                   IUserRepository users,
                   ITreatmentRepository treatments,
                   IAddressRepository addresses,
                   IContactRepository contacts,
                   ICountryRepository countries,
                   ICityRepository cities,
                   IClinicRepository clinics,
                   IRoomRepository rooms,
                   AppDbContext smartClinic360DbContext)
 {
     Patients   = patients;
     Branches   = branches;
     Events     = events;
     LookUps    = lookUps;
     Users      = users;
     Treatments = treatments;
     Addresses  = addresses;
     Contacts   = contacts;
     Countries  = countries;
     Cities     = cities;
     Clinics    = clinics;
     Rooms      = rooms;
 }
Пример #2
0
        public GetProblemDataResponse GetProblem(GetProblemDataRequest request)
        {
            GetProblemDataResponse response = new GetProblemDataResponse();
            ILookUpRepository      repo     = Factory.GetRepository(request, RepositoryType.LookUp);

            response.Problem = repo.FindProblemByID(request.ProblemID) as ProblemData;
            return(response);
        }
Пример #3
0
        public GetCategoryDataResponse GetCategoryByID(GetCategoryDataRequest request)
        {
            GetCategoryDataResponse result = new GetCategoryDataResponse();
            ILookUpRepository       repo   = Factory.GetRepository(request, RepositoryType.LookUp);

            result.Category = repo.FindCategoryByID(request.CategoryID) as IdNamePair;

            return(result != null ? result : new GetCategoryDataResponse());
        }
Пример #4
0
        public GetObjectiveDataResponse GetObjectiveByID(GetObjectiveDataRequest request)
        {
            GetObjectiveDataResponse result = new GetObjectiveDataResponse();
            ILookUpRepository        repo   = Factory.GetRepository(request, RepositoryType.LookUp);

            result.Objective = repo.FindObjectiveByID(request.ObjectiveID) as IdNamePair;

            return(result != null ? result : new GetObjectiveDataResponse());
        }
Пример #5
0
        public GetAllCommModesDataResponse GetAllCommModes(GetAllCommModesDataRequest request)
        {
            GetAllCommModesDataResponse response = new GetAllCommModesDataResponse();
            ILookUpRepository           repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            List <IdNamePair>           data     = repo.GetAllCommModes();

            if (data != null)
            {
                response.CommModes = data;
            }
            return(response);
        }
Пример #6
0
        public SearchProblemsDataResponse SearchProblem(SearchProblemsDataRequest request)
        {
            SearchProblemsDataResponse response = new SearchProblemsDataResponse();
            ILookUpRepository          repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            List <ProblemData>         problems = repo.SearchProblem(request);

            if (problems != null)
            {
                response.Problems = problems;
            }
            return(response);
        }
Пример #7
0
        public GetAllProblemsDataResponse GetAllProblems(GetAllProblemsDataRequest request)
        {
            GetAllProblemsDataResponse response = new GetAllProblemsDataResponse();
            ILookUpRepository          repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            List <ProblemData>         problems = repo.GetAllProblems();

            if (problems != null)
            {
                response.Problems = problems;
            }
            return(response);
        }
Пример #8
0
        public GetLookUpDetailsDataResponse GetLookUpDetails(GetLookUpDetailsDataRequest request)
        {
            GetLookUpDetailsDataResponse response = new GetLookUpDetailsDataResponse();
            ILookUpRepository            repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            List <LookUpDetailsData>     data     = repo.GetLookUpDetails(request.Name);

            if (data != null)
            {
                response.LookUpDetailsData = data;
            }
            return(response);
        }
Пример #9
0
        public GetAllStatesDataResponse GetAllStates(GetAllStatesDataRequest request)
        {
            GetAllStatesDataResponse response = new GetAllStatesDataResponse();
            ILookUpRepository        repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            List <StateData>         data     = repo.GetAllStates();

            if (data != null)
            {
                response.States = data;
            }
            return(response);
        }
Пример #10
0
        public GetTimeZoneDataResponse GetDefaultTimeZone(GetTimeZoneDataRequest request)
        {
            GetTimeZoneDataResponse response = new GetTimeZoneDataResponse();
            ILookUpRepository       repo     = Factory.GetRepository(request, RepositoryType.LookUp);
            TimeZoneData            data     = repo.GetDefaultTimeZone();

            if (data != null)
            {
                response.TimeZone = data;
            }
            return(response);
        }
Пример #11
0
        public GetAllSettingsDataResponse GetAllSettings(GetAllSettingsDataRequest request)
        {
            GetAllSettingsDataResponse response = new GetAllSettingsDataResponse();
            ILookUpRepository          repo     = Factory.GetRepository(request, RepositoryType.Setting);
            List <MESetting>           list     = repo.SelectAll() as List <MESetting>;

            if (list != null && list.Count > 0)
            {
                Dictionary <string, string> data = new Dictionary <string, string>();
                list.ForEach(s =>
                {
                    data.Add(s.Key, s.Value);
                });

                response.SettingsData = data;
            }
            return(response);
        }
Пример #12
0
        public ILookUpRepository GetRepository(IDataDomainRequest request, RepositoryType type)
        {
            ILookUpRepository repo = null;

            switch (type)
            {
            case RepositoryType.LookUp:
            {
                repo = new MongoLookUpRepository(request.ContractNumber) as ILookUpRepository;
                break;
            }

            case RepositoryType.Setting:
            {
                repo = new MongoSettingRepository(request.ContractNumber) as ILookUpRepository;
                break;
            }
            }

            repo.UserId = request.UserId;
            return(repo);
        }
Пример #13
0
 public LookUpController(ILookUpRepository lookUpRepository)
 {
     _lookUpRepository = lookUpRepository;
 }
 /// <summary>
 /// Default constructer
 /// </summary>
 public LookUpController(ILookUpRepository <EducationLevel> eductionLevelLookupService)
 {
     this.eductionLevelLookupService = eductionLevelLookupService;
 }
Пример #15
0
 public GeneralService(ILookUpRepository lookUpRepository, IGeneralFactory generalFactory)
 {
     this.lookUpRepository = lookUpRepository;
     this.generalFactory   = generalFactory;
 }
Пример #16
0
 public HomeController(ILookUpRepository lookUpRepo)
 {
     this.lookUpRepository = lookUpRepo;
 }
Пример #17
0
 public LookUpService()
 {
     this._repository = new LookUpRepository();
 }
Пример #18
0
 public LookUpService(IMapper mapper, ILookUpRepository repository, IAttachmentRepository attachmentRepository, IHttpContextAccessor accessor) : base(mapper, repository, attachmentRepository, accessor)
 {
 }
Пример #19
0
 public LookUpService(ILookUpRepository repository)
 {
     this._repository = repository;
 }
Пример #20
0
 public JsonService(IFishRepository fishRepository, ILookUpRepository lookUpRepository)
 {
     _fishRepository   = fishRepository;
     _lookUpRepository = lookUpRepository;
 }
Пример #21
0
 public TestController(IEmployeeRepository employeeRepository, ILookUpRepository lookUpRepository, IVolunteerInfoRepository volunteerInfoRepository)
 {
     this.employeeRepository      = employeeRepository;
     this.lookUpRepository        = lookUpRepository;
     this.volunteerInfoRepository = volunteerInfoRepository;
 }
Пример #22
0
 public VolunteerClockTimeController(ILookUpRepository lookUpRepo, IVolunteerInfoRepository volunteerInfoRepository)
 {
     this.lookUpRepository        = lookUpRepo;
     this.volunteerInfoRepository = volunteerInfoRepository;
 }