diff --git a/Fab2ApprovalSystem/Controllers/TrainingController.cs b/Fab2ApprovalSystem/Controllers/TrainingController.cs index 891aafa..4db3045 100644 --- a/Fab2ApprovalSystem/Controllers/TrainingController.cs +++ b/Fab2ApprovalSystem/Controllers/TrainingController.cs @@ -743,7 +743,14 @@ namespace Fab2ApprovalSystem.Controllers string DateAssigned = assignmentDate.HasValue ? assignmentDate.Value.ToString("MM/dd/yyyy") : ""; - trainingSection += "" + assignment.FullName + "" + DateAssigned + ""; + if (assignmentDate.HasValue && (DateTime.Now.Date - assignmentDate).Value.TotalDays >= 5) + { + trainingSection += "" + assignment.FullName + "" + DateAssigned + ""; + } + else + { + trainingSection += "" + assignment.FullName + "" + DateAssigned + ""; + } trainingSection += ""; } diff --git a/Fab2ApprovalSystem/Jobs/OOOTrainingReportJob.cs b/Fab2ApprovalSystem/Jobs/OOOTrainingReportJob.cs index 5c6f584..79047b4 100644 --- a/Fab2ApprovalSystem/Jobs/OOOTrainingReportJob.cs +++ b/Fab2ApprovalSystem/Jobs/OOOTrainingReportJob.cs @@ -1,12 +1,11 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; -using System.Web; -using Fab2ApprovalSystem.Controllers; + using Fab2ApprovalSystem.DMO; using Fab2ApprovalSystem.Models; using Fab2ApprovalSystem.Utilities; + using Quartz; namespace Fab2ApprovalSystem.Workers diff --git a/Fab2ApprovalSystem/Views/Home/_HomeLayout.cshtml b/Fab2ApprovalSystem/Views/Home/_HomeLayout.cshtml index 6c3dfb4..9b2c9de 100644 --- a/Fab2ApprovalSystem/Views/Home/_HomeLayout.cshtml +++ b/Fab2ApprovalSystem/Views/Home/_HomeLayout.cshtml @@ -81,10 +81,10 @@ Create New