196 lines
5.7 KiB
C#
196 lines
5.7 KiB
C#
using Ease.Core.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class DetailParam //: BusinessObject
|
|
{
|
|
|
|
|
|
// #region Constructor
|
|
// public DetailParam()
|
|
// {
|
|
|
|
// _sDetailParamCode = string.Empty;
|
|
// _sDetailParamDescription = string.Empty;
|
|
// _nCreatedBy = 0;
|
|
// _dCreateDate = DateTime.MinValue;
|
|
// _nModifiedby = 0;
|
|
// _dModifiedDate = DateTime.MinValue;
|
|
// }
|
|
// #endregion
|
|
|
|
// #region Properties
|
|
|
|
// #region DetailParamCode
|
|
// private string _sDetailParamCode;
|
|
// public string DetailParamCode
|
|
// {
|
|
// get { return _sDetailParamCode; }
|
|
// set
|
|
// {
|
|
// _sDetailParamCode = value;
|
|
// //this.SetObjectStateModified(); BusinessObject
|
|
// }
|
|
// }
|
|
// #endregion
|
|
|
|
// #region DetailParamDescription
|
|
// private string _sDetailParamDescription;
|
|
// public string DetailParamDescription
|
|
// {
|
|
// get { return _sDetailParamDescription; }
|
|
// set
|
|
// {
|
|
// _sDetailParamDescription = value;
|
|
// //this.SetObjectStateModified(); BusinessObject
|
|
// }
|
|
// }
|
|
// #endregion
|
|
|
|
// #region CreatedBy
|
|
// private int _nCreatedBy;
|
|
// public int CreatedBy
|
|
// {
|
|
// get { return _nCreatedBy; }
|
|
// set { _nCreatedBy = value; }
|
|
// }
|
|
// #endregion
|
|
|
|
// #region CreateDate
|
|
// private DateTime _dCreateDate;
|
|
// public DateTime CreateDate
|
|
// {
|
|
// get { return _dCreateDate; }
|
|
// set { _dCreateDate = value; }
|
|
// }
|
|
// #endregion
|
|
|
|
// #region Modifiedby
|
|
// private int _nModifiedby;
|
|
// public int Modifiedby
|
|
// {
|
|
// get { return _nModifiedby; }
|
|
// set { _nModifiedby = value; }
|
|
// }
|
|
// #endregion
|
|
|
|
// #region ModifiedDate
|
|
// private DateTime _dModifiedDate;
|
|
// public DateTime ModifiedDate
|
|
// {
|
|
// get { return _dModifiedDate; }
|
|
// set { _dModifiedDate = value; }
|
|
// }
|
|
// #endregion
|
|
|
|
|
|
// #region Functions
|
|
// public DetailParam Get(int nDetailParamID)
|
|
// {
|
|
// DetailParam oDetailParam = null;
|
|
// oDetailParam = DetailParam.Service.Get(nDetailParamID);
|
|
// return oDetailParam;
|
|
// }
|
|
// public DetailParam GetByDetailParamCode(string sDetailParamCode)
|
|
// {
|
|
// DetailParam oDetailParam = null;
|
|
|
|
// oDetailParam = DetailParam.Service.GetByDetailParamCode(sDetailParamCode);
|
|
|
|
// return oDetailParam;
|
|
// }
|
|
|
|
// public int Save()
|
|
// {
|
|
// return DetailParam.Service.Save(this);
|
|
// }
|
|
// public void Delete()
|
|
// {
|
|
// DetailParam.Service.Delete(int);
|
|
// }
|
|
|
|
|
|
// public static bool IsExist(string code)
|
|
// {
|
|
// try
|
|
// {
|
|
// return DetailParam.Service.IsExist(code);
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new ServiceException(e.Message, e);
|
|
// }
|
|
// }
|
|
// #endregion Functions
|
|
|
|
// #region Service Factory
|
|
// internal static IDetailParamService Service
|
|
// {
|
|
// get { return (IDetailParamService)LocalServices.Factory.CreateService(typeof(IDetailParamService)); }
|
|
// }
|
|
// #endregion
|
|
//}
|
|
|
|
|
|
//#region Collection of DetailParam
|
|
//[Serializable]
|
|
//public class DetailParams : IndexedBusinessObjects
|
|
//{
|
|
|
|
// #region Collection Class Methods
|
|
// public void Add(DetailParam oItem)
|
|
// {
|
|
// AddItem(oItem);
|
|
// }
|
|
// public void Remove(DetailParam oItem)
|
|
// {
|
|
// RemoveItem(oItem);
|
|
// }
|
|
// public DetailParam this[int i]
|
|
// {
|
|
// get { return (DetailParam)GetItem(i); }
|
|
// }
|
|
// public int GetItemIndex(int id)
|
|
// {
|
|
// return base.GetIndex(id);
|
|
// }
|
|
// #endregion
|
|
|
|
// #region Functions
|
|
// public static DetailParams Get()
|
|
// {
|
|
// DetailParams oDetailParams = null;
|
|
// oDetailParams = DetailParam.Service.Get();
|
|
// return oDetailParams;
|
|
// }
|
|
// public static DetailParams Get(string sCode)
|
|
// {
|
|
// DetailParams oDetailParams = null;
|
|
// oDetailParams = DetailParam.Service.Get(sCode);
|
|
// return oDetailParams;
|
|
// }
|
|
// #endregion
|
|
//}
|
|
//#endregion
|
|
|
|
//#region IDetailParam Service
|
|
//public interface IDetailParamService
|
|
//{
|
|
// DetailParam Get(int id);
|
|
// DetailParam GetByDetailParamCode(string sDetailParamCode);
|
|
// DetailParams Get();
|
|
// DetailParams Get(string sCode);
|
|
// int Save(DetailParam oDetailParam);
|
|
// void Delete(int id);
|
|
// bool IsExist(string code);
|
|
//}
|
|
//#endregion
|
|
}
|
|
}
|
|
|