|
@@ -11,9 +11,12 @@ namespace Comal.Classes
|
|
|
public StagingManufacturingPacketLink Packet { get; set; }
|
|
|
|
|
|
[EditorSequence(1)]
|
|
|
- public ProductLink Product { get; set; }
|
|
|
+ public string Description { get; set; }
|
|
|
|
|
|
[EditorSequence(2)]
|
|
|
+ public ProductLink Product { get; set; }
|
|
|
+
|
|
|
+ [EditorSequence(3)]
|
|
|
public int Quantity { get; set; }
|
|
|
|
|
|
[DimensionsEditor(typeof(ProductDimensions))]
|
|
@@ -31,12 +34,18 @@ namespace Comal.Classes
|
|
|
public ManufacturingPacketComponent CreateComponent(Guid packetID)
|
|
|
{
|
|
|
var component = new ManufacturingPacketComponent();
|
|
|
+ component.Description = Description;
|
|
|
component.Packet.ID = packetID;
|
|
|
component.Product.ID = Product.ID;
|
|
|
component.Quantity = Quantity;
|
|
|
component.Dimensions.CopyFrom(Dimensions);
|
|
|
return component;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ static StagingManufacturingPacketComponent()
|
|
|
+ {
|
|
|
+ LinkedProperties.Register<StagingManufacturingPacketComponent, ProductLink, string>(x => x.Product, x => x.Name, x => x.Description);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|