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

109 lines
3.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace HRM.BO
{
[Serializable]
public class ActingResponsibilitySetup : BasicBaseObject
{
#region Constructor
public ActingResponsibilitySetup()
{
EmployeeID = 0;
ShiftID = null;
GradeID = 0;
WorkPlanGroupID = null;
FromDate = DateTime.MinValue;
ToDate = DateTime.MinValue;
Remarks = string.Empty;
Amount = 0;
SalaryMonth = DateTime.MinValue;
IsHoliday = false;
}
#endregion
#region Properties
public int EmployeeID { get; set; }
public int? ShiftID { get; set; }
public int? WorkPlanGroupID { get; set; }
public int GradeID { get; set; }
public int ApproverID { get; set; }
public bool IsHoliday { get; set; }
public DateTime ApproveDate { get; set; }
public EnumClaimWFStatus ClaimWFStatus { get; set; }
public string ClaimWFStatusName
{
get
{
return EnumHelper.GetEnumDescription(ClaimWFStatus);
}
}
public DateTime FromDate { get; set; }
public DateTime ToDate { get; set; }
public string Remarks { get; set; }
public double Amount { get; set; }
public DateTime SalaryMonth { get; set; }
public int payrollTypeID { get; set; }
public string EmployeeNo { get; set; }
public string EmployeeName { get; set; }
public string NewGroupName { get; set; }
public string NewShiftName { get; set; }
//#region Service Factory IActingResponsibilitySetup : IActingResponsibilitySetup
//internal static IActingResponsibilitySetupService Service
//{
// get { return Services.Factory.CreateService<IActingResponsibilitySetupService>(typeof(IActingResponsibilitySetupService)); }
//}
//#endregion
#endregion
}
#region IActingResponsibilitySetup
public interface IActingResponsibilitySetupService
{
List<ActingResponsibilitySetup> Get(DateTime fromDate, DateTime toDate, int payrollTypeID);
List<ActingResponsibilitySetup> GetByStatus(DateTime fromDate, DateTime toDate, int payrollTypeID, EnumClaimWFStatus enumClaimWFStatus);
ActingResponsibilitySetup Get(int Id);
List<ActingResponsibilitySetup> GetByEmpID(DateTime fromDate, DateTime toDate, int employeeid);
List<ActingResponsibilitySetup> Get(DateTime fromDate, DateTime toDate, int employeeid, EnumClaimWFStatus enumClaimWFStatus);
List<ActingResponsibilitySetup> GetForApprove(DateTime fromDate, DateTime toDate, int lmId, EnumClaimWFStatus enumClaimWFStatus);
List<ActingResponsibilitySetup> GetOnwardByEmpID(DateTime fromDate, int employeeid);
List<ActingResponsibilitySetup> GetTemporaryShiftEmployee(DateTime AttnDate, int employeeint);
int Save(ActingResponsibilitySetup actingAllowSetUp);
void Save(List<ActingResponsibilitySetup> actingAllowSetups);
void Delete(int id);
//int Delete(int id);
bool IsEmployeeExistOnSameDate(int empint, DateTime fromDate);
bool IsEmployeeExist(int empint, DateTime fromDate, DateTime toDate);
void SaveTemporaryShift(UpdateRosterModel oUpdateRosterModel);
}
#endregion
}