Quintiq file version 2.0
|
#parent: #root
|
Method GetHasTianmaNonSupplierOperationWithNoInput (
|
output Strings feedback_o,
|
output Strings sanitycheckfeedback_o
|
) declarative remote as Boolean
|
{
|
TextBody:
|
[*
|
// Tianma change 20230925: If the unit is not a supplier, raise a data issue if there's no input
|
value := forall( this, RoutingStep.Operation, operation,
|
guard( operation.Unit().IsSupplier(), false )
|
or operation.OperationInput( relsize ) > 0 );
|
|
if( not value )
|
{
|
// Add instance text
|
routingname := MacroPlan::GetSubstituteName( this.Name() );
|
instance := Translations::MP_Routing_Instance( routingname );
|
feedback := SanityCheckMessage::GetFormattedMessage( instance,
|
"非供应商操作没有投入料。" );
|
feedback_o.Add( feedback );
|
sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning() );
|
}
|
|
return value;
|
*]
|
}
|