| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod GetScenarioNamesStr ( | 
|   GlobalOTDTable owner | 
| ) as String | 
| { | 
|   TextBody: | 
|   [* | 
|     // NBoTk Sep-7-2023 (created) | 
|     // 获取businessType 集合 | 
|     result := ""; | 
|     scenarioNameList := construct( structured[String]); | 
|      | 
|     traverse( owner,BusinessType,b) | 
|     { | 
|         scenarioNameList.Add( b.ScenarioName() );  | 
|     } | 
|      | 
|     // 如果存在businessType数据 则返回 : a,b,c | 
|      | 
|     if( not isnull( scenarioNameList ) ) | 
|     { | 
|         result := scenarioNameList.Concatenate( ";" ); | 
|     } | 
|      | 
|     // 测试数据 | 
|     //result := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部"; | 
|      | 
|     return result; | 
|   *] | 
| } |