HRM-10/HRM.BO/Fund/Investment/InvestmentInfo.cs
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

462 lines
11 KiB
C#

using System;
using System.Data;
using System.Collections.Generic;
namespace HRM.BO
{
public class InvestmentInfo : AuditTrailBase
{
#region Constructor
public InvestmentInfo() : base()
{
AccountNo = string.Empty;
BankID = 0;
BranchID =0;
CategoryID = 0;
GLTranID = 0;
FundTypeID = 0;
CertificateNo = string.Empty;
CurrentStatus = 0;
Description = string.Empty;
Amount = 0;
TotalProAccruedAmount = 0;
LastProAccruedDate = DateTime.MinValue;
MatureDate = DateTime.MinValue;
RefID = 0;
IssueDate = DateTime.MinValue;
VoucherDate = DateTime.MinValue;
Tenure = 0;
EncashmentDate = DateTime.MinValue;
RenewalDate = DateTime.MinValue;
UserRecordID = 0;
InvestmentCategoryObj = null;
BankName = string.Empty;
BranchName = string.Empty;
InvestmentCategoryCode = string.Empty;
InvestmentCategoryName = string.Empty;
TenureType = 0;
RenewalInterest = 0;
RenewalGLCode = string.Empty;
InvestmentSchedules = [];
InvestmentSignatorys = [];
InvestmentTrans = [];
AccrualInterest = 0;
}
#endregion Constructor
#region Properties
#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 BankName : string
public string BankName
{
get; set;
}
#endregion Property BankName : string
#region Property BranchID : ID
public int BranchID
{
get; set;
}
#endregion Property BranchID : ID
#region Property GLTranID : ID
public int? GLTranID
{
get; set;
}
#endregion Property GLTranID : ID
#region Property EncashGLTranID : ID
public int? EncashGLTranID
{
get; set;
}
#endregion Property EncashGLTranID : ID
#region Property BranchObj : Branch
//public Ease.PPIC.BO.Branch BranchObj
//{
// get; set;
//}
#endregion Property BranchObj : Branch
#region Property BranchName : string
public string BranchName
{
get; set;
}
#endregion Property BranchName : string
#region Property CategoryID : ID
public int CategoryID
{
get; set;
}
#endregion Property CategoryID : ID
#region Property InvestmentCategoryObj : InvestmentCategory
public InvestmentCategory InvestmentCategoryObj
{
get; set;
}
#endregion Property InvestmentCategoryObj : InvestmentCategory
#region Property InvestmentCategoryCode : string
public string InvestmentCategoryCode
{
get; set;
}
#endregion Property InvestmentCategoryCode : string
#region Property InvestmentCategoryName : string
public string InvestmentCategoryName
{
get; set;
}
#endregion Property InvestmentCategoryName : string
#region Property RenewalGLCode : string
public string RenewalGLCode
{
get; set;
}
#endregion Property RenewalGLCode : string
#region Property FundTypeID : ID
public int FundTypeID
{
get; set;
}
#endregion Property FundTypeID : ID
#region Property CertificateNo : string
public string CertificateNo
{
get; set;
}
#endregion Property CertificateNo : string
#region Property CurrentStatus : int
public EnumInvestmentStatus? CurrentStatus
{
get; set;
}
#endregion Property CurrentStatus : int
#region Property Description : string
public string Description
{
get; set;
}
#endregion Property Description : string
#region Property Amount : double
public double Amount
{
get; set;
}
#endregion Property Amount : double
#region Property RenewalInterest : double
public double RenewalInterest
{
get; set;
}
#endregion Property RenewalInterest : double
#region Property TotalProAccruedAmount : double
public double? TotalProAccruedAmount
{
get; set;
}
#endregion Property TotalProAccruedAmount : double
#region Property LastProAccruedDate : DateTime
public DateTime? LastProAccruedDate
{
get; set;
}
#endregion Property LastProAccruedDate : DateTime
#region Property MatureDate : DateTime
public DateTime MatureDate
{
get; set;
}
#endregion Property MatureDate : DateTime
#region Property RefID : ID
public int? RefID
{
get; set;
}
#endregion Property RefID : ID
#region Property IssueDate : DateTime
public DateTime IssueDate
{
get; set;
}
#endregion Property IssueDate : DateTime
#region Property Tenure : int
public int Tenure
{
get; set;
}
#endregion Property Tenure : int
#region Property CalculationBase : int
public int? CalculationBase
{
get; set;
}
#endregion Property TenureType : int
#region Property TenureType : int
public EnumTenureType TenureType
{
get; set;
}
#endregion Property TenureType : int
#region Property EncashmentDate : DateTime
public DateTime? EncashmentDate
{
get; set;
}
#endregion Property EncashmentDate : DateTime
#region Property RenewalDate : DateTime
public DateTime? RenewalDate
{
get; set;
}
#endregion Property RenewalDate : DateTime
#region Property UserRecordID : ID
public int? UserRecordID
{
get; set;
}
#endregion Property UserRecordID : ID
#region Property Accrual Interest : ID
public double AccrualInterest // view purpose
{
get; set;
}
public double AccrualInterestAIT // view purpose
{
get; set;
}
#endregion Property Accrual Interest : ID
#region Property VoucherDate : DateTime
public DateTime VoucherDate { get; set;}
#endregion Property VoucherDate : DateTime
#region Property InvestmentSchedulesCollection : InvestmentSchedules
public List<InvestmentSchedule> InvestmentSchedules
{
get; set;
}
#endregion Property InvestmentSchedulesCollection : InvestmentSchedules
#region Property InvestmentSignatorysCollection : InvestmentSignatorys
public List<InvestmentSignatory> InvestmentSignatorys
{
get; set;
}
#endregion Property InvestmentSignatorys : InvestmentSignatorys
#region Property InvestmentLog : InvestmentLogs
public List<InvestmentLog> InvestmentLogs
{
get; set;
}
#endregion Property InvestmentLog : InvestmentLogs
#region Property InvestmentTran : InvestmentTrans
public List<InvestmentTran> InvestmentTrans
{
get; set;
}
#endregion Property InvestmentTranCollection : InvestmentTrans
public double InvestmentRate{ get; set; }
#region Property Implementation of IFASTranObject and FASUserObject
public int iFASTranObject_ProcessID
{
get;
}
public int iFASTranObject_ActivityID
{
get;
}
public int iFASTranObject_SystemTranType
{
get;
}
public int iFASTranObject_ActivityRelated
{
get;
}
#endregion
#endregion Properties
}
public class InvestmentSignatory : AuditTrailBase
{
public InvestmentSignatory()
{
TrustyID = 0;
InvestmentID = 0;
FundTypeID = 0;
}
#region Property TrustyID : ID
public int TrustyID
{
get;set;
}
#endregion Property TrustyID : ID
#region Property InvestmentID : ID
public int InvestmentID
{
get; set;
}
#endregion Property InvestmentID : ID
#region Property FundTypeID : ID
public int FundTypeID
{
get;set;
}
#endregion Property FundTypeID : ID
}
public interface IInvestmentService
{
void Save(InvestmentInfo investment);
void ReschduleInterestRate(InvestmentInfo investment, bool isCollectionModified);
void Delete(int investmentID);
InvestmentInfo Get(int investmentID);
List<InvestmentInfo> GetBySearch(string sSearch, DateTime fromDate, DateTime toDate, int fundTypeID);
decimal GetAmountBySearch(string sSearch);
DataTable GetPFInvestment(DateTime Fromdate, DateTime toDate);
DataSet GetStatementInvestment(string ssta1glID, DateTime dtFirst, DateTime dtLast);
DataTable GetInvestmentBSP(DateTime Fromdate, DateTime toDate);
List<InvestmentInfo> GetBySearch(string sSearch, int fundTypeID);
public List<InvestmentInfo> GetAccrualInfo(string sSearch, int fundTypeID, DateTime processMonth);
public InvestmentInfo GetMonthlyInterestAmount(InvestmentInfo investmentInfo, DateTime dLastDateOfProcessMonth);
public List<InvestmentInfo> GetInvestments(DateTime Fromdate, DateTime toDate, int fundTypeID);
DataSet GetIndvInvestment(int investmentID, DateTime fromDate, DateTime toDate);
void SaveMonthlyBenifitsAccrual(InvestmentInfo investment);
void SaveInvestmentEncashment(InvestmentInfo investment);
void SaveInvestmentLiquidation(InvestmentInfo investment);
void SaveInvestmentRenewal(InvestmentInfo investment);
List<InvestmentInfo> GetByMatureDateAndStatus(string sSearch, int fundTypeID);
}
}