EchoTex_Payroll/HRM.BO/PMP/Competency.cs

71 lines
2.2 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
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<Competency> Get(EnumStatus status, int payrollTypeID);
int Save(Competency item);
void Delete(int id);
string GetNextCode(int tier, int parentid);
//List<Competency> GetAll(int payrollTypeID);
//List<Competency> GetAllDepartment(int payrollTypeID, EnumStatus status, string code, string name);
//List<Competency> GetAllDepartmentWithParent(int payrollTypeID, EnumStatus status);
//Competency GetParentInfoByDeptID(int id);
//List<Competency> GetByDeptIDs(string deptIds);
//List<Competency> GetChield(int parentID);
//List<Competency> GetParents(EnumStatus status, int payrolltypeid);
//List<Competency> GetByTier(int tier, int id);
//List<Competency> GetByTier(int tier);
//void Save(List<Competency> _oCompetencys);
//Competency Get(string sCode);
//List<Competency> GetParentLessChilds();
//DataSet GetForTree();
//DataSet GetDepartmentWiseManpower(string sParam);
}
}