yanweiyuan3
2023-08-09 fd693f0faf305ec98d7ea03e09fe6787817e71d7
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
Quintiq file version 2.0
#parent: #root
Method ValidateInput (
  output String feedback_o,
  String excelpath
) as Boolean id:Method_DialogImportObjectGroupInProfile_ValidateInput
{
  #keys: '[132894.0.64222075]'
  Body:
  [*
    // verify whether the current input is valid
    // currently only checking excel path
    
    result := Application.ClientFileExists( excelpath )
              or not exists( this.Data(), ImportObjectGroupInUserProfile, e,
                             e.IsIncludeInImportExport() and
                             e.Source() = MPSyncUtility::ID_Source_Excel() );
    
    if ( not result )
    {
      feedback_o := Translations::MPSync_ImportProfile_ValidateInput_IsInvalidExcelPath();
    }
    else if ( not exists( this.Data(), ImportObjectGroupInUserProfile, e,
                          e.IsIncludeInImportExport() ) )
    {
      feedback_o := Translations::MP_Designer_ImportPathAndCheckBoxes();
    }
    
    
    return feedback_o = '';
  *]
}