Quintiq file version 2.0
|
#parent: MatrixEditorSupplyPlanning
|
Response OnClick (
|
shadow[PlanningCell] selection
|
) id:Response_MatrixEditorSupplyPlanning_MenuLock_OnClick
|
{
|
#keys: '[146140.0.568092105]'
|
DefinitionID => /Responsedef_MatrixEditorSupplyPlanning_WebMenu_OnClick
|
GroupServerCalls: true
|
Initiator: 'MenuLock'
|
Precondition:
|
[*
|
pispip := selection.ProductInStockingPointInPeriodPlanning();
|
pispips := construct( ProductInStockingPointInPeriods );
|
pispips.Add( pispip );
|
|
return not isnull( pispip ) and ProductInStockingPointInPeriod::CanLockUnlock( pispips, feedback );
|
*]
|
QuillAction
|
{
|
Body:
|
[*
|
// Lock the cell
|
Form.OnUpdateValue( selection, selection.Quantity() );
|
pispip := selection.ProductInStockingPointInPeriodPlanning();
|
PlanningCell::LockPISPIP( pispip, true );
|
*]
|
}
|
}
|