220 lines
6.3 KiB
C#
220 lines
6.3 KiB
C#
|
|
|||
|
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<RewardStatementParameterDetail> RewardStatementParameterDetails { get; set; }
|
|||
|
public List<RewardStatementParameterIndividual> RewardStatementParameterIndividuals { get; set; }
|
|||
|
|
|||
|
//#region RewardStatementParameterDetails
|
|||
|
//private List<RewardStatementParameterDetail> _rewardStatementParameterDetails;
|
|||
|
//public List<RewardStatementParameterDetail> RewardStatementParameterDetails
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (this.int != null && _rewardStatementParameterDetails == null)
|
|||
|
// {
|
|||
|
// _rewardStatementParameterDetails = RewardStatementParameter.Service.GetRewardStatementParameterDetails(this.ID);
|
|||
|
// }
|
|||
|
// return _rewardStatementParameterDetails;
|
|||
|
// }
|
|||
|
// set { _rewardStatementParameterDetails = value; }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region RewardStatementParameterIndividuals : List<RewardStatementParameterIndividual>
|
|||
|
//private List<RewardStatementParameterIndividual> _RewardStatementParameterIndividuals;
|
|||
|
//public List<RewardStatementParameterIndividual> RewardStatementParameterIndividuals
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (_RewardStatementParameterIndividuals == null && !this.ID.IsUnassigned && this.ID.Integer > 0)
|
|||
|
// {
|
|||
|
// _RewardStatementParameterIndividuals = RewardStatementParameterIndividual.GetByParameterID(this.ID);
|
|||
|
// }
|
|||
|
// else if (_RewardStatementParameterIndividuals == null)
|
|||
|
// {
|
|||
|
// _RewardStatementParameterIndividuals = new List<RewardStatementParameterIndividual>();
|
|||
|
// }
|
|||
|
// return this._RewardStatementParameterIndividuals;
|
|||
|
// }
|
|||
|
// set
|
|||
|
// {
|
|||
|
// _RewardStatementParameterIndividuals = value;
|
|||
|
// }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Service Factory
|
|||
|
//internal static IRewardStatementParameterService Service
|
|||
|
//{
|
|||
|
// get { return Services.Factory.CreateService<IRewardStatementParameterService>(typeof(IRewardStatementParameterService)); }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Functions
|
|||
|
|
|||
|
//public static List<RewardStatementParameter> Get()
|
|||
|
//{
|
|||
|
// List<RewardStatementParameter> rewardStatementParameters = null;
|
|||
|
|
|||
|
// rewardStatementParameters = RewardStatementParameter.Service.Get();
|
|||
|
|
|||
|
// return rewardStatementParameters;
|
|||
|
//}
|
|||
|
|
|||
|
//public static List<RewardStatementParameter> Get(int rewardStatementID)
|
|||
|
//{
|
|||
|
// List<RewardStatementParameter> 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<RewardStatementParameter> Get();
|
|||
|
RewardStatementParameter Get(int id);
|
|||
|
List<RewardStatementParameter> GetWithRewardStatement(int rewardStatementID);
|
|||
|
int Save(RewardStatementParameter rewardStatementParameter);
|
|||
|
void Delete(int id);
|
|||
|
List<RewardStatementParameterDetail> GetRewardStatementParameterDetails(int rewardStatementParameterID);
|
|||
|
}
|
|||
|
}
|