1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-08-16 09:57:27 +02:00
admissionManager/ViewModel/PatientViewModel.cs
Marcel Grześ 069f0612da Basic function development
A few models has been improved;
New pages has been added; NewRecordDialog has been added;
ViewNavigator was created; A type providers has been added; new interfaces has been added; New validator, which checks if interface is implemented has been added;
The application can read data and add new record by API now.
2018-12-29 11:58:25 +01:00

43 lines
1.2 KiB
C#

using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
//Zmienic interfejs na taki dla viewmodeli
class PatientViewModel : ISqlTableModelable
{
private Patient model;
public string PrimaryKey { get => model.PrimaryKey; }
public string Name { get => model.Name; }
public string Surname { get => model.Surname; }
public DateTime BirthDate { get => model.BirthDate; }
public string PatientState { get => model.PatientState.GetEnumDescription(); }
public string PatientSex { get => model.PatientSex.GetEnumDescription(); }
public PatientViewModel(Patient patient)
{
model = patient;
}
public List<string> GetColumnNames()
{
throw new NotImplementedException();
}
public string GetPrimaryKey()
{
throw new NotImplementedException();
}
public string GetPrimaryKeyName()
{
throw new NotImplementedException();
}
}
}