using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Discipline.Service.Requests { public class DisciplineComplaintRequest { public string respondentType { get; set; }// *ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร) public DisciplineComplaintProfileRequest[] persons { get; set; }// กรณีบุคคลใส่ id คน มาใน array แต่ถ้าเป็น type อื่นจะ null public Guid? organizationId { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน public Guid consideredAgency { get; set; }// *หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง public string title { get; set; }// *เรื่องที่ร้องเรียน public string? description { get; set; }// *รายละเอียดของเรื่องร้องเรียน public DateTime? dateReceived { get; set; }// *วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ public string? levelConsideration { get; set; }// *ระดับการพิจารณา "ยังไม่ระบุ" (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก) public DateTime? dateConsideration { get; set; }// วันที่กำหนดพิจารณา public string? offenseDetails { get; set; }// *ลักษณะความผิดครั้งแรกจะเป็น "ยังไม่ระบุ" (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง) public DateTime? dateNotification { get; set; }//*วันแจ้งเตือนล่วงหน้า public string? complaintFrom { get; set; }//*รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว) public string? appellant { get; set; }//*ผู้ร้องเรียน public string? result { get; set; } // public FormFile documentFile { get; set; }//*ไฟล์เอกสารหลักฐาน } public class DisciplineComplaintProfileRequest { public Guid? personId { get; set; } public string? idcard { get; set; } public string? prefix { get; set; } public string? firstName { get; set; } public string? lastName { get; set; } public string? organization { get; set; } public string? position { get; set; } public string? positionLevel { get; set; } public string? posNo { get; set; } public double? salary { get; set; } } }