using System; using System.Collections.Generic; namespace HRM.BO { #region WeeklyHoliday public class WeeklyHoliday : BasicBaseObject { //List _oLocs = null; //HolidayCalendar _oHolidayCalendar = null; //List _oHolidays = null; //List _oNationalHolidays = null; //List _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(typeof(IWeeklyHolidayService)); } //} //#endregion #endregion } #endregion #region IWeeklyHoliday Service public interface IWeeklyHolidayService { WeeklyHoliday Get(int id); List Get(EnumStatus status); List GetCompanyEntireHolidays(); List GetByLocation(int nLocID); List GetByEmployee(int nEmpID); int Save(WeeklyHoliday item); void Save(List items); void Delete(int id); } #endregion }