using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GB5Shared.Tree; namespace PayRollDAL.DTO.Employee { public class EmployeeHierachyTreeDTO : ITreeNode { private int elevel; private int id; private string code; private string name; private int workouid; private int parentid; private string parentcode; private string parentname; private string designation; private string department; private string employeephoto; private string thumbnail; private string primaryemailid; private string primarymobile; private string bloodgroup; private string fathername; public int Elevel { get { return elevel; } set { elevel = value; } } public int Id { get { return id; } set { id = value; } } public string Code { get { return code; } set { code = value; } } public string Name { get { return name; } set { name = value; } } // Not part of the legacy GB4 response shape — see EmployeeHierarchyDTO.WorkOuId for why. public int WorkOuId { get { return workouid; } set { workouid = value; } } public int ParentId { get { return parentid; } set { parentid = value; } } public string ParentCode { get { return parentcode; } set { parentcode = value; } } public string ParentName { get { return parentname; } set { parentname = value; } } public string Designation { get { return designation; } set { designation = value; } } public string Department { get { return department; } set { department = value; } } public string EmployeePhoto { get { return employeephoto; } set { employeephoto = value; } } public string ThumbNail { get { return thumbnail; } set { thumbnail = value; } } public string PrimaryEmailId { get { return primaryemailid; } set { primaryemailid = value; } } public string PrimaryMobile { get { return primarymobile; } set { primarymobile = value; } } public string BloodGroup { get { return bloodgroup; } set { bloodgroup = value; } } public string FatherName { get { return fathername; } set { fathername = value; } } private EmployeeHierachyTreeDTO parent; private EmployeeHierachyTreeAttributeDTO attr; private IList Children; public virtual EmployeeHierachyTreeDTO Parent { get { return parent; } set { parent = value; } } public virtual IList children { get { return Children; } set { Children = value; } } public virtual EmployeeHierachyTreeAttributeDTO Attr { get { return attr; } set { attr = value; } } private int adminreportingtoid = -1; private string adminreportingtocode; private string adminreportingtoname; public int AdminReportingToId { get { return adminreportingtoid; } set { adminreportingtoid = value; } } public string AdminReportingToCode { get { return adminreportingtocode; } set { adminreportingtocode = value; } } public string AdminReportingToName { get { return adminreportingtoname; } set { adminreportingtoname = value; } } } }