diff --git a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs index f111f8af..88f61ab3 100644 --- a/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/TimeAttendants/AdditionalCheckRequestRepository.cs @@ -2,6 +2,7 @@ using BMA.EHR.Application.Messaging; using BMA.EHR.Application.Repositories.Commands; using BMA.EHR.Application.Responses; +using BMA.EHR.Domain.Extensions; using BMA.EHR.Domain.Models.Leave.TimeAttendants; using BMA.EHR.Domain.Models.Notifications; using BMA.EHR.Domain.Shared; @@ -87,7 +88,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants // send inbox and notification var subject_str = $"มีการขออนุมัติลงเวลากรณีพิเศษ"; - var body_str = $"โปรดพิจารณาคำร้องขอลงเวลาในกรณีพิเศษจาก {profile.Prefix.Name}{profile.FirstName} {profile.LastName}"; + var body_str = $"โปรดพิจารณาคำร้องขอลงเวลาในกรณีพิเศษจาก {profile.Prefix.Name}{profile.FirstName} {profile.LastName} ในวันที่ {entity.CheckDate.Date.ToThaiShortDate2()}"; var subject = subject_str; var body = body_str; @@ -98,7 +99,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants { Subject = subject_str, Body = body_str, - ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbc953-61ac-47eb-82d7-0e72df7669b5") : appr.Id, + ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, Payload = "", }; _appContext.Set().Add(inbox); @@ -106,7 +107,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants var noti = new Notification { Body = body_str, - ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbc953-61ac-47eb-82d7-0e72df7669b5") : appr.Id, + ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbca3a-8b6a-4a4e-8b23-1f62e4f30ef6") : appr.Id, Type = "", Payload = "", };