EchoTex_Payroll/HRM.BO/OPI/OpiParameterGrade.cs
2024-10-14 10:01:49 +06:00

140 lines
3.8 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.Core;
using Ease.Core.Model;
using System.Data;
namespace HRM.BO
{
#region OpiParameterGrade
public class OpiParameterGrade : BasicBaseObject
{
#region Constructor
public OpiParameterGrade()
{
//_gradeId = null;
//_opiItemId = null;
//_opiParameterId = null;
//_garde = null;
//PayrollTypeID = Payroll.BO.SystemInformation.CurrentSysInfo.PayrollTypeID;
}
#endregion
#region Properties
public int GradeId { get; set; }
public int OpiItemId { get; set; }
public int OpiParameterId { get; set; }
//public Grade Garde { get; set; }
//#region Garde : Grade
//private Grade _garde;
//public Grade Garde
//{
// get
// {
// if (_gradeId.Integer > 0 && _garde == null)
// {
// _garde = Grade.Get(_gradeId);
// }
// return this._garde;
// }
// set
// {
// _garde = value;
// }
//}
//#endregion
public int PayrollTypeID { get; set; }
//#region PayrollTypeID : ID
//private ID _payrollTypeID;
//public ID PayrollTypeID
//{
// get { return _payrollTypeID; }
// set { _payrollTypeID = value; }
//}
//#endregion
#endregion
//#region Functions
//public OpiParameterGrade Get(ID nOpiParameterGradeID)
//{
// OpiParameterGrade oOpiParameterGrade = null;
// #region Cache Header
// oOpiParameterGrade = (OpiParameterGrade)_cache["Get", nOpiParameterGradeID];
// if (oOpiParameterGrade != null)
// return oOpiParameterGrade;
// #endregion
// oOpiParameterGrade = OpiParameterGrade.Service.Get(nOpiParameterGradeID);
// #region Cache Footer
// _cache.Add(oOpiParameterGrade, "Get", nOpiParameterGradeID);
// #endregion
// return oOpiParameterGrade;
//}
//public static List<OpiParameterGrade> Get()
//{
// #region Cache Header
// List<OpiParameterGrade> OpiParameterGrades = _cache["Get"] as List<OpiParameterGrade>;
// if (OpiParameterGrades != null)
// return OpiParameterGrades;
// #endregion
// try
// {
// OpiParameterGrades = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(OpiParameterGrades, "Get");
// #endregion
// return OpiParameterGrades;
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return OpiParameterGrade.Service.Save(this);
//}
//public void Delete()
//{
// OpiParameterGrade.Service.Delete(this.ID);
//}
//#endregion
//#region Service Factory
//internal static IOpiParameterGradeService Service
//{
// get
// {
// return Services.Factory.CreateService<IOpiParameterGradeService>(typeof(IOpiParameterGradeService));
// }
//}
//#endregion
}
#endregion
#region IOpiParameterGrade Service
public interface IOpiParameterGradeService
{
OpiParameterGrade Get(int id);
List<OpiParameterGrade> Get();
int Save(OpiParameterGrade oOpiParameterGrade);
void Delete(int id);
}
#endregion
}