| | |
| | | #keys: '[412960.0.245380616]' |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | Precondition: |
| | | [* |
| | | checkorders := DataHolderOrderLockCheckedOrder.Data(); |
| | | pispips := construct( ProductInStockingPointInPeriods ); |
| | | traverse( checkorders, Elements, order ){ |
| | | pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); |
| | | } |
| | | return ProductInStockingPointInPeriod::CanLockUnlock( pispips, feedback ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | checkorders := DataHolderOrderLockCheckedOrder.Data(); |
| | | pispips := construct( ProductInStockingPointInPeriods ); |
| | | macroplan := MacroPlan; |
| | | traverse( checkorders, Elements, order ){ |
| | | info( order.ProductID() ); |
| | | pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); |
| | | } |
| | | |
| | | pispipLeafs := selectset( pispips, |
| | | Elements.astype( ProductInStockingPointInPeriodPlanningLeaf ), |
| | | pispip, |
| | | true ); |
| | | |
| | | CustomerOrder::LockUnlock( macroplan, checkorders, true ); |
| | | ProductInStockingPointInPeriod::LockUnlockPlanning( pispipLeafs, true, true ); |
| | | *] |
| | | } |
| | | } |