136 lines
2.9 KiB
C#
136 lines
2.9 KiB
C#
using Ease.Core.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class AppraisalPoint : BasicBaseObject
|
|
{
|
|
#region delegate
|
|
|
|
public delegate void ItemChanged();
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public AppraisalPoint()
|
|
{
|
|
_code = "";
|
|
_name = "";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region Code
|
|
|
|
private string _code;
|
|
|
|
public string Code
|
|
{
|
|
get { return _code; }
|
|
set { _code = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Name
|
|
|
|
private string _name;
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
set { _name = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Point
|
|
|
|
private int _point;
|
|
|
|
public int Point
|
|
{
|
|
get { return _point; }
|
|
set { _point = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
//#region Service Factory IAppraisalPointService : IAppraisalPointService
|
|
|
|
//internal static IAppraisalPointService Service
|
|
//{
|
|
// get { return Services.Factory.CreateService<IAppraisalPointService>(typeof(IAppraisalPointService)); }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
//#region Get
|
|
//public static List<AppraisalPoint> Get(EnumStatus status)
|
|
//{
|
|
// return AppraisalPoint.Service.Get(status);
|
|
//}
|
|
//#endregion
|
|
|
|
//#region Delete
|
|
//public static void Delete(int id)
|
|
//{
|
|
// AppraisalPoint.Service.Delete(id);
|
|
//}
|
|
//#endregion
|
|
|
|
//#region CheckCode
|
|
//public static bool CheckCode(string code)
|
|
//{
|
|
|
|
// return AppraisalPoint.Service.CheckCode(code);
|
|
//}
|
|
//#endregion
|
|
|
|
//#region Save
|
|
//public int Save()
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
// return AppraisalPoint.Service.Save(this);
|
|
//}
|
|
//#endregion
|
|
//#endregion
|
|
|
|
#region Service Factory IAppraisalPointService : IAppraisalPointService
|
|
|
|
internal static IAppraisalPointService Service
|
|
{
|
|
get { return Services.Factory.CreateService<IAppraisalPointService>(typeof(IAppraisalPointService)); }
|
|
}
|
|
|
|
#endregion
|
|
#region Get
|
|
public static List<AppraisalPoint> Get(EnumStatus status)
|
|
{
|
|
return AppraisalPoint.Service.Get(status);
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
#region IAppraisalPointService
|
|
|
|
public interface IAppraisalPointService
|
|
{
|
|
AppraisalPoint Get(int id);
|
|
List<AppraisalPoint> Get(EnumStatus status);
|
|
List<AppraisalPoint> Get(EnumStatus status, int payrollTypeID);
|
|
int Save(AppraisalPoint item);
|
|
void Delete(int id);
|
|
bool CheckCode(string code);
|
|
}
|
|
|
|
#endregion
|
|
} |