using System; using System.Collections.Generic; namespace HRM.BO { #region GradeSegment public class GradeSegment : BasicBaseObject { #region Constructor public GradeSegment() { Code = string.Empty; Name = string.Empty; BasicPer = 0; _status = EnumStatus.Active; } #endregion #region Properties public string Code { get; set; } public string Name { get; set; } public double BasicPer { get; set; } //#region Service Factory IGradeSegmentService : IGradeSegmentService //internal static IGradeSegmentService Service //{ // get { return Services.Factory.CreateService(typeof(IGradeSegmentService)); } //} //#endregion #endregion } #endregion #region IGradeSegment Service public interface IGradeSegmentService { GradeSegment Get(int id); List Get(EnumStatus status); int Save(GradeSegment item); void Delete(int id); GradeSegment Get(string sCode); string GetNextCode(); List GetAllGradeSegment(int payrollTypeID, EnumStatus status, string code, string name); } #endregion }