edit path noti

This commit is contained in:
moss 2025-06-05 12:16:50 +07:00
parent 13709c65ef
commit 237567e5ab
2 changed files with 13 additions and 12 deletions

View file

@ -587,6 +587,7 @@ namespace BMA.EHR.Application.Repositories
{
var data = await _dbContext.Set<RetirementResignEmployeeCancel>().AsQueryable()
.Include(x => x.Approvers)
.Include(x => x.RetirementResignEmployee)
.FirstOrDefaultAsync(x => x.Id == id);
return data;
@ -624,7 +625,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = _firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(_noti1);
}
@ -642,7 +643,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
await _dbContext.SaveChangesAsync();
@ -730,7 +731,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = nextApprover!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(noti);
await _dbContext.SaveChangesAsync();
@ -757,7 +758,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
await _dbContext.SaveChangesAsync();
@ -819,7 +820,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = nextApprover!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(noti);
@ -847,7 +848,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-employee-detail/{id}",
Payload = $"{URL}/retirement/resign-employee-detail/{rawData.RetirementResignEmployee.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
await _dbContext.SaveChangesAsync();

View file

@ -550,7 +550,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = _firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(_noti1);
}
@ -566,7 +566,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
await _dbContext.SaveChangesAsync();
@ -626,7 +626,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = nextApprover!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(noti);
await _dbContext.SaveChangesAsync();
@ -650,7 +650,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
}
@ -713,7 +713,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = nextApprover!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(noti);
@ -742,7 +742,7 @@ namespace BMA.EHR.Application.Repositories
Body = $"การขอยกเลิกลาออกของคุณ {rawData.firstName} {rawData.lastName} รอรับการอนุมัติจากคุณ",
ReceiverUserId = firstCommander!.ProfileId,
Type = "",
Payload = $"{URL}/retirement/resign-detail/{id}",
Payload = $"{URL}/retirement/resign-detail/{rawData.RetirementResign.Id}",
};
_dbContext.Set<Notification>().Add(noti1);
}