using System; namespace GB5Shared.DTO.WorkFlow { /// /// Current workflow/approval state of a single, already-saved entity record — /// used to enrich GET/read responses. Resolved from whichever is most recent: /// a pending TWORKFLOWWIP row (edit awaiting approval, not yet persisted) or the /// latest TWORKFLOWINSTANCE row (in-progress/completed multi-level approval). /// Null (no row returned) means "None" — no workflow ever applied to this record. /// public class WorkflowObjectStatusDTO { public bool IsPending { get; set; } /// "Pending" | "Approved" | "Rejected" | "Returned" | "Unknown". public string WorkflowStatus { get; set; } = "None"; public int? WorkflowInstanceId { get; set; } public int? WipId { get; set; } public int? CurrentApprovalLevel { get; set; } public string? CurrentApproverName { get; set; } public byte? LastAction { get; set; } public DateTime? CreatedOn { get; set; } } }