陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Quintiq file version 2.0
#parent: #root
Method GetMinCapacityErrorMessage (
  Unit unit,
  Real expected,
  UnitPeriodQuantity unitPeriod
) as String
{
  Description: 'Return error message to inform incorrect min capacity compared to expectation.'
  TextBody:
  [*
    return 'Unit [' + unit.Name() 
           + '] has expected min capacity of ' + expected.Format( 'N(Dec(2),Thousands) ' )
           + ' instead of ' + unitPeriod.TotalMinCapacity().Format( 'N(Dec(2),Thousands) ' )
           + ' on start ' + unitPeriod.Start().Format( 'MEDIUMDATE' );
  *]
  InterfaceProperties { Accessibility: 'Module' }
}