mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-08-16 09:57:27 +02:00
069f0612da
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.
43 lines
1.2 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|