陈清红
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
Quintiq file version 2.0
#parent: #root
StaticMethod ValidateInput (
  output String feedback_o,
  output String sanitycheckfb_o,
  LibSCIScenarios selectedlibsciscenarios,
  LibSCIScenario isbaselibsciscenario,
  LibSCIScenario iscurrentlibsciscenario
) declarative remote as Boolean
{
  Description: 'Check export path, selected scenario in order to enable or disable the export button for SCI Export dialog.'
  TextBody:
  [*
    feedback_o := '';
    
    // Check at least 1 LibSCIScenario checkbox is checked
    if( selectedlibsciscenarios.Size() < 1 )
    {
      feedback_o := Translations::LibSCIIntegration_IntegrationInterface_ValidateInput_NotSelectScenario(); 
    }
    // Check there is a Base LibSCIScenario
    else if( isnull( isbaselibsciscenario ) )
    {
      feedback_o := Translations::LibSCIIntegration_IntegrationInterface_ValidateInput_IsBaseNotSelected();
    }
    // Check there is a Current LibSCIScenario
    else if( isnull( iscurrentlibsciscenario ) )
    {
      feedback_o := Translations::LibSCIIntegration_IntegrationInterface_ValidateInput_IsCurrentNotSelected();
    }
    
    return feedback_o = '';
  *]
}