mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-09-18 09:33:00 +02:00
0806b25c79
- 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
35 lines
795 B
C#
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;
|
|
}
|
|
}
|
|
}
|