1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Upload ( 
 |    GlobalOTDTable globalOTDTable, 
 |    String filePath, 
 |    String base64Str, 
 |    String userName 
 |  ) as MatAttrSettingAndPlanStrategyInputSource 
 |  { 
 |    TextBody: 
 |    [* 
 |      globalOTDTable.MatAttrSettingAndPlanStrategyInputSource( relflush ); 
 |       
 |      fileName := filePath.Tokenize( "\" ).Element( filePath.Tokenize( "\" ).Size() - 1 ); 
 |       
 |      inputSource := globalOTDTable.MatAttrSettingAndPlanStrategyInputSource( relnew, 
 |                                                                              FileName  := fileName, 
 |                                                                              Base64Str := base64Str,  
 |                                                                              IsXlsx    := fileName.EndsWith( "xlsx" ),  
 |                                                                              UserName  := userName ); 
 |       
 |      return inputSource; 
 |    *] 
 |  } 
 |  
  |