yanweiyuan3
2023-10-27 d1d15b61dfcf7fd0f800b32359f082cf580ed556
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
Quintiq file version 2.0
#parent: #root
Method PTF_ToggleBatchEditUIState (
  Boolean enabled
) id:Method_LibPTF_dlgCreateEditTestScript_PTF_ToggleBatchEditUIState
{
  #keys: '[104342.0.747357661]'
  Body:
  [*
    // Toggling the state of the components based on whether it is a batch edit
    this.lblDescription().Enabled( enabled );
    this.edtDescription().Enabled( enabled );
    
    this.lblUserName().Enabled( enabled );
    this.edtUser().Enabled( enabled );
    
    this.lblPassword().Enabled( enabled );
    this.edtPassword().Enabled( enabled );
    
    this.lblTestScript().Enabled( enabled );
    this.pnlTestScript().Enabled( enabled );
    
    this.durOffset().Enabled( enabled );
    
    this.durMinStartClientDelay().Enabled( enabled );
    this.lblStartClientDelayTo().Enabled( enabled );
    this.durMaxStartClientDelay().Enabled( enabled );
    
    this.imgTestScriptStartOffset().SetProperty( "Tooltip", this.imgTestScriptStartOffset().GetProperty( "Tooltip" )
                                                              + String::NewLine()
                                                              + "(Tick the checkbox to update)" );
    
    this.imgStartClientOffset().SetProperty( "Tooltip", this.imgStartClientOffset().GetProperty( "Tooltip" )
                                                              + String::NewLine()
                                                              + "(Tick the checkbox to update)" );
    
    // Refresh text colour according to currect Enabled state
    this.PTF_RefreshDurationSelectorState();
  *]
}