เพิ่ม service ระบบออกคำสั่ง (not complete)
This commit is contained in:
parent
90b4705234
commit
b99d7e759b
15 changed files with 23495 additions and 115 deletions
44
BMA.EHR.Domain/Models/Commands/Core/Command.cs
Normal file
44
BMA.EHR.Domain/Models/Commands/Core/Command.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue