예제 #1
0
 public Doctor(String name, String surname, String gender, DateTime dateOfBirth, int mobileNumber, String email, String speciality, int roomNumber)
     : base(name, surname, gender, dateOfBirth, mobileNumber, email)
 {
     this._database = new Database();
     this.speciality = speciality;
     this.roomNumber = roomNumber;
 }
예제 #2
0
 public Patient(String name, String surname, String gender, DateTime dateOfBirth, int mobileNumber, String email, DateTime dateOfRegistration)
     : base(name, surname, gender, dateOfBirth, mobileNumber, email)
 {
     this._database = new Database();
     this.dateOfRegistration = dateOfRegistration;
     this.cases = new List<Case>();
 }
예제 #3
0
 public Sample(int patientID, int doctorID, DateTime creationDate, String result)
 {
     this.patientID = patientID;
     this.doctorID = doctorID;
     this.creationDate = creationDate;
     this.tested = true;
     this.result = result;
     this._database = new Database();
 }
예제 #4
0
 public Patient(String name, String surname, String gender, DateTime dateOfBirth, int mobileNumber, String email, DateTime dateOfRegistration, int patientID, int medicalCardID, Boolean underTreatment)
     : base(name, surname, gender, dateOfBirth, mobileNumber, email)
 {
     this._database = new Database();
     this.dateOfRegistration = dateOfRegistration;
     this.cases = new List<Case>();
     this.patientID = patientID;
     this.medicalCardID = medicalCardID;
     this.currentlyUnderTreatment = underTreatment;
 }
예제 #5
0
 public Case(int patientID, DateTime startDate, String description)
 {
     this.patientID = patientID;
     this.startDate = startDate;
     this.description = description;
     this.appointments = new List<Appointment>();
     this.admissions = new List<Admission>();
     this.surgeries = new List<Surgery>();
     this._database = new Database();
 }
 public ScheduleAppointmentWindowViewModel(CaseViewModel caseVM)
 {
     this._caseViewModel = caseVM;
     this._database = new Database();
     this._doctorsVM = new DoctorsViewModel();
     this._allDoctors = _doctorsVM.AllDoctors;
     _patientName = caseVM.PatientName + " " + caseVM.PatientSurname;
     _receptionist = new Receptionist();
     List<String> appointmentTimes = this.getListOfAppointmentTimes();
     _appointmentTimes = this.createObservableCollectionOfAppointmentTimes(appointmentTimes);
 }
예제 #7
0
 public Appointment(int patientID, int doctorID, int roomNumber, DateTime date, String reason, int caseId)
 {
     this.patientID = patientID;
     this.doctorID = doctorID;
     this.roomNumber = roomNumber;
     this.date = date;
     this.reason = reason;
     this._database = new Database();
     this.caseID = caseId;
     setPatientNameFromDb();
     setDoctorNameFromDb();
 }
예제 #8
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Database database = new Database();
            String result = database.selectSingleQuery(String.Format("SELECT * FROM passwords WHERE username='******' AND password='******'", this.login.Text, this.password.Password));

            if (result == "")
            {
                this.errorMessage.Text = "Incorrect login or password";
            }
            else
            {
                DoctorsAreaWindow window = new DoctorsAreaWindow();
                window.Show();
                this.Close();
            }
        }
예제 #9
0
 public Patient()
     : base()
 {
     this._database = new Database();
 }
예제 #10
0
 public Appointment()
 {
     this._database = new Database();
 }
예제 #11
0
 public Case()
 {
     this._database = new Database();
 }
예제 #12
0
 public Receptionist(String name, String surname, String gender, DateTime dateOfBirth, int mobileNumber, String email)
     : base(name, surname, gender, dateOfBirth, mobileNumber, email)
 {
     this._database = new Database();
 }
예제 #13
0
 public MedicalCard(int patientID)
 {
     this.patientID = patientID;
     this._database = new Database();
 }
예제 #14
0
 public Sample()
 {
     this._database = new Database();
 }
예제 #15
0
 public PatientListCreator()
 {
     this._database = new Database();
 }
예제 #16
0
 public LabWorker(String name, String surname, String gender, DateTime dateOfBirth, int mobileNumber, String email)
     : base(name, surname, gender, dateOfBirth, mobileNumber, email)
 {
     this.untestedSamples = new List<Sample>();
     this._database = new Database();
 }
예제 #17
0
 public LabWorker()
 {
     this._database = new Database();
 }
예제 #18
0
 public CasesListCreator()
 {
     this._database = new Database();
 }
예제 #19
0
 public Receptionist()
     : base()
 {
     this._database = new Database();
 }
예제 #20
0
 public Doctor()
     : base()
 {
     this._database = new Database();
 }