hrms-api-backend/BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Appeal.cs

52 lines
2.3 KiB
C#
Raw Normal View History

2023-12-13 10:40:59 +07:00
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")]
2024-05-29 16:29:12 +07:00
public string? ProfileId { get; set; }
2023-12-13 10:40:59 +07:00
[MaxLength(13), Comment("รหัสบัตรประชาชน")]
public string? CitizenId { get; set; }
[Comment("ชื่อ-นามสกุลผู้อุทธรณ์/ร้องทุกข์")]
public string? Fullname { get; set; }
2023-12-19 08:33:09 +07:00
[Comment("ตำแหน่งผู้อุทธรณ์/ร้องทุกข์")]
public string? Position { get; set; }
[Comment("สังกัดผู้อุทธรณ์/ร้องทุกข์")]
public string? Oc { get; set; }
2023-12-13 10:40:59 +07:00
public virtual List<DisciplineComplaint_Appeal_Doc> DisciplineComplaint_Appeal_Docs { get; set; } = new List<DisciplineComplaint_Appeal_Doc>();
public virtual List<DisciplineComplaint_Appeal_History> DisciplineComplaint_Appeal_Historys { get; set; } = new List<DisciplineComplaint_Appeal_History>();
}
}