This commit is contained in:
parent
82a2dc42e6
commit
734b29c77c
1 changed files with 9 additions and 9 deletions
|
|
@ -624,17 +624,17 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
}
|
||||
|
||||
// add dear and oc_data
|
||||
var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken);
|
||||
var approver = string.Empty;
|
||||
if (rootOc != null)
|
||||
{
|
||||
var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty);
|
||||
if (list.Count > 0)
|
||||
approver = list.First().Name;
|
||||
}
|
||||
//var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken);
|
||||
//var approver = string.Empty;
|
||||
//if (rootOc != null)
|
||||
//{
|
||||
// var list = await _commandRepository.GetOrgApproverAsync(rootOc ?? Guid.Empty);
|
||||
// if (list.Count > 0)
|
||||
// approver = list.First().Name;
|
||||
//}
|
||||
|
||||
oldData.LeaveTypeCode = leaveType.Code;
|
||||
oldData.Dear = approver;
|
||||
oldData.Dear = profile.Commander ?? "";
|
||||
oldData.PositionName = profile.Position == null ? "" : profile.Position;
|
||||
oldData.PositionLevelName = profile.PosLevel == null ? "" : profile.PosLevel;
|
||||
oldData.OrganizationName = profile.Oc ?? "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue