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

55 lines
3.3 KiB
C#

using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineDisciplinaryRequest
{
public string? DisciplinaryWitnesses { get; set; }
public string? DisciplinaryRecordAccuser { get; set; }
public string? DisciplinarySummaryEvidence { get; set; }
public string? DisciplinaryRefLaw { get; set; }
public string? DisciplinaryFaultLevel { get; set; }
public string? DisciplinaryInvestigateAt { get; set; }
public string? DisciplinaryCaseFault { get; set; }
public DateTime? DisciplinaryDateEvident { get; set; }
public DateTime? DisciplinaryDateAllegation { get; set; }
public DateTime? DisciplinaryDateStart { get; set; }
public DateTime? DisciplinaryDateEnd { get; set; }
public int? DaysExtend { get; set; }
public bool ExtendStatus { get; set; } = false;
public DateTime? DisciplinaryDateInvestigation { get; set; }
public DateTime? DisciplinaryDateResult { get; set; }
public string? DisciplinaryStatusResult { get; set; }
public string? DisciplinaryCauseText { get; set; }
public string? DisciplinaryResult { get; set; }
public string? DisciplinaryFaultLevelOther { get; set; }
public string? Result { get; set; }
public Guid[] directors { get; set; }
public DisciplineDisciplinaryInvestigateComplaintProfileRequest[] persons { get; set; }// กรณีบุคคลใส่ id คน มาใน array แต่ถ้าเป็น type อื่นจะ null
public string? organization { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน
public string? organizationId { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน
public string respondentType { get; set; }// *ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)
}
public class DisciplineDisciplinaryAdvanceSearcRequest
{
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 string? respondentType { get; set; } // ผู้ถูกสืบสวน
public string? offenseDetails { get; set; } // ลักษณะความผิด
public string? disciplinaryFaultLevel { get; set; } // ระดับโทษความผิด
public string? disciplinaryCaseFault { get; set; } // กรณีความผิด
public DateTime? disciplinaryDateStart { get; set; } // วันที่สอบสวนเริ่มต้น
public DateTime? disciplinaryDateEnd { get; set; } // วันที่สิ้นสุดสอบสวน
public DateTime? dateReceivedStart { get; set; } // วันที่เริ่มต้นรับเรื่อง
public DateTime? dateReceivedEnd { get; set; } // วันที่สิ้นสุดรับเรื่อง
public string? sortBy { get; set; }
public bool? descending { get; set; }
}
}