167 lines
3.9 KiB
C#
167 lines
3.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region GLTranDetail
|
|
[Serializable]
|
|
public class GLTranDetail : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public GLTranDetail()
|
|
{
|
|
|
|
GLTranID = 0;
|
|
GLID = 0;
|
|
IsContra = false;
|
|
ContraGLID = 0;
|
|
ChequeDate = DateTime.MinValue;
|
|
ChequeNo = string.Empty;
|
|
Transide = EnumTranSide.Debit;
|
|
Amount = 0;
|
|
DetailParamID = 0;
|
|
Description = string.Empty;
|
|
OperationalStatus = EnumOperationalStatus.None;
|
|
BankDetail = string.Empty;
|
|
InstrumentNo = string.Empty;
|
|
GLTranUserRecords = null;
|
|
GL = new GL();
|
|
}
|
|
|
|
public GLTranDetail(int glid, EnumTranSide side, double amount, string description )
|
|
{
|
|
GLID = glid;
|
|
Transide = side;
|
|
Amount = amount;
|
|
Description = description;
|
|
OperationalStatus = EnumOperationalStatus.None;
|
|
BankDetail = string.Empty;
|
|
InstrumentNo = string.Empty;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region GLTranID
|
|
public int GLTranID { get; set; }
|
|
#endregion
|
|
|
|
#region GL
|
|
#region ID
|
|
public int GLID { get; set; }
|
|
#endregion
|
|
|
|
#region Class
|
|
private GL _gl;
|
|
public GL GL { get; set; }
|
|
#endregion
|
|
|
|
#region Code
|
|
public string GLCode { get; set; }
|
|
#endregion
|
|
#endregion
|
|
|
|
#region Property IsContra : bool
|
|
public bool IsContra { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region ContraGL
|
|
|
|
#region Property ContraGLID : ID
|
|
public int? ContraGLID { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Class
|
|
private GL _contraGl;
|
|
public GL ContraGL { get; set; }
|
|
#endregion
|
|
|
|
#region Code
|
|
public string ContraGLCode { get; set; }
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region Property ChequeDate : DateTime
|
|
public DateTime? ChequeDate { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Property ChequeNo : string
|
|
public string? ChequeNo { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Transide
|
|
public EnumTranSide Transide { get; set; }
|
|
#endregion
|
|
|
|
#region Amount
|
|
public double Amount { get; set; }
|
|
#endregion
|
|
|
|
#region DetailParam
|
|
#region IDID;
|
|
public int? DetailParamID { get; set; }
|
|
#endregion
|
|
|
|
#region Class
|
|
//[NonSerialized]
|
|
//private DetailParam _detailParam;
|
|
//public DetailParam DetailParam { get; set; }
|
|
#endregion
|
|
#endregion
|
|
|
|
#region CostCenter
|
|
#region ID
|
|
//private int _nCostCenterID;
|
|
//public int CostCenterID { get; set; }
|
|
#endregion
|
|
|
|
#region Class
|
|
//[NonSerialized]
|
|
//private CostCenter _costCenter;
|
|
//public CostCenter CostCenter { get; set; }
|
|
#endregion
|
|
#endregion
|
|
|
|
#region Description
|
|
public string? Description { get; set; }
|
|
#endregion
|
|
|
|
#region BankDetail
|
|
public string? BankDetail { get; set; }
|
|
#endregion
|
|
|
|
#region InstrumentNo
|
|
public string? InstrumentNo { get; set; }
|
|
#endregion
|
|
|
|
#region OperationalStatus
|
|
public EnumOperationalStatus OperationalStatus { get; set; }
|
|
#endregion
|
|
|
|
#region GLTranUserRecords
|
|
public List<GLTranUserRecord> GLTranUserRecords { get; set; }
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region IGLTranDetail Service
|
|
public interface IGLTranDetailService
|
|
{
|
|
GLTranDetail Get(int id);
|
|
List<GLTranDetail> Get();
|
|
List<GLTranDetail> Get(int gLTranID, int glID);
|
|
List<GLTranDetail> GetByGLTranID(int gLTranID);
|
|
int Save(GLTranDetail oGLTranDetail);
|
|
void Delete(int id);
|
|
}
|
|
#endregion
|
|
} |