179 lines
4.1 KiB
C#
179 lines
4.1 KiB
C#
|
|
using Ease.Core.Model;
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region DirectorList
|
|
public class DirectorList : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
|
|
public DirectorList()
|
|
{
|
|
_EmployeeNo = String.Empty;
|
|
_ProjectID = 0;
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Properties
|
|
|
|
#region EmployeeNo : string
|
|
|
|
private string _EmployeeNo;
|
|
public string EmployeeNo
|
|
{
|
|
get { return _EmployeeNo; }
|
|
set
|
|
{
|
|
_EmployeeNo = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ProjectID : ID
|
|
|
|
private int _ProjectID;
|
|
public int ProjectID
|
|
{
|
|
get { return _ProjectID; }
|
|
set
|
|
{
|
|
_ProjectID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
//#region Service Factory IDirectorListService : IDirectorListService
|
|
|
|
//internal static IDirectorListService Service
|
|
//{
|
|
// get { return Services.Factory.CreateService<IDirectorListService>(typeof(IDirectorListService)); }
|
|
//}
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
|
|
|
|
//public static List<DirectorList> Get()
|
|
//{
|
|
// #region Cache Header
|
|
// List<DirectorList> DirectorLists = _cache["Get"] as List<DirectorList>;
|
|
// if (DirectorLists != null)
|
|
// return DirectorLists;
|
|
// #endregion
|
|
// try
|
|
// {
|
|
// DirectorLists = Service.Get();
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
// #region Cache Footer
|
|
// _cache.Add(DirectorLists, "Get");
|
|
// #endregion
|
|
// return DirectorLists;
|
|
//}
|
|
//public static List<DirectorList> Get(string sEmployeeNo)
|
|
//{
|
|
// #region Cache Header
|
|
// List<DirectorList> DirectorLists = _cache["Get"] as List<DirectorList>;
|
|
// if (DirectorLists != null)
|
|
// return DirectorLists;
|
|
// #endregion
|
|
// try
|
|
// {
|
|
// DirectorLists = Service.Get(sEmployeeNo);
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
// #region Cache Footer
|
|
// _cache.Add(DirectorLists, "Get");
|
|
// #endregion
|
|
// return DirectorLists;
|
|
//}
|
|
|
|
//public static List<DirectorList> Get(EnumStatus status)
|
|
//{
|
|
// #region Cache Header
|
|
|
|
// List<DirectorList> DirectorLists = _cache["Get", status] as List<DirectorList>;
|
|
// if (DirectorLists != null)
|
|
// return DirectorLists;
|
|
|
|
// #endregion
|
|
|
|
// try
|
|
// {
|
|
// DirectorLists = Service.Get(status);
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
|
|
// #region Cache Footer
|
|
|
|
// _cache.Add(DirectorLists, "Get", status);
|
|
|
|
// #endregion
|
|
|
|
// return DirectorLists;
|
|
//}
|
|
//public void Save(List<DirectorList> oLists)
|
|
//{
|
|
// foreach(DirectorList oList in oLists)
|
|
// oList.SetAuditTrailProperties();
|
|
// DirectorList.Service.Save(oLists);
|
|
//}
|
|
|
|
//public void Delete(int id)
|
|
//{
|
|
// DirectorList.Service.Delete(id);
|
|
//}
|
|
//public void Delete(string sEmpNo)
|
|
//{
|
|
// DirectorList.Service.Delete(sEmpNo);
|
|
//}
|
|
//#endregion
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region IDirectorList Service
|
|
|
|
public interface IDirectorListService
|
|
{
|
|
List<DirectorList> Get();
|
|
List<DirectorList> Get(EnumStatus status);
|
|
List<DirectorList> Get(string sEmployeeNo);
|
|
void Save(List<DirectorList> oLists);
|
|
void Delete(int id);
|
|
void Delete(string sEmpNo);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
|