EchoTex_Payroll/HRM.BO/Common/FileAttachment.cs
2024-10-14 10:01:49 +06:00

89 lines
2.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region EmployeeHistory
public class FileAttachment : AuditTrailBase
{
#region Constructor
public FileAttachment()
{
}
#endregion
#region Properties
public int ReferenceID { get; set; }
public string OriginalFileName { get; set; }
public string File { get; set; }
public string FilePath { get; set; }
public EnumFileType FileType { get; set; }
public byte[] FileAsByteArray { get; set; }
public int? RefchildID { get; set; }
public string FileTobase64
{
get
{
if (FileAsByteArray != null)
return Convert.ToBase64String(FileAsByteArray);
else
return null;
}
}
public string PreviousFileTobase64
{
get; set;
}
public bool isCvExtractorModule { set; get; }
public string Extension { get; set; }
#endregion
}
public class UploadedFile : AuditTrailBase
{
public UploadedFile()
{
}
public long ReferenceID { get; set; }
public string OriginalFileName { get; set; }
public string FilePath { get; set; }
public string Extension { get; set; }
//public DateTime UploadDate { get; set; }
}
#endregion
#region IEmployeeHistory Service
public interface IFileAttachmentService
{
// EmployeeHistory Get(int id);
// EmployeeHistory GetByEmpID(int nEmpID);
// EmployeeHistory GetEmpLastHistory(int nEmpID);
// List<EmployeeHistory> Get();
// int Save(EmployeeHistory item, bool disAfterCurrmonth, bool continuePF);
//// void SaveConfirm(EmployeeHistory item,bool confirmEmpPF,EnumEmployeeOtherStatus IsConfirm);
// int DoContinue(EmployeeHistory item,bool continuePF);
// void Delete(int id);
// void DeleteByEmpID(int nEmpID);
// DataSet GetEmpHistory(DateTime dEffectDate, DateTime dEffectDate2, int payrollTypeID);
// DateTime GetDate(int nEmpID, EnumEmployeeStatus ParamID);
}
#endregion
}