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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method Import ( 
 |    Boolean importstrategy, 
 |    Boolean importaccount, 
 |    Boolean importbookmark, 
 |    Boolean importkpisettings, 
 |    owning BinaryValues binaryvalues, 
 |    Strings brokernames, 
 |    Boolean is3DDrive, 
 |    FileItems fileItems, 
 |    Strings fileNames 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      // cye1 Oct-20-2016 (created) 
 |       
 |      strategies := BinaryValue::Construct(); 
 |      accounts   := BinaryValue::Construct(); 
 |      bookmarks  := BinaryValue::Construct();  
 |      kpisettings := BinaryValue::Construct(); 
 |       
 |      if( is3DDrive ) 
 |      { 
 |        binaryvalues := MPSyncUtility::ImportFrom3DDrive( fileNames, fileItems ); 
 |      } 
 |       
 |      this.ImportBinaryData( binaryvalues, brokernames, accounts, strategies, bookmarks, kpisettings ); 
 |       
 |      if( importaccount) 
 |      { 
 |        this.SynchronizeAccounts( accounts ); 
 |      } 
 |       
 |      if( importstrategy ) 
 |      { 
 |        this.ImportStrategies( strategies ); 
 |      } 
 |       
 |      if( importbookmark ) 
 |      { 
 |        this.ImportBookmarks( bookmarks ); 
 |      } 
 |       
 |      if( importkpisettings ) 
 |      { 
 |        this.ImportKPISettings( kpisettings ); 
 |      } 
 |    *] 
 |  } 
 |  
  |