121 lines
3.0 KiB
C#
121 lines
3.0 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 GL
|
||
|
|
[Serializable]
|
||
|
|
public class GL : BasicBaseObject
|
||
|
|
{
|
||
|
|
#region Constructor
|
||
|
|
public GL()
|
||
|
|
{
|
||
|
|
GLCode = string.Empty;
|
||
|
|
GLCodeAndDescription = string.Empty;
|
||
|
|
GLDescription = string.Empty;
|
||
|
|
GLType = EnumGLType.Asset;
|
||
|
|
GLHeadType=EnumGLHeadType.None;
|
||
|
|
OwnerID = 0;
|
||
|
|
TierNo=0;
|
||
|
|
PositionNo = 0;
|
||
|
|
LegacyCode=string.Empty;
|
||
|
|
Owner = null;
|
||
|
|
UserObjectID = 0;
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Properties
|
||
|
|
|
||
|
|
#region GLCOde
|
||
|
|
public string GLCode { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLCodeAndDescription
|
||
|
|
public string GLCodeAndDescription { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLDescription
|
||
|
|
public string GLDescription { get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLType
|
||
|
|
public EnumGLType GLType { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLHeadType
|
||
|
|
public EnumGLHeadType GLHeadType { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region OwnerID
|
||
|
|
public int? OwnerID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region IsActive
|
||
|
|
public bool IsActive { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region FundTypeID
|
||
|
|
public int FundTypeID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region TierNo
|
||
|
|
public int TierNo { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region PositionNo
|
||
|
|
public int PositionNo { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region LegacyCode
|
||
|
|
public string LegacyCode { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Owner
|
||
|
|
public GL Owner { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Children
|
||
|
|
public List<GL> Children { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Property ChildKeys : string
|
||
|
|
public string ChildKeys { get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region GLUserObjects
|
||
|
|
public int? UserObjectID { get; set; }
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#endregion Properties
|
||
|
|
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region IGL Service
|
||
|
|
public interface IGLService
|
||
|
|
{
|
||
|
|
//List<GL> GetByTier(int tierNo);
|
||
|
|
List<GL> GetByTier(int tierNo, int fundTypeID);
|
||
|
|
List<GL> GetGLByFundTypeID(int fundTypeID);
|
||
|
|
List<GL> GetRoot();
|
||
|
|
void Delete(int id);
|
||
|
|
GL Get(int id);
|
||
|
|
GL Get(string code);
|
||
|
|
int Save(GL data);
|
||
|
|
List<GL> GetGLByUserObjectID(int id, int FundTypeID);
|
||
|
|
DataTable GetGLs(int uptoLevel, int projectId);
|
||
|
|
List<GL> GetByTierNo(int tierNo, int fundTypeID);
|
||
|
|
DataTable GetCheckList(DateTime fromVoucherDate, DateTime toVoucherDate, int voucherType, int fundTypeID);
|
||
|
|
double GetBalancePL(int nGLID, DateTime fromDate, DateTime toDate);
|
||
|
|
List<GL> GetByOwnerID(int nOwnerID);
|
||
|
|
string GetMaxGLCodeByParent(int id);
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
}
|