TimeSheetSettings.cs 861 B

12345678910111213141516171819202122232425262728
  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. ViewType = ScreenViewType.Register;
  14. AnchorWidth = 500F;
  15. }
  16. public int View { get; set; }
  17. public DateTime StartDate { get; set; }
  18. public DateTime EndDate { get; set; }
  19. public bool FutureTimes { get; set; }
  20. public bool? ApprovedOnly { get; set; }
  21. public ScreenViewType ViewType { get; set; }
  22. public double AnchorWidth { get; set; }
  23. }
  24. }