EchoTex_Payroll/HRM.BO/Budget/EmpAppraisalRating.cs

124 lines
2.8 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
public class EmpAppraisalRating : AuditTrailBase
{
#region Constructor
public EmpAppraisalRating()
{
_employeeID = 0;
_appraisalYear = DateTime.MinValue;
_appraisalPointRatingID = 0;
}
#endregion
#region EmployeeID
private int _employeeID;
public int 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 int _appraisalPointRatingID;
public int 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(int id)
//{
// EmpAppraisalRating.Service.Delete(id);
//}
//#endregion
#region Save
public int Save()
{
this.SetAuditTrailProperties();
return EmpAppraisalRating.Service.Save(this);
}
public static void Save(List<EmpAppraisalRating> Items)
{
foreach (EmpAppraisalRating item in Items)
{
item.SetAuditTrailProperties();
}
EmpAppraisalRating.Service.Save(Items);
}
#endregion
//#region Get
//public static List<EmpAppraisalRating> Get(DateTime appraisalyear)
//{
// return EmpAppraisalRating.Service.Get(appraisalyear);
//}
//public static void Save(List<EmpAppraisalRating> Items)
//{
// foreach (EmpAppraisalRating item in Items)
// {
// item.SetAuditTrailProperties();
// }
// EmpAppraisalRating.Service.Save(Items);
//}
//#endregion
//#endregion
}
#region IEmpAppraisalRating
public interface IEmpAppraisalRatingService
{
List<EmpAppraisalRating> Get(DateTime appraisalyear);
void Delete(int id);
int Save(EmpAppraisalRating item);
void Save(List<EmpAppraisalRating> items);
}
#endregion
}