yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method RequestSendGetHierarchyToDataManager (String requestID_i, String hierarchyName_i, String sourceKind_i, 
  String sourceName_i)
{
  Description: 'Send a GetHierarchy-request to the DataManager.'
  TextBody:
  [*
    nvt := LibInt_MessageAccessor::CreateEmptyMessage();
    
    // Add information to the header of the NTV that is specific for the DataManager.
    LibInt_MessageAccessor::SetHeaderProperty( nvt, LibDMF_CommunicationChannel::HEADER_IS_REQUEST(),    true            );
    LibInt_MessageAccessor::SetHeaderProperty( nvt, LibDMF_CommunicationChannel::HEADER_REQUESTID(),     requestID_i     );
    LibInt_MessageAccessor::SetHeaderProperty( nvt, LibDMF_CommunicationChannel::HEADER_HIERARCHYNAME(), hierarchyName_i );
    
    // by default, min datetime is used so that the request will always return a result
    lastUpdate := DateTime::MinDateTime();
    
    this.MessageSend( null( LibDMF_SystemOnChannel ), LibDMF_CommunicationChannel::REQUEST_GETHIERARCHY(),
                      nvt, sourceKind_i, sourceName_i, lastUpdate );
  *]
}