44 lines
1.8 KiB
C#
44 lines
1.8 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
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.Core
|
|
{
|
|
public abstract class Command : EntityBase
|
|
{
|
|
[MaxLength(10), Comment("เลขที่คำสั่ง")]
|
|
public string CommandNo { get; set; } = string.Empty;
|
|
|
|
[MaxLength(4), Comment("ปีที่ออกคำสั่ง")]
|
|
public string CommandYear { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รหัสอ้างอิงประเภทคำสั่ง")]
|
|
public Guid CommandTypeId { get; set; } = Guid.Empty;
|
|
|
|
public CommandType CommandType { get; set; }
|
|
|
|
[Required, Comment("รหัสอ้างอิงหน่วยงานที่ออกคำสั่ง")]
|
|
public Guid IssuerOrganizationId { get; set; } = Guid.Empty;
|
|
|
|
[Required, Comment("หน่วยงานที่ออกคำสั่ง")]
|
|
public string IssuerOrganizationName { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รหัสอ้างอิงสถานะคำสั่ง")]
|
|
public Guid CommandStatusId { get; set; } = Guid.Empty;
|
|
|
|
public CommandStatus CommandStatus { get; set; }
|
|
|
|
[Required, Comment("รหัสอ้างอิงผู้มีอำนาจลงนาม")]
|
|
public Guid AuthorizedUserId { get; set; } = Guid.Empty;
|
|
|
|
[Required, Comment("ชื่อผู้มีอำนาจลงนาม")]
|
|
public string AuthorizedUserFullName { get; set; } = string.Empty;
|
|
|
|
public virtual List<CommandDocument> Documents { get; set; } = new();
|
|
}
|
|
}
|