lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 );
  *]
}