noti เครื่องราชให้ insignia1
This commit is contained in:
parent
7b49e34498
commit
c0018707c7
1 changed files with 8 additions and 1 deletions
|
|
@ -911,7 +911,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
foreach (var insigniaPeriod in insigniaPeriods)
|
foreach (var insigniaPeriod in insigniaPeriods)
|
||||||
{
|
{
|
||||||
if (insigniaPeriod.StartDate.AddDays(-insigniaPeriod.Amount).Date == DateTime.Now.Date)
|
if (insigniaPeriod.EndDate.AddDays(-insigniaPeriod.Amount).Date == DateTime.Now.Date)
|
||||||
{
|
{
|
||||||
await _repositoryNoti.PushNotificationAsync(
|
await _repositoryNoti.PushNotificationAsync(
|
||||||
Guid.Parse("08db721d-ade4-480e-8d84-0853946a0ea5"),
|
Guid.Parse("08db721d-ade4-480e-8d84-0853946a0ea5"),
|
||||||
|
|
@ -920,6 +920,13 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
"",
|
"",
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
await _repositoryNoti.PushNotificationAsync(
|
||||||
|
Guid.Parse("08db721d-adff-47b0-8762-41cd5c991001"),
|
||||||
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
|
$"แจ้งเตือนรอบการเสนอขอ {insigniaPeriod.Name} รอบที่{insigniaPeriod.Round}",
|
||||||
|
"",
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue