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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| 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
| ) as Campaign_MP
| {
| Description: 'Create Campaign'
| TextBody:
| [*
| campaign := owner.Campaign_MP( relnew, CampaignID := campaignid, UnitID := owner.ID() );
|
| campaign.Update( owner,
| earlieststart,
| duration,
| sequencenumberforexcel,
| minqty,
| maxqty,
| minduration,
| maxduration,
| campaigntypename,
| campaignid,
| comment,
| hasinputmaxquantity,
| hasinputmaxduration,
| isfromdb );
|
| campaign.CreatePeriodTaskInCampaigns();
|
| return campaign;
| *]
| }
|
|