подредактировал контракты

This commit is contained in:
goldfest 2024-05-27 19:44:32 +04:00
parent 12ba48c7d8
commit fb3d9bef9a
7 changed files with 14 additions and 12 deletions

View File

@ -10,9 +10,10 @@ namespace CarCenterContracts.BindingModels
public class CarSalesBindingModel : ICarSalesModel
{
public int Id { get; set; }
public int AdministratorId { get; set; }
public string CarBrand{ get; set; } = string.Empty;
public string CarModel { get; set; } = string.Empty;
public decimal CarCost { get; set; }
public int AdministratorId { get; set; }
public DateTime DateCreate { get; set; }
}
}

View File

@ -14,7 +14,7 @@ namespace CarCenterContracts.BindingModels
public decimal InspectionCost { get; set; }
public DateTime? InspectionDate { get; set; }
public int AdministratorId { get; set; }
public int EmployeeId { get; set; }
public int? EmployeeId { get; set; }
public Dictionary<int, ICarSalesModel> InspectionCars { get; set; } = new();
}
}

View File

@ -10,8 +10,8 @@ namespace CarCenterContracts.SearchModels
{
public int? Id { get; set; }
public string? CarBrand { get; set; }
public string? CarModel { get; set; }
public decimal? CarCost { get; set; }
public int? AdministratorId { get; set; }
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}

View File

@ -10,8 +10,7 @@ namespace CarCenterContracts.SearchModels
{
public int? Id { get; set; }
public string? СompletionName { get; set; }
public string? СompletionFeatures { get; set; }
public decimal? СompletionPrice { get; set; }
public int? AdministratorId { get; set; }
public int? CarSalesId { get; set; }
}
}

View File

@ -11,10 +11,9 @@ namespace CarCenterContracts.SearchModels
{
public int? Id { get; set; }
public string? InspectionName { get; set; }
public decimal? InspectionCost { get; set; }
public DateTime? InspectionDate { get; set; }
public int? AdministratorId { get; set; }
public int? EmployeeId { get; set; }
public int? SalesId { get; set; }
public int? CarSalesId { get; set; }
}
}

View File

@ -21,5 +21,8 @@ namespace CarCenterContracts.ViewModels
[DisplayName("Стоимость машины")]
public decimal CarCost { get; set; }
public int AdministratorId { get; set; }
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; }
}
}

View File

@ -21,9 +21,9 @@ namespace CarCenterContracts.ViewModels
[DisplayName("Дата осмотра")]
public DateTime? InspectionDate { get; set; } = DateTime.Now;
public int AdministratorId { get; set; }
public int EmployeeId { get; set; }
public int? EmployeeId { get; set; }
public string EmployeeName { get; set; } = string.Empty;
public string? EmployeeName { get; set; } = string.Empty;
public Dictionary<int, ICarSalesModel> InspectionCars { get; set; } = new();
}
}