แก้รายละเอียดการส่ง inbox and noti การขอลงเวลาพิเศษ
This commit is contained in:
parent
5baa3f096b
commit
c0d7aa92cc
1 changed files with 4 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
using BMA.EHR.Application.Messaging;
|
using BMA.EHR.Application.Messaging;
|
||||||
using BMA.EHR.Application.Repositories.Commands;
|
using BMA.EHR.Application.Repositories.Commands;
|
||||||
using BMA.EHR.Application.Responses;
|
using BMA.EHR.Application.Responses;
|
||||||
|
using BMA.EHR.Domain.Extensions;
|
||||||
using BMA.EHR.Domain.Models.Leave.TimeAttendants;
|
using BMA.EHR.Domain.Models.Leave.TimeAttendants;
|
||||||
using BMA.EHR.Domain.Models.Notifications;
|
using BMA.EHR.Domain.Models.Notifications;
|
||||||
using BMA.EHR.Domain.Shared;
|
using BMA.EHR.Domain.Shared;
|
||||||
|
|
@ -87,7 +88,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
|
||||||
|
|
||||||
// send inbox and notification
|
// send inbox and notification
|
||||||
var subject_str = $"มีการขออนุมัติลงเวลากรณีพิเศษ";
|
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 subject = subject_str;
|
||||||
var body = body_str;
|
var body = body_str;
|
||||||
|
|
@ -98,7 +99,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
|
||||||
{
|
{
|
||||||
Subject = subject_str,
|
Subject = subject_str,
|
||||||
Body = body_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 = "",
|
Payload = "",
|
||||||
};
|
};
|
||||||
_appContext.Set<Inbox>().Add(inbox);
|
_appContext.Set<Inbox>().Add(inbox);
|
||||||
|
|
@ -106,7 +107,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
|
||||||
var noti = new Notification
|
var noti = new Notification
|
||||||
{
|
{
|
||||||
Body = body_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,
|
||||||
Type = "",
|
Type = "",
|
||||||
Payload = "",
|
Payload = "",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue