| | |
| | | Method SetQuantity ( |
| | | InventoryPlanArchiveColumn column, |
| | | Real planqty, |
| | | Real actualaty |
| | | Real actualaty, |
| | | NamedValueTree resetNVT |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | |
| | | column.Cell( relinsert, cell ); |
| | | } |
| | | |
| | | // 判断是否重置为0 |
| | | resetH := resetNVT.GetHandle( this.ShowName() + column.StartDate().Format( "Y-M2-D2" ) ); |
| | | if ( guard( isnull( resetNVT.Root().Child( resetH ) ), true ) ) { |
| | | cell.PlanQuantity( 0 ); |
| | | |
| | | resetNVT.Root().AddChild( resetH ); |
| | | } |
| | | |
| | | cell.PlanQuantity( cell.PlanQuantity() + planqty ); |
| | | cell.ActualQuantity( cell.ActualQuantity() + actualaty ); |
| | | cell.ActualQuantity( actualaty ); |
| | | *] |
| | | } |