apiร้องเรียน

This commit is contained in:
Kittapath 2023-11-23 08:48:21 +07:00
parent 2cdf724d58
commit d06e1af217
24 changed files with 34538 additions and 91 deletions

View file

@ -0,0 +1,9 @@
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineComplaintPersonIdRequest
{
public Guid[] personId { get; set; }// id บุคคลผู้ถูกร้องเรียน
}
}

View file

@ -1,4 +1,3 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Discipline.Service.Requests
@ -6,10 +5,9 @@ namespace BMA.EHR.Discipline.Service.Requests
public class DisciplineComplaintRequest
{
public string respondentType { get; set; }// *ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)
// public Array personId { get; set; }// กรณีบุคคลใส่ id คน มาใน array แต่ถ้าเป็น type อื่นจะ null
// public Guid organizationId { get; set; }// กรณีหน่วยงานใส่ id ของหน่วยงาน
// public Array[Guid, Guid] respondentId { get; set; }// *ถ้าเป็นบุคคลคือ id ของบุคคล / ถ้าหน่วยงาน คือ id ของหน่วยงาน / กรุงเทพมหานคร คือ null
// public Guid consideredAgency { get; set; }// *หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง
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; }// *วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ
@ -19,6 +17,19 @@ namespace BMA.EHR.Discipline.Service.Requests
public DateTime dateNotification { get; set; }//*วันแจ้งเตือนล่วงหน้า
public string complaintFrom { get; set; }//*รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)
public string appellant { get; set; }//*ผู้ร้องเรียน
public FormFile documentFile { 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; }
}
}

View file

@ -5,7 +5,7 @@ namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineDirectorRequest
{
// public Guid prefix { get; set; }
public string prefix { get; set; }
public string firstName { get; set; }
public string lastName { get; set; }
public string position { get; set; }

View file

@ -0,0 +1,10 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineFileRequest
{
public FormFile? File { get; set; }
}
}

View file

@ -0,0 +1,10 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Discipline.Service.Requests
{
public class DisciplineReasonRequest
{
public string reason { get; set; }//*เหตุผล
}
}