Add Command Controller Code (Not Complete)
This commit is contained in:
parent
9ee5b86a26
commit
7f5ed43f3f
27 changed files with 58797 additions and 84 deletions
|
|
@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace BMA.EHR.Domain.Models.Commands.Core
|
||||
{
|
||||
public abstract class Command : EntityBase
|
||||
public class Command : EntityBase
|
||||
{
|
||||
[MaxLength(10), Comment("เลขที่คำสั่ง")]
|
||||
public string CommandNo { get; set; } = string.Empty;
|
||||
|
|
@ -33,12 +33,46 @@ namespace BMA.EHR.Domain.Models.Commands.Core
|
|||
|
||||
public CommandStatus CommandStatus { get; set; }
|
||||
|
||||
[Required, Comment("รหัสอ้างอิงผู้มีอำนาจลงนาม")]
|
||||
[Comment("รหัสอ้างอิงผู้มีอำนาจลงนาม")]
|
||||
public Guid AuthorizedUserId { get; set; } = Guid.Empty;
|
||||
|
||||
[Required, Comment("ชื่อผู้มีอำนาจลงนาม")]
|
||||
[Comment("ชื่อผู้มีอำนาจลงนาม")]
|
||||
public string AuthorizedUserFullName { get; set; } = string.Empty;
|
||||
|
||||
[Comment("ตำแหน่งผู้มีอำนาจลงนาม")]
|
||||
public string AuthorizedPosition { get; set; } = string.Empty;
|
||||
|
||||
[Comment("วันที่คำสั่งมีผล")]
|
||||
public DateTime? CommandAffectDate { get; set; }
|
||||
|
||||
[Comment("วันที่ออกคำสั่ง")]
|
||||
public DateTime? CommandExcecuteDate { get; set; }
|
||||
|
||||
[Required, MaxLength(500), Comment("คำสั่งเรื่อง")]
|
||||
public string CommandSubject { get; set; } = string.Empty;
|
||||
|
||||
public virtual List<CommandDocument> Documents { get; set; } = new();
|
||||
|
||||
#region " For Placement Command "
|
||||
|
||||
[Required, Comment("อ้างอิงรอบการสอบ")]
|
||||
public Guid ExamRoundId { get; set; }
|
||||
|
||||
[Required, Comment("ตำแหน่งที่บรรจุ")]
|
||||
public string PositionName { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("มติ กก. ครั้งที่ (เรื่อง รับสมัครสอบฯ)")]
|
||||
public string ConclusionRegisterNo { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ลงวันที่ (เรื่อง รับสมัครสอบฯ)")]
|
||||
public DateTime ConclusionRegisterDate { get; set; } = DateTime.Now;
|
||||
|
||||
[Required, Comment("มติ กก. ครั้งที่ (เรื่อง ผลการสอบแข่งขัน)")]
|
||||
public string ConclusionResultNo { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ลงวันที่ (เรื่อง ผลการสอบแข่งขัน)")]
|
||||
public DateTime ConclusionResultDate { get; set; } = DateTime.Now;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,8 @@ namespace BMA.EHR.Domain.Models.Commands.Core
|
|||
{
|
||||
[Required, MaxLength(100), Comment("สถานะของคำสั่ง")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ลำดับการทำงาน")]
|
||||
public int Sequence { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
using BMA.EHR.Domain.Models.Commands.Core;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Commands
|
||||
{
|
||||
public class PlacementCommand : Command
|
||||
{
|
||||
[Required, Comment("อ้างอิงรอบการสอบ")]
|
||||
public Guid ExamRoundId { get; set; }
|
||||
|
||||
[Required, Comment("ตำแหน่งที่บรรจุ")]
|
||||
public string PositionName { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("มติ กก. ครั้งที่ (เรื่อง รับสมัครสอบฯ)")]
|
||||
public string ConclusionRegisterNo { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ลงวันที่ (เรื่อง รับสมัครสอบฯ)")]
|
||||
public DateTime ConclusionRegisterDate { get; set; } = DateTime.Now;
|
||||
|
||||
[Required, Comment("มติ กก. ครั้งที่ (เรื่อง ผลการสอบแข่งขัน)")]
|
||||
public string ConclusionResultNo { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ลงวันที่ (เรื่อง ผลการสอบแข่งขัน)")]
|
||||
public DateTime ConclusionResultDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue