Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Create (
|
OptCampaignCombi owner,
|
TransitionType_MP transitiontype,
|
OptCampaignUnitSubPeriod optsubunitperiod
|
) as OptCampaignCombiElementTransition
|
{
|
TextBody:
|
[*
|
optcampaigncombielementtransition := owner.OptCampaignCombiElement( relnew,
|
OptCampaignCombiElementTransition,
|
TransitionType_MP := transitiontype,
|
OptCampaignUnitSubPeriod := optsubunitperiod );
|
|
//We want to propagate this relation as soon as the object is created
|
//The impact on performance should be very limited since it's partial propagation on only this relation.
|
Transaction::Transaction().Propagate( relation( OptCampaignCombiElement, OptCampaignElementType ) );
|
//This needs to be calculated in order to generate the combis correctly
|
optcampaigncombielementtransition.CalcIsFirstElementTypeInCombi();
|
return optcampaigncombielementtransition;
|
*]
|
}
|