156 lines
4.6 KiB
C#
156 lines
4.6 KiB
C#
using Ease.Core.DataAccess;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region LoanApplication
|
|
[Serializable]
|
|
public class LoanApplication: AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
public LoanApplication()
|
|
{
|
|
LoanAppNO = 0;
|
|
ApplyDate = DateTime.MinValue;
|
|
MemberID = 0;
|
|
EmployeeID = 0;
|
|
LoanAmount = 0.0m;
|
|
NoOfInstallment = 0;
|
|
InstallmentAmount = 0.0m;
|
|
Principal = 0.0m;
|
|
Interest = 0.0m;
|
|
purposeID = enumLoanPurpose.None;
|
|
Remarks = string.Empty;
|
|
FundJoining = DateTime.MinValue;
|
|
BasicSalary = 0.0m;
|
|
GrossSalary = 0.0m;
|
|
PreviouslyTakenLoan = false;
|
|
CreatedDate = DateTime.MinValue;
|
|
CreatedBy = 0;
|
|
AccountUserID = null;
|
|
AccountAppDate = null;
|
|
AccountsRemarks = string.Empty;
|
|
HRUserID = null;
|
|
HRApproveDate = null;
|
|
HRApproveRemarks = string.Empty;
|
|
TrusteesID = null;
|
|
TrusteesApproveDate = null;
|
|
TrusteesApproveRemarks = string.Empty;
|
|
|
|
}
|
|
#endregion Constructor
|
|
|
|
#region Properties
|
|
public int LoanAppID { get; set; }
|
|
public int LoanAppNO { get; set; }
|
|
public DateTime ApplyDate { get; set; }
|
|
public int MemberID { get; set; }
|
|
public int EmployeeID { get; set; }
|
|
public decimal LoanAmount { get; set; }
|
|
public int NoOfInstallment { get; set; }
|
|
public decimal InstallmentAmount { get; set; }
|
|
public decimal Principal { get; set; }
|
|
public decimal Interest { get; set; }
|
|
public enumLoanPurpose purposeID { get; set; }
|
|
public string Remarks { get; set; }
|
|
public DateTime FundJoining { get; set; }
|
|
public decimal BasicSalary { get; set; }
|
|
public decimal GrossSalary { get; set; }
|
|
public bool PreviouslyTakenLoan { get; set; }
|
|
public DateTime CreatedDate { get; set; }
|
|
public int CreatedBy { get; set; }
|
|
public int? AccountUserID { get; set; }
|
|
public DateTime? AccountAppDate { get; set; }
|
|
public string AccountsRemarks { get; set; }
|
|
public int? HRUserID { get; set; }
|
|
public DateTime? HRApproveDate { get; set; }
|
|
public string HRApproveRemarks { get; set; }
|
|
public int? TrusteesID { get; set; }
|
|
public DateTime? TrusteesApproveDate { get; set; }
|
|
public string TrusteesApproveRemarks { get; set; }
|
|
public string ConnectionString { get; set; }
|
|
|
|
#region Property LoanAttachments : LoanAttachment
|
|
|
|
private List<LoanAttachment> _loanAttachment;
|
|
|
|
public List<LoanAttachment> LoanAttachments
|
|
{
|
|
get
|
|
{
|
|
//if (_attnProcessRunDetail == null && !this.ID.IsUnassigned && this.ID.Integer > 0)
|
|
//{
|
|
// _attnProcessRunDetail = Service.GetAttnProcessRunDetails(this.ID);
|
|
|
|
//}
|
|
return _loanAttachment;
|
|
}
|
|
set { _loanAttachment = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion Properties
|
|
}
|
|
#endregion
|
|
|
|
#region Child Class
|
|
|
|
#region LoanAttachment
|
|
|
|
[Serializable]
|
|
public class LoanAttachment : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public LoanAttachment()
|
|
{
|
|
LoanAttachmentID = 0;
|
|
LoanAppID = 0;
|
|
LoanDocType = enumLoanDocType.None;
|
|
FileName = string.Empty;
|
|
FileDataString = string.Empty;
|
|
FileData = null;
|
|
uploadDate = DateTime.MinValue;
|
|
uploadBy = 0;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
public int LoanAttachmentID { get; set; }
|
|
public int LoanAppID { get; set; }
|
|
public enumLoanDocType LoanDocType { get; set; }
|
|
public string FileName { get; set; }
|
|
public byte[] FileData { get; set; }
|
|
public string FileDataString { get; set; }
|
|
public DateTime uploadDate { get; set; }
|
|
public int uploadBy { get; set; }
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region ILoanApplicationService
|
|
|
|
public interface ILoanApplicationService
|
|
{
|
|
LoanApplication Get(int EmpId);
|
|
DataSet GetLoanApplicationData(int EmpId);
|
|
List<LoanApplication> GetAll();
|
|
//List<LoanApplication> Get(Employee oEmployee);
|
|
int Save(LoanApplication item);
|
|
void Delete(int id);
|
|
}
|
|
|
|
#endregion
|
|
}
|