Обновление слоя контрактов
This commit is contained in:
parent
eb719d26a2
commit
283d1575c4
@ -13,12 +13,13 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
|
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
||||||
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
public DateTime DateCreate { get; set; }
|
||||||
|
|
||||||
public int TaskId { get; set; }
|
public int TaskId { get; set; }
|
||||||
public string TaskName { get; set; } = string.Empty;
|
public string TaskName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
|
public string StudentName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IInterest> DiyInterests { get; set; } = new();
|
public Dictionary<int, IInterest> DiyInterests { get; set; } = new();
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
public string Title { get; set; } = string.Empty;
|
public string Title { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
|
public int StudentId { get; set; }
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
public string ProductName { get; set; } = string.Empty;
|
public string ProductName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int TeacherId { get; set; }
|
public int TeacherId { get; set; }
|
||||||
|
public string TeacherName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IMaterial> LessonMaterials { get; set; } = new();
|
public Dictionary<int, IMaterial> LessonMaterials { get; set; } = new();
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
public string Title { get; set; } = string.Empty;
|
public string Title { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string SphereUse { get; set; } = string.Empty;
|
public string SphereUse { get; set; } = string.Empty;
|
||||||
|
public int TeacherId { get; set; }
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
public DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; }
|
||||||
|
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
|
public string StudentName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
|
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IInterest> StudentInterests { get; set; } = new() ;
|
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
public DateTime DateDelivery { get; set; }
|
public DateTime DateDelivery { get; set; }
|
||||||
|
|
||||||
public int TeacherId { get; set; }
|
public int TeacherId { get; set; }
|
||||||
|
public string TeacherName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IMaterial> TaskMaterials { get; set; } = new();
|
public Dictionary<int, IMaterial> TaskMaterials { get; set; } = new();
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
|
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IMaterial> TeacherMaterials { get; set; } = new();
|
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ namespace SchoolAgainStudyContracts.BusinessLogicContracts
|
|||||||
List<ReportInterestLessonViewModel> GetInterestLesson();
|
List<ReportInterestLessonViewModel> GetInterestLesson();
|
||||||
|
|
||||||
|
|
||||||
List<ReportInterestViewModel> GetOrders(ReportBindingModel model);
|
List<ReportInterestViewModel> GetInterests(ReportBindingModel model);
|
||||||
List<ReportDiyMaterialViewModel> GetDiyMaterial();
|
List<ReportDiyMaterialViewModel> GetDiyMaterial();
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? StudentId { get; set; }
|
||||||
public DateTime? DateFrom { get; set; }
|
public DateTime? DateFrom { get; set; }
|
||||||
|
|
||||||
public DateTime? DateTo { get; set; }
|
public DateTime? DateTo { get; set; }
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? StudentId { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? TeacherId { get; set; }
|
||||||
public DateTime? DateFrom { get; set; }
|
public DateTime? DateFrom { get; set; }
|
||||||
|
|
||||||
public DateTime? DateTo { get; set; }
|
public DateTime? DateTo { get; set; }
|
||||||
|
@ -10,5 +10,6 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? TeacherId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? StudentId { get; set; }
|
||||||
public DateTime? DateFrom { get; set; }
|
public DateTime? DateFrom { get; set; }
|
||||||
|
|
||||||
public DateTime? DateTo { get; set; }
|
public DateTime? DateTo { get; set; }
|
||||||
|
@ -11,6 +11,7 @@ namespace SchoolAgainStudyContracts.SearchModel
|
|||||||
{
|
{
|
||||||
public int? Id { get; set; }
|
public int? Id { get; set; }
|
||||||
public string? Title { get; set; }
|
public string? Title { get; set; }
|
||||||
|
public int? TeacherId { get; set; }
|
||||||
public DateTime? DateFrom { get; set; }
|
public DateTime? DateFrom { get; set; }
|
||||||
|
|
||||||
public DateTime? DateTo { get; set; }
|
public DateTime? DateTo { get; set; }
|
||||||
|
@ -15,11 +15,13 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
[DisplayName("Описание")]
|
[DisplayName("Описание")]
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
[DisplayName("Дата создания")]
|
[DisplayName("Дата создания")]
|
||||||
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
public DateTime DateCreate { get; set; }
|
||||||
|
|
||||||
public int TaskId { get; set; }
|
public int TaskId { get; set; }
|
||||||
[DisplayName("Задание")]
|
[DisplayName("Задание")]
|
||||||
public string TaskName { get; set; } = string.Empty;
|
public string TaskName { get; set; } = string.Empty;
|
||||||
|
[DisplayName("Школьник")]
|
||||||
|
public string StudentName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
{
|
{
|
||||||
public class InterestViewModel : IInterest
|
public class InterestViewModel : IInterest
|
||||||
{
|
{
|
||||||
|
public int StudentId { get; set; }
|
||||||
[DisplayName("Название")]
|
[DisplayName("Название")]
|
||||||
public string Title { get; set; } = string.Empty;
|
public string Title { get; set; } = string.Empty;
|
||||||
[DisplayName("Описание")]
|
[DisplayName("Описание")]
|
||||||
|
@ -18,6 +18,8 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
public int ProductId { get; set; }
|
public int ProductId { get; set; }
|
||||||
[DisplayName("Изделие")]
|
[DisplayName("Изделие")]
|
||||||
public string ProductName { get; set; } = string.Empty;
|
public string ProductName { get; set; } = string.Empty;
|
||||||
|
[DisplayName("Учитель")]
|
||||||
|
public string TeacherName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int TeacherId { get; set; }
|
public int TeacherId { get; set; }
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
{
|
{
|
||||||
public class MaterialViewModel : IMaterial
|
public class MaterialViewModel : IMaterial
|
||||||
{
|
{
|
||||||
|
public int TeacherId { get; set; }
|
||||||
[DisplayName("Название")]
|
[DisplayName("Название")]
|
||||||
public string Title { get; set; } = string.Empty;
|
public string Title { get; set; } = string.Empty;
|
||||||
[DisplayName("Сфера использования")]
|
[DisplayName("Сфера использования")]
|
||||||
|
@ -18,6 +18,8 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
public DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; }
|
||||||
|
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
|
[DisplayName("Школьник")]
|
||||||
|
public string StudentName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
||||||
[DisplayName("Номер")]
|
[DisplayName("Номер")]
|
||||||
|
@ -20,7 +20,6 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
[DisplayName("Пароль")]
|
[DisplayName("Пароль")]
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IInterest> StudentInterests { get; set; } = new() ;
|
|
||||||
[DisplayName("Номер")]
|
[DisplayName("Номер")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
public DateTime DateIssue { get; set; }
|
public DateTime DateIssue { get; set; }
|
||||||
[DisplayName("Дата сдачи")]
|
[DisplayName("Дата сдачи")]
|
||||||
public DateTime DateDelivery { get; set; }
|
public DateTime DateDelivery { get; set; }
|
||||||
|
[DisplayName("Учитель")]
|
||||||
|
public string TeacherName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int TeacherId { get; set; }
|
public int TeacherId { get; set; }
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
[DisplayName("Пароль")]
|
[DisplayName("Пароль")]
|
||||||
public string Password { get; set; } = string.Empty;
|
public string Password { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, IMaterial> TeacherMaterials { get; set; } = new();
|
|
||||||
[DisplayName("Номер")]
|
[DisplayName("Номер")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user