yanweiyuan3
2023-10-26 a89f9faebe6e90c5cf1faeb1d551825e0cb2a06d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Quintiq file version 2.0
#parent: #root
StaticMethod GetBusnessStrings (
  const GlobalOTDTable globalOTDTable
) as String
{
  TextBody:
  [*
    // NBoTk Sep-7-2023 (created)
    // 获取businessType 集合
    result := "";
    scenarioNameList := construct( structured[String]);
    
    traverse( globalOTDTable,BusinessType,b)
    {
        scenarioNameList.Add( b.ScenarioName() ); 
    }
    
    // 如果存在businessType数据 则返回 : a,b,c
    
    if( not isnull( scenarioNameList ) )
    {
        result := scenarioNameList.Concatenate( ";" );
    }
    
    // 测试数据
    //result := "集团面板;专业显示事业部;外卖CELL;非显;运动健康;运动健康事业部;手机事业部;特种显示;汽车电子事业部;车载显示事业部;IT事业部";
    
    return result;
  *]
}