Fix Lock & Unlock bug
修复了看似锁定实际上啥都没锁住的问题,使用Add方法时请注意重新赋值
| | |
| | | pispips := construct( ProductInStockingPointInPeriods ); |
| | | macroplan := MacroPlan; |
| | | traverse( checkorders, Elements, order ){ |
| | | pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); |
| | | pispips := pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, pispip.SupplyQuantity() > 0 ) ); |
| | | } |
| | | |
| | | pispipLeafs := selectset( pispips, |
| | |
| | | pispips := construct( ProductInStockingPointInPeriods ); |
| | | macroplan := MacroPlan; |
| | | traverse( checkorders, Elements, order ){ |
| | | pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, true ) ); |
| | | pispips := pispips.Add( selectset( order, ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip, pispip.SupplyQuantity() > 0 ) ); |
| | | } |
| | | |
| | | pispipLeafs := selectset( pispips, |