Exemplo n.º 1
0
 public async Task SubmitApproval(Leave leave)
 {
     var approver = _personDomainService.FindNextApprover(
         leave.Approver.PersonId,
         leave.LeaderMaxLevel);
     await _leaveDomainService.SubmitApproval(leave, Approver.FromPerson(approver));
 }
Exemplo n.º 2
0
        public void SubmitApproval(Domain.Leave.Entity.Leave leave)
        {
            //获取下一个批准人
            var approver = _personDomainService.FindNextApprover(leave.Approver.PersonId, leave.MaxLeaderLevel);

            //获取批准人级别
            leave.CurrentApprovalInfo.ApproverLevel = _personDomainService.FindById(leave.Approver.PersonId).RoleLevel;
            _leaveDomainService.SubmitApproval(leave, Approver.FromPerson(approver));
        }