перевод моделей кафедры, итерация финальная
This commit is contained in:
parent
e4377b8801
commit
ed95a8eee3
@ -0,0 +1,16 @@
|
|||||||
|
using CoreModels.Tools;
|
||||||
|
using ModuleTools.Attributes;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CoreModels.ModelsDepartment
|
||||||
|
{
|
||||||
|
[EntityDescription("OrderSyncHistory", "История синхронизации приказов")]
|
||||||
|
public interface IOrderSyncHistoryModel : IId
|
||||||
|
{
|
||||||
|
DateTime SyncDate { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
using CoreModels.Tools;
|
||||||
|
using ModuleTools.Attributes;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace CoreModels.ModelsDepartment
|
||||||
|
{
|
||||||
|
[EntityDescription("OrderSyncHistoryRecord", "Дисципилна кафедры")]
|
||||||
|
[EntityDependency("OrderSyncHistory", "OrderSyncHistoryId", "История синхронизации прказов, к которой относитя запись")]
|
||||||
|
public interface IOrderSyncHistoryRecordModel : IId
|
||||||
|
{
|
||||||
|
Guid OrderSyncHistoryId { get; }
|
||||||
|
|
||||||
|
string Information { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
using ModuleTools.Interfaces;
|
using ModuleTools.Interfaces;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -8,16 +8,11 @@ using System.Runtime.Serialization;
|
|||||||
|
|
||||||
namespace DatabaseCore.Models.Department
|
namespace DatabaseCore.Models.Department
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Класс, описывающий историю синхронизации приказов
|
|
||||||
/// </summary>
|
|
||||||
[DataContract]
|
[DataContract]
|
||||||
[EntityDescription("OrderSyncHistory", "История синхронизации приказов")]
|
public class OrderSyncHistory : IdEntity, IEntitySecurityExtenstion<OrderSyncHistory>, IOrderSyncHistoryModel
|
||||||
public class OrderSyncHistory : IdEntity, IEntitySecurityExtenstion<OrderSyncHistory>
|
|
||||||
{
|
{
|
||||||
[DataMember]
|
[DataMember]
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("SyncDate")]
|
|
||||||
public DateTime SyncDate { get; set; }
|
public DateTime SyncDate { get; set; }
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
using ModuleTools.Interfaces;
|
using ModuleTools.Interfaces;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
@ -6,22 +6,15 @@ using System.Runtime.Serialization;
|
|||||||
|
|
||||||
namespace DatabaseCore.Models.Department
|
namespace DatabaseCore.Models.Department
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Класс, описывающий запись истории синхронизации приказов
|
|
||||||
/// </summary>
|
|
||||||
[DataContract]
|
[DataContract]
|
||||||
[EntityDescription("OrderSyncHistoryRecord", "Дисципилна кафедры")]
|
public class OrderSyncHistoryRecord : IdEntity, IEntitySecurityExtenstion<OrderSyncHistoryRecord>, IOrderSyncHistoryRecordModel
|
||||||
[EntityDependency("OrderSyncHistory", "OrderSyncHistoryId", "История синхронизации прказов, к которой относитя запись")]
|
|
||||||
public class OrderSyncHistoryRecord : IdEntity, IEntitySecurityExtenstion<OrderSyncHistoryRecord>
|
|
||||||
{
|
{
|
||||||
[DataMember]
|
[DataMember]
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("OrderSyncHistoryId")]
|
|
||||||
public Guid OrderSyncHistoryId { get; set; }
|
public Guid OrderSyncHistoryId { get; set; }
|
||||||
|
|
||||||
[DataMember]
|
[DataMember]
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("Information")]
|
|
||||||
public string Information { get; set; }
|
public string Information { get; set; }
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
using ModuleTools.BindingModels;
|
using ModuleTools.BindingModels;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
@ -15,10 +15,9 @@ namespace DepartmentBusinessLogic.BindingModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Сохранение истории синхронизации приказов
|
/// Сохранение истории синхронизации приказов
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OrderSyncHistorySetBindingModel : SetBindingModel
|
public class OrderSyncHistorySetBindingModel : SetBindingModel, IOrderSyncHistoryModel
|
||||||
{
|
{
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("SyncDate")]
|
|
||||||
public DateTime SyncDate { get; set; }
|
public DateTime SyncDate { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
using ModuleTools.BindingModels;
|
using ModuleTools.BindingModels;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
@ -16,14 +16,12 @@ namespace DepartmentBusinessLogic.BindingModels
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Сохранение записи истории синхронизации приказов
|
/// Сохранение записи истории синхронизации приказов
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OrderSyncHistoryRecordSetBindingModel : SetBindingModel
|
public class OrderSyncHistoryRecordSetBindingModel : SetBindingModel, IOrderSyncHistoryRecordModel
|
||||||
{
|
{
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("OrderSyncHistoryId")]
|
|
||||||
public Guid OrderSyncHistoryId { get; set; }
|
public Guid OrderSyncHistoryId { get; set; }
|
||||||
|
|
||||||
[Required(ErrorMessage = "required")]
|
[Required(ErrorMessage = "required")]
|
||||||
[MapConfiguration("Information")]
|
|
||||||
public string Information { get; set; }
|
public string Information { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,5 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
|
using ModuleTools.Attributes;
|
||||||
using ModuleTools.Enums;
|
using ModuleTools.Enums;
|
||||||
using ModuleTools.ViewModels;
|
using ModuleTools.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
@ -14,10 +15,9 @@ namespace DepartmentBusinessLogic.ViewModels
|
|||||||
/// Элемент записи историй синхронизации приказов
|
/// Элемент записи историй синхронизации приказов
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewModelControlElementClass(HaveDependenceEntities = false, Width = 800, Height = 500)]
|
[ViewModelControlElementClass(HaveDependenceEntities = false, Width = 800, Height = 500)]
|
||||||
public class OrderSyncHistoryRecordViewModel : ElementViewModel
|
public class OrderSyncHistoryRecordViewModel : ElementViewModel, IOrderSyncHistoryRecordModel
|
||||||
{
|
{
|
||||||
[ViewModelControlElementProperty("История", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderSyncHistoryList, DepartmentWindowsDesktop")]
|
[ViewModelControlElementProperty("История", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderSyncHistoryList, DepartmentWindowsDesktop")]
|
||||||
[MapConfiguration("OrderSyncHistoryId")]
|
|
||||||
public Guid OrderSyncHistoryId { get; set; }
|
public Guid OrderSyncHistoryId { get; set; }
|
||||||
|
|
||||||
[ViewModelControlListProperty("Дата", ColumnWidth = 100, DefaultCellStyleFormat = "dd.MM.yyyy")]
|
[ViewModelControlListProperty("Дата", ColumnWidth = 100, DefaultCellStyleFormat = "dd.MM.yyyy")]
|
||||||
@ -26,7 +26,6 @@ namespace DepartmentBusinessLogic.ViewModels
|
|||||||
|
|
||||||
[ViewModelControlListProperty("Описание")]
|
[ViewModelControlListProperty("Описание")]
|
||||||
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200, MustHaveValue = true)]
|
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200, MustHaveValue = true)]
|
||||||
[MapConfiguration("Information")]
|
|
||||||
public string Information { get; set; }
|
public string Information { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,5 @@
|
|||||||
using ModuleTools.Attributes;
|
using CoreModels.ModelsDepartment;
|
||||||
|
using ModuleTools.Attributes;
|
||||||
using ModuleTools.Enums;
|
using ModuleTools.Enums;
|
||||||
using ModuleTools.ViewModels;
|
using ModuleTools.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
@ -16,10 +17,9 @@ namespace DepartmentBusinessLogic.ViewModels
|
|||||||
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
||||||
[ViewModelControlElementDependenceEntity(Title = "Записи", Order = 1, ParentPropertyName = "OrderSyncHistoryId",
|
[ViewModelControlElementDependenceEntity(Title = "Записи", Order = 1, ParentPropertyName = "OrderSyncHistoryId",
|
||||||
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderSyncHistoryRecordList, DepartmentWindowsDesktop")]
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderSyncHistoryRecordList, DepartmentWindowsDesktop")]
|
||||||
public class OrderSyncHistoryViewModel : ElementViewModel
|
public class OrderSyncHistoryViewModel : ElementViewModel, IOrderSyncHistoryModel
|
||||||
{
|
{
|
||||||
[ViewModelControlElementProperty("Дата", ControlType.ControlDateTime, MustHaveValue = true, ReadOnly = true)]
|
[ViewModelControlElementProperty("Дата", ControlType.ControlDateTime, MustHaveValue = true, ReadOnly = true)]
|
||||||
[MapConfiguration("SyncDate")]
|
|
||||||
public DateTime SyncDate { get; set; }
|
public DateTime SyncDate { get; set; }
|
||||||
|
|
||||||
[ViewModelControlListProperty("Дата")]
|
[ViewModelControlListProperty("Дата")]
|
||||||
|
Loading…
Reference in New Issue
Block a user