mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
Auto-approved evidence was hidden because download checked the approval tier. Viewers of the work order can open it, and a request can store more than one scanned document.
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public class WorkOrderUpliftDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Status { get; set; } = "pending";
|
|
public decimal Amount { get; set; }
|
|
public string Notes { get; set; } = "";
|
|
public DateTime? RequestedAt { get; set; }
|
|
public string? RequestedById { get; set; }
|
|
public string RequestedByName { get; set; } = "";
|
|
public DateTime? DecidedAt { get; set; }
|
|
public string DecidedByName { get; set; } = "";
|
|
public string DecisionNote { get; set; } = "";
|
|
public int? EvidenceDocumentId { get; set; }
|
|
public string EvidenceFileName { get; set; } = "";
|
|
public List<WorkOrderUpliftAttachmentDto> Attachments { get; set; } = new();
|
|
}
|
|
|
|
public class WorkOrderUpliftAttachmentDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = "";
|
|
}
|
|
|
|
public class WorkOrderUpliftListDto
|
|
{
|
|
public List<WorkOrderUpliftDto> Items { get; set; } = new();
|
|
}
|
|
|
|
public class CreateWorkOrderUpliftRequestDto
|
|
{
|
|
public decimal Amount { get; set; }
|
|
public string? Notes { get; set; }
|
|
public int? EvidenceDocumentId { get; set; }
|
|
public List<int>? EvidenceDocumentIds { get; set; }
|
|
}
|
|
|
|
public class RevokeWorkOrderUpliftRequestDto
|
|
{
|
|
public string? Reason { get; set; }
|
|
}
|
|
}
|