diff --git a/Areas/OTcalculate/Models/CalendarModel.cs b/Areas/OTcalculate/Models/CalendarModel.cs index dc47176..a758895 100644 --- a/Areas/OTcalculate/Models/CalendarModel.cs +++ b/Areas/OTcalculate/Models/CalendarModel.cs @@ -15,5 +15,6 @@ namespace PSTW_CentralSystem.Areas.OTcalculate.Models [ForeignKey("StateId")] public virtual StateModel? States { get; set; } + public DateTime LastUpdated { get; set; } } } \ No newline at end of file diff --git a/Areas/OTcalculate/Models/OtRegisterModel.cs b/Areas/OTcalculate/Models/OtRegisterModel.cs new file mode 100644 index 0000000..64ef768 --- /dev/null +++ b/Areas/OTcalculate/Models/OtRegisterModel.cs @@ -0,0 +1,6 @@ +namespace PSTW_CentralSystem.Areas.OTcalculate.Models +{ + public class OtRegisterModel + { + } +} diff --git a/Areas/OTcalculate/Models/RateModel.cs b/Areas/OTcalculate/Models/RateModel.cs index 0efac10..84eabbc 100644 --- a/Areas/OTcalculate/Models/RateModel.cs +++ b/Areas/OTcalculate/Models/RateModel.cs @@ -18,5 +18,7 @@ namespace PSTW_CentralSystem.Areas.OTcalculate.Models public virtual UserModel? Users { get; set; } + public DateTime LastUpdated { get; set; } + } } diff --git a/Areas/OTcalculate/Models/SettingsModel.cs b/Areas/OTcalculate/Models/SettingsModel.cs new file mode 100644 index 0000000..65196c5 --- /dev/null +++ b/Areas/OTcalculate/Models/SettingsModel.cs @@ -0,0 +1,12 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using PSTW_CentralSystem.Models; + +namespace PSTW_CentralSystem.Areas.OTcalculate.Models +{ + public class SettingsViewModel + { + public DateTime? LatestRateUpdate { get; set; } + public DateTime? LatestCalendarUpdate { get; set; } + } +} diff --git a/Areas/OTcalculate/Views/HrDashboard/Calendar.cshtml b/Areas/OTcalculate/Views/HrDashboard/Calendar.cshtml index 968a204..89312f8 100644 --- a/Areas/OTcalculate/Views/HrDashboard/Calendar.cshtml +++ b/Areas/OTcalculate/Views/HrDashboard/Calendar.cshtml @@ -69,6 +69,12 @@