Exemplo n.º 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;
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 9
0
 public Patient()
     : base()
 {
     this._database = new Database();
 }
Exemplo n.º 10
0
 public Appointment()
 {
     this._database = new Database();
 }
Exemplo n.º 11
0
 public Case()
 {
     this._database = new Database();
 }
Exemplo n.º 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();
 }
Exemplo n.º 13
0
 public MedicalCard(int patientID)
 {
     this.patientID = patientID;
     this._database = new Database();
 }
Exemplo n.º 14
0
 public Sample()
 {
     this._database = new Database();
 }
Exemplo n.º 15
0
 public PatientListCreator()
 {
     this._database = new Database();
 }
Exemplo n.º 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();
 }
Exemplo n.º 17
0
 public LabWorker()
 {
     this._database = new Database();
 }
Exemplo n.º 18
0
 public CasesListCreator()
 {
     this._database = new Database();
 }
Exemplo n.º 19
0
 public Receptionist()
     : base()
 {
     this._database = new Database();
 }
Exemplo n.º 20
0
 public Doctor()
     : base()
 {
     this._database = new Database();
 }