Quintiq file version 2.0
|
#parent: #root
|
Method ShowHideComponentsForRadioButtonValue () derived id:Method_DialogEDIImport_ShowHideComponentsForRadioButtonValue
|
{
|
#keys: '[124808.0.727061256]'
|
BaseType => //DialogEDIImportExport/Method_DialogEDIImportExport_ShowHideComponentsForRadioButtonValue
|
Body:
|
[*
|
// Show / hide components for radio button value
|
selection := RadioButtonGroupExcelOrDataManager.BoundValue();
|
is3DDrive := selection = MPSyncUtility::ID_Source_3DDrive();
|
isDEF := selection = MPSyncUtility::ID_Source_DEF();
|
|
isexcel := RadioButtonGroupExcelOrDataManager.BoundValue() = MPSyncUtility::ID_Source_Excel();
|
// set last import/ export path
|
Dialog.SetUserPath( isexcel );
|
|
PanelExcel.Visible( not isDEF );
|
ImageExcel.Visible( not isDEF );
|
SplitterWndImportObjectGroup.Visible( not isDEF );
|
|
// Visibility of components in the Excel panel
|
LabelPath3DDrive.Visible( is3DDrive );
|
EditorImportExportPath3DDrive.Visible( is3DDrive );
|
ButtonBrowse3DDrive.Visible( is3DDrive );
|
LabelPath.Visible( not is3DDrive );
|
EditorImportExportPath.Visible( not is3DDrive );
|
ButtonBrowse.Visible( not is3DDrive );
|
|
// Visibility of components in the DEF panel
|
PanelDataExchangeFramework.Visible( isDEF );
|
ImageDEF.Visible( isDEF );
|
|
// ### Above this line is inherited
|
CheckBoxNewSalesDemandsSet.Visible( false );
|
EditorSalesDemand.Visible( false );
|
|
// MP-SC DEF
|
ismpscdef := RadioButtonGroupMPSCMode.BoundValue() = 'DEF';
|
EditorMPSCExcelPath.Text( ValueHolderDEFExcelPath.Value() );
|
LabelMPSCExcelPath.Visible( not ismpscdef );
|
EditorMPSCExcelPath.Visible( not ismpscdef );
|
ButtonMPSCBrowse.Visible( not ismpscdef );
|
SelectionSC_MPSParams.Visible( ismpscdef );
|
SelectionSCPlan.Visible( ismpscdef );
|
*]
|
}
|