mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
- GET /api/workorders/board with week window, Unscheduled section, and X of Y counts - GET /api/workorders/lookups/dispatchers for SHOC filter avatars - Board projection via WorkOrderBoardDataService with vendor/dispatch join and derived isPastDue - Phase1_BoardIndexes migration (IX_workOrders_ScheduledDate) - 5 board unit tests
60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
using Data.SeaHavenIndustries.Enums;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public record WorkOrderBoardQuery(
|
|
DateOnly WeekStart,
|
|
DateOnly WeekEnd,
|
|
IReadOnlyList<string>? Dispatchers,
|
|
bool MyWorkOrders,
|
|
IReadOnlyList<WorkOrderType>? Types,
|
|
string? Search,
|
|
string? CurrentUserId);
|
|
|
|
public record WorkOrderBoardRawRow(
|
|
int Id,
|
|
string? InternalWONumber,
|
|
int RescheduleCount,
|
|
int CarriedOver,
|
|
WorkOrderType? WorkOrderType,
|
|
string? SiteCode,
|
|
string? LocationName,
|
|
string? PocName,
|
|
string? PocPhone,
|
|
string? PocNotes,
|
|
LifecycleStatus? LifecycleStatus,
|
|
string? LegacyStatus,
|
|
string? AssignTo,
|
|
string? DispatcherFirstName,
|
|
string? DispatcherLastName,
|
|
string? Initials,
|
|
string? Color,
|
|
DateTime? DueDate,
|
|
DateTime? ScheduledDate,
|
|
DateTime? ScheduledStart,
|
|
DateTime? ScheduledEnd,
|
|
DateOnly? TargetWeek,
|
|
bool? ScheduleWeekOnly,
|
|
int? VendorId,
|
|
string? VendorName,
|
|
string? TechName,
|
|
string? TechPhone,
|
|
DateTime? DispatchApptDate,
|
|
string? Trade,
|
|
string? Problem,
|
|
DocStatus? DocStatus,
|
|
byte[]? RowVersion,
|
|
bool IsUnscheduled);
|
|
|
|
public record WorkOrderBoardQueryResult(
|
|
IReadOnlyList<WorkOrderBoardRawRow> ScheduledRows,
|
|
IReadOnlyList<WorkOrderBoardRawRow> UnscheduledRows,
|
|
int ScheduledTotalBeforeSearch);
|
|
|
|
public record DispatcherLookupRow(
|
|
string Id,
|
|
string FirstName,
|
|
string? LastName,
|
|
string? Initials,
|
|
string? Color);
|
|
}
|