2022-03-18 22:24:10 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-13 12:52:45 +04:00
|
|
|
|
using System;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-13 12:52:45 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-13 12:52:45 +04:00
|
|
|
|
{
|
2022-03-18 22:24:10 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список приказов
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderStudentRecordListViewModel : ListViewModel<OrderStudentRecordViewModel> { }
|
2021-04-13 12:52:45 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент приказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = false)]
|
2022-03-18 22:24:10 +04:00
|
|
|
|
public class OrderStudentRecordViewModel : ElementViewModel, IOrderStudentRecordModel
|
2021-04-13 12:52:45 +04:00
|
|
|
|
{
|
|
|
|
|
[ViewModelControlElementProperty("Приказ", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlOrderList, DepartmentWindowsDesktop")]
|
|
|
|
|
public Guid OrderId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Студент", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlStudentList, DepartmentWindowsDesktop")]
|
|
|
|
|
public Guid StudentId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Из группы", ControlType.ControlGuid, MustHaveValue = false, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlStudentGroupList, DepartmentWindowsDesktop")]
|
2021-08-20 18:28:34 +04:00
|
|
|
|
public Guid? StudentGroupFromId { get; set; }
|
2021-04-13 12:52:45 +04:00
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("В группу", ControlType.ControlGuid, MustHaveValue = false, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlStudentGroupList, DepartmentWindowsDesktop")]
|
2021-08-20 18:28:34 +04:00
|
|
|
|
public Guid? StudentGroupToId { get; set; }
|
2021-04-13 12:52:45 +04:00
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Тип приказа", ControlType.ControlEnum, MustHaveValue = true)]
|
|
|
|
|
public OrderStudentMoveType OrderStudentMoveType { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Тип приказа")]
|
|
|
|
|
public string OrderStudentMoveTypeTitle => OrderStudentMoveType.ToString("G");
|
|
|
|
|
|
2022-03-18 22:24:10 +04:00
|
|
|
|
[ViewModelControlElementProperty("Тип приказа", ControlType.ControlText, Height = 200)]
|
|
|
|
|
public string Info { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString() => $"";
|
2021-04-13 12:52:45 +04:00
|
|
|
|
}
|
|
|
|
|
}
|