PCRB follow up client side logic
This commit is contained in:
@ -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>();
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
13
MesaFabApproval.Shared/Models/PCRBFollowUpComment.cs
Normal file
13
MesaFabApproval.Shared/Models/PCRBFollowUpComment.cs
Normal 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;
|
||||
}
|
@ -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;
|
||||
}
|
Reference in New Issue
Block a user