using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FrameworkDAL.DTO.Workflow { public class WorkflowStatusDTO { public int WorkFlowInstanceId { get; set; } public int EntityId { get; set; } public string? WorkflowName { get; set; } public int ObjectId { get; set; } public int? CurrentStepId { get; set; } public string? CurrentStepKey { get; set; } public string? DisplayName { get; set; } // Second alias of DisplayName — matches the EntityViewer "Current Step" UI label directly, // so the frontend doesn't have to know the field is called DisplayName elsewhere. public string? CurrentStep { get; set; } public int WorkflowStatus { get; set; } public string? WorkflowStatusName { get; set; } /* Who submitted the instance (TWORKFLOWINSTANCE.CREATEDBYID/CREATEDON) */ public int? SubmittedById { get; set; } public string? SubmittedBy { get; set; } public DateTime? SubmittedOn { get; set; } // Second alias of SubmittedOn — a workflow instance's "created" and "submitted" moment // are the same TWORKFLOWINSTANCE.CREATEDON value; kept as its own field to match the // EntityViewer UI's separate "Created On" label. public DateTime? CreatedOn { get; set; } public int? ModifiedById { get; set; } public DateTime? ModifiedOn { get; set; } /* Current Step Task */ public int? CurrentTaskId { get; set; } public int? CurrentAssignedUserId { get; set; } public string? CurrentAssignedUserName { get; set; } // Second alias of CurrentAssignedUserName — matches the EntityViewer "Assigned To" UI label. public string? AssignedTo { get; set; } public DateTime? CurrentAssignedOn { get; set; } public DateTime? CurrentCompletedOn { get; set; } public string? CurrentAction { get; set; } public string? CurrentComment { get; set; } public string? CurrentStepStatus { get; set; } /* Last Completed */ public string? LastCompletedStep { get; set; } public string? LastCompletedBy { get; set; } public DateTime? LastCompletedOn { get; set; } /* Next Pending */ public string? NextPendingStep { get; set; } public string? NextPendingWith { get; set; } /* Full History */ public string? StepHistory { get; set; } } }