陈清红
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
36
37
Quintiq file version 2.0
#parent: #root
Method PTF_TestDisplayInfo (
  output Real duration_o,
  output String response_o
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestDisplayInfo
{
  #keys: '[136682.0.314444048]'
  Body:
  [*
    // Serves as a template method for QSes to implement the method to be executed
    isSuccessful := false;
    
    preconditionOK := true; // Your precondition for executing the action
    
    if( preconditionOK )
    {
      start := OS::PrecisionCounter();
    
      // Call your method here
      // Use the following construct if you want to execute a server method
      info( "Test action DisplayInfor works! This is merely to display simple info" );
      // Call the following statement if the action is asynchronous
      // this.PTF_ExecutePreAsyncAction();
    
      duration_o   := this.PTF_GetDurationInMilisecond( start );
      response_o   := 'PTF_TestDisplayInfo works';
      isSuccessful := true;
    }
    else
    {
      response_o := '< Precondition failed reason >'; // Your precondition failed reason
    }
    
    return isSuccessful;
  *]
}