Quintiq file version 2.0
|
#parent: #root
|
Method SetDefaultValue (
|
CampaignType_MP campaigntype
|
) id:Method_DialogCreateEditCampaign_MP_SetDefaultValue
|
{
|
#keys: '[110880.4.881763956]'
|
Body:
|
[*
|
// Set default value for the fields in the dialog
|
data := Dialog.Data();
|
|
data.CampaignType_MP( relset, campaigntype );
|
|
hasdefaultmaxquantity := campaigntype.HasInputMaxQuantity();
|
hasdefaultmaxduration := campaigntype.HasInputMaxDuration();
|
data.CampaignTypeName( campaigntype.Name() );
|
data.EarliestStart( MacroPlan.StartOfPlanning() );
|
data.HasInputMaxQuantity( hasdefaultmaxquantity );
|
data.HasInputMaxDuration( hasdefaultmaxduration );
|
|
data.MinQuantity( campaigntype.DefaultMinQuantity() );
|
EditorCampaignMinQuantity.Text( [String] campaigntype.DefaultMinQuantity() );
|
|
data.MaxQuantity( campaigntype.DefaultMaxQuantity() );
|
EditorCampaignMaxQuantity.Text( [String] campaigntype.DefaultMaxQuantity() );
|
|
data.MinDuration( campaigntype.DefaultMinDuration() );
|
GUIDurationSelectorMinDuration.Duration( campaigntype.DefaultMinDuration() );
|
|
data.MaxDuration( campaigntype.DefaultMaxDuration() );
|
GUIDurationSelectorMaxDuration.Duration( campaigntype.DefaultMaxDuration() );
|
|
data.Duration( campaigntype.DefaultDuration() );
|
*]
|
}
|