222 lines
5.4 KiB
C#
222 lines
5.4 KiB
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Text;
|
||
|
|
using System.Data;
|
||
|
|
using Ease.Core;
|
||
|
|
using Ease.CoreV35;
|
||
|
|
using Ease.Core.Utility;
|
||
|
|
|
||
|
|
namespace HRM.BO
|
||
|
|
{
|
||
|
|
#region GLTranUserRecord
|
||
|
|
[Serializable]
|
||
|
|
public class GLTranUserRecord : BasicBaseObject
|
||
|
|
{
|
||
|
|
|
||
|
|
#region Constructor
|
||
|
|
public GLTranUserRecord()
|
||
|
|
{
|
||
|
|
|
||
|
|
GLID = 0;
|
||
|
|
GLTranID = 0;
|
||
|
|
GLTranDetailID = 0;
|
||
|
|
UserObject1ID = 0;
|
||
|
|
UserRecord1ID = 0;
|
||
|
|
UserObject2ID = 0;
|
||
|
|
UserRecord2ID = 0;
|
||
|
|
|
||
|
|
//_userObject1 = null;
|
||
|
|
//_userObject2 = null;
|
||
|
|
//_userRecord1 = null;
|
||
|
|
//_userRecord2 = null;
|
||
|
|
Description = string.Empty;
|
||
|
|
Amount = 0;
|
||
|
|
OperationalStatus = EnumOperationalStatus.None;
|
||
|
|
Member = null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public GLTranUserRecord(int glid, int gltranid, int glgrandetailid, int userobjectID,
|
||
|
|
int userrecordid, double amount)
|
||
|
|
{
|
||
|
|
|
||
|
|
GLID = glid;
|
||
|
|
GLTranID = gltranid;
|
||
|
|
GLTranDetailID = glgrandetailid;
|
||
|
|
UserObject1ID = userobjectID;
|
||
|
|
UserRecord1ID = userrecordid;
|
||
|
|
Amount = amount;
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Properties
|
||
|
|
|
||
|
|
#region GLID
|
||
|
|
public int GLID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLTranID
|
||
|
|
public int GLTranID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLTranDetailID
|
||
|
|
public int GLTranDetailID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserObject1ID
|
||
|
|
public int UserObject1ID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserObjectOne
|
||
|
|
//private UserObject _userObject1;
|
||
|
|
//public UserObject UserObject1
|
||
|
|
//{
|
||
|
|
// get
|
||
|
|
// {
|
||
|
|
// if (_userObject1 == null)
|
||
|
|
// {
|
||
|
|
// _userObject1 = new UserObject();
|
||
|
|
// _userObject1 = _userObject1.Get(_nUserObject1ID);
|
||
|
|
// }
|
||
|
|
// return _userObject1;
|
||
|
|
// }
|
||
|
|
// set
|
||
|
|
// {
|
||
|
|
// _userObject1 = value;
|
||
|
|
// }
|
||
|
|
//}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserRecord1ID
|
||
|
|
public int UserRecord1ID { get; set; }
|
||
|
|
public UserRecord UserRecord1 { get;set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserRecordOne
|
||
|
|
//private UserRecord _userRecord1;
|
||
|
|
//public UserRecord UserRecord1
|
||
|
|
//{
|
||
|
|
// get
|
||
|
|
// {
|
||
|
|
// if (_userRecord1 == null)
|
||
|
|
// {
|
||
|
|
// _userRecord1 = new UserRecord();
|
||
|
|
// _userRecord1 = _userRecord1.Get(_nUserRecord1ID);
|
||
|
|
// }
|
||
|
|
// return _userRecord1;
|
||
|
|
// }
|
||
|
|
// set
|
||
|
|
// {
|
||
|
|
// _userRecord1 = value;
|
||
|
|
// }
|
||
|
|
//}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
|
||
|
|
#region Member
|
||
|
|
public Member Member{ get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserObject2ID
|
||
|
|
public int? UserObject2ID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserObjectTwo
|
||
|
|
//private UserObject _userObject2;
|
||
|
|
//public UserObject UserObject2
|
||
|
|
//{
|
||
|
|
// get
|
||
|
|
// {
|
||
|
|
// if (_userObject2 == null)
|
||
|
|
// {
|
||
|
|
// _userObject2 = new UserObject();
|
||
|
|
// _userObject2 = _userObject2.Get(_nUserObject2ID);
|
||
|
|
// }
|
||
|
|
// return _userObject2;
|
||
|
|
// }
|
||
|
|
//}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserRecord2ID
|
||
|
|
public int? UserRecord2ID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region UserRecordTwo
|
||
|
|
//private UserRecord _userRecord2;
|
||
|
|
//public UserRecord UserRecord2
|
||
|
|
//{
|
||
|
|
// get
|
||
|
|
// {
|
||
|
|
// if (_userRecord2 == null)
|
||
|
|
// {
|
||
|
|
// _userRecord2 = new UserRecord();
|
||
|
|
// _userRecord2 = _userRecord2.Get(_nUserRecord2ID);
|
||
|
|
// }
|
||
|
|
// return _userRecord2;
|
||
|
|
// }
|
||
|
|
//}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Description
|
||
|
|
public string? Description { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Amount
|
||
|
|
public double? Amount { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#region Property OperationalStatus : EnumOperationalStatus
|
||
|
|
|
||
|
|
public EnumOperationalStatus OperationalStatus { get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Functions
|
||
|
|
//public GLTranUserRecord Get( ID nGLTranUserRecordID)
|
||
|
|
//{
|
||
|
|
// GLTranUserRecord oGLTranUserRecord = null;
|
||
|
|
// #region Cache Header
|
||
|
|
// oGLTranUserRecord = (GLTranUserRecord)_cache["Get", nGLTranUserRecordID];
|
||
|
|
// if (oGLTranUserRecord != null)
|
||
|
|
// return oGLTranUserRecord;
|
||
|
|
// #endregion
|
||
|
|
// oGLTranUserRecord = GLTranUserRecord.Service.Get(nGLTranUserRecordID);
|
||
|
|
// #region Cache Footer
|
||
|
|
// _cache.Add(oGLTranUserRecord, "Get", nGLTranUserRecordID);
|
||
|
|
// #endregion
|
||
|
|
// return oGLTranUserRecord;
|
||
|
|
//}
|
||
|
|
|
||
|
|
//public ID Save()
|
||
|
|
//{
|
||
|
|
// return GLTranUserRecord.Service.Save(this);
|
||
|
|
//}
|
||
|
|
|
||
|
|
//public void Delete()
|
||
|
|
//{
|
||
|
|
// GLTranUserRecord.Service.Delete(ID);
|
||
|
|
//}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region IGLTranUserRecord Service
|
||
|
|
public interface IGLTranUserRecordService
|
||
|
|
{
|
||
|
|
List<GLTranUserRecord> GetByGLID(int gLID);
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
}
|