Quintiq file version 2.0
|
#parent: #root
|
StaticMethod ValidateInput (
|
output String feedback_o,
|
output String sanitycheckfeedback_o,
|
Operation owner,
|
OperationInputGroup operationinputgroup,
|
Real quantity
|
) declarative remote as Boolean
|
{
|
TextBody:
|
[*
|
// amy Dec-8-2010 (created)
|
feedback_o := '';
|
sanitycheckfeedback_o := '';
|
|
operationname := MacroPlan::GetSubstituteName( owner.Name() );
|
|
if( quantity < 0 )
|
{
|
feedback_o := Translations::MP_OperationInputGroup_ValidateInput_InvalidQuantity( quantity );
|
sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue();
|
}
|
|
if( feedback_o <> '' )
|
{
|
instance := Translations::MP_OperationInputGroup_Instance( guard( operationinputgroup.InputGroupID(), 0 ), operationname );
|
feedback_o := SanityCheckMessage::GetFormattedMessage( instance, feedback_o );
|
}
|
|
return feedback_o = '';
|
*]
|
}
|