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

118 lines
3.3 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 Class LoanTransaction
[Serializable]
public class FMLoanTransaction : BasicBaseObject
{
#region Constructor
public FMLoanTransaction()
{
CustomerID = 0;
LoanID = 0;
TranType = EnumFMLoanTransactionType.None;
Amount = 0;
LoanScheduleID = 0;
PaymentDate = DateTime.MinValue;
FundTypeID = 0;
}
#endregion
#region Properties
#region Property CustomerID : ID
public int CustomerID { get; set; }
#endregion Property CustomerID : ID
#region Property LoanCustomer : LoanCustomer
public FMLoanCustomer LoanCustomer { get; set; }
#endregion Property LoanCustomer : LoanCustomer
#region Property LoanID : ID
public int LoanID { get; set; }
#endregion Property LoanID : ID
#region Property Loan : Loan
public FMLoan Loan { get; set; }
#endregion Property Loan : Loan
#region Property TranType : EnumLoanTransactionType
public EnumFMLoanTransactionType TranType { get; set; }
#endregion Property TranType : EnumLoanTransactionType
#region Property Amount : double
public double Amount { get; set; }
#endregion Property Amount : double
#region Property LoanScheduleID : ID
public int LoanScheduleID { get; set; }
#endregion Property LoanScheduleID : ID
#region Property LoanSchedule : LoanSchedule
public FMLoanSchedule LoanSchedule { get; set; }
#endregion Property Loan : Loan
#region Property PaymentDate : DateTime
public DateTime PaymentDate { get; set; }
#endregion Property PaymentDate : DateTime
#region Property FundTypeID : ID
public int FundTypeID { get; set; }
#endregion Property FundTypeID : ID
#endregion
public FMLoanTransaction CreateLoanTransaction(FMLoanTransaction loanTran, int cusID, int loanID, EnumFMLoanTransactionType tranType, double amount, int scheduleID, DateTime paymentDate, int createdBy, DateTime createdDate)
{
FMLoanTransaction loanTransaction = loanTran;
try
{
loanTransaction.CustomerID = cusID;
loanTransaction.LoanID = loanID;
loanTransaction.TranType = tranType;
loanTransaction.Amount = amount;
loanTransaction.LoanScheduleID = scheduleID;
loanTransaction.PaymentDate = paymentDate;
loanTransaction.CreatedBy = createdBy;
loanTransaction.CreatedDate = createdDate;
}
catch (Exception e)
{
throw e;
}
return loanTransaction;
}
}
#endregion
public interface IFMLoanTransactionService
{
void Save(FMLoanTransaction loanTransaction);
void Delete(int loanTransactionID);
FMLoanTransaction Get(int loanTransactionID);
DataTable GetTable();
List<FMLoanTransaction> Get();
}
}