hongji.li
2023-11-07 192c736b8ac4b2d84cb823ac71f17e507948a5e8
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
Quintiq file version 2.0
#parent: #root
Method ShowHideComponentsForRadioButtonValue () derived id:Method_DialogEDIExportDEV_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 );
    
    // MPSC DEF UI
    ismpscdef := RadioButtonGroupMPSCMode.BoundValue() = 'DEF';
    
    LabelMPSCExcelPath.Visible( not ismpscdef );
    EditorMPSCExcelPath.Text( ValueHolderDEFExcelPath.Value() );
    EditorMPSCExcelPath.Visible( not ismpscdef );
    ButtonMPSCBrowse.Visible( not ismpscdef );
    SelectionMPSPlan.Visible( ismpscdef );
    CheckBoxNewMPSPlanSet.Visible( ismpscdef );
    EditorMPSPlan.Visible( ismpscdef );
  *]
}