public EmployeeReportViewModel(Employee employee)
 {
     this.EmployeeId   = employee.EmployeeId;
     this.EmpFirstName = employee.EmployeeFirstName;
     this.EmpLastName  = employee.EmployeeLastName;
     this.LabourGrade  = new LabourGradeViewModel(employee.LabourGrade);
 }
        public EmployeeDetailsViewModel(Employee emp, Credential cred, LabourGradeViewModel labourGrade,
                                        EmployeeNameViewModel timesheetApprover, EmployeeNameViewModel supervisor)
        {
            this.EmployeeId       = emp.EmployeeId;
            this.EmpUsername      = cred.CredentialId;
            this.EmpCode          = emp.EmployeeCode;
            this.EmpFirstName     = emp.EmployeeFirstName;
            this.EmpLastName      = emp.EmployeeLastName;
            this.IsActivated      = emp.IsActivated;
            this.IsProjectManager = emp.IsProjectManager;
            this.IsAdmin          = emp.IsAdmin;
            this.IsHumanResources = emp.IsHumanResources;
            this.LabourGrade      = labourGrade;

            if (timesheetApprover != null)
            {
                this.TimesheetApprover = timesheetApprover;
            }
            if (supervisor != null)
            {
                this.Supervisor = supervisor;
            }
        }