using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.Organizations; using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Domain.Models.Discipline { public class DisciplineComplaint_Appeal : EntityBase { [Required, Comment("สถานะอุทธรณ์/ร้องทุกข์")] public string Status { get; set; } = string.Empty; [Comment("เรื่องที่อุทธรณ์/ร้องทุกข์"), Column(TypeName = "text")] public string? Title { get; set; } = string.Empty; [Comment("รายละเอียดของเรื่องอุทธรณ์/ร้องทุกข์"), Column(TypeName = "text")] public string? Description { get; set; } = string.Empty; [Required, Comment("ประเภทอุทธรณ์หรือร้องทุกข์")] public string Type { get; set; } = string.Empty; [Comment("ปีงบประมาณ")] public int? Year { get; set; } [Comment("ประเภทคดี")] public string? CaseType { get; set; } = string.Empty; [Comment("คดีเลขที่")] public string? CaseNumber { get; set; } = string.Empty; [Required, Comment("ProfileId")] public string? ProfileId { get; set; } [MaxLength(13), Comment("รหัสบัตรประชาชน")] public string? CitizenId { get; set; } [Comment("ชื่อ-นามสกุลผู้อุทธรณ์/ร้องทุกข์")] public string? Fullname { get; set; } [Comment("ตำแหน่งผู้อุทธรณ์/ร้องทุกข์")] public string? Position { get; set; } [Comment("สังกัดผู้อุทธรณ์/ร้องทุกข์")] public string? Oc { get; set; } [Comment("สถานภาพ (OFFICER->ข้าราชการ EMPLOYEE->ลูกจ้างประจำ)")] public string? profileType { get; set; } [Comment("ชื่อหน่วยงาน root")] public string? root { get; set; } [Comment("id หน่วยงาน root")] public string? rootId { get; set; } [Comment("id หน่วยงาน root")] public string? rootDnaId { get; set; } [Comment("ชื่อหน่วยงาน child1")] public string? child1 { get; set; } [Comment("id หน่วยงาน child1")] public string? child1Id { get; set; } [Comment("id หน่วยงาน child1")] public string? child1DnaId { get; set; } [Comment("ชื่อหน่วยงาน child2")] public string? child2 { get; set; } [Comment("id หน่วยงาน child2")] public string? child2Id { get; set; } [Comment("id หน่วยงาน child2")] public string? child2DnaId { get; set; } [Comment("ชื่อหน่วยงาน child3")] public string? child3 { get; set; } [Comment("id หน่วยงาน child3")] public string? child3Id { get; set; } [Comment("id หน่วยงาน child3")] public string? child3DnaId { get; set; } [Comment("ชื่อหน่วยงาน child4")] public string? child4 { get; set; } [Comment("id หน่วยงาน child4")] public string? child4Id { get; set; } [Comment("id หน่วยงาน child4")] public string? child4DnaId { get; set; } public virtual List DisciplineComplaint_Appeal_Docs { get; set; } = new List(); public virtual List DisciplineComplaint_Appeal_Historys { get; set; } = new List(); } }