58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
namespace DongfangHydro.Dashboard.Api.Importing;
|
|
|
|
public sealed record BomImportMetadata(
|
|
string SourceDocumentCode,
|
|
string WorkOrderCode,
|
|
string ProjectName,
|
|
string ContractProductName,
|
|
string DrawingProductName,
|
|
int BatchQuantity,
|
|
string SourceFileName,
|
|
string SourceFileHash);
|
|
|
|
public sealed record BomImportNode(
|
|
int SourceRow,
|
|
int? ParentSourceRow,
|
|
string SourceSequence,
|
|
string DrawingNumber,
|
|
string Name,
|
|
string Specification,
|
|
decimal? Quantity,
|
|
string Material,
|
|
decimal? UnitWeight,
|
|
decimal? TotalWeight,
|
|
string Remark,
|
|
int Level,
|
|
string NodeType,
|
|
string SupplyType,
|
|
string UnitWeightText = "",
|
|
string TotalWeightText = "",
|
|
string QuantityText = "");
|
|
|
|
public sealed record MaterialQuotaImportRow(
|
|
int SourceRow,
|
|
string Category,
|
|
string SourceSequence,
|
|
string MaterialCode,
|
|
string MaterialName,
|
|
string Specification,
|
|
string Unit,
|
|
decimal? Quantity,
|
|
decimal? NetWeight,
|
|
decimal? ConsumptionQuota,
|
|
string Brand,
|
|
string Remark,
|
|
string QuantityText = "",
|
|
string NetWeightText = "",
|
|
string ConsumptionQuotaText = "");
|
|
|
|
public sealed record BomImportDocument(
|
|
BomImportMetadata Metadata,
|
|
IReadOnlyList<BomImportNode> BomNodes,
|
|
IReadOnlyList<MaterialQuotaImportRow> MaterialQuotas,
|
|
int BlockCount,
|
|
IReadOnlyList<string> Warnings);
|
|
|
|
public sealed class BomImportException(string message, Exception? innerException = null)
|
|
: Exception(message, innerException);
|