コード例 #1
0
 public ApproveStep(Employee approver)
 {
     this.Approver = approver;
 }
コード例 #2
0
 public override ApproveStep CreateApproveSequence(Employee employee)
 {
     throw new NotImplementedException();
      //(Team Lead -> Account Manager -> SignOff)
 }
コード例 #3
0
        public void Approve(Employee approver)
        {
            if(this.IsApproved)
            {
                return;
            }

            if(approver == this.currentApproveStep.Approver)
            {
                this.currentApproveStep = null;
            }

            throw new Exception("Not Allowed #YOLO");
        }
コード例 #4
0
 public abstract ApproveStep CreateApproveSequence(Employee employee);
コード例 #5
0
        public LeaveEntry(Employee employee, DateTime startDate, DateTime endDate, LeaveType leaveType)
        {
            this.startDate = startDate;
            this.endDate = endDate;

            this.IsFinalized = false;
            this.employee = employee;

            this.SetLeaveType(leaveType);
        }