using NPOI.POIFS.Properties; using NPOI.SS.Formula.Functions; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Net.NetworkInformation; using System.Text; using System.Threading.Tasks; namespace HRM.BO { public class Competency : BasicBaseObject { #region Constructor public Competency() { Code = string.Empty; Name = string.Empty; ParentID = null; ParentsID = string.Empty; Tier = 1; Parent = null; GrandParent = null; _status = EnumStatus.Active; } #endregion #region Properties public string Code { get; set; } public string Name { get; set; } public int Tier { get; set; } public int? ParentID { get; set; } public string ParentsID { get; set; } public Competency Parent { get; set; } public Competency GrandParent { get; set; } public int PayrollTypeID { get; set; } public int PMPYearID { get; set; } public string? Title { get; set; } #endregion } public interface ICompetencyService { Competency Get(int id); List Get(EnumStatus status, int payrollTypeID); int Save(Competency item); void Delete(int id); string GetNextCode(int tier, int parentid); //List GetAll(int payrollTypeID); //List GetAllDepartment(int payrollTypeID, EnumStatus status, string code, string name); //List GetAllDepartmentWithParent(int payrollTypeID, EnumStatus status); //Competency GetParentInfoByDeptID(int id); //List GetByDeptIDs(string deptIds); //List GetChield(int parentID); //List GetParents(EnumStatus status, int payrolltypeid); //List GetByTier(int tier, int id); //List GetByTier(int tier); //void Save(List _oCompetencys); //Competency Get(string sCode); //List GetParentLessChilds(); //DataSet GetForTree(); //DataSet GetDepartmentWiseManpower(string sParam); } }