DepartmentProject/DepartmentPortal/Department/DepartmentContract/ViewModels/StudentMarkSyncHistoryViewModels.cs

27 lines
1.2 KiB
C#

using CoreModels.ModelsDepartment;
using System;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.ViewModels
{
/// <summary>
/// Список историй синхронизации оценок
/// </summary>
public class StudentMarkSyncHistoryListViewModel : ListViewModel<StudentMarkSyncHistoryViewModel> { }
/// <summary>
/// Элемент история синхронизации оценок
/// </summary>
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
[ViewModelControlElementDependenceEntity(Title = "Записи", Order = 1, ParentPropertyName = "StudentMarkSyncHistoryId",
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlStudentMarkSyncHistoryRecordList, DepartmentWindowsDesktop")]
public class StudentMarkSyncHistoryViewModel : ElementViewModel, IStudentMarkSyncHistoryModel
{
[ViewModelControlElementProperty("Дата", ControlType.ControlDateTime, MustHaveValue = true, ReadOnly = true)]
public DateTime SyncDate { get; set; }
[ViewModelControlListProperty("Дата")]
public string SyncDateTitle => $"Синхронизация данных от {SyncDate:dd.MM.yyyy HH:mm}";
}
}