2018-12-22 15:52:17 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using HospitalServerManager.InterfacesAndEnums;
|
|
|
|
|
using HospitalServerManager.Model.Basic;
|
|
|
|
|
|
|
|
|
|
namespace HospitalServerManager.ViewModel
|
|
|
|
|
{
|
2018-12-29 11:58:25 +01:00
|
|
|
|
class DoctorViewModel : ISqlTableModelable // TODO: Dodać intrefejs dla VIEW MODEL!!
|
2018-12-22 15:52:17 +01:00
|
|
|
|
{
|
|
|
|
|
private Doctor model;
|
|
|
|
|
public string PrimaryKey { get => model.PrimaryKey; }
|
|
|
|
|
public string Name { get => model.Name; }
|
|
|
|
|
public string AdacemicDegree { get => model._AcademicDegree.GetEnumDescription(); }
|
|
|
|
|
public string MedicalSpecialization { get => model._MedicalSpecialization.GetEnumDescription(); }
|
|
|
|
|
public string Surname { get => model.Surname; }
|
|
|
|
|
public DateTime EmploymentDate { get => model.DateOfEmployment; }
|
|
|
|
|
public string JobPosition { get => model._JobPosition.GetEnumDescription(); }
|
|
|
|
|
|
|
|
|
|
public DoctorViewModel(Doctor model)
|
|
|
|
|
{
|
|
|
|
|
this.model = model;
|
|
|
|
|
}
|
2018-12-29 11:58:25 +01:00
|
|
|
|
|
|
|
|
|
public List<string> GetColumnNames()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetPrimaryKey()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetPrimaryKeyName()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
2018-12-22 15:52:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|