EchoTex_Payroll/HRM.BO/Fund/Investment/InvestmentLog.cs

290 lines
6.0 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Linq;
using System.Data;
using System.Collections.Generic;
namespace HRM.BO
{
public class InvestmentLog : AuditTrailBase
{
#region Constructor
public InvestmentLog()
: base()
{
}
#endregion Constructor
#region Properties
#region Property InvestmentID : ID
public int InvestmentID
{
get;set;
}
#endregion Property InvestmentID : ID
#region Property ProjectID : ID
public int ProjectID
{
get; set;
}
#endregion Property ProjectID : ID
#region Property ActivityID : ID
public int ActivityID
{
get; set;
}
#endregion Property ActivityID : ID
#region Property FMActivityID : ID
public int FMActivityID
{
get; set;
}
#endregion Property FMActivityID : ID
#region Property TranDate : DateTime
public DateTime TranDate
{
get; set;
}
#endregion Property TranDate : DateTime
#region Property PrincipalAmount : double
public double PrincipalAmount
{
get; set;
}
#endregion Property PrincipalAmount : double
#region Property AccountNo : string
public string AccountNo
{
get; set;
}
#endregion Property AccountNo : string
#region Property BankID : ID
public int BankID
{
get; set;
}
#endregion Property BankID : ID
#region Property BranchID : ID
public int BranchID
{
get; set;
}
#endregion Property BranchID : ID
#region Property CategoryID : ID
public int CategoryID
{
get; set;
}
#endregion Property CategoryID : ID
#region Property CertificateNo : string
public string CertificateNo
{
get; set;
}
#endregion Property CertificateNo : string
#region Property RefID : ID
public int RefID
{
get; set;
}
#endregion Property RefID : ID
#region Property PreStatus : int
public int PreStatus
{
get; set;
}
#endregion Property PreStatus : int
#region Property CurrentStatus : int
public int CurrentStatus
{
get; set;
}
#endregion Property CurrentStatus : int
#endregion Properties
//#region Service Factory IInvestmentLogService : IInvestmentLogService
//internal static IInvestmentLogService Service
//{
// get { return Services.Factory.CreateService<IInvestmentLogService>(typeof(IInvestmentLogService)); }
//}
//#endregion
#region Function
//public void Save()
//{
// try
// {
// Service.Save(this);
// CacheInfo.ClearCache(typeof(InvestmentLog).FullName);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
//}
//public Investment Get(ID id)
//{
// #region Cache Header
// Investment investment = _cache["Get", id] as Investment;
// if (investment != null)
// return investment;
// #endregion
// try
// {
// investment = Service.Get(id);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(investment, "Get", id);
// #endregion
// return investment;
//}
//public static List<Investment> Get()
//{
// #region Cache Header
// List<Investment> investments = _cache["Get"] as List<Investment>;
// if (investments != null)
// return investments;
// #endregion
// try
// {
// investments = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(investments, "Get");
// #endregion
// return investments;
//}
//public static DataTable GetTable()
//{
// try
// {
// return Service.GetTable();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
//}
//public void Delete(ID investmentID)
//{
// try
// {
// Service.Delete(investmentID);
// //Clear Cache
// CacheInfo.ClearCache(typeof(Investment).FullName);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
//}
#endregion Function
}
#region Class InvestmentLogs
public class InvestmentLogs : List<InvestmentLog>
{
#region Constructor
public InvestmentLogs()
{
}
#endregion
public InvestmentLog GetItemByInvestmentLog(int investmentLogID)
{
return this.Find(delegate (InvestmentLog item) { return item.ID == investmentLogID; });
}
}
#endregion
//public interface IInvestmentLogService
//{
// void Save(InvestmentLog investmentLog);
// //void Delete(ID investmentID);
// //Investment Get(ID investmentID);
// //DataTable GetTable();
// //List<Investment> Get();
//}
}