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

26 lines
1.2 KiB
C#
Raw Permalink Normal View History

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