using CoreModels.ModelsDepartment;
using System;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.ViewModels
{
///
/// Список историй синхронизации оценок
///
public class StudentMarkSyncHistoryListViewModel : ListViewModel { }
///
/// Элемент история синхронизации оценок
///
[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}";
}
}