ปรับเหตุผลคำสั่งลาออก,โอนออก issue #1572

This commit is contained in:
Bright 2025-06-11 12:05:46 +07:00
parent afb2cfa189
commit b528f0a81d
3 changed files with 10 additions and 3 deletions

View file

@ -2630,7 +2630,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
positionType = p.PositionTypeOld,
positionLevel = p.PositionLevelOld,
isLeave = p.IsCancel == true ? false : true,
leaveReason = "ออกจากราชการ",
//leaveReason = "ออกจากราชการ",
leaveReason = p.ReasonResign == "อื่น ๆ"
? string.IsNullOrWhiteSpace(p.Remark) ? p.ReasonResign : $"{p.ReasonResign}({p.Remark})"
: p.ReasonResign,
dateLeave = r.commandDateAffect,
commandId = r.commandId,
isGovernment = false,

View file

@ -2111,7 +2111,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
positionType = p.PositionTypeOld,
positionLevel = p.PositionLevelOld,
isLeave = p.IsCancel == true ? false : true,
leaveReason = "ออกจากราชการ",
//leaveReason = "ออกจากราชการ",
leaveReason = p.ReasonResign == "อื่น ๆ"
? string.IsNullOrWhiteSpace(p.Remark) ? p.ReasonResign : $"{p.ReasonResign}({p.Remark})"
: p.ReasonResign,
dateLeave = r.commandDateAffect,
commandId = r.commandId,
isGovernment = false,