|
|
@@ -0,0 +1,73 @@
|
|
|
+using GreenTree.Strohrmann.ERP.Core.Domain.Business;
|
|
|
+using GreenTree.Strohrmann.ERP.Core.Domain.Shared;
|
|
|
+using GreenTree.Strohrmann.ERP.Web.Models.Shared;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace GreenTree.Strohrmann.ERP.Web.Models.Business
|
|
|
+{
|
|
|
+ public class EmployeeModel : TrackingModel
|
|
|
+ {
|
|
|
+ #region Properties
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee Id
|
|
|
+ /// </summary>
|
|
|
+ public int Id { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee first name
|
|
|
+ /// </summary>
|
|
|
+ public string Firstname { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee last name
|
|
|
+ /// </summary>
|
|
|
+ public string Lastname { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee mail address
|
|
|
+ /// </summary>
|
|
|
+ public string MailAddress { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee birthdate
|
|
|
+ /// </summary>
|
|
|
+ public DateTime? Birthdate { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Employee degree
|
|
|
+ /// </summary>
|
|
|
+ public virtual EmployeeDegreeModel EmployeeDegree { get; set; }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Ctor
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Initializes a new instance of the EmployeeModel class
|
|
|
+ /// </summary>
|
|
|
+ public EmployeeModel() { }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Initializes a new instance of the EmployeeModel class
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="employee">The base employee.</param>
|
|
|
+ public EmployeeModel(Employee employee)
|
|
|
+ : base(employee)
|
|
|
+ {
|
|
|
+ if (employee == null) return;
|
|
|
+
|
|
|
+ Id = employee.Id;
|
|
|
+ Firstname = employee.Firstname;
|
|
|
+ Lastname = employee.Lastname;
|
|
|
+ MailAddress = employee.MailAddress;
|
|
|
+ Birthdate = employee.Birthdate;
|
|
|
+ EmployeeDegree = new EmployeeDegreeModel(employee.EmployeeDegree);
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+ }
|
|
|
+}
|