Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetValue () declarative remote as Number 
 | 
{ 
 | 
  Description: 'Calculate summary for each of the object in web client - FormScenarioSummary' 
 | 
  TextBody: 
 | 
  [* 
 | 
    value := 0; 
 | 
    macroplan := this.MacroPlan(); 
 | 
     
 | 
    if( this.Name() = ScenarioSummary::GetStringProducts() ) 
 | 
    { 
 | 
      value := macroplan.Product_MP( relsize );   
 | 
    } 
 | 
    else if( this.Name() = ScenarioSummary::GetStringLanes() ) 
 | 
    { 
 | 
      value := counter( macroplan, Unit.Lane, lane , true, true ); 
 | 
    } 
 | 
    else if( this.Name() = ScenarioSummary::GetStringRoutings() ) 
 | 
    { 
 | 
      value := macroplan.Routing( relsize ); 
 | 
    } 
 | 
    else if( this.Name() = ScenarioSummary::GetStringSalesDemands() ) 
 | 
    { 
 | 
      value := macroplan.SalesDemand( relsize ); 
 | 
    } 
 | 
    else if( this.Name() = ScenarioSummary::GetStringUnits() ) 
 | 
    { 
 | 
      value := macroplan.Unit( relsize ); 
 | 
    } 
 | 
    else if ( this.Name() = ScenarioSummary::GetStringSalesSegment() ) 
 | 
    { 
 | 
      value := macroplan.SalesSegment_MP( relsize ); 
 | 
    } 
 | 
    else if ( this.Name() = ScenarioSummary::GetStringStockingPoints() ) 
 | 
    { 
 | 
      value := macroplan.StockingPoint_MP( relsize ); 
 | 
    } 
 | 
    else if ( this.Name() = ScenarioSummary::GetStringPeriods() ) 
 | 
    { 
 | 
      value := macroplan.PlanningPeriod( relsize ); 
 | 
    } 
 | 
     
 | 
    return value; 
 | 
  *] 
 | 
} 
 |