1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-08-16 09:57:27 +02:00
admissionManager/ViewModel/AdmissionViewModel.cs
Marcel Grześ 0806b25c79 Basic funcionality was completed.
- 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
2019-01-07 19:49:48 +01:00

40 lines
1.0 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
{
class AdmissionViewModel : IPrimaryKeyGetable
{
private Admission model;
public string PrimaryKey { get => model.PrimaryKey; }
public DateTime AdmissionDate { get => model.AdmissionDate; }
public DateTime? LeavingDate { get => model.LeavingDate; }
public string PatientPESEL { get => model.PatientPESEL; }
public string DiagnosisSymbol { get => model.DiagnosisSymbol; }
public int MainDoctor { get => model.MainDoctor; }
public int? OperationID { get => model.OperationID; }
public int RoomNumber { get => model.RoomNumber; }
public bool IsPlanned { get => model.IsPlanned; }
public AdmissionViewModel(Admission model)
{
this.model = model;
}
public string GetPrimaryKey()
{
return PrimaryKey;
}
public string GetPrimaryKeyName()
{
return model.PrimaryKeyName;
}
}
}