64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
#region WeeklyHoliday
|
|||
|
|
|||
|
public class WeeklyHoliday : BasicBaseObject
|
|||
|
{
|
|||
|
//List<Location> _oLocs = null;
|
|||
|
//HolidayCalendar _oHolidayCalendar = null;
|
|||
|
//List<WeeklyHoliday> _oHolidays = null;
|
|||
|
//List<AttnNationalHoliday> _oNationalHolidays = null;
|
|||
|
//List<HolidayCalendar> _oHolidayCalendars = null;
|
|||
|
|
|||
|
#region Constructor
|
|||
|
|
|||
|
public WeeklyHoliday()
|
|||
|
{
|
|||
|
DateType = 0;
|
|||
|
LocationID = 0;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
|
|||
|
public int DateType { get; set; }
|
|||
|
public int? LocationID { get; set; }
|
|||
|
public int HolidayMonth { get; set; }
|
|||
|
public bool IsAlternative { get; set; }
|
|||
|
|
|||
|
public bool IsHalfDay { get; set; }
|
|||
|
|
|||
|
//#region Service Factory IWeeklyHolidayService : IWeeklyHolidayService
|
|||
|
|
|||
|
//internal static IWeeklyHolidayService Service
|
|||
|
//{
|
|||
|
// get { return Services.Factory.CreateService<IWeeklyHolidayService>(typeof(IWeeklyHolidayService)); }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IWeeklyHoliday Service
|
|||
|
|
|||
|
public interface IWeeklyHolidayService
|
|||
|
{
|
|||
|
WeeklyHoliday Get(int id);
|
|||
|
List<WeeklyHoliday> Get(EnumStatus status);
|
|||
|
List<WeeklyHoliday> GetCompanyEntireHolidays();
|
|||
|
List<WeeklyHoliday> GetByLocation(int nLocID);
|
|||
|
List<WeeklyHoliday> GetByEmployee(int nEmpID);
|
|||
|
int Save(WeeklyHoliday item);
|
|||
|
void Save(List<WeeklyHoliday> items);
|
|||
|
void Delete(int id);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|