Написаны Contracts.ViewModels для Поставщика
This commit is contained in:
parent
2ac4958622
commit
8423f1fdfd
@ -11,6 +11,6 @@ namespace UniversityContracts.BindingModels
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public DateTime Date { get; set; }
|
||||
public DateTime Date { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
@ -6,10 +6,6 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="ViewModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UniversityModels\UniversityModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
19
UniversityContracts/ViewModels/DocumentViewModel.cs
Normal file
19
UniversityContracts/ViewModels/DocumentViewModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityModels.Models;
|
||||
|
||||
namespace UniversityContracts.ViewModels
|
||||
{
|
||||
public class DocumentViewModel : IDocumentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Название документа")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[DisplayName("Дата создания документа")]
|
||||
public DateTime Date { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
17
UniversityContracts/ViewModels/EducationStatusViewModel.cs
Normal file
17
UniversityContracts/ViewModels/EducationStatusViewModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityModels.Models;
|
||||
|
||||
namespace UniversityContracts.ViewModels
|
||||
{
|
||||
public class EducationStatusViewModel : IEducationStatusModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Название документа")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
23
UniversityContracts/ViewModels/StudentViewModel.cs
Normal file
23
UniversityContracts/ViewModels/StudentViewModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityModels.Models;
|
||||
|
||||
namespace UniversityContracts.ViewModels
|
||||
{
|
||||
public class StudentViewModel : IStudentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Имя студента")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[DisplayName("Фамилия студента")]
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
[DisplayName("Дата рождения студента")]
|
||||
public DateTime DateOfBirth { get; set; } = DateTime.Now;
|
||||
public int StudentCard { get; set; }
|
||||
public int EducationStatusId { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user