예제 #1
0
        public void FillDiseases()
        {
            GHRepository <Disease> repository = new GHRepository <Disease>();

            repository.AddRange(new List <Disease> {
                new Disease()
                {
                    Name = "Артрит", DiseaseStatusId = 1
                },
                new Disease()
                {
                    Name = "Грип", DiseaseStatusId = 2
                },
                new Disease()
                {
                    Name = "ГРВІ", DiseaseStatusId = 3
                },
                new Disease()
                {
                    Name = "СПД", DiseaseStatusId = 1
                },
                new Disease()
                {
                    Name = "Гайморит", DiseaseStatusId = 2
                },
                new Disease()
                {
                    Name = "ВСД", DiseaseStatusId = 3
                },
                new Disease()
                {
                    Name = "БЛО", DiseaseStatusId = 1
                }
            });
        }
예제 #2
0
        public void FillDoctors()
        {
            GHRepository <Doctor> repository = new GHRepository <Doctor>();

            repository.AddRange(new List <Doctor> {
                new Doctor()
                {
                    Name = "Чумак", Surname = "Чумаченко"
                },
                new Doctor()
                {
                    Name = "Олеся", Surname = "Біньковська"
                },
                new Doctor()
                {
                    Name = "Андрій", Surname = "Шелевицький"
                },
                new Doctor()
                {
                    Name = "Олег", Surname = "Титюк"
                },
                new Doctor()
                {
                    Name = "Ігор", Surname = "Захарченко"
                },
                new Doctor()
                {
                    Name = "Наталія", Surname = "Козак"
                }
            });
        }
예제 #3
0
        public void FillWorkDaysDoctors()
        {
            GHRepository <WorkDayDoctor> repository = new GHRepository <WorkDayDoctor>();

            repository.AddRange(new List <WorkDayDoctor> {
                new WorkDayDoctor()
                {
                    DoctorId = 1, WorkDayId = 1
                },
                new WorkDayDoctor()
                {
                    DoctorId = 2, WorkDayId = 2
                },
                new WorkDayDoctor()
                {
                    DoctorId = 3, WorkDayId = 3
                },
                new WorkDayDoctor()
                {
                    DoctorId = 4, WorkDayId = 4
                },
                new WorkDayDoctor()
                {
                    DoctorId = 5, WorkDayId = 2
                },
                new WorkDayDoctor()
                {
                    DoctorId = 6, WorkDayId = 3
                }
            });
        }
예제 #4
0
        public void FillDisHistories()
        {
            IDataRepository <DiseaseHistory> repository = new GHRepository <DiseaseHistory>();

            repository.AddRange(new List <DiseaseHistory> {
                new DiseaseHistory {
                    Name = "Історія хвороб №1", PatientId = 1
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №2", PatientId = 2
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №3", PatientId = 3
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №4", PatientId = 4
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №5", PatientId = 5
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №6", PatientId = 6
                },
                new DiseaseHistory {
                    Name = "Історія хвороб №7", PatientId = 7
                }
            });
        }
예제 #5
0
        public void FillPatients()
        {
            IDataRepository <Patient> repository = new GHRepository <Patient>();

            repository.AddRange(new List <Patient> {
                new Patient()
                {
                    Name = "Влад", Surname = "Віктюк", ThirdName = "Вікторович", DateOfBirth = new DateTime(1988, 10, 10), DiseaseHistoryId = 7
                },
                new Patient()
                {
                    Name = "Олександр", Surname = "Петриченко", ThirdName = "Валентинович", DateOfBirth = new DateTime(1975, 8, 3), DiseaseHistoryId = 6
                },
                new Patient()
                {
                    Name = "Богдан", Surname = "Гупало", ThirdName = "Олегович", DateOfBirth = new DateTime(1985, 11, 28), DiseaseHistoryId = 5
                },
                new Patient()
                {
                    Name = "Віктор", Surname = "Степанюк", ThirdName = "Іллевич", DateOfBirth = new DateTime(1996, 2, 15), DiseaseHistoryId = 4
                },
                new Patient()
                {
                    Name = "Петро", Surname = "Ломаченко", ThirdName = "Валерійович", DateOfBirth = new DateTime(2001, 3, 22), DiseaseHistoryId = 3
                },
                new Patient()
                {
                    Name = "Дарина", Surname = "Петриченко", ThirdName = "Костянтинівна", DateOfBirth = new DateTime(1993, 10, 12), DiseaseHistoryId = 2
                },
                new Patient()
                {
                    Name = "Софія", Surname = "Бабич", ThirdName = "Альбертівна", DateOfBirth = new DateTime(1982, 7, 11), DiseaseHistoryId = 1
                }
            });
        }
예제 #6
0
        public void FillNotes()
        {
            IDataRepository <Note> repository = new GHRepository <Note>();

            repository.AddRange(new List <Note> {
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 1, DiseaseHistoryId = 1
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 3, DiseaseHistoryId = 2
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 4, DiseaseHistoryId = 3
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 7, DiseaseHistoryId = 4
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 6, DiseaseHistoryId = 5
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 5, DiseaseHistoryId = 6
                },
                new Note()
                {
                    Medicine = "Some medicines", ReceptionId = 1, DiseaseId = 2, DiseaseHistoryId = 7
                }
            });
        }
예제 #7
0
        public void FillDisStatuses()
        {
            GHRepository <DiseaseStatus> repository = new GHRepository <DiseaseStatus>();

            repository.AddRange(new List <DiseaseStatus> {
                new DiseaseStatus()
                {
                    Code = "Закритий"
                },
                new DiseaseStatus()
                {
                    Code = "Відкритий"
                },
                new DiseaseStatus()
                {
                    Code = "Змінений"
                }
            });
        }
예제 #8
0
        public void FillNurses()
        {
            IDataRepository <Nurse> repository = new GHRepository <Nurse>();

            repository.AddRange(new List <Nurse> {
                new Nurse()
                {
                    Name     = "Галина", SecondName = "Добряк", ThirdName = "Іванівна",
                    Password = "******", PhoneNumber = "0935672865"
                },
                new Nurse()
                {
                    Name     = "Надія", SecondName = "Бойко", ThirdName = "Володимирівна",
                    Password = "******", PhoneNumber = "0678934678"
                },
                new Nurse()
                {
                    Name     = "Ірина", SecondName = "Цурко", ThirdName = "Степанівна",
                    Password = "******", PhoneNumber = "0508345782"
                }
            });
        }
예제 #9
0
        //public void FillDisHistories()
        //{
        //    GHRepository<DiseaseHistory> repository = new GHRepository<DiseaseHistory>();

        //    repository.AddRange(new List<DiseaseHistory>
        //    {
        //        new DiseaseHistory() {}
        //    });
        //}

        public void FillWorkDays()
        {
            GHRepository <WorkDay> repository = new GHRepository <WorkDay>();

            repository.AddRange(new List <WorkDay> {
                new WorkDay()
                {
                    StartDate = new DateTime(2018, 7, 10, 10, 0, 0), EndDate = new DateTime(2018, 7, 10, 18, 0, 0)
                },
                new WorkDay()
                {
                    StartDate = new DateTime(2018, 7, 10, 12, 0, 0), EndDate = new DateTime(2018, 7, 10, 20, 0, 0)
                },
                new WorkDay()
                {
                    StartDate = new DateTime(2018, 7, 11, 10, 0, 0), EndDate = new DateTime(2018, 7, 11, 18, 0, 0)
                },
                new WorkDay()
                {
                    StartDate = new DateTime(2018, 7, 11, 12, 0, 0), EndDate = new DateTime(2018, 7, 10, 20, 0, 0)
                }
            });
        }