TimeSheetSettings.cs 678 B

12345678910111213141516171819202122
  1. using System;
  2. using InABox.Configuration;
  3. namespace Comal.Classes
  4. {
  5. public class TimeSheetSettings : IUserConfigurationSettings
  6. {
  7. public TimeSheetSettings()
  8. {
  9. View = 2;
  10. EndDate = DateTime.Today.AddDays(0 - (double)DateTime.Today.DayOfWeek).AddDays(1);
  11. StartDate = DateTime.Today.AddDays(0 - (double)DateTime.Today.DayOfWeek).AddDays(7);
  12. FutureTimes = false;
  13. }
  14. public int View { get; set; }
  15. public DateTime StartDate { get; set; }
  16. public DateTime EndDate { get; set; }
  17. public bool FutureTimes { get; set; }
  18. public bool? ApprovedOnly { get; set; }
  19. }
  20. }