using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FrameworkDAL.DTO.Workflow { public class WorkFlowActionItemDTO { public int TaskId { get; set; } public int Action { get; set; } public string? Comment { get; set; } public Dictionary Facts { get; set; } = new Dictionary(); } public class WorkFlowActionDTO { public List Items { get; set; } = new List(); } // ── Response ───────────────────────────────────────────────────────────── /// /// Result of WorkFlowActions. Message is a ready-to-display success message /// (e.g. "Casual Leave Request Approved Successfully." / "3 Requests Approved /// Successfully."); Items carries the per-task entity type/sub-type so a caller /// that wants to build its own wording can do so without re-deriving it. /// public class WorkFlowActionResponseDTO { public string Message { get; set; } = "Action processed successfully."; public int TotalCount { get; set; } public List Items { get; set; } = new List(); } public class WorkFlowActionResultItemDTO { public int TaskId { get; set; } /// Action taken — 1=Approve 2=Reject 3=Return(Resend/Reassign). public int Action { get; set; } /// MENTITY.ENTITYID of the document under workflow. public int EntityId { get; set; } /// Friendly entity type — e.g. "Leave", "Timeslip", "Punch", "Service Request". public string EntityType { get; set; } = string.Empty; /// Leave Type / Timeslip Type display name, when applicable; null otherwise. public string? SubType { get; set; } } }