เพิ่มเรื่องร้องเรียนตอนออกคำสั่ง

This commit is contained in:
Kittapath 2024-01-15 10:38:28 +07:00
parent 4f32e253fd
commit 5ca85c6e7e
13 changed files with 4045 additions and 58 deletions

View file

@ -327,11 +327,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("report/up")]
public async Task<ActionResult<ResponseObject>> GetPersonReportUp()
[HttpGet("report/up/{id:guid}")]
public async Task<ActionResult<ResponseObject>> GetPersonReportUp(Guid id)
{
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => x.Status == "REPORT")
.Where(x => x.DisciplineDisciplinary.DisciplineInvestigate.DisciplineComplaint.Id == id)
.Select(x => new
{
PersonId = x.PersonId,
@ -350,11 +351,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("report/down")]
public async Task<ActionResult<ResponseObject>> GetPersonReportDown()
[HttpGet("report/down/{id:guid}")]
public async Task<ActionResult<ResponseObject>> GetPersonReportDown(Guid id)
{
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => x.StatusDiscard == "REPORT")
.Where(x => x.DisciplineDisciplinary.DisciplineInvestigate.DisciplineComplaint.Id == id)
.Select(x => new
{
PersonId = x.PersonId,
@ -373,11 +375,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("report/reject")]
public async Task<ActionResult<ResponseObject>> GetPersonReportReject()
[HttpGet("report/reject/{id:guid}")]
public async Task<ActionResult<ResponseObject>> GetPersonReportReject(Guid id)
{
var data1 = await _context.DisciplineInvestigate_ProfileComplaints
.Where(x => x.IsReport == "REPORT")
.Where(x => x.DisciplineInvestigate.DisciplineComplaint.Id == id)
.Select(x => new
{
PersonId = x.PersonId,
@ -386,6 +389,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
.ToListAsync();
var data2 = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => x.IsReport == "REPORT")
.Where(x => x.DisciplineDisciplinary.DisciplineInvestigate.DisciplineComplaint.Id == id)
.Select(x => new
{
PersonId = x.PersonId,
@ -408,11 +412,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("report/stop")]
public async Task<ActionResult<ResponseObject>> GetPersonReportStop()
[HttpGet("report/stop/{id:guid}")]
public async Task<ActionResult<ResponseObject>> GetPersonReportStop(Guid id)
{
var data = await _context.DisciplineReport_Profiles
.Where(x => x.Status == "REPORT")
.Where(x => x.DisciplineDisciplinary.DisciplineInvestigate.DisciplineComplaint.Id == id)
.Select(x => new
{
PersonId = x.PersonId,