| 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_Unit, Z_CampaignTypeDuration ).Name() ) | 
|       { | 
|         this.CampaignTypeDuration( child.GetValueAsDuration() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_CapacitySmoothingPercentageDelta ).Name() ) | 
|       { | 
|         this.CapacitySmoothingPercentageDelta( child.GetValueAsReal() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_CapacityType ).Name() ) | 
|       { | 
|         this.CapacityType( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_CurrencyID ).Name() ) | 
|       { | 
|         this.CurrencyID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_DefaultGridX ).Name() ) | 
|       { | 
|         this.DefaultGridX( child.GetValueAsNumber() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_DefaultGridY ).Name() ) | 
|       { | 
|         this.DefaultGridY( child.GetValueAsNumber() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_DisplayIndexForExcel ).Name() ) | 
|       { | 
|         this.DisplayIndexForExcel( child.GetValueAsNumber() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_EndDate ).Name() ) | 
|       { | 
|         this.EndDate( child.GetValueAsDate() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_GISCity ).Name() ) | 
|       { | 
|         this.GISCity( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_GISCountryCode ).Name() ) | 
|       { | 
|         this.GISCountryCode( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_GISPostalCode ).Name() ) | 
|       { | 
|         this.GISPostalCode( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_GroupName ).Name() ) | 
|       { | 
|         this.GroupName( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_HasCapacitySmoothing ).Name() ) | 
|       { | 
|         this.HasCapacitySmoothing( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_HasMaximumQuantity ).Name() ) | 
|       { | 
|         this.HasMaximumQuantity( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_HasUserFrozenFutureDuration ).Name() ) | 
|       { | 
|         this.HasUserFrozenFutureDuration( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_ID ).Name() ) | 
|       { | 
|         this.ID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IconName ).Name() ) | 
|       { | 
|         this.IconName( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IsIncludeInSupplySpecification ).Name() ) | 
|       { | 
|         this.IsIncludeInSupplySpecification( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IsOverlapCapacitySmoothing ).Name() ) | 
|       { | 
|         this.IsOverlapCapacitySmoothing( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IsPlannedInfinite ).Name() ) | 
|       { | 
|         this.IsPlannedInfinite( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IsSmoothCapacityOverAllPeriods ).Name() ) | 
|       { | 
|         this.IsSmoothCapacityOverAllPeriods( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_IsSupplier ).Name() ) | 
|       { | 
|         this.IsSupplier( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_LotSize ).Name() ) | 
|       { | 
|         this.LotSize( child.GetValueAsReal() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_MaximumQuantity ).Name() ) | 
|       { | 
|         this.MaximumQuantity( child.GetValueAsReal() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_MinimumQuantity ).Name() ) | 
|       { | 
|         this.MinimumQuantity( child.GetValueAsReal() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_Name ).Name() ) | 
|       { | 
|         this.Name( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_Notes ).Name() ) | 
|       { | 
|         this.Notes( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_ParentUnitID ).Name() ) | 
|       { | 
|         this.ParentUnitID( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_QuantityToProcess ).Name() ) | 
|       { | 
|         this.QuantityToProcess( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_StartDate ).Name() ) | 
|       { | 
|         this.StartDate( child.GetValueAsDate() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_UnitOfMeasurementName ).Name() ) | 
|       { | 
|         this.UnitOfMeasurementName( child.GetValueAsString() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_UseShiftOptimization ).Name() ) | 
|       { | 
|         this.UseShiftOptimization( child.GetValueAsBoolean() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_UserCapacitySmoothingLength ).Name() ) | 
|       { | 
|         this.UserCapacitySmoothingLength( child.GetValueAsNumber() ); | 
|       } | 
|       else if( child.Name() = attribute( DTO_Unit, Z_UserFrozenFutureDuration ).Name() ) | 
|       { | 
|         this.UserFrozenFutureDuration( child.GetValueAsDuration() ); | 
|       } | 
|     } | 
|   *] | 
| } |