1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-09-18 09:33:00 +02:00
admissionManager/ViewModel/DiagnosisViewModel.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

35 lines
795 B
C#

using HospitalServerManager.Model.Basic;
using HospitalServerManager.InterfacesAndEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.ViewModel
{
class DiagnosisViewModel : IPrimaryKeyGetable
{
private Diagnosis model;
public string PrimaryKey { get => model.PrimaryKey; }
public string Name { get => model.Name; }
public string FieldOfSurgery { get => model.FieldOfSurgery.GetEnumDescription(); }
public string Description { get => model.Description; }
public DiagnosisViewModel(Diagnosis model)
{
this.model = model;
}
public string GetPrimaryKey()
{
return PrimaryKey;
}
public string GetPrimaryKeyName()
{
return model.PrimaryKeyName;
}
}
}