ถึงแก่กรรม

This commit is contained in:
Bright 2025-03-27 11:37:41 +07:00
parent dd8e87b994
commit 3123a8ca2e

View file

@ -403,7 +403,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
IsSendMail = true, IsSendMail = true,
IsSendInbox = true, IsSendInbox = true,
IsSendNotification = true, IsSendNotification = true,
OrganizationName = retirementDeceased.OrganizationName, OrganizationName = retirementDeceased.root == null ? "" : retirementDeceased.root,
PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position, PositionName = retirementDeceased.position == null ? "" : retirementDeceased.position,
profileId = req.ProfileId, profileId = req.ProfileId,
CreatedFullName = FullName ?? "System Administrator", CreatedFullName = FullName ?? "System Administrator",
@ -434,19 +434,19 @@ namespace BMA.EHR.Retirement.Service.Controllers
{ {
if (higher.profileId != null) if (higher.profileId != null)
{ {
var payload_attach = new List<PayloadAttachment>(); //var payload_attach = new List<PayloadAttachment>();
payload_attach.Add(new PayloadAttachment //payload_attach.Add(new PayloadAttachment
{ //{
name = "หนังสือเวียนถึงแก่กรรม", // name = "หนังสือเวียนถึงแก่กรรม",
url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}" // url = $"{_configuration["APIV2"]}/report/deceased/copy/36/{retirementDeceased.Id}"
}); //});
var payload = new CommandPayload() //var payload = new CommandPayload()
{ //{
attachments = payload_attach // attachments = payload_attach
}; //};
var payload_str = JsonConvert.SerializeObject(payload); //var payload_str = JsonConvert.SerializeObject(payload);
await _repositoryNoti.PushNotificationAsync( await _repositoryNoti.PushNotificationAsync(
Guid.Parse(higher.profileId), Guid.Parse(higher.profileId),
$"หนังสือเวียนถึงแก่กรรมของ {higher.prefix}{higher.firstName} {higher.lastName}", $"หนังสือเวียนถึงแก่กรรมของ {higher.prefix}{higher.firstName} {higher.lastName}",