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(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 Get() //{ // #region Cache Header // List searchSalaryItems = _cache["Get"] as List; // 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 Get(); int Save(SearchSalaryItem item); void Delete(int id); } #endregion }