Merge branch 'develop' into work

# Conflicts:
#	BMA.EHR.Application/ApplicationServicesRegistration.cs
This commit is contained in:
Kittapath 2023-07-20 20:20:28 +07:00
commit 25274562c8
110 changed files with 58830 additions and 117 deletions

View file

@ -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
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}