EchoTex_Payroll/HRM.BO/FinalSettlement/FSHead.cs

235 lines
5.3 KiB
C#
Raw Permalink 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 FSHead
public class FSHead : BasicBaseObject
{
#region Constructor
public FSHead()
{
Code = string.Empty;
Name = string.Empty;
IsTaxable = false;
IsLoan = false;
IsPaymenttoVendor = false;
Remarks = string.Empty;
_status = EnumStatus.Active;
}
#endregion
public string Code { get; set; }
public string Name { get; set; }
public string Remarks { get; set; }
public bool? IsTaxable { get; set; }
public bool IsLoan { get; set; }
public bool IsPaymenttoVendor { get; set; }
public int? EmpID { get; set; }
public int? EmpIDTwo { get; set; }
public bool? IsFinal { get; set; }
public string TypeString { get; set; }
public EnumFSItemCode? Type { get; set; }
//#region Properties
//#region code : string
//private string _code;
//public string Code
//{
// get { return _code; }
// set
// {
// _code = value;
// }
//}
//#endregion
//#region name : string
//private string _name;
//public string Name
//{
// get { return _name; }
// set
// {
// _name = value;
// }
//}
//#endregion
//#region Remarks : string
//private string _remarks;
//public string Remarks
//{
// get { return _remarks; }
// set
// {
// _remarks = value;
// }
//}
//#endregion
//#region IsTaxable : bool
//private bool _isTaxable;
//public bool IsTaxable
//{
// get { return _isTaxable; }
// set
// {
// _isTaxable = value;
// }
//}
//#endregion
//#region IsLoan : bool
//private bool _isLoan;
//public bool IsLoan
//{
// get { return _isLoan; }
// set
// {
// _isLoan = value;
// }
//}
//#endregion
//#region IsPaymenttoVendor : bool
//private bool _isPaymenttoVendor;
//public bool IsPaymenttoVendor
//{
// get { return _isPaymenttoVendor; }
// set
// {
// _isPaymenttoVendor = value;
// }
//}
//#endregion
////#region Service Factory IBankService : IBankService
////internal static IFSHeadService Service
////{
//// get { return Services.Factory.CreateService<IFSHeadService>(typeof(IFSHeadService)); }
////}
////#endregion
//#endregion
//#region Functions
//public static FSHead Get(int nID)
//{
// FSHead oFSHead = null;
// #region Cache Header
// oFSHead = (FSHead)_cache["Get", nID];
// if (oFSHead != null)
// return oFSHead;
// #endregion
// oFSHead = FSHead.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oFSHead, "Get", nID);
// #endregion
// return oFSHead;
//}
//public static List<FSHead> Get()
//{
// #region Cache Header
// List<FSHead> FSHeads = _cache["Get"] as List<FSHead>;
// if (FSHeads != null)
// return FSHeads;
// #endregion
// try
// {
// FSHeads = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(FSHeads, "Get");
// #endregion
// return FSHeads;
//}
//public static List<FSHead> Get(EnumStatus status)
//{
// #region Cache Header
// List<FSHead> FSHeads = _cache["Get", status] as List<FSHead>;
// if (FSHeads != null)
// return FSHeads;
// #endregion
// try
// {
// FSHeads = Service.Get(status);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(FSHeads, "Get", status);
// #endregion
// return FSHeads;
//}
//public int Save()
//{
// this.SetAuditTrailProperties();
// return FSHead.Service.Save(this);
//}
//public void Delete(int id)
//{
// FSHead.Service.Delete(id);
//}
//#endregion
}
#endregion
#region IFSHead Service
public interface IFSHeadService
{
FSHead Get(int id);
List<FSHead> Get();
List<FSHead> Get(EnumStatus status);
int Save(FSHead item);
void Delete(int id);
List<FSHead> GetByEmpId(int currentEmployeeId);
}
#endregion
}