refactor(ExcelIO): remove duplicate result models (now in Core)
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
using JdeScoping.ExcelIO.Attributes;
|
||||
|
||||
namespace JdeScoping.ExcelIO.Models.Reporting;
|
||||
|
||||
/// <summary>
|
||||
/// MIS non-match reporting model (Investigation tab).
|
||||
/// </summary>
|
||||
[OutputTable(TabName = "Investigation", TableName = "Investigation")]
|
||||
public class MisNonMatchSearchResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Work order job step work center code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 10, HeaderText = "Work Center Code")]
|
||||
public string WorkCenterCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Work order unique number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 20, HeaderText = "Work Order Number")]
|
||||
public long WorkOrderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order start date.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 30, HeaderText = "Work Order Start Date", Format = OutputColumnAttribute.DateFormat)]
|
||||
public DateTime WorkOrderStartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order job step number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 40, HeaderText = "Job Step Number")]
|
||||
public decimal JobStepNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order job step description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 50, HeaderText = "Function Operation Description")]
|
||||
public string JobStepDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Work order job step completion date.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 60, HeaderText = "Job Step End Date", Format = OutputColumnAttribute.DateFormat)]
|
||||
public DateTime? JobStepEndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order job step function code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 70, HeaderText = "Function Code")]
|
||||
public string FunctionCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Was job step added.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 75, HeaderText = "Was Job Step Added?")]
|
||||
public bool WasJobStepAdded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Matched work order job step number (match to original router by work order number, work center code, and function code).
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 76, HeaderText = "Matched Job Step Number")]
|
||||
public decimal? MatchedJobStepNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order item number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 80, HeaderText = "Item Number")]
|
||||
public string ItemNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Work order item description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 90, HeaderText = "Item Description")]
|
||||
public string ItemDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Work order router type.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 100, HeaderText = "Routing Type")]
|
||||
public string RoutingType { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
using JdeScoping.ExcelIO.Attributes;
|
||||
|
||||
namespace JdeScoping.ExcelIO.Models.Reporting;
|
||||
|
||||
/// <summary>
|
||||
/// MIS data reporting model.
|
||||
/// </summary>
|
||||
[OutputTable(TabName = "MIS Info", TableName = "MIS_Info")]
|
||||
public class MisSearchResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Item unique number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 10, HeaderText = "Item Number")]
|
||||
public string ItemNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Operation job step number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 20, HeaderText = "MIS Job Step Sequence Number")]
|
||||
public string SequenceNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// MIS unique number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 30, HeaderText = "MIS Number")]
|
||||
public string MisNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// MIS revision ID.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 40, HeaderText = "MIS Revision")]
|
||||
public string RevId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Item description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 50, HeaderText = "Item Description")]
|
||||
public string ItemDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// MIS release status.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 60, HeaderText = "MIS Release Status")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// MIS release date.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 70, HeaderText = "MIS Release Date", Format = OutputColumnAttribute.TimestampFormat)]
|
||||
public DateTime? ReleaseDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Branch unique code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 80, HeaderText = "Branch Code")]
|
||||
public string BranchCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Job step number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 90, HeaderText = "Job Step Sequence Number")]
|
||||
public decimal JobStepSequenceNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Job step number for matched F3112Z1 / F3111 record.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 100, HeaderText = "Matched Sequence Number")]
|
||||
public decimal? MatchedSequenceNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the job step was matched to F3112Z1 record.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 110, HeaderText = "Matched to F3112Z1?")]
|
||||
public bool RoutingMatch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the job step was matched to F3111 record.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 120, HeaderText = "Matched to F3003?")]
|
||||
public bool MasterMatch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Job step function description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 130, HeaderText = "Function Operation Description")]
|
||||
public string FunctionOperationDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Characteristic number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 140, HeaderText = "Char Number")]
|
||||
public string CharNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Test description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 150, HeaderText = "Test Description", AutoWidth = false, Width = OutputColumnAttribute.WrappedColumnWidth, WrapText = true)]
|
||||
public string TestDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Type of sampling.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 160, HeaderText = "Sampling Type")]
|
||||
public string SamplingType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Sampling selection value.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 170, HeaderText = "Sampling Value")]
|
||||
public string SamplingValue { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Tools and gauges for MIS.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 180, HeaderText = "Tools & Gauges", AutoWidth = false, Width = OutputColumnAttribute.WrappedColumnWidth, WrapText = true)]
|
||||
public string ToolsGauges { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Instructions for MIS.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 190, HeaderText = "Work Instructions", AutoWidth = false, Width = OutputColumnAttribute.WrappedColumnWidth, WrapText = true)]
|
||||
public string WorkInstructions { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -1,179 +0,0 @@
|
||||
using JdeScoping.ExcelIO.Attributes;
|
||||
|
||||
namespace JdeScoping.ExcelIO.Models.Reporting;
|
||||
|
||||
/// <summary>
|
||||
/// JDE search result reporting model.
|
||||
/// </summary>
|
||||
[OutputTable(TabName = "Search Results", TableName = "Search_Results")]
|
||||
public class SearchResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Order unique number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 10, HeaderText = "Work Order Number")]
|
||||
public long WorkOrderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Order branch code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 20, HeaderText = "Work Order Branch Code")]
|
||||
public string WorkOrderBranchCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Order lot number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 30, HeaderText = "Lot Number")]
|
||||
public string LotNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Order item number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 40, HeaderText = "Item Number")]
|
||||
public string ItemNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Item master planning family.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 50, HeaderText = "Planning Family")]
|
||||
public string PlanningFamily { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Item master stocking type.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 55, HeaderText = "Stocking Type")]
|
||||
public string StockingType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Order quantity.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 60, HeaderText = "Order Quantity")]
|
||||
public decimal OrderQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Quantity on hold.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 70, HeaderText = "Held Quantity")]
|
||||
public decimal HeldQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Quantity scrapped/cancelled.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 80, HeaderText = "Scrapped Quantity")]
|
||||
public decimal ScrappedQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Quantity shipped.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 90, HeaderText = "Shipped Quantity")]
|
||||
public decimal ShippedQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Operation branch code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 100, HeaderText = "Operation Step Branch Code")]
|
||||
public string StepBranchCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Operation step number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 110, HeaderText = "Operation Step")]
|
||||
public decimal StepNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Operation step description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 120, HeaderText = "Operation Step Description")]
|
||||
public string StepDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Function operation description (long text).
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 130, HeaderText = "Function Operation Description")]
|
||||
public string FunctionOperationDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Timestamp of last update to operation step number.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 140, HeaderText = "Operation Step Update Timestamp", Format = OutputColumnAttribute.TimestampFormat)]
|
||||
public DateTime StepUpdateDt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Order status code.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 150, HeaderText = "Status Code")]
|
||||
public string StatusCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Order status description.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 160, HeaderText = "Status Description")]
|
||||
public string StatusDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Timestamp of last update to order status.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 170, HeaderText = "Status Update Timestamp", Format = OutputColumnAttribute.DateFormat)]
|
||||
public DateTime? StatusUpdateDt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order was included because it was manually specified.
|
||||
/// </summary>
|
||||
public bool ManuallySpecified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order was included because it was split from a flagged work order.
|
||||
/// </summary>
|
||||
public bool SplitOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order was included because it received parts from a flagged work order (CARDEX / F4111).
|
||||
/// </summary>
|
||||
public bool Cardex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order was included because it received parts from a flagged work order (parts list / F3111).
|
||||
/// </summary>
|
||||
public bool PartsList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Work order was included because it met the filter criteria.
|
||||
/// </summary>
|
||||
public bool Flagged { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reason work order was included in results.
|
||||
/// </summary>
|
||||
[OutputColumn(Order = 180, HeaderText = "Inclusion Reason")]
|
||||
public string InclusionReason
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ManuallySpecified)
|
||||
{
|
||||
return "ManuallySpecified";
|
||||
}
|
||||
if (Flagged)
|
||||
{
|
||||
return "Flagged";
|
||||
}
|
||||
if (Cardex && PartsList)
|
||||
{
|
||||
return "ComponentUsage (CARDEX + Parts List)";
|
||||
}
|
||||
if (Cardex && !PartsList)
|
||||
{
|
||||
return "ComponentUsage (CARDEX)";
|
||||
}
|
||||
if (!Cardex && PartsList)
|
||||
{
|
||||
return "ComponentUsage (Parts List)";
|
||||
}
|
||||
if (SplitOrder)
|
||||
{
|
||||
return "Split order";
|
||||
}
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user