เพิ่มสถานนะยื่นอุธร
This commit is contained in:
parent
9ebef6aedf
commit
f60beb9f36
2 changed files with 19 additions and 5 deletions
|
|
@ -99,7 +99,7 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
public async Task<ActionResult<ResponseObject>> GetDisciplineComplaintReport()
|
||||
{
|
||||
var data = await _context.DisciplineComplaints
|
||||
.Where(x => x.Status.Contains("SEND_INVESTIGATE"))
|
||||
// .Where(x => x.Status.Contains("SEND_INVESTIGATE"))
|
||||
.Select(x => new
|
||||
{
|
||||
Id = x.Id,//id ข้อมูลเรื่องร้องเรียน
|
||||
|
|
|
|||
|
|
@ -48,6 +48,20 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value;
|
||||
|
||||
private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value;
|
||||
private static string StatusDisciplineComplaintAppeal(string value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case "NEW": return "ใหม่";
|
||||
case "RECEIVE_DOC": return "ได้รับเอกสารแล้ว";
|
||||
case "RECEIVE_APPEAL": return "รับอุทธรณ์/ร้องทุกข์";
|
||||
case "NO_RECEIVE_APPEAL": return "ไม่รับอุทธรณ์/ร้องทุกข์";
|
||||
case "DIAGNOSTIC": return "ตั้งองค์คณะวินิจฉัย";
|
||||
case "SUMMARY": return "สรุปผลการพิจารณา";
|
||||
case "DONE": return "ปิดคำร้อง";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
@ -335,8 +349,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
}
|
||||
await _repositoryNoti.PushNotificationAsync(
|
||||
req.ProfileId,
|
||||
$"เจ้าหน้าที่ได้ทำการสร้างคำร้องอุทธรณ์ร้องทุกข์ให้คุณ",
|
||||
$"เจ้าหน้าที่ได้ทำการสร้างคำร้องอุทธรณ์ร้องทุกข์ให้คุณ",
|
||||
$"เจ้าหน้าที่ได้ทำการสร้างคำร้องอุทธรณ์ร้องทุกข์",
|
||||
$"เจ้าหน้าที่ได้ทำการสร้างคำร้องอุทธรณ์ร้องทุกข์",
|
||||
"",
|
||||
true,
|
||||
true
|
||||
|
|
@ -517,8 +531,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
await _context.DisciplineComplaint_Appeal_Historys.AddAsync(disciplineComplaint_Appeal_History);
|
||||
await _repositoryNoti.PushNotificationAsync(
|
||||
data.ProfileId,
|
||||
$"มีการแก้ไขสถานะคำขออุทธรณ์/ร้องทุกข์จาก {data.Fullname}",
|
||||
$"มีการแก้ไขสถานะคำขออุทธรณ์/ร้องทุกข์จาก {data.Fullname}",
|
||||
$"มีการแก้ไขสถานะคำขออุทธรณ์/ร้องทุกข์จาก {data.Fullname} เป็น {StatusDisciplineComplaintAppeal(req.Status.Trim().ToUpper())}",
|
||||
$"มีการแก้ไขสถานะคำขออุทธรณ์/ร้องทุกข์จาก {data.Fullname} เป็น {StatusDisciplineComplaintAppeal(req.Status.Trim().ToUpper())}",
|
||||
"",
|
||||
true,
|
||||
true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue