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

365 lines
11 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Ease.Core;
namespace HRM.BO
{
[Serializable]
public class BadliDailyPayment : BasicBaseObject
{
#region Constructor
public BadliDailyPayment()
{
_itemID = 0;
_description = string.Empty;
_amount = 0;
_changedAmount = 0;
_paidDate = DateTime.MinValue;
_badliRecruitID = 0;
_badliProcessID = 0;
}
#endregion
#region Properties
#region ItemID : ID
private int _itemID;
public int ItemID
{
get { return _itemID; }
set
{
//base.OnPropertyChange<ID>("ItemID", _itemID, value);
_itemID = value;
}
}
#endregion
#region ItemType : EnumPayrollComponentType
private enumPayrollComponentType _itemType;
public enumPayrollComponentType ItemType
{
get { return _itemType; }
set
{
//base.OnPropertyChange<short>("ItemType", (short)_itemType, (short)value);
_itemType = value;
}
}
#endregion
#region Description : string
private string _description;
public string Description
{
get { return _description; }
set
{
//base.OnPropertyChange<string>("Description", _description, value);
_description = value;
}
}
#endregion
#region ChangedAmount : double
private double _changedAmount;
public double ChangedAmount
{
get { return _changedAmount; }
set
{
//base.OnPropertyChange<double>("ChangedAmount", _changedAmount, value);
_changedAmount = value;
}
}
#endregion
#region Amount : double
private double _amount;
public double Amount
{
get { return _amount; }
set
{
//base.OnPropertyChange<double>("Amount", _amount, value);
_amount = value;
}
}
#endregion
#region BadliRecruitID : ID
private int _badliRecruitID;
public int BadliRecruitID
{
get { return _badliRecruitID; }
set
{
//base.OnPropertyChange<ID>("BadliRecruitID", _badliRecruitID, value);
_badliRecruitID = value;
}
}
#endregion
#region BadliProcessID : ID
private int _badliProcessID;
public int BadliProcessID
{
get { return _badliProcessID; }
set
{
//base.OnPropertyChange<ID>("BadliProcessID", _badliProcessID, value);
_badliProcessID = value;
}
}
#endregion
#region PaidDate : DateTime
private DateTime _paidDate;
public DateTime PaidDate
{
get { return _paidDate; }
set
{
//base.OnPropertyChange<DateTime>("PaidDate", _paidDate, value);
_paidDate = value;
}
}
#endregion
#endregion
//#region Service Factory IBadliDailyPaymentService : IAccessCardService
//internal static IBadliDailyPaymentService Service
//{
// get { return Services.Factory.CreateService<IBadliDailyPaymentService>(typeof(IBadliDailyPaymentService)); }
//}
//#endregion
//public static ObjectsTemplate<BadliDailyPayment> Get()
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(ID badliRecruitId)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(badliRecruitId);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(DateTime paymentDate)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(paymentDate);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(ID employeeID, DateTime paymentDate)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(employeeID, paymentDate);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(DateTime fromDate, DateTime todate, string badliRecruitId)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(fromDate, todate, badliRecruitId);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(DateTime fromDate, DateTime todate)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(fromDate, todate);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static ObjectsTemplate<BadliDailyPayment> Get(DateTime paidDate, string badliRecruitId)
//{
// #region Cache Header
// ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments = _cache["Get"] as ObjectsTemplate<BadliDailyPayment>;
// if (oBadliDailyPayments != null)
// return oBadliDailyPayments;
// #endregion
// try
// {
// oBadliDailyPayments = Service.Get(paidDate, badliRecruitId);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oBadliDailyPayments, "Get");
// #endregion
// return oBadliDailyPayments;
//}
//public static DataSet GetBadliWeeklyPaymentSheet(string Ids, DateTime fromDate, DateTime toDate)
//{
// DataSet ds = null;
// try
// {
// ds = Service.GetBadliWeeklyPaymentSheet(Ids, fromDate, toDate);
// }
// catch (Exception e)
// {
// throw new Exception(e.Message, e);
// }
// return ds;
//}
//public void Save(ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments)
//{
// oBadliDailyPayments.ForEach(x => x.SetAuditTrailProperties());
// BadliDailyPayment.Service.Save(oBadliDailyPayments);
//}
//public static void SaveAuto(ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments, ObjectsTemplate<BadliDailyRecruit> badliRecruit)
//{
// foreach (BadliDailyPayment bPayment in oBadliDailyPayments)
// {
// bPayment.SetAuditTrailProperties();
// }
// BadliDailyPayment.Service.SaveAuto(oBadliDailyPayments, badliRecruit);
//}
}
//public interface IBadliDailyPaymentService
//{
// ObjectsTemplate<BadliDailyPayment> Get();
// ObjectsTemplate<BadliDailyPayment> Get(ID badliRecruitId);
// DataSet GetBadliWeeklyPaymentSheet(string ids, DateTime fromDate, DateTime toDate);
// ObjectsTemplate<BadliDailyPayment> Get(DateTime paymentDate);
// ObjectsTemplate<BadliDailyPayment> Get(DateTime fromDate, DateTime todate);
// ObjectsTemplate<BadliDailyPayment> Get(DateTime fromDate, DateTime todate, string badliRecruitId);
// ObjectsTemplate<BadliDailyPayment> Get(ID employeeID, DateTime paymentDate);
// void Save(ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments);
// ObjectsTemplate<BadliDailyPayment> Get(DateTime paidDate, string badliRecruitId);
// void SaveAuto(ObjectsTemplate<BadliDailyPayment> oBadliDailyPayments, ObjectsTemplate<BadliDailyRecruit> badliRecruit);
//}
}