фикс неймов + контракты према врача
This commit is contained in:
parent
326ec41713
commit
a413f484f2
@ -6,12 +6,11 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace VetclinicDataModels.Enums
|
||||
{
|
||||
public enum MedPurchase
|
||||
public enum DoctorVisitStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Забронировано = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
Закончен = 2,
|
||||
}
|
||||
}
|
@ -3,13 +3,14 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicDataModels.Enums;
|
||||
|
||||
namespace VetclinicDataModels.Models
|
||||
{
|
||||
public interface IDoctorVisit: IId
|
||||
public interface IDoctorVisitModel: IId
|
||||
{
|
||||
int ClientID { get; }
|
||||
int Duration { get; }
|
||||
DateTime DateAdmition { get; }
|
||||
int ClientId { get; }
|
||||
DoctorVisitStatus Status { get; }
|
||||
DateTime DateVisit { get; }
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace VetclinicDataModels.Models
|
||||
{
|
||||
public interface IDrugPurchase: IId
|
||||
public interface IDrugPurchaseModel: IId
|
||||
{
|
||||
int ClientId { get; }
|
||||
double Cost { get; }
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicDataModels.Enums;
|
||||
using VetclinicDataModels.Models;
|
||||
|
||||
namespace VetclinicContracts.BindingModels
|
||||
{
|
||||
public class DoctorVisitBindingModel: IDoctorVisitModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ClientId { get; set; }
|
||||
public DoctorVisitStatus Status { get; set; }
|
||||
public DateTime DateVisit { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicContracts.BindingModels;
|
||||
using VetclinicContracts.SearchModels;
|
||||
using VetclinicContracts.ViewModels;
|
||||
|
||||
namespace VetclinicContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IDoctorVisitLogic
|
||||
{
|
||||
List<DoctorVisitViewModel>? ReadList(DoctorVisitSearchModel? model);
|
||||
DoctorVisitViewModel? ReadElement(DoctorVisitSearchModel model);
|
||||
bool CreateDoctorVisit(DoctorBindingModel model);
|
||||
bool BeginDoctorVisit(DoctorBindingModel model);
|
||||
bool FinishDoctorVisit(DoctorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicDataModels.Enums;
|
||||
|
||||
namespace VetclinicContracts.SearchModels
|
||||
{
|
||||
public class DoctorVisitSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? ClientId { get; set; }
|
||||
public DoctorVisitStatus? Status { get; set; }
|
||||
public DateTime? DateVisit { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicContracts.BindingModels;
|
||||
using VetclinicContracts.SearchModels;
|
||||
using VetclinicContracts.ViewModels;
|
||||
|
||||
namespace VetclinicContracts.StoragesContracts
|
||||
{
|
||||
public interface IDoctorVisitStorage
|
||||
{
|
||||
List<DoctorVisitViewModel> GetFullList();
|
||||
List<DoctorVisitViewModel> GetFiltredList(DoctorVisitSearchModel model);
|
||||
DoctorVisitViewModel? GetElement(DoctorVisitSearchModel model);
|
||||
DoctorVisitViewModel? Insert(DoctorVisitBindingModel model);
|
||||
DoctorVisitViewModel? Update(DoctorVisitBindingModel model);
|
||||
DoctorVisitViewModel? Delete(DoctorVisitBindingModel model);
|
||||
}
|
||||
}
|
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace VetclinicContracts.ViewModels
|
||||
{
|
||||
|
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VetclinicDataModels.Enums;
|
||||
using VetclinicDataModels.Models;
|
||||
|
||||
namespace VetclinicContracts.ViewModels
|
||||
{
|
||||
public class DoctorVisitViewModel: IDoctorVisitModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ClientId { get; set; }
|
||||
[DisplayName("Длительность приема")]
|
||||
public DoctorVisitStatus Status { get; set; }
|
||||
[DisplayName("Дата приема")]
|
||||
public DateTime DateVisit { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user