using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace HRM.BO { #region SettlementClearance public class SettlementClearance : BasicBaseObject { #region Constructor public SettlementClearance() { SentDate = DateTime.MinValue; SettlementClearanceStatus = EnumSettlementClearanceStatus.Pending; ClearanceDate = DateTime.MinValue; } #endregion public int UserID { get; set; } public int EmployeeID { get; set; } public int EmpClearanceID { get; set; } public int ResignationRequestID { get; set; } public DateTime? SentDate { get; set; } public DateTime? ClearanceDate { get; set; } public EnumSettlementClearanceStatus SettlementClearanceStatus { get; set; } public Employee ResignationEmployee { get; set; } public Employee NotificationEmployee { get; set; } } #endregion #region ISettlementClearance Service public interface ISettlementClearanceService { List Get(); SettlementClearance GetByEmpID(int empID); SettlementClearance GetByUserID(int userID); SettlementClearance Get(int SettlementClearanceID); List GetBySentDate(DateTime sentDate); List GetByClearanceDate(DateTime clearanceDate); List GetByStatus(EnumSettlementClearanceStatus scStatus); List GetBySentDateRange(DateTime fromSentDate, DateTime toSentDate); List GetByClearanceDateRange(DateTime fromClearanceDate, DateTime toClearanceDate); List GetByRegEmp(int regEmpId, int employeeid); int Save(SettlementClearance item); void SaveAll(string employeeIds, CurrentUser? currentUser, int empresignationId); void Delete(int id); List GetByResignationId(int resignationId); DataTable GetClearanceEmployee(); bool IsClearanceEmp(int empid); // List GetByResignationRequestId(int ResignationRequestID); } #endregion }