| | |
| | | alldetails := selectset( selections, Elements.InventoryInterfaceDataDetail, detail, detail.PartNumber() = productid and detail.Date() >= start and detail.Date() <= end ); |
| | | if( alldetails.Size() > 0 ){ |
| | | allrow := table.GetRow( allunit, productid ); |
| | | allvalue := sum( alldetails, Elements, e, e.Quantity() ); |
| | | allvalue := sum( alldetails, Elements, e, [Number]e.Quantity() ); |
| | | allrow.SetCellValue( this, allvalue ); |
| | | //长春 |
| | | ccdetails := selectset( alldetails, Elements, detail, ccstockingpointids.Find( detail.InventoryPointSelection().StockpoingPoint() ) >= 0 ); |
| | | if( ccdetails.Size() > 0 ){ |
| | | ccrow := table.GetRow( ccunit, productid ); |
| | | value := sum( ccdetails, Elements, e, e.Quantity() ); |
| | | value := sum( ccdetails, Elements, e, [Number]e.Quantity() ); |
| | | ccrow.SetCellValue( this, value ); |
| | | } |
| | | //大连 |
| | | dldetails := selectset( alldetails, Elements, detail, dlstockingpointids.Find( detail.InventoryPointSelection().StockpoingPoint() ) >= 0 ); |
| | | if( dldetails.Size() > 0 ){ |
| | | dlrow := table.GetRow( dlunit, productid ); |
| | | value := sum( dldetails, Elements, e, e.Quantity() ); |
| | | value := sum( dldetails, Elements, e, [Number]e.Quantity() ); |
| | | dlrow.SetCellValue( this, value ); |
| | | } |
| | | } |