CEL_Payroll/Payroll.BO/Budget/EmpAppraisalRating.cs
2024-09-17 14:30:13 +06:00

110 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35.Model;
namespace Payroll.BO
{
[Serializable]
public class EmpAppraisalRating :AuditTrailBase
{
#region Constructor
public EmpAppraisalRating()
{
_employeeID = null;
_appraisalYear = DateTime.MinValue;
_appraisalPointRatingID = null;
}
#endregion
#region EmployeeID
private ID _employeeID;
public ID EmployeeID
{
get { return _employeeID; }
set { _employeeID = value; }
}
#endregion
#region AppraisalYear
private DateTime _appraisalYear;
public DateTime AppraisalYear
{
get { return _appraisalYear; }
set { _appraisalYear = value; }
}
#endregion
#region AppraisalPointRatingID
private ID _appraisalPointRatingID;
public ID AppraisalPointRatingID
{
get { return _appraisalPointRatingID; }
set { _appraisalPointRatingID = value; }
}
#endregion
#region Service Factory IEmpAppraisalRatingService : IEmpAppraisalRatingService
internal static IEmpAppraisalRatingService Service
{
get { return Services.Factory.CreateService<IEmpAppraisalRatingService>(typeof(IEmpAppraisalRatingService)); }
}
#endregion
#region functions
#region Delete
public static void Delete(ID id)
{
EmpAppraisalRating.Service.Delete(id);
}
#endregion
#region Save
public ID Save()
{
this.SetAuditTrailProperties();
return EmpAppraisalRating.Service.Save(this);
}
#endregion
#region Get
public static ObjectsTemplate<EmpAppraisalRating> Get(DateTime appraisalyear)
{
return EmpAppraisalRating.Service.Get(appraisalyear);
}
public static void Save(ObjectsTemplate<EmpAppraisalRating> Items)
{
foreach (EmpAppraisalRating item in Items)
{
item.SetAuditTrailProperties();
}
EmpAppraisalRating.Service.Save(Items);
}
#endregion
#endregion
}
#region IEmpAppraisalRating
public interface IEmpAppraisalRatingService
{
ObjectsTemplate<EmpAppraisalRating> Get(DateTime appraisalyear);
void Delete(ID id);
ID Save(EmpAppraisalRating item);
void Save(ObjectsTemplate<EmpAppraisalRating> items);
}
#endregion
}