EchoTex_Payroll/HRM.BO/Common/PhotoPath.cs

258 lines
6.0 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region PhotoPath
public class PhotoPath : BasicBaseObject
{
#region Constructor
public PhotoPath()
{
_employeePhoto = string.Empty;
_employeeSignature = string.Empty;
_nomineePhoto = string.Empty;
_nomineeSignature = string.Empty;
_hospitalizationPhoto = string.Empty;
_letterTempPath = string.Empty;
_trainingOutlinePathPath = string.Empty;
_ERRSFilePath = string.Empty;
_attendanceSourceFilePath = string.Empty;
_attendanceBackUpFilePath = string.Empty;
}
#endregion
#region Properties
#region EmployeePhoto : string
private string _employeePhoto;
public string EmployeePhoto
{
get { return _employeePhoto; }
set { _employeePhoto = value; }
}
#endregion
#region EmployeeSignature : string
private string _employeeSignature;
public string EmployeeSignature
{
get { return _employeeSignature; }
set { _employeeSignature = value; }
}
#endregion
#region NomineePhoto : string
private string _nomineePhoto;
public string NomineePhoto
{
get { return _nomineePhoto; }
set { _nomineePhoto = value; }
}
#endregion
#region NomineeSignature : string
private string _nomineeSignature;
public string NomineeSignature
{
get { return _nomineeSignature; }
set { _nomineeSignature = value; }
}
#endregion
#region HospitalizationPhoto : string
private string _hospitalizationPhoto;
public string HospitalizationPhoto
{
get { return _hospitalizationPhoto; }
set { _hospitalizationPhoto = value; }
}
#endregion
#region LetterTempPath : string
//Here we're using LetterTemplate as LeaveAttachment Path
private string _letterTempPath;
public string LetterTempPath
{
get { return _letterTempPath; }
set { _letterTempPath = value; }
}
#endregion
#region TrainingOutlinePath : string
private string _trainingOutlinePathPath;
public string TrainingOutlinePath
{
get { return _trainingOutlinePathPath; }
set { _trainingOutlinePathPath = value; }
}
#endregion
#region ERRSFilePath : string
private string _ERRSFilePath;
public string ERRSFilePath
{
get { return _ERRSFilePath; }
set { _ERRSFilePath = value; }
}
#endregion
#region AttendanceSourceFilePath : string
private string _attendanceSourceFilePath;
public string AttendanceSourceFilePath
{
get { return _attendanceSourceFilePath; }
set { _attendanceSourceFilePath = value; }
}
#endregion
#region AttendanceBackUpFilePath : string
private string _attendanceBackUpFilePath;
public string AttendanceBackUpFilePath
{
get { return _attendanceBackUpFilePath; }
set { _attendanceBackUpFilePath = value; }
}
#endregion
#region BadliAttendanceSourceFilePath : string
private string _badliAttendanceSourceFilePath;
public string BadliAttendanceSourceFilePath
{
get { return _badliAttendanceSourceFilePath; }
set { _badliAttendanceSourceFilePath = value; }
}
#endregion
#region BadliAttendanceBackUpFilePath : string
private string _badliAttendanceBackUpFilePath;
public string BadliAttendanceBackUpFilePath
{
get { return _badliAttendanceBackUpFilePath; }
set { _badliAttendanceBackUpFilePath = value; }
}
#endregion
//#region Service Factory IPhotoPathService : IPhotoPathService
//internal static IPhotoPathService Service
//{
// get { return Services.Factory.CreateService<IPhotoPathService>(typeof(IPhotoPathService)); }
//}
//#endregion
#endregion
//#region Functions
//public static PhotoPath Get(int nID)
//{
// PhotoPath oPhotoPath = null;
// #region Cache Header
// oPhotoPath = (PhotoPath)_cache["Get", nID];
// if (oPhotoPath != null)
// return oPhotoPath;
// #endregion
// oPhotoPath = PhotoPath.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oPhotoPath, "Get", nID);
// #endregion
// return oPhotoPath;
//}
//public static List<PhotoPath> Get()
//{
// #region Cache Header
// List<PhotoPath> PhotoPaths = _cache["Get"] as List<PhotoPath>;
// if (PhotoPaths != null)
// return PhotoPaths;
// #endregion
// try
// {
// PhotoPaths = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(PhotoPaths, "Get");
// #endregion
// return PhotoPaths;
//}
//public int Save()
//{
// base.SetAuditTrailProperties();
// return PhotoPath.Service.Save(this);
//}
//public void Delete(int id)
//{
// PhotoPath.Service.Delete(id);
//}
//#endregion
}
#endregion
#region IPhotoPath Service
public interface IPhotoPathService
{
PhotoPath Get(int id);
List<PhotoPath> Get();
int Save(PhotoPath item);
void Delete(int id);
}
#endregion
}