mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-02 07:23:21 +00:00
- DispatchChecklistItem model (DispatchId, WorkOrderId, ItemText, IsCompleted, CompletedBy, CompletedAt) - DispatchToVendor copies template items when TaskListTemplateId provided - Supports custom checklist items alongside template items - UpdateChecklistItem endpoint to toggle completion with user name - AddChecklistItem endpoint for ad-hoc items - GetDispatchById includes checklist items in response - Migration for DispatchChecklistItems table
27 lines
842 B
C#
27 lines
842 B
C#
namespace Api.SeaHavenIndustries.DTOs
|
|
{
|
|
public class Dispatch_DTO
|
|
{
|
|
public List<int> WorkOrderIds { get; set; } = new();
|
|
public List<int> VendorIds { get; set; } = new();
|
|
public decimal? NTEAmount { get; set; }
|
|
public DateTime? ScheduledDate { get; set; }
|
|
public string? Description { get; set; }
|
|
public int? TaskListTemplateId { get; set; }
|
|
public List<string>? CustomChecklistItems { get; set; }
|
|
}
|
|
|
|
public class ChecklistItemUpdate_DTO
|
|
{
|
|
public int Id { get; set; }
|
|
public bool IsCompleted { get; set; }
|
|
public string? CompletedBy { get; set; }
|
|
}
|
|
|
|
public class AddChecklistItem_DTO
|
|
{
|
|
public int DispatchId { get; set; }
|
|
public int? WorkOrderId { get; set; }
|
|
public string? ItemText { get; set; }
|
|
}
|
|
}
|