Lai,Risheng
2023-11-02 30c02e0c981b16be0918483543f4b812956c45d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Quintiq file version 2.0
#parent: pnlActions/btnImport
Response OnClick () inherited id:Response_pnlActions_btnImport_OnClick
{
  #keys: '[144528.1.539475202]'
  BaseType: 'Response_pnlActions_btnImport_OnClick'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    // Precondition to import
    // btnImport unable to refresh if called from form method
    isdef := rbgImportSource.BoundValue() = MPSyncUtility::ID_Source_DEF();
    result := true;
    if( isdef )
    {
      result := Form.O_Precondition_Import( feedback );
    }
    else
    {
      result := ApplicationMacroPlanner.LibSOPImpExp_DataHolderImportBase().Data().astype( LibSOPImpExp_ImportExcel ).CanImport( feedback );
    }
    return result;
  *]
}