119 lines
3.2 KiB
C#
119 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Ease.Core;
|
|
using Ease.Core.Model;
|
|
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region JVSetupCC
|
|
|
|
public class JVSetupCC : BasicBaseObject
|
|
{
|
|
public delegate void ItemChanged();
|
|
#region Constructor
|
|
public JVSetupCC()
|
|
{
|
|
CCID = 0;
|
|
JVSetupID=0;
|
|
}
|
|
#endregion
|
|
|
|
public int CCID { get; set; }
|
|
public int JVSetupID { get; set; }
|
|
|
|
//#region Functions
|
|
//public JVSetupCC Get(ID nJVSetupCCID)
|
|
//{
|
|
// JVSetupCC oJVSetupCC = null;
|
|
// #region Cache Header
|
|
// oJVSetupCC = (JVSetupCC)_cache["Get", nJVSetupCCID];
|
|
// if (oJVSetupCC != null)
|
|
// return oJVSetupCC;
|
|
// #endregion
|
|
// oJVSetupCC = JVSetupCC.Service.Get(nJVSetupCCID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oJVSetupCC, "Get", nJVSetupCCID);
|
|
// #endregion
|
|
// return oJVSetupCC;
|
|
//}
|
|
//public static List<JVSetupCC> Get()
|
|
//{
|
|
// #region Cache Header
|
|
// List<JVSetupCC> joJVSetupCCs = _cache["Get"] as List<JVSetupCC>;
|
|
// if (joJVSetupCCs != null)
|
|
// return joJVSetupCCs;
|
|
// #endregion
|
|
// try
|
|
// {
|
|
// joJVSetupCCs = Service.Get();
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
// #region Cache Footer
|
|
// _cache.Add(joJVSetupCCs, "Get");
|
|
// #endregion
|
|
// return joJVSetupCCs;
|
|
//}
|
|
//public static List<JVSetupCC> GetByJVSetup(ID nJVSetupID)
|
|
//{
|
|
// #region Cache Header
|
|
// List<JVSetupCC> jvsetupCCs = _cache["GetByJVSetup", nJVSetupID] as List<JVSetupCC>;
|
|
// if (jvsetupCCs != null)
|
|
// return jvsetupCCs;
|
|
// #endregion
|
|
// try
|
|
// {
|
|
// jvsetupCCs = Service.GetByJVSetup(nJVSetupID);
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
// #region Cache Footer
|
|
// _cache.Add(jvsetupCCs, "GetByJVSetup", nJVSetupID);
|
|
// #endregion
|
|
// return jvsetupCCs;
|
|
//}
|
|
|
|
//public ID Save()
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
// return JVSetupCC.Service.Save(this);
|
|
//}
|
|
|
|
//public void Delete(ID id)
|
|
//{
|
|
// JVSetupCC.Service.Delete(id);
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
//#region Service Factory
|
|
//internal static IJVSetupCCService Service
|
|
//{
|
|
// get
|
|
// {
|
|
// return Services.Factory.CreateService<IJVSetupCCService>(typeof(IJVSetupCCService));
|
|
// }
|
|
//}
|
|
//#endregion
|
|
}
|
|
#endregion
|
|
|
|
#region IJVSetupDetail Service
|
|
public interface IJVSetupCCService
|
|
{
|
|
JVSetupCC Get(int id);
|
|
List<JVSetupCC> Get();
|
|
List<JVSetupCC> GetByJVSetup(int nJVSetupID);
|
|
int Save(JVSetupCC oJVSetupDetail);
|
|
void Delete(int id);
|
|
}
|
|
#endregion
|
|
}
|