chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
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
Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11660.0.62385711]'
  Body:
  [*
    // Apply changes
    
    Dialog.ApplyChanges();
    Dialog.SetAttributesAfterOnApplyData();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return not isnull( Dialog.Data() )  //the only time Dialog.Data null check is required is when this dlg is opened for view initialization. 
           and Lane::ValidateInput( feedback,
                                    sanitycheckfeedback,
                                    MacroPlan,
                                    SelectionUnit.Data(),
                                    Dialog.Data().WrappedInstance(),
                                    EditorID.Text(),
                                    EditorName.Text(),
                                    CheckBoxHasStart.Checked(),
                                    GUIDateTimeSelectorStart.DateTime().Date(),
                                    CheckBoxHasEnd.Checked(),
                                    GUIDateTimeSelectorEnd.DateTime().Date(),
                                    GUIDurationSelectorPreprocessingTime.Duration(),
                                    true);
  *]
}