using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class RewardStatementParameter : BasicBaseObject { #region Constructor public RewardStatementParameter() { } #endregion #region Properties #region RewardStatementID private int rewardStatementID; public int RewardStatementID { get { return rewardStatementID; } set { rewardStatementID = value; } } #endregion #region FlatAmount private double flatAmount; public double FlatAmount { get { return flatAmount; } set { flatAmount = value; } } #endregion #region BasicAmount private double basicAmount; public double BasicAmount { get { return basicAmount; } set { basicAmount = value; } } #endregion #region GCAmount private double gcAmount; public double GCAmount { get { return gcAmount; } set { gcAmount = value; } } #endregion #region IsIndividual private bool isIndividual; public bool IsIndividual { get { return isIndividual; } set { isIndividual = value; } } #endregion #region Gender private EnumGender gender; public EnumGender Gender { get { return gender; } set { gender = value; } } #endregion #region TopTeam private EnumTopTeam topTeam; public EnumTopTeam TopTeam { get { return topTeam; } set { topTeam = value; } } #endregion public List RewardStatementParameterDetails { get; set; } public List RewardStatementParameterIndividuals { get; set; } //#region RewardStatementParameterDetails //private List _rewardStatementParameterDetails; //public List RewardStatementParameterDetails //{ // get // { // if (this.int != null && _rewardStatementParameterDetails == null) // { // _rewardStatementParameterDetails = RewardStatementParameter.Service.GetRewardStatementParameterDetails(this.ID); // } // return _rewardStatementParameterDetails; // } // set { _rewardStatementParameterDetails = value; } //} //#endregion //#region RewardStatementParameterIndividuals : List //private List _RewardStatementParameterIndividuals; //public List RewardStatementParameterIndividuals //{ // get // { // if (_RewardStatementParameterIndividuals == null && !this.ID.IsUnassigned && this.ID.Integer > 0) // { // _RewardStatementParameterIndividuals = RewardStatementParameterIndividual.GetByParameterID(this.ID); // } // else if (_RewardStatementParameterIndividuals == null) // { // _RewardStatementParameterIndividuals = new List(); // } // return this._RewardStatementParameterIndividuals; // } // set // { // _RewardStatementParameterIndividuals = value; // } //} //#endregion #endregion //#region Service Factory //internal static IRewardStatementParameterService Service //{ // get { return Services.Factory.CreateService(typeof(IRewardStatementParameterService)); } //} //#endregion //#region Functions //public static List Get() //{ // List rewardStatementParameters = null; // rewardStatementParameters = RewardStatementParameter.Service.Get(); // return rewardStatementParameters; //} //public static List Get(int rewardStatementID) //{ // List rewardStatements = null; // rewardStatements = RewardStatementParameter.Service.Get(rewardStatementID); // return rewardStatements; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return RewardStatementParameter.Service.Save(this); //} //public void Delete(int id) //{ // RewardStatementParameter.Service.Delete(id); //} //#endregion } public class RewardStatementParameterDetail : BasicBaseObject { #region Properties #region RewardStatementParameterID private int rewardStatementParameterID; public int RewardStatementParameterID { get { return rewardStatementParameterID; } set { rewardStatementParameterID = value; } } #endregion #region GradeLocationID private int gradeLocationID; public int GradeLocationID { get { return gradeLocationID; } set { gradeLocationID = value; } } #endregion #region GradLocationType private EnumGradeLocationType gradeLocationType; public EnumGradeLocationType GradeLocationType { get { return gradeLocationType; } set { gradeLocationType = value; } } #endregion #endregion } public interface IRewardStatementParameterService { List Get(); RewardStatementParameter Get(int id); List GetWithRewardStatement(int rewardStatementID); int Save(RewardStatementParameter rewardStatementParameter); void Delete(int id); List GetRewardStatementParameterDetails(int rewardStatementParameterID); } }