mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
185 lines
6.5 KiB
C#
185 lines
6.5 KiB
C#
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public class VendorPortalSession
|
|
{
|
|
public int Id { get; set; }
|
|
public string? CompanyName { get; set; }
|
|
public string? ContactName { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
}
|
|
|
|
public class VendorDispatchSummaryDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? DispatchNumber { get; set; }
|
|
public string? PONumber { get; set; }
|
|
public string? Status { get; set; }
|
|
public decimal? NTEAmount { get; set; }
|
|
public DateTime? ScheduledDate { get; set; }
|
|
public DateTime? CompletedDate { get; set; }
|
|
public DateTime? DispatchedAt { get; set; }
|
|
public DateTime? AcknowledgedAt { get; set; }
|
|
public string? WorkOrderTitle { get; set; }
|
|
public string? InternalWONumber { get; set; }
|
|
public string? LocationName { get; set; }
|
|
public string? LocationCity { get; set; }
|
|
public string? LocationState { get; set; }
|
|
}
|
|
|
|
public class PortalChecklistItemDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? ItemText { get; set; }
|
|
public bool IsCompleted { get; set; }
|
|
public string? CompletedBy { get; set; }
|
|
public DateTime? CompletedAt { get; set; }
|
|
}
|
|
|
|
public class PortalSignoffDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? SignoffType { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? SignatureMethod { get; set; }
|
|
public DateTime? SignedAt { get; set; }
|
|
}
|
|
|
|
public class PortalUpliftDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public decimal? CurrentNTE { get; set; }
|
|
public decimal RequestedNTE { get; set; }
|
|
public string? VendorReason { get; set; }
|
|
public string? Status { get; set; }
|
|
public int RequiredTier { get; set; }
|
|
public string? RequestedByVendorName { get; set; }
|
|
public DateTime? RequestedAt { get; set; }
|
|
public DateTime? DecidedAt { get; set; }
|
|
public string? DecisionNote { get; set; }
|
|
public string? DecidedByName { get; set; }
|
|
}
|
|
|
|
public class PortalCommentDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Commenttext { get; set; }
|
|
public string? Commenter { get; set; }
|
|
public string? CommentType { get; set; }
|
|
public DateTime? CreatedDate { get; set; }
|
|
}
|
|
|
|
public class PortalWorkOrderDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? InternalWONumber { get; set; }
|
|
public string? WorkerOrderTitle { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? Priority { get; set; }
|
|
public DateTime? DueDate { get; set; }
|
|
public string? Trade { get; set; }
|
|
public string? SubTrade { get; set; }
|
|
public string? Problem { get; set; }
|
|
}
|
|
|
|
public class PortalLocationDTO
|
|
{
|
|
public string? Name { get; set; }
|
|
public string? Address1 { get; set; }
|
|
public string? City { get; set; }
|
|
public string? State { get; set; }
|
|
public string? Zip { get; set; }
|
|
}
|
|
|
|
public class VendorDispatchDetailDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? DispatchNumber { get; set; }
|
|
public string? PONumber { get; set; }
|
|
public string? Status { get; set; }
|
|
public string? InvoiceNumber { get; set; }
|
|
public string? InvoiceStatus { get; set; }
|
|
public string? PaymentStatus { get; set; }
|
|
public decimal? NTEAmount { get; set; }
|
|
public string? Description { get; set; }
|
|
public DateTime? ScheduledDate { get; set; }
|
|
public DateTime? CompletedDate { get; set; }
|
|
public DateTime? DispatchedAt { get; set; }
|
|
public DateTime? AcknowledgedAt { get; set; }
|
|
public PortalWorkOrderDTO? WorkOrder { get; set; }
|
|
public PortalLocationDTO? Location { get; set; }
|
|
public IEnumerable<PortalChecklistItemDTO> Checklist { get; set; } = Enumerable.Empty<PortalChecklistItemDTO>();
|
|
public IEnumerable<PortalSignoffDTO> Signoffs { get; set; } = Enumerable.Empty<PortalSignoffDTO>();
|
|
public IEnumerable<PortalCommentDTO> Comments { get; set; } = Enumerable.Empty<PortalCommentDTO>();
|
|
public IEnumerable<PortalUpliftDTO> UpliftRequests { get; set; } = Enumerable.Empty<PortalUpliftDTO>();
|
|
public IEnumerable<VendorPortalDocumentDTO> Documents { get; set; } = Enumerable.Empty<VendorPortalDocumentDTO>();
|
|
}
|
|
|
|
public class VendorPortalDocumentDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? OriginalFileName { get; set; }
|
|
public string? ContentType { get; set; }
|
|
public long SizeBytes { get; set; }
|
|
public string? ScanStatus { get; set; }
|
|
public string? ReviewStatus { get; set; }
|
|
public string? RejectionReason { get; set; }
|
|
public int Version { get; set; }
|
|
public int? ReplacesDocumentId { get; set; }
|
|
public DateTime? CreatedDate { get; set; }
|
|
public DateTime? ScannedAt { get; set; }
|
|
public DateTime? ReviewedAt { get; set; }
|
|
public bool CanDownload { get; set; }
|
|
}
|
|
|
|
public class AcceptDispatchResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Status { get; set; }
|
|
public DateTime? AcknowledgedAt { get; set; }
|
|
}
|
|
|
|
public class ChangeStatusResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Status { get; set; }
|
|
public DateTime? CompletedDate { get; set; }
|
|
}
|
|
|
|
public class ChecklistItemResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public bool IsCompleted { get; set; }
|
|
public string? CompletedBy { get; set; }
|
|
public DateTime? CompletedAt { get; set; }
|
|
}
|
|
|
|
public class SignoffResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public DateTime? SignedAt { get; set; }
|
|
}
|
|
|
|
public class CommentResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Commenttext { get; set; }
|
|
public string? Commenter { get; set; }
|
|
public DateTime? CreatedDate { get; set; }
|
|
}
|
|
|
|
public class UpliftRequestResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Status { get; set; }
|
|
public int RequiredTier { get; set; }
|
|
public decimal? CurrentNTE { get; set; }
|
|
public decimal RequestedNTE { get; set; }
|
|
}
|
|
|
|
public class CancelUpliftResultDTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Status { get; set; }
|
|
}
|
|
}
|