Quintiq file version 2.0
|
#parent: #root
|
Method SetDefaultValue () id:Method_DialogCreateEditStockingPoint_SetDefaultValue
|
{
|
#keys: '[135040.0.213300467]'
|
Body:
|
[*
|
// Set default + init dialog
|
dialogInstance := DataHolderDialogData.Data().WrappedInstance();
|
|
isNew := isnull( dialogInstance );
|
|
candidates := selectsortedset( MacroPlan, Unit, unit, true, unit.Name() ); //all units
|
|
if( not isNew )
|
{
|
CheckboxHasStart.Checked( dialogInstance.Start().IsFinite() )
|
CheckboxHasEnd.Checked( dialogInstance.End().IsFinite() )
|
}
|
|
DataHolderParentUnitSelection.Data( &candidates );
|
*]
|
}
|