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 LoanLog [Serializable] public class FMLoanLog : BasicBaseObject //,AuditTrailBase { #region Constructor public FMLoanLog() { LoanCategoryID = 0; LoanID = 0; LoanCustomerID = 0; LoanNo = string.Empty; EmpCode = string.Empty; Rate = 0.0; FlatRate = 0.0; NoOfMonth = 0; FromMonth = DateTime.MinValue; FundTypeID = 0; // ActivityDate = GlobalFunctions.GetServerDate(); ActivityDate = DateTime.MinValue; } #endregion #region Property #region Property LoanCategoryID : ID public int LoanCategoryID { get; set; } #endregion Property LoanCategoryID : ID #region Property LoanID : ID public int LoanID { get; set; } #endregion Property LoanID : ID #region Property LoanCustomerID : ID public int LoanCustomerID { get; set; } #endregion Property LoanCustomerID : ID #region Property LoanNo : string public string LoanNo { get; set; } #endregion Property LoanNo : string #region Property EmpCode : string public string EmpCode { get; set; } #endregion Property EmpCode : string #region Property ActivityDate : DateTime public DateTime ActivityDate { get; set; } #endregion Property ActivityDate : DateTime #region Property Rate : double public double Rate { get; set; } #endregion Property Rate : double #region Property FlatRate : double public double FlatRate { get; set; } #endregion Property FlatRate : double #region Property NoOfMonth : int public int NoOfMonth { get; set; } #endregion Property NoOfMonth : int #region Property FundTypeID : ID public int FundTypeID { get; set; } #endregion Property FundTypeID : ID #region Property Activity : EnumLoanActivity public EnumFMLoanActivity Activity { get; set; } #endregion Property Activity : EnumLoanActivity #region Property FromMonth : DateTime public DateTime FromMonth { get; set; } #endregion Property FromMonth : DateTime #endregion public FMLoanLog CreateLog(FMLoanLog loanLog, int loancatID, int loanID, string loanNo, int loanCusID, string empCode, int createdBy, DateTime createdDate, EnumFMLoanActivity activity, int noOfMomth, DateTime fromDate, double rate) { FMLoanLog log = loanLog; log.LoanCategoryID = loancatID; log.LoanID = loanID; log.LoanNo = loanNo; log.LoanCustomerID = loancatID; log.EmpCode = empCode; log.CreatedBy = createdBy; log.CreatedDate = createdDate; log.Activity = activity; log.NoOfMonth = noOfMomth; log.FromMonth = fromDate; log.Rate = rate; return log; } } #endregion }