2019-01-07 19:49:48 +01:00
|
|
|
|
using HospitalServerManager.InterfacesAndEnums;
|
|
|
|
|
using HospitalServerManager.Model.Basic;
|
2018-12-22 15:52:17 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HospitalServerManager.ViewModel
|
|
|
|
|
{
|
2019-01-07 19:49:48 +01:00
|
|
|
|
class RoomViewModel : IPrimaryKeyGetable
|
2018-12-22 15:52:17 +01:00
|
|
|
|
{
|
|
|
|
|
private Room model;
|
|
|
|
|
public string PrimaryKey { get => model.PrimaryKey; }
|
|
|
|
|
public int PlacesNumber { get => model.PlacesNumber; }
|
|
|
|
|
public bool IsSpecialCare { get => model.IsSpecialCare; }
|
|
|
|
|
|
|
|
|
|
public RoomViewModel(Room model)
|
|
|
|
|
{
|
|
|
|
|
this.model = model;
|
|
|
|
|
}
|
2019-01-07 19:49:48 +01:00
|
|
|
|
|
|
|
|
|
public string GetPrimaryKey()
|
|
|
|
|
{
|
|
|
|
|
return PrimaryKey;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetPrimaryKeyName()
|
|
|
|
|
{
|
|
|
|
|
return model.PrimaryKeyName;
|
|
|
|
|
}
|
2019-01-11 22:32:18 +01:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return "Sala nr" + PrimaryKey;
|
|
|
|
|
}
|
2018-12-22 15:52:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|