陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
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
Quintiq file version 2.0
#parent: DataHolderOperation
Response OnDataChanged () id:Response_DialogCreateEditFeedbackOperation_DataHolderOperation_OnDataChanged
{
  #keys: '[146140.0.269351904]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  GroupServerCalls: true
  Precondition:
  [*
    return this.Data().Size() > 0
  *]
  QuillAction
  {
    Body:
    [*
      // This dataholder solve a problem with dialogs. When he user change an unit, a red cross was appearing on 
      // the dropdown list operation during a really short time.  This is due to the fact that we are setting
      // the dropdownlistlaneleg.data( null(LaneLeg ) ).
      // If the Dialog data does not persist in the operation selection of the new unit, auto select 
      // the first available operation. Else, keep the operation selection
      if( not isnull( DataHolderDialogData.Data().Operation() ) )
      {
        if( this.Data().Find( DataHolderDialogData.Data().Operation() ) < 0 )
        {
          DropDownListOperation.Data( this.Data().Element( 0 ) );
        }
        else
        {
          DropDownListOperation.Data( DataHolderDialogData.Data().Operation() );
        }
      }
    *]
  }
}