2022-03-18 22:29:39 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
|
|
|
|
using ModuleTools.Attributes;
|
2021-04-27 15:14:35 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2022-03-18 22:29:39 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список историй синхронизации приказов
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderSyncHistoryListViewModel : ListViewModel<OrderSyncHistoryViewModel> { }
|
2021-04-27 15:14:35 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент история синхронизации приказов
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Записи", Order = 1, ParentPropertyName = "OrderSyncHistoryId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderSyncHistoryRecordList, DepartmentWindowsDesktop")]
|
2022-03-18 22:29:39 +04:00
|
|
|
|
public class OrderSyncHistoryViewModel : ElementViewModel, IOrderSyncHistoryModel
|
2021-04-27 15:14:35 +04:00
|
|
|
|
{
|
|
|
|
|
[ViewModelControlElementProperty("Дата", ControlType.ControlDateTime, MustHaveValue = true, ReadOnly = true)]
|
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
|
|
|
|
}
|
|
|
|
|
}
|