213 lines
5.1 KiB
C#
213 lines
5.1 KiB
C#
|
|
|||
|
using Ease.Core.Model;
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
//Act As Parent of Existing Grouping Modifid By Hasib 01.09.10
|
|||
|
#region ObjectGrouping
|
|||
|
public class ObjectGrouping : BasicBaseObject
|
|||
|
{
|
|||
|
|
|||
|
#region Constructor
|
|||
|
public ObjectGrouping()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
//#region Functions
|
|||
|
//public void Save()
|
|||
|
//{
|
|||
|
// try
|
|||
|
// {
|
|||
|
// Service.Save(this);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
//public void Delete()
|
|||
|
//{
|
|||
|
// try
|
|||
|
// {
|
|||
|
// Service.Delete(this.ID);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
//public void Delete(ID objectGroupID)
|
|||
|
//{
|
|||
|
// try
|
|||
|
// {
|
|||
|
// Service.Delete(objectGroupID);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
//public ObjectGrouping Get(ID objectGroupID)
|
|||
|
//{
|
|||
|
// ObjectGrouping item;
|
|||
|
|
|||
|
// #region CacheHeader
|
|||
|
// item = (ObjectGrouping)_cache["Get", objectGroupID];
|
|||
|
// if (item != null)
|
|||
|
// return item;
|
|||
|
// #endregion
|
|||
|
|
|||
|
// try
|
|||
|
// {
|
|||
|
// item = Service.Get(objectGroupID);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
|
|||
|
// #region CacheFooter
|
|||
|
// _cache.Add(item, "Get", objectGroupID);
|
|||
|
// #endregion
|
|||
|
|
|||
|
// return item;
|
|||
|
//}
|
|||
|
//public ObjectGrouping Get()
|
|||
|
//{
|
|||
|
// ObjectGrouping item;
|
|||
|
|
|||
|
// #region CacheHeader
|
|||
|
// item = (ObjectGrouping)_cache["Get", this.ID];
|
|||
|
// if (item != null)
|
|||
|
// return item;
|
|||
|
// #endregion
|
|||
|
|
|||
|
// try
|
|||
|
// {
|
|||
|
// item = Service.Get(this.ID);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
|
|||
|
// #region CacheFooter
|
|||
|
// _cache.Add(item, "Get", this.ID);
|
|||
|
// #endregion
|
|||
|
|
|||
|
// return item;
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Service Factory IObjectGroupingService : IObjectGroupingService
|
|||
|
//internal static IObjectGroupingService Service
|
|||
|
//{
|
|||
|
// get { return (IObjectGroupingService)LocalFactory.Facory.CreateService(typeof(IObjectGroupingService)); }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region ObjectGrouping Column
|
|||
|
public class ObjectGroupingCollection : BasicBaseObject
|
|||
|
{
|
|||
|
|
|||
|
#region Constructor
|
|||
|
public ObjectGroupingCollection()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Inherited Functions
|
|||
|
//public void Add(ObjectGrouping item)
|
|||
|
//{
|
|||
|
// base.AddItem(item);
|
|||
|
//}
|
|||
|
|
|||
|
//public ObjectGrouping this[ID id]
|
|||
|
//{
|
|||
|
// get { return (ObjectGrouping)base.GetItem(id); }
|
|||
|
//}
|
|||
|
|
|||
|
//public ObjectGrouping this[ObjectGrouping item]
|
|||
|
//{
|
|||
|
// get { return (ObjectGrouping)base.GetItem(item); }
|
|||
|
//}
|
|||
|
|
|||
|
//public ObjectGrouping this[int index]
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// return (ObjectGrouping)base.InnerList[index];
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
//public int GetItemIndex(ID id)
|
|||
|
//{
|
|||
|
// return base.GetIndex(id);
|
|||
|
//}
|
|||
|
|
|||
|
//public int GetItemIndex(ObjectGrouping item)
|
|||
|
//{
|
|||
|
// return base.GetIndex(item.ID);
|
|||
|
//}
|
|||
|
|
|||
|
//public void Remove(ObjectGrouping item)
|
|||
|
//{
|
|||
|
// base.RemoveItem(item);
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Functions
|
|||
|
//public static ObjectGroupingCollection Get()
|
|||
|
//{
|
|||
|
// ObjectGroupingCollection items;
|
|||
|
|
|||
|
// #region CacheHeader
|
|||
|
// items = (ObjectGroupingCollection)_cache["Get"];
|
|||
|
// if (items != null)
|
|||
|
// return items;
|
|||
|
// #endregion
|
|||
|
|
|||
|
// try
|
|||
|
// {
|
|||
|
// items = ObjectGrouping.Service.Get();
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new ServiceException(e.Message, e);
|
|||
|
// }
|
|||
|
|
|||
|
// #region CacheFooter
|
|||
|
// _cache.Add(items, "Get");
|
|||
|
// #endregion
|
|||
|
|
|||
|
// return items;
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Interface
|
|||
|
//public interface IObjectGroupingService
|
|||
|
//{
|
|||
|
// void Save(ObjectGrouping objectGrouping);
|
|||
|
// void Delete(ID groupID);
|
|||
|
// ObjectGrouping Get(ID objectGroupingID);
|
|||
|
// ObjectGroupingCollection Get();
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
}
|