68 lines
2.6 KiB
C#
68 lines
2.6 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using BMA.EHR.Domain.Models.MetaData;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BMA.EHR.Domain.Models.Organizations
|
|
{
|
|
public class OrganizationEntity : EntityBase
|
|
{
|
|
[Column(Order = 2), Comment("OrganizationOrganizationId")]
|
|
public OrganizationOrganization? OrganizationOrganization { get; set; }
|
|
|
|
[Column(Order = 3), Comment("OrganizationShortNameId")]
|
|
public OrganizationShortName? OrganizationShortName { get; set; }
|
|
|
|
[Column(Order = 4), Comment("OrganizationTypeId")]
|
|
public OrganizationType? OrganizationType { get; set; }
|
|
|
|
[Column(Order = 5), Comment("OrganizationLevelId")]
|
|
public OrganizationLevel? OrganizationLevel { get; set; }
|
|
|
|
[Column(Order = 6), Comment("OrganizationTelExternalId")]
|
|
public OrganizationTelExternal? OrganizationTelExternal { get; set; }
|
|
|
|
[Column(Order = 7), Comment("OrganizationTelInternalId")]
|
|
public OrganizationTelInternal? OrganizationTelInternal { get; set; }
|
|
|
|
[Column(Order = 8), Comment("OrganizationFaxId")]
|
|
public OrganizationFax? OrganizationFax { get; set; }
|
|
|
|
// [ForeignKey("ParentId")]
|
|
// public OrganizationEntity? Organization_ParentId { get; set; }
|
|
|
|
[Column(Order = 9), Comment("ParentId")]
|
|
public OrganizationEntity? Parent { get; set; }
|
|
|
|
[Column(Order = 10), Comment("OrganizationAgencyId")]
|
|
public Guid? OrganizationAgencyId { get; set; }
|
|
|
|
[Column(Order = 11), Comment("OrganizationGovernmentAgencyId")]
|
|
public Guid? OrganizationGovernmentAgencyId { get; set; }
|
|
|
|
[Column(Order = 12), Comment("OrganizationOrder")]
|
|
public int? OrganizationOrder { get; set; }
|
|
|
|
[Column(Order = 13), Comment("OrganizationUserNote")]
|
|
public string? OrganizationUserNote { get; set; }
|
|
|
|
[Column(Order = 14), Comment("หน่วยงาน")]
|
|
public string? Agency { get; set; }
|
|
|
|
[Column(Order = 15), Comment("ส่วนราชการ")]
|
|
public string? Government { get; set; }
|
|
|
|
[Column(Order = 16), Comment("ฝ่าย/ส่วน")]
|
|
public string? Department { get; set; }
|
|
|
|
[Column(Order = 17), Comment("กอง")]
|
|
public string? Pile { get; set; }
|
|
[Comment("สถานะการใช้งาน")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public OrganizationStatus? OrganizationStatus { get; set; }
|
|
|
|
public List<OrganizationEntity> Organizations { get; } = new();
|
|
|
|
}
|
|
}
|