public DoctorViewModel(Doctor obj)
 {
     this.docObj = obj;
     this._doctorID = obj.doctorID;
     this._fullName = obj.name + " " + obj.surname;
     this._speciality = obj.speciality;
     this._roomNumber = obj.roomNumber;
     FullInfo = _fullName + ", " + _speciality;
 }
 public void setDoctorNameFromDb()
 {
     Doctor temp = new Doctor();
     int employeeID = temp.getEmployeeID(this.doctorID);
     String query = String.Format("SELECT name, surname FROM Employees WHERE employeeID={0}", employeeID);
     String[,] credentials = this._database.selectQuery(query, new List<string>() { "name", "surname"});
     DoctorName = credentials[0, 0] + " " + credentials[0, 1];
 }
 public void createAdmission(Patient patient, int bedNumber, Doctor doctor)
 {
 }
Exemple #4
0
 public void createAdmission(Patient patient, int bedNumber, Doctor doctor)
 {
 }