| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod Create ( | 
|   Operation owner, | 
|   CampaignType_MP campaigntype, | 
|   Boolean isfromdb | 
| ) as OperationInCampaignType | 
| { | 
|   Description: 'Creates OperationInCampaignType from GUI' | 
|   TextBody: | 
|   [* | 
|     // soh yee Apr-11-2014 (created) | 
|      | 
|     type := owner.OperationInCampaignType( relnew, | 
|                                            CampaignTypeName := campaigntype.Name(), | 
|                                            OperationID := owner.ID(), | 
|                                            UnitID := campaigntype.UnitID() ); | 
|      | 
|     type.CreatePeriodTaskInCampaigns(); | 
|     type.IsManuallyConfigured( not isfromdb ); | 
|     return type; | 
|   *] | 
| } |