| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod ValidateInput ( |  |   output String feedback_o, |  |   output String sanitycheckfb_o, |  |   BaseRecipeIngredient baserecipeingredient, |  |   Real minimum, |  |   Real maximum, |  |   Real nominal |  | ) declarative remote as Boolean |  | { |  |   Description: 'Checks the correctness of input data from Create/Edit dialog.' |  |   TextBody: |  |   [* |  |     // ying ying Nov-05-2014 (created) desmondt (modified) |  |     // Adhi Jun-27-2016 (modified) |  |      |  |     isvalid := baserecipeingredient.GetHasValidMaximum( feedback_o, sanitycheckfb_o, maximum )  |  |                and baserecipeingredient.GetHasValidMinimum( feedback_o, sanitycheckfb_o, minimum ) |  |                and baserecipeingredient.GetHasValidMinimumAndMaximum( feedback_o, sanitycheckfb_o, minimum, maximum ) |  |                and baserecipeingredient.GetHasValidNominal( feedback_o, sanitycheckfb_o, minimum, maximum, nominal ); |  |      |  |     return isvalid; |  |   *] |  | } | 
 |