| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod CreateAndResequence ( |  |   Unit owner, |  |   DateTime earlieststart, |  |   Duration duration, |  |   Number sequencenumberforexcel, |  |   Real minqty, |  |   Real maxqty, |  |   Duration minduration, |  |   Duration maxduration, |  |   String campaigntypename, |  |   String campaignid, |  |   String comment, |  |   Boolean hasinputmaxquantity, |  |   Boolean hasinputmaxduration, |  |   Boolean isfromdb, |  |   Campaign_MP targetcampaign, |  |   Transition_MP transition, |  |   DateTime droptime |  | ) as Campaign_MP |  | { |  |   Description: 'Create and resequence campaign to after targeted campaign with desired duration.' |  |   TextBody: |  |   [* |  |     newcampaign := Campaign_MP::Create( owner, |  |                                         earlieststart, |  |                                         duration, |  |                                         sequencenumberforexcel, |  |                                         minqty, |  |                                         maxqty, |  |                                         minduration, |  |                                         maxduration, |  |                                         campaigntypename,  |  |                                         campaignid, |  |                                         comment, |  |                                         hasinputmaxquantity, |  |                                         hasinputmaxduration, |  |                                         isfromdb ); |  |      |  |     owner.ResequenceCampaign( newcampaign, |  |                               targetcampaign, |  |                               transition, |  |                               droptime ); |  |      |  |     return newcampaign; |  |   *] |  | } | 
 |