Quintiq file version 2.0
|
#parent: #root
|
Method Edit (
|
structured[OperationInput] selection,
|
internal[GUIComponent] parent
|
) id:Method_DialogCreateEditOperationInput_Edit
|
{
|
#keys: '[113694.1.1947443598]'
|
Body:
|
[*
|
// Edit input/output operation quantity (batch)
|
e := selection.Element( 0 );
|
|
Dialog.Data( e );
|
|
Dialog.EnableDisableComponents();
|
|
result := Dialog.DoModal( parent );
|
|
if ( result > 0 )
|
{
|
userquantity := ApplicationLibMacroPlanner.FormatStringToReal( EditorQuantity.Text(), 0.0 );
|
minquantity := ApplicationLibMacroPlanner.FormatStringToReal( EditorMinQuantity.Text(), 0.0 );
|
maxquantity := ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxQuantity.Text(), 0.0 );
|
|
hasuserqty := userquantity <> e.Quantity()
|
or minquantity <> e.MinQuantity()
|
or maxquantity <> e.MaxQuantity()
|
|
OperationInput::Update( selection,
|
hasuserqty, //once changes has been made, this flag will always be true.
|
minquantity,
|
maxquantity,
|
userquantity,
|
false);
|
}
|
*]
|
}
|