2021-04-27 15:14:35 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using ModuleTools.ViewModels;
|
2021-08-20 18:28:34 +04:00
|
|
|
|
using System;
|
2021-04-27 15:14:35 +04:00
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.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
|
|
|
|
|
{
|
|
|
|
|
[ViewModelControlElementProperty("Дата", ControlType.ControlDateTime, MustHaveValue = true, ReadOnly = true)]
|
|
|
|
|
[MapConfiguration("SyncDate")]
|
2021-08-20 18:28:34 +04:00
|
|
|
|
public DateTime SyncDate { get; set; }
|
2021-04-27 15:14:35 +04:00
|
|
|
|
|
2021-08-20 18:28:34 +04:00
|
|
|
|
[ViewModelControlListProperty("Дата")]
|
|
|
|
|
public string SyncDateTitle => $"Синхронизация данных от {SyncDate.ToString("dd.MM.yyyy HH:mm")}";
|
2021-04-27 15:14:35 +04:00
|
|
|
|
}
|
|
|
|
|
}
|