From d4e22c99152459ba059a175fe67f1eccb2726907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BA=20=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Sat, 1 Apr 2023 18:52:20 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20Binding-=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/CustomerBindingModel.cs | 13 +++++++++++++ .../BindingModels/ItemBindingModel.cs | 13 +++++++++++++ .../BindingModels/ItemForRepairBindingModel.cs | 12 ++++++++++++ .../BindingModels/RepairRequestBindingModel.cs | 11 +++++++++++ .../BindingModels/VehicleBindingModel.cs | 13 +++++++++++++ .../BindingModels/WorkBindingModel.cs | 13 +++++++++++++ .../BindingModels/WorkInRequestBindingModel.cs | 13 +++++++++++++ .../BindingModels/WorkPaymentBindingModel.cs | 12 ++++++++++++ .../BindingModels/WorkerBindingModel.cs | 13 +++++++++++++ 9 files changed, 113 insertions(+) create mode 100644 CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs create mode 100644 CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs diff --git a/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs b/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs new file mode 100644 index 0000000..09194c9 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class CustomerBindingModel : ICustomerModel + { + public int Id { get; set; } + public string Login { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public string Surname { get; set; } = string.Empty; + } +} diff --git a/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs b/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs new file mode 100644 index 0000000..1ba5581 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class ItemBindingModel : IItemModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public decimal Price { get; set; } + public int Count { get; set; } + public int WorkerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs b/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs new file mode 100644 index 0000000..4cae329 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs @@ -0,0 +1,12 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class ItemForRepairBindingModel : IItemForRepairModel + { + public int Id { get; set; } + public int Count { get; set; } + public int ItemId { get; set; } + public int RepairRequestId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs b/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs new file mode 100644 index 0000000..0d3dc68 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs @@ -0,0 +1,11 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class RepairRequestBindingModel : IRepairRequestModel + { + public int Id { get; set; } + public DateTime DateCreated { get; set; } = DateTime.Now; + public int VehicleId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs b/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs new file mode 100644 index 0000000..b28fc1d --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class VehicleBindingModel : IVehicleModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string? Plate { get; set; } + public string? VIN { get; set; } + public int CustomerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs new file mode 100644 index 0000000..e2660dc --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkBindingModel : IWorkModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public decimal Price { get; set; } + public decimal Duration { get; set; } + public int WorkerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs new file mode 100644 index 0000000..ddc9e1b --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkInRequestBindingModel : IWorkInRequestModel + { + public int Id { get; set; } + public int Count { get; set; } + public decimal Cost { get; set; } + public int RepairRequestId { get; set; } + public int WorkId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs new file mode 100644 index 0000000..ba4500e --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs @@ -0,0 +1,12 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkPaymentBindingModel : IWorkPaymentModel + { + public int Id { get; set; } + public DateTime DatePayment { get; set; } + public decimal Sum { get; set; } + public int WorkInRequestId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs new file mode 100644 index 0000000..48c8441 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkerBindingModel : IWorkerModel + { + public int Id { get; set; } + public string Login { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public string Surname { get; set; } = string.Empty; + } +}