Quintiq file version 2.0
|
#parent: #root
|
Method ValidateInput (
|
output String feedback_o
|
) as Boolean id:Method_DialogCreateEditAccountCost_ValidateInput
|
{
|
#keys: '[113694.2.554496807]'
|
Body:
|
[*
|
// Validate dialog input
|
// Override in product related costs dialog.
|
feedback_o := '';
|
|
if( not Dialog.GetIsUniqueCost() )
|
{
|
feedback_o := Translations::MP_AccountCost_ValidateInput_IsNotUnique();
|
}
|
else
|
{
|
sanitycheckfb := '';
|
AccountCost::ValidateInput( feedback_o,
|
sanitycheckfb,
|
SelectionAccount.Data(),
|
StringSelectionCostDriver.BoundValue(),
|
GUIDateTimeSelectorStart.DateTime().Date(),
|
StringSelectionTimeUnit.BoundValue(),
|
ApplicationLibMacroPlanner.FormatStringToNumber( EditorLengthOfTime.Text() ),
|
ApplicationLibMacroPlanner.FormatStringToReal( EditorCost.Text() ),
|
Dialog.Data().WrappedInstance() );
|
}
|
|
return feedback_o = '';
|
*]
|
}
|