lihongji
2024-06-05 672435a64b969570409b795a35be8fe0708b047b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Quintiq file version 2.0
#parent: #root
Method GetOperationInCampaignTypeSyncID () as Number
{
  Description: 'Increase OperationInCampaignTypeSyncID by 1 and return the latest ID'
  TextBody:
  [*
    mpsyncid := this.OperationInCampaignTypeSyncID() + 1;
    mpsyncid := ifexpr( mpsyncid = Number::MaxNumber(), SyncIDGenerator::InitialMessageSyncID(), mpsyncid );
    
    this.OperationInCampaignTypeSyncID( mpsyncid );
    
    return mpsyncid;
  *]
}