53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using Ease.Core.DataAccess;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class FMLoanAttachment : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public FMLoanAttachment()
|
|
{
|
|
LoanAttachmentID = 0;
|
|
LoanAppID = 0;
|
|
LoanID = 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 int? LoanID { 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
|
|
}
|
|
#region IFMLoanAttachmentService
|
|
public interface IFMLoanAttachmentService
|
|
{
|
|
void Save(TransactionContext tc, FMLoanAttachment attachment );
|
|
FMLoanAttachment GetByLoanID(TransactionContext tc, int loanID);
|
|
FMLoanAttachment GetByLoanID(int loanID);
|
|
FMLoanAttachment GetByLoanAppID(TransactionContext tc, int loanAppID);
|
|
void DeleteByLoanID (TransactionContext tc, int loanID);
|
|
void DeleteByLoanAppID (TransactionContext tc, int loanAppID);
|
|
}
|
|
#endregion
|
|
}
|