using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region AssetCategory public class AssetCategory : BasicBaseObject { #region Constructor public AssetCategory() { Code = string.Empty; Name = string.Empty; ParentsID = string.Empty; Tier = 1; Parent = null; Status = EnumStatus.Active; } #endregion public string Code { get; set; } public string Name { get; set; } public int? ParentID { get; set; } public string ParentsID { get; set; } public int Tier { get; set; } public AssetCategory Parent { get; set; } public int PayrollTypeID { get; set; } } #endregion #region IAssetCategory Service public interface IAssetCategoryService { AssetCategory Get(int id); List GetAssetCategories(); List Get(); List GetParents(EnumStatus status, int payrollTypeID); List Get(EnumStatus status, int payrollTypeID); List GetByTier(int tier); int Save(AssetCategory item); void Delete(int id); List GetChield(int parentID); AssetCategory Get(string sCode); List Get(EnumStatus sts); string GetNextCode(int tier, string parentcode); string GetNextCode(int tier, int parentID); string GetNextCode(int nteir); List GetAllAssetCategories(int payrollTypeID, EnumStatus status, string code, string name); List GetAllAssetCategory(string code, string name); } #endregion }