123 lines
3.0 KiB
C#
123 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Ease.Core;
|
|
using Ease.Core.Model;
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region Loan Parameter
|
|
|
|
|
|
public class LoanEmployeeDoc : AuditTrailBase
|
|
{
|
|
|
|
#region Constructor
|
|
public LoanEmployeeDoc()
|
|
{
|
|
//_hrDocID = null;
|
|
//_loanIssueID = null;
|
|
//_employeeID = null;
|
|
//_hrID = null;
|
|
//_hrReceiveDate = DateTime.MinValue;
|
|
//_fileNo = string.Empty;
|
|
//_safeNo = string.Empty;
|
|
//_hrRemarks = string.Empty;
|
|
//_empReceiveDate = DateTime.MinValue;
|
|
//_empReceiveRemarks = string.Empty;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
public int HRDocID { get; set; }
|
|
|
|
public int LoanIssueID { get; set; }
|
|
|
|
public int EmployeeID { get; set; }
|
|
|
|
public int HRID { get; set; }
|
|
|
|
public DateTime HRReceiveDate { get; set; }
|
|
|
|
public string FileNo { get; set; }
|
|
|
|
public string SafeNo { get; set; }
|
|
|
|
public string HRRemarks { get; set; }
|
|
|
|
public DateTime EmpReceiveDate { get; set; }
|
|
|
|
public string EmpReceiveRemarks { get; set; }
|
|
#endregion
|
|
|
|
//#region Service Factory ILoanEmployeeDocService : ILoanEmployeeDocService
|
|
|
|
//internal static ILoanEmployeeDocService Service
|
|
//{
|
|
// get { return Services.Factory.CreateService<ILoanEmployeeDocService>(typeof(ILoanEmployeeDocService)); }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
//#region Functions
|
|
//public static LoanEmployeeDoc Get(ID nID)
|
|
//{
|
|
// LoanEmployeeDoc oLoanEmployeeDoc = null;
|
|
// #region Cache Header
|
|
// oLoanEmployeeDoc = (LoanEmployeeDoc)_cache["Get", nID];
|
|
// if (oLoanEmployeeDoc != null)
|
|
// return oLoanEmployeeDoc;
|
|
// #endregion
|
|
// oLoanEmployeeDoc = LoanEmployeeDoc.Service.Get(nID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oLoanEmployeeDoc, "Get", nID);
|
|
// #endregion
|
|
// return oLoanEmployeeDoc;
|
|
//}
|
|
|
|
|
|
//public static List<LoanEmployeeDoc> GetbyIssueId(ID issueid)
|
|
//{
|
|
// List<LoanEmployeeDoc> loanEmployeeDocs = null;
|
|
|
|
|
|
// try
|
|
// {
|
|
// loanEmployeeDocs = Service.GetbyIssueId(issueid);
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
|
|
|
|
|
|
// return loanEmployeeDocs;
|
|
//}
|
|
|
|
|
|
//public void Delete()
|
|
//{
|
|
// LoanEmployeeDoc.Service.Delete(ID);
|
|
//}
|
|
//#endregion
|
|
}
|
|
#endregion
|
|
|
|
#region ILoanEmployeeDocService Service
|
|
|
|
public interface ILoanEmployeeDocService
|
|
{
|
|
LoanEmployeeDoc Get(int id);
|
|
List<LoanEmployeeDoc> GetbyIssueId(int issueid);
|
|
void Delete(int id);
|
|
}
|
|
|
|
#endregion
|
|
}
|