Quintiq file version 2.0
#parent: #root
Method Edit (
  SixDigitCode selection
) id:Method_DialogCreateEditSixDigitCode_Edit
{
  #keys: '[413988.0.1147490410]'
  Body:
  [*
    data := shadow( selection );
    
    ssmp := select( MacroPlan, SalesSegment_MP, tempSSMP, tempSSMP.Name() = selection.VehicleModel() );
    ddlVehicleModel.Data( ssmp );
    
    pmp  := select( MacroPlan, Product_MP, tempPMP, tempPMP.ID() = selection.EnginePartNumber() );
    ddlEnginePartNumber.Data( pmp );
    
    DataHolderDialogData.Data( &data );
    dhSelectionSixDigitCode.Data( selection );
    
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
