yypsybs
2023-09-07 b113f7a558b7bce50824293cf066cccaad6c257e
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
32
Quintiq file version 2.0
#parent: #root
StaticMethod upload (
  GlobalOTDTable parent,
  String filePath,
  BinaryValue bytes,
  GlobalOTDTable parent,
  String filePath,
  BinaryValue bytes,
  GlobalOTDTable parent,
  String filePath,
  BinaryValue bytes,
  GlobalOTDTable parent,
  String filePath,
  BinaryValue bytes
) as MatAttrSettingAndPlanStrategyInputSource
{
  TextBody:
  [*
    // yypsybs Jul-1-2023 (created)
    parent.MatAttrSettingAndPlanStrategyInputSource( relflush );
    info( "filePath : " + filePath );
    fileName := filePath.Tokenize( "\" ).Element( filePath.Tokenize( "\" ).Size() - 1 );
    info( "fileName : " + fileName );
    inputSource := parent.MatAttrSettingAndPlanStrategyInputSource( relnew,
                                              fileName := fileName,
                                              bytes := bytes, 
                                              isXlsx := fileName.EndsWith( "xlsx" ));
    
    return inputSource;
  *]
}