using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data; namespace HRM.BO { #region EmployeeBankAccount public class EmployeeBankAccount : AuditTrailBase { #region Constructor public EmployeeBankAccount() { EmployeeID = 0; EffectDate = DateTime.MinValue; AccountNo = string.Empty; BranchID = 0; AccountType = EnumBankAccountType.SalaryAccount; //Branch = null; //Employee = null; } #endregion #region Properties public int EmployeeID { get; set; } public DateTime EffectDate { get; set; } public string AccountNo { get; set; } public int BranchID { get; set; } public EnumBankAccountType AccountType { get; set; } //public Branch Branch { get; set; } public Employee Employee { get; set; } //#region Service Factory IEmployeeBankAccountService : IEmployeeBankAccountService //internal static IEmployeeBankAccountService Service //{ // get { return Services.Factory.CreateService(typeof(IEmployeeBankAccountService)); } //} //#endregion #endregion } #endregion #region IEmployeeBankAccount Service public interface IEmployeeBankAccountService { DataSet GetEmpCashAdvice(DateTime dSMonthDate, string sEmpID); EmployeeBankAccount Get(int id); List Get(); List GetByEmployeeID(int nID); List GetByEmployeeIDAndType(int nID, int AcoountType); DataSet GetEmpBankAdvice(DateTime dSalaryMonthDate, string sEmpID); DataSet GetEmpBankHistory(DateTime dSalaryMonthDate, int payrollTypeID); DataSet GetEmpBankHistory(DateTime dSFromDate, DateTime dSToDate, int payrollTypeID); DataSet GetEmpPrvBankHistory(DateTime salaryMonthDate, int payrollTypeID); int Save(EmployeeBankAccount item); void Delete(int id); void DeleteAll(); EmployeeBankAccount Get(int nEmpID, DateTime dEffectDate, int payrollTypeID); List GetByDate(DateTime from, DateTime to, int payrollTypeID); DataSet GetOPIEmpBankAdvice(DateTime dSMonthDate, string sEmpID, int bankID); DataSet GetHNMOPIEmpBankAdvice(DateTime dSMonthDate, string sEmpID); DataSet GetEmpBankAdvice(DateTime salaryMonthDate, int bankID); DataSet GetEmpOPIBankAdvice(DateTime salaryMonthDate, int bankID); } #endregion }