Merge branch 'develop' into working
This commit is contained in:
commit
eba7e0b656
3 changed files with 20 additions and 6 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
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace BMA.EHR.DisciplineSuspend.Service.Controllers
|
|||
[HttpGet()]
|
||||
public async Task<ActionResult<ResponseObject>> GetDisciplineSuspend(int page = 1, int pageSize = 25, string keyword = "")
|
||||
{
|
||||
var data_search = (from x in _context.DisciplineReport_Profiles
|
||||
var data_search = (from x in _context.DisciplineReport_Profiles.Include(x => x.DisciplineDisciplinary)
|
||||
where (x.CitizenId == null ? false : x.CitizenId.Contains(keyword)) ||
|
||||
(x.Prefix == null ? false : x.Prefix.Contains(keyword)) ||
|
||||
(x.FirstName == null ? false : x.FirstName.Contains(keyword)) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue