public AppointmentViewModel(Appointment obj)
 {
     this.appointmentObj= new Appointment();
      AppointmentID = obj.appointmentID;
      PatientID = obj.patientID;
      DoctorID = obj.doctorID;
      RoomNumber = obj.roomNumber;
      Date = obj.date;
      Reason = obj.reason;
      appointmentObj.setPatientNameFromDb();
      appointmentObj.setDoctorNameFromDb();
 }
Пример #2
0
 public void addAppointment(Appointment appointmentObj)
 {
     this.appointments.Add(appointmentObj);
 }
Пример #3
0
        public void scheduleAppointment(Appointment appointmentObj)
        {
            String query = String.Format("INSERT INTO Appointments (patientID, doctorID, roomNumber, date, reason, caseID) VALUES('{0}', '{1}', '{2}', '{3}', '{4}', '{5}')", appointmentObj.patientID, appointmentObj.doctorID, appointmentObj.roomNumber, appointmentObj.date.ToString("yyyy-MM-dd HH:mm:ss"), appointmentObj.reason, appointmentObj.caseID);

            _database.executeQuery(query);
        }
Пример #4
0
 public void rescheduleAppointment(Appointment app, DateTime newDate)
 {
 }
Пример #5
0
 public void cancelAppointment(Appointment app)
 {
 }
 public void ScheduleAppointment()
 {
     if (this.checkForDuplicateAppointments())
     { ErrorMessage = "This Time is already occupied"; }
     else
     {
         Appointment appObj = new Appointment(_caseViewModel.PatientID, _selectedDoctorID, getDoctorRoom(_selectedDoctorID), _appointmentDateTime, _reason, _caseViewModel.CaseID);
         _receptionist.scheduleAppointment(appObj);
     }
 }
Пример #7
0
 public void declineAppointment(Appointment app)
 {
 }