EchoTex_Payroll/HRM.BO/Fund/Loan/LoanLog.cs
2024-10-14 10:01:49 +06:00

240 lines
6.7 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 LoanLog
[Serializable]
public class LoanLog : BasicBaseObject //,AuditTrailBase
{
#region Constructor
public LoanLog()
{
LoanCategoryID = 0;
LoanID = 0;
LoanCustomerID = 0;
LoanNo = string.Empty;
EmpCode = string.Empty;
Rate = 0.0;
FlatRate = 0.0;
NoOfMonth = 0;
FromMonth = DateTime.MinValue;
ProjectID = 0;
// ActivityDate = GlobalFunctions.GetServerDate();
ActivityDate = DateTime.MinValue;
}
#endregion
#region Property
#region Property LoanCategoryID : ID
public int LoanCategoryID { get; set; }
//private ID _loanCategoryID;
//public ID LoanCategoryID
//{
// get { return _loanCategoryID; }
// set
// {
// base.OnPropertyChange<ID>("LoanCategoryID", _loanCategoryID, value);
// _loanCategoryID = value;
// }
//}
#endregion Property LoanCategoryID : ID
#region Property LoanID : ID
public int LoanID { get; set; }
//private ID _loanID;
//public ID LoanID
//{
// get { return _loanID; }
// set
// {
// base.OnPropertyChange<ID>("LoanID", _loanID, value);
// _loanID = value;
// }
//}
#endregion Property LoanID : ID
#region Property LoanCustomerID : ID
public int LoanCustomerID { get; set; }
//private ID _loanCustomerID;
//public ID LoanCustomerID
//{
// get { return _loanCustomerID; }
// set
// {
// base.OnPropertyChange<ID>("LoanCustomerID", _loanCustomerID, value);
// _loanCustomerID = value;
// }
//}
#endregion Property LoanCustomerID : ID
#region Property LoanNo : string
public string LoanNo { get; set; }
//private string _loanNo;
//public string LoanNo
//{
// get { return _loanNo; }
// set
// {
// base.OnPropertyChange<string>("LoanNo", _loanNo, value);
// _loanNo = value;
// }
//}
#endregion Property LoanNo : string
#region Property EmpCode : string
public string EmpCode { get; set; }
//private string _empCode;
//public string EmpCode
//{
// get { return _empCode; }
// set
// {
// base.OnPropertyChange<string>("EmpCode", _empCode, value);
// _empCode = value;
// }
//}
#endregion Property EmpCode : string
#region Property ActivityDate : DateTime
public DateTime ActivityDate { get; set; }
//private DateTime _activityDate;
//public DateTime ActivityDate
//{
// get { return _activityDate; }
// set
// {
// base.OnPropertyChange<DateTime>("ActivityDate", _activityDate, value);
// _activityDate = value;
// }
//}
#endregion Property ActivityDate : DateTime
#region Property Rate : double
public double Rate { get; set; }
//private double _rate;
//public double Rate
//{
// get { return _rate; }
// set
// {
// base.OnPropertyChange<double>("Rate", _rate, value);
// _rate = value;
// }
//}
#endregion Property Rate : double
#region Property FlatRate : double
public double FlatRate { get; set; }
//private double _flatRate;
//public double FlatRate
//{
// get { return _flatRate; }
// set
// {
// base.OnPropertyChange<double>("FlatRate", _flatRate, value);
// _flatRate = value;
// }
//}
#endregion Property FlatRate : double
#region Property NoOfMonth : int
public int NoOfMonth { get; set; }
//private int _noOfMonth;
//public int NoOfMonth
//{
// get { return _noOfMonth; }
// set
// {
// base.OnPropertyChange<int>("NoOfMonth", _noOfMonth, value);
// _noOfMonth = value;
// }
//}
#endregion Property NoOfMonth : int
#region Property ProjectID : ID
public int ProjectID { get; set; }
//private ID _projectID;
//public ID ProjectID
//{
// get { return _projectID; }
// set
// {
// base.OnPropertyChange<ID>("ProjectID", _projectID, value);
// _projectID = value;
// }
//}
#endregion Property ProjectID : ID
#region Property Activity : EnumLoanActivity
public EnumLoanActivity Activity { get; set; }
//private EnumLoanActivity _activity;
//public EnumLoanActivity Activity
//{
// get { return _activity; }
// set
// {
// base.OnPropertyChange<short>("Activity", (short)_activity, (short)value);
// _activity = value;
// }
//}
#endregion Property Activity : EnumLoanActivity
#region Property FromMonth : DateTime
public DateTime FromMonth { get; set; }
//private DateTime _fromMonth;
//public DateTime FromMonth
//{
// get { return _fromMonth; }
// set
// {
// base.OnPropertyChange<DateTime>("FromMonth", _fromMonth, value);
// _fromMonth = value;
// }
//}
#endregion Property FromMonth : DateTime
#endregion
public LoanLog CreateLog(LoanLog loanLog, int loancatID, int loanID, string loanNo, int loanCusID, string empCode, int createdBy, DateTime createdDate, EnumLoanActivity activity, int noOfMomth, DateTime fromDate, double rate)
{
LoanLog 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
}