using System; using System.Collections.Generic; namespace HRM.BO { #region Designation public class Designation : BasicBaseObject { #region Constructor public Designation() { GradeID = 0; Code = string.Empty; Name = string.Empty; Status = EnumStatus.Active; NameInBangla = string.Empty; } #endregion #region Properties public int GradeID { get; set; } public string Code { get; set; } public string Name { get; set; } public int PayrollTypeID { get; set; } public string MyProperty { get; set; } public string NameInBangla { get; set; } //#region Service Factory IDesignationService : IDesignationService //internal static IDesignationService Service //{ // get { return Services.Factory.CreateService(typeof(IDesignationService)); } //} //#endregion #endregion } #endregion #region IDesignation Service public interface IDesignationService { Designation Get(int id); List Get(EnumStatus status, int payrollTypeID); List GetRelateWithEmpolyee(EnumStatus status, int payrollTypeID); List GetByDesignationIDs(string designationIds); int GetMaxID(); List Get(EnumStatus status, string sIDs, string sTargetPropertyName, int payrollTypeID); int Save(Designation item); void Delete(int id); Designation Get(string sCode, int payrollTypeID); string GetNextCode(); List GetWithSapCodes(EnumStatus status); List GetAllDesignation(int payrollTypeID, EnumStatus status, string code, string name); List GetAll(int payrollTypeID); } #endregion }