PCRB follow up client side logic

This commit is contained in:
Chase Tucker
2025-03-19 10:01:35 -07:00
parent 4871668a90
commit cc4781b990
45 changed files with 3082 additions and 1008 deletions

View File

@ -8,9 +8,21 @@ public class PCRB {
"PCR1",
"PCR2",
"PCR3",
"Complete"
"Complete",
"Follow Up",
"Closed"
];
public enum StagesEnum {
Draft = 0,
PCR1 = 1,
PCR2 = 2,
PCR3 = 3,
Complete = 4,
FollowUp = 5,
Closed = 6
}
public int PlanNumber { get; set; }
public int OwnerID { get; set; }
public string OwnerName { get; set; } = "";
@ -24,4 +36,5 @@ public class PCRB {
public DateTime LastUpdateDate { get; set; } = DateTimeUtilities.MIN_DT;
public DateTime ClosedDate { get; set; } = DateTimeUtilities.MAX_DT;
public string Type { get; set; } = "";
public IEnumerable<PCRBFollowUp> FollowUps { get; set; } = new List<PCRBFollowUp>();
}

View File

@ -9,6 +9,7 @@ public class PCRBFollowUp {
public required DateTime FollowUpDate { get; set; }
public bool IsComplete { get; set; } = false;
public bool IsDeleted { get; set; } = false;
public bool IsPendingApproval { get; set; } = false;
public DateTime CompletedDate { get; set; } = DateTimeUtilities.MAX_DT;
public string Comments { get; set; } = string.Empty;
public DateTime UpdateDate { get; set; } = DateTime.Now;
}

View File

@ -0,0 +1,13 @@
using MesaFabApproval.Shared.Utilities;
namespace MesaFabApproval.Shared.Models;
public class PCRBFollowUpComment {
public int ID { get; set; }
public required int PlanNumber { get; set; }
public required int FollowUpID { get; set; }
public DateTime CommentDate { get; set; } = DateTime.Now;
public required int UserID { get; set; }
public User? User { get; set; }
public string Comment { get; set; } = string.Empty;
}

View File

@ -2,5 +2,8 @@
public class PCRBNotification {
public required string Message { get; set; }
public string? Subject { get; set; }
public required PCRB PCRB { get; set; }
public Approval? Approval { get; set; }
public bool NotifyQaPreApprover { get; set; } = false;
}