api รายงาน + Reopen Issue
This commit is contained in:
parent
d5a78f2d0f
commit
48892556fd
10 changed files with 662 additions and 10 deletions
|
|
@ -639,9 +639,19 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
data.LeaveStatus = "DELETE";
|
||||
data.CancelLeaveWrote = req.LeaveWrote ?? "";
|
||||
|
||||
// add cancel status to new
|
||||
data.LeaveCancelStatus = "NEW";
|
||||
data.LeaveCancelComment = req.Reason ?? "";
|
||||
|
||||
// ถ้าผู้มีอำนาจอนุมัติแล้ว ต้องมีการรอ
|
||||
if (data.ApproveStep == "st4")
|
||||
{
|
||||
// add cancel status to new
|
||||
data.LeaveCancelStatus = "NEW";
|
||||
data.LeaveCancelComment = req.Reason ?? "";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
await _leaveRequestRepository.ApproveCancelLeaveRequestAsync(data.Id, "อนุมัติการขอยกเลิกการลา โดยระบบ");
|
||||
}
|
||||
|
||||
// upload leave cancel document
|
||||
if (req.Doc != null)
|
||||
|
|
@ -656,8 +666,6 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
// save to database
|
||||
await _leaveRequestRepository.UpdateAsync(data);
|
||||
|
||||
// await _leaveRequestRepository.AddAsync(data);
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue