mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-02 06:13:23 +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
31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class Dispatch : FullAuditEntity
|
|
{
|
|
public int? WorkOrderId { get; set; }
|
|
[ForeignKey(nameof(WorkOrderId))]
|
|
public virtual WorkOrder? WorkOrder { get; set; }
|
|
|
|
public int VendorId { get; set; }
|
|
[ForeignKey(nameof(VendorId))]
|
|
public virtual Vendor? Vendor { get; set; }
|
|
|
|
public string? DispatchNumber { get; set; }
|
|
public string? PONumber { get; set; }
|
|
public decimal? NTEAmount { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? Status { get; set; }
|
|
public DateTime? ScheduledDate { get; set; }
|
|
public DateTime? CompletedDate { get; set; }
|
|
public DateTime? DispatchedAt { get; set; }
|
|
public DateTime? AcknowledgedAt { get; set; }
|
|
public bool EmailSent { get; set; }
|
|
public string? ReplyToAddress { get; set; }
|
|
public string? AcceptToken { get; set; }
|
|
public ICollection<Comments>? Comments { get; set; }
|
|
public ICollection<DispatchWorkOrder>? DispatchWorkOrders { get; set; }
|
|
public ICollection<DispatchChecklistItem>? ChecklistItems { get; set; }
|
|
}
|
|
}
|