hrms-api-backend/BMA.EHR.Discipline.Service/Requests/DisciplineComplaintRequest.cs
2025-10-06 16:28:16 +07:00

83 lines
6.1 KiB
C#

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 string? organization { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน
public string? consideredAgency { get; set; }// *หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง
public string? organizationId { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน
public string? consideredAgencyId { get; set; }// *หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง
public string? activeId { 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 string? 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; }
public string? root { get; set; }
public string? rootId { get; set; }
public string? rootDnaId { get; set; }
public string? rootShortName { get; set; }
public string? child1 { get; set; }
public string? child1Id { get; set; }
public string? child1DnaId { get; set; }
public string? child1ShortName { get; set; }
public string? child2 { get; set; }
public string? child2Id { get; set; }
public string? child2DnaId { get; set; }
public string? child2ShortName { get; set; }
public string? child3 { get; set; }
public string? child3Id { get; set; }
public string? child3DnaId { get; set; }
public string? child3ShortName { get; set; }
public string? child4 { get; set; }
public string? child4Id { get; set; }
public string? child4DnaId { get; set; }
public string? child4ShortName { get; set; }
public int? posMasterNo { get; set; }
public string? posTypeId { get; set; }
public string? posTypeName { get; set; }
public string? posLevelId { get; set; }
public string? posLevelName { get; set; }
public string? profileType { get; set; }
}
public class DisciplineComplaintAdvanceSearcRequest
{
public int page { get; set; } = 1;
public int pageSize { get; set; } = 25;
public string keyword { get; set; } = string.Empty;
public string status { get; set; } = string.Empty;
public DateTime? dateReceivedStart { get; set; } // วันที่เริ่มต้นรับเรื่อง
public DateTime? dateReceivedEnd { get; set; } // วันที่สิ้นสุดรับเรื่อง
public string? respondentType { get; set; } // ผู้ถูกร้องเรียน
public string? offenseDetails { get; set; } // ลักษณะความผิด
public string? levelConsideration { get; set; } // ระดับการพิจารณา
public DateTime? dateConsiderationStart { get; set; } // วันที่เริ่มต้นการพิจารณา
public DateTime? dateConsiderationEnd { get; set; } // วันที่สิ้นสุดการพิจารณา
public string? sortBy { get; set; }
public bool? descending { get; set; }
}
}