Quintiq file version 2.0
|
#parent: #root
|
MethodOverride UpdateWithPartialNVT (
|
NamedValueTree partialnvt
|
)
|
{
|
TextBody:
|
[*
|
// WARNING: DO NOT MODIFY THIS METHOD DIRECTLY AS IT WILL BE OVERWRITTEN.
|
|
typenode := partialnvt.Root();
|
|
traverse( typenode.Children(), Elements, child )
|
{
|
if( child.Name() = attribute( DTO_SafetyStock, Z_HasUserTarget ).Name() )
|
{
|
this.HasUserTarget( child.GetValueAsBoolean() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_HasTargetInDays ).Name() )
|
{
|
this.HasTargetInDays( child.GetValueAsBoolean() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_ProductID ).Name() )
|
{
|
this.ProductID( child.GetValueAsString() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_Start ).Name() )
|
{
|
this.Start( child.GetValueAsDate() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_StockingPointID ).Name() )
|
{
|
this.StockingPointID( child.GetValueAsString() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_UserTargetInDays ).Name() )
|
{
|
this.UserTargetInDays( child.GetValueAsReal() );
|
}
|
else if( child.Name() = attribute( DTO_SafetyStock, Z_UserTargetInQuantity ).Name() )
|
{
|
this.UserTargetInQuantity( child.GetValueAsReal() );
|
}
|
}
|
*]
|
}
|