2022-03-18 22:29:39 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-08-20 18:28:34 +04:00
|
|
|
|
using System;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-27 15:14:35 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-27 15:14:35 +04:00
|
|
|
|
{
|
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("Дата")]
|
2022-12-21 10:34:50 +04:00
|
|
|
|
public string SyncDateTitle => $"Синхронизация данных от {SyncDate:dd.MM.yyyy HH:mm}";
|
2021-04-27 15:14:35 +04:00
|
|
|
|
}
|
|
|
|
|
}
|