diff --git a/STOContracts/ViewModels/CarPartViewModel.cs b/STOContracts/ViewModels/CarPartViewModel.cs new file mode 100644 index 0000000..6ec4efb --- /dev/null +++ b/STOContracts/ViewModels/CarPartViewModel.cs @@ -0,0 +1,19 @@ +using STODataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.ViewModels +{ + public class CarPartViewModel: ICarPartModel + { + public int Id { get; set; } + [DisplayName("название запчасти")] + public string CarPartName { get; set; } = string.Empty; + [DisplayName("цена")] + public double Cost { get; set; } + } +} diff --git a/STOContracts/ViewModels/CarViewModel.cs b/STOContracts/ViewModels/CarViewModel.cs new file mode 100644 index 0000000..3437416 --- /dev/null +++ b/STOContracts/ViewModels/CarViewModel.cs @@ -0,0 +1,28 @@ +using STODataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.ViewModels +{ + public class CarViewModel : ICarModel + { + public int Id { get; set; } + [DisplayName("Номер")] + public string CarNumber { get; set; } + [DisplayName("Марка")] + public string CarBrand { get; set; } = string.Empty; + [DisplayName("Модель")] + public string CarModel { get; set; } = string.Empty; + [DisplayName("год производства")] + public DateTime Year { get; set; } = DateTime.MinValue; + + public Dictionary CarTechnicalWorks { get; set; } = new(); + public Dictionary CarParts { get; set; } = new(); + + public int ClientId { get; set; } + } +} diff --git a/STOContracts/ViewModels/ClientViewModel.cs b/STOContracts/ViewModels/ClientViewModel.cs new file mode 100644 index 0000000..bd94f04 --- /dev/null +++ b/STOContracts/ViewModels/ClientViewModel.cs @@ -0,0 +1,22 @@ +using STODataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.ViewModels +{ + public class ClientViewModel : IClientModel + { + public int Id { get; set; } + [DisplayName("ФИО клиента")] + public string ClientFIO { get; set; } = string.Empty; + [DisplayName("Логин (эл. почта)")] + public string Email { get; set; } = string.Empty; + [DisplayName("Пароль")] + public string Password { get; set; } = string.Empty; + } + +} diff --git a/STOContracts/ViewModels/ServiceViewModel.cs b/STOContracts/ViewModels/ServiceViewModel.cs new file mode 100644 index 0000000..e88e5fe --- /dev/null +++ b/STOContracts/ViewModels/ServiceViewModel.cs @@ -0,0 +1,19 @@ +using STODataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.ViewModels +{ + public class ServiceViewModel : IServiceModel + { + public int Id { get; set; } + [DisplayName("Название сервиса")] + public string Name { get; set; } = string.Empty; + public int ClientId { get; set; } + public int CarId { get; set; } + } +} diff --git a/STOContracts/ViewModels/TechnicalWorkViewModel.cs b/STOContracts/ViewModels/TechnicalWorkViewModel.cs new file mode 100644 index 0000000..400df37 --- /dev/null +++ b/STOContracts/ViewModels/TechnicalWorkViewModel.cs @@ -0,0 +1,22 @@ +using STODataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace STOContracts.ViewModels +{ + public class TechnicalWorkViewModel: ITechnicalWorkModel + { + public int Id { get; set; } + [DisplayName("Название ТО")] + public string Name { get; set; } = string.Empty; + [DisplayName("Описание ТО")] + public string Description { get; set; } = string.Empty; + [DisplayName("дата ТО")] + public DateTime Date { get; set; } = DateTime.MinValue; + public Dictionary TechnicalworkWorks { get; set; } = new(); + } +}