| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   Number gridpointdistance, | 
|   Number routingstepminimumwidth, | 
|   Number routingstepminimumheight, | 
|   Number operationwidth, | 
|   Number operationheight, | 
|   Number operationinputoutputwidth, | 
|   Number operationinputoutputheight, | 
|   Number pispwidth, | 
|   Number pispheight, | 
|   Number edgethickness, | 
|   String fontname, | 
|   Number fontsize | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Validate input for routing configurator' | 
|   TextBody: | 
|   [* | 
|     lengthlimit := GlobalParameters_MP::GetLengthOfNames(); | 
|     feedback_o := ''; | 
|      | 
|     // Grid point distance | 
|     if( gridpointdistance < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidGridPointDistance(); | 
|     } | 
|     // Routing step width | 
|     if( routingstepminimumwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidRoutingStepWidth(); | 
|     } | 
|     // Routing step height | 
|     else if( routingstepminimumheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidRoutingStepHeight(); | 
|     } | 
|     // Operation width | 
|     else if( operationwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidOperationWidth(); | 
|     } | 
|     // Operation height | 
|     else if( operationheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidOperationHeight(); | 
|     } | 
|     // Operation input output group width | 
|     else if( operationinputoutputwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidOperationInputOutputWidth(); | 
|     } | 
|     // Operation input output group height | 
|     else if( operationinputoutputheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidOperationInputOutputHeight(); | 
|     } | 
|     // Product in stocking point width | 
|     else if( pispwidth < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidPISPWidth(); | 
|     } | 
|     // Product in stocking point height | 
|     else if( pispheight < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidPISPHeight(); | 
|     } | 
|     // Edge thickness | 
|     else if( edgethickness < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidEdgeThickness(); | 
|     } | 
|     // Font name | 
|     else if( fontname = '' or fontname.Length() > lengthlimit ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidFontName( lengthlimit ); | 
|     } | 
|     // Font size | 
|     else if( fontsize < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_RoutingConfiguratorView_ValidateInput_InvalidFontSize(); | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |