mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-08-16 18:02:40 +02:00
![Marcel Grześ](/assets/img/avatar_default.png)
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed; - All ViewModel and Models was completed; - WebService, ApiComandProvider has full funcionality, - New interface has been created; - Application is working now :) it's time to refractoring and testing
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
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
|
|
{
|
|
class DoctorViewModel : IPrimaryKeyGetable // TODO: Dodać intrefejs dla VIEW MODEL!!
|
|
{
|
|
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;
|
|
}
|
|
|
|
public string GetPrimaryKey()
|
|
{
|
|
return PrimaryKey;
|
|
}
|
|
|
|
public string GetPrimaryKeyName()
|
|
{
|
|
return model.PrimaryKeyName;
|
|
}
|
|
}
|
|
}
|