154 lines
3.3 KiB
C#
154 lines
3.3 KiB
C#
|
|
using Ease.Core.Model;
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region SearchSalaryItem
|
|
public class SearchSalaryItem:AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
|
|
public SearchSalaryItem()
|
|
{
|
|
_description = string.Empty;
|
|
_selected = false;
|
|
_field = 0;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region description : string
|
|
|
|
private string _description;
|
|
public string Description
|
|
{
|
|
get { return _description; }
|
|
set
|
|
{
|
|
|
|
_description = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region selected : bool
|
|
|
|
private bool _selected;
|
|
public bool Selected
|
|
{
|
|
get { return _selected; }
|
|
set
|
|
{
|
|
|
|
_selected = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region field : int
|
|
|
|
private int _field;
|
|
public int Field
|
|
{
|
|
get { return _field; }
|
|
set
|
|
{
|
|
|
|
_field = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Service Factory ISearchSalaryItemService : ISearchSalaryItemService
|
|
|
|
internal static ISearchSalaryItemService Service
|
|
{
|
|
get { return Services.Factory.CreateService<ISearchSalaryItemService>(typeof(ISearchSalaryItemService)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
|
|
//public static SearchSalaryItem Get(int nID)
|
|
//{
|
|
// SearchSalaryItem oSearchSalaryItem = null;
|
|
// #region Cache Header
|
|
// oSearchSalaryItem = (SearchSalaryItem)_cache["Get", nID];
|
|
// if (oSearchSalaryItem != null)
|
|
// return oSearchSalaryItem;
|
|
// #endregion
|
|
// oSearchSalaryItem = SearchSalaryItem.Service.Get(nID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oSearchSalaryItem, "Get", nID);
|
|
// #endregion
|
|
// return oSearchSalaryItem;
|
|
//}
|
|
|
|
//public static List<SearchSalaryItem> Get()
|
|
//{
|
|
// #region Cache Header
|
|
|
|
// List<SearchSalaryItem> searchSalaryItems = _cache["Get"] as List<SearchSalaryItem>;
|
|
// if (searchSalaryItems != null)
|
|
// return searchSalaryItems;
|
|
|
|
// #endregion
|
|
|
|
// try
|
|
// {
|
|
// searchSalaryItems = Service.Get();
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
|
|
// #region Cache Footer
|
|
|
|
// _cache.Add(searchSalaryItems, "Get");
|
|
|
|
// #endregion
|
|
|
|
// return searchSalaryItems;
|
|
//}
|
|
|
|
//public int Save()
|
|
//{
|
|
// return SearchSalaryItem.Service.Save(this);
|
|
//}
|
|
//public void Delete()
|
|
//{
|
|
// SearchSalaryItem.Service.Delete(ID);
|
|
//}
|
|
//#endregion
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region ISearchSalaryItem Service
|
|
|
|
public interface ISearchSalaryItemService
|
|
{
|
|
SearchSalaryItem Get(int id);
|
|
List<SearchSalaryItem> Get();
|
|
int Save(SearchSalaryItem item);
|
|
void Delete(int id);
|
|
}
|
|
|
|
#endregion
|
|
}
|