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
| Quintiq file version 2.0
| #parent: #root
| Method CreateCampaignDurationResequence (
| Unit unit,
| DateTime earliestStart,
| Duration minDuration,
| Duration maxDuration,
| String campaignTypeName,
| Campaign_MP targetCampaign,
| Transition_MP targetTransition,
| DateTime dropTime
| ) as Campaign_MP
| {
| Description: 'Create then resequence duration campaign.'
| TextBody:
| [*
| // Create and resequence new campaign duration
| comment := 'Campaign created for UTF';
| newcampaign := Campaign_MP::CreateAndResequence( unit,
| earliestStart,
| 999, /* sequence number for excel */
| 0.0,
| 0.0,
| minDuration,
| maxDuration,
| campaignTypeName,
| OS::GenerateGUIDAsString(),
| comment,
| false,
| maxDuration > Duration::Zero(),
| false,
| targetCampaign,
| targetTransition,
| dropTime );
| return newcampaign
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|