47 lines
2 KiB
C#
47 lines
2 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Domain.Models.Commands.Core
|
|
{
|
|
public class CommandDeployment : EntityBase
|
|
{
|
|
[Comment("รหัสอ้างอิงคำสั่ง")]
|
|
public Guid CommandId { get; set; } = Guid.Empty;
|
|
|
|
public Command Command { get; set; } = new();
|
|
|
|
[Required, Comment("รหัสอ้างอิงผู้ใช้งานระบบ")]
|
|
public string ReceiveUserId { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("ลำดับ")]
|
|
public int Sequence { get; set; } = 0;
|
|
|
|
[MaxLength(13), Required, Comment("เลขประจำตัวประชาชน")]
|
|
public string CitizenId { get; set; } = string.Empty;
|
|
|
|
[MaxLength(50), Required, Comment("คำนำหน้านาม")]
|
|
public string Prefix { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100), Required, Comment("ชื่อ")]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100), Required, Comment("นามสกุล")]
|
|
public string LastName { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("ส่งอีเมล์หรือไม่?")]
|
|
public bool IsSendMail { get; set; } = true;
|
|
|
|
[Required, Comment("ส่งกล่องข้อความหรือไม่?")]
|
|
public bool IsSendInbox { get; set; } = true;
|
|
|
|
[Required, Comment("ส่งแจ้งเตือนหรือไม่?")]
|
|
public bool IsSendNotification { get; set; } = true;
|
|
|
|
[Comment("ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง")]
|
|
public string OrganizationName { get; set; } = string.Empty;
|
|
|
|
[Comment("ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง")]
|
|
public string PositionName { get; set; } = string.Empty;
|
|
}
|
|
}
|