| | |
| | | entercost := ceil( quantity / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | //长春外租库出库费用: 出库量/包装容量*出库单价 |
| | | outcost := ceil( quantity / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | // cell.CCRentEnterCost( cell.CCRentEnterCost() + entercost ); // 属性类型修改 |
| | | // cell.CCRentOutCost( cell.CCRentOutCost() + outcost ); // 属性类型修改 |
| | | cell.CCRentInCost( cell.CCRentInCost() + entercost ); |
| | | cell.CCRentOutOfCost( cell.CCRentOutOfCost() + outcost ); |
| | | } |
| | | } |
| | | if( isdlrent ){//目的地是大连外租库 |
| | |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | //运输数量/包装容量/装载容量*运输单价 |
| | | cost := ceil( ceil( quantity / enginecost.PackagingCapacity() ) / transcost.LoadingCapacity() ) * transcost.TransportPrice();//四舍五入 |
| | | // cell.FactoryToDLRentTransCost( cell.FactoryToDLRentTransCost() + cost );属性类型修改 |
| | | cell.WerkToDLRentTransCost( cell.WerkToDLRentTransCost() + cost ); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | cost := ceil( ceil( [Number]tpcell.Value() / enginecost.PackagingCapacity() ) / transcost.LoadingCapacity() ) * transcost.TransportPrice(); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | // cell.CCLongTransCoat( cell.CCLongTransCoat() + cost ); 属性类型修改 |
| | | cell.CCLongTransCost( cell.CCLongTransCost() + cost ); |
| | | } |
| | | } |
| | | } |
| | |
| | | // info( '-------------------------', column.Name() ); |
| | | cost := ceil( [Number]psdip.Quantity() / enginecost.PackagingCapacity() ) * enginecost.WarehousingPrice(); |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | // cell.CCShortTransCost( cell.CCShortTransCost() + cost ); 属性类型修改 |
| | | cell.CCShorTransCost( cell.CCShorTransCost() + cost ); |
| | | } |
| | | } |
| | | } |
| | |
| | | and engine.Factory() = ccunit ); |
| | | if( not isnull( enginecost ) ){ |
| | | cost := ceil( [Number]pispip.NewSupplyQuantity() / enginecost.PackagingCapacity() ) * enginecost.StoragePrice();//四舍五入 |
| | | // cell.CCRentStorageCost( cell.CCRentStorageCost() + cost ); 属性类型修改 |
| | | cell.CCRentStorCost( cell.CCRentStorCost() + cost ); |
| | | } |
| | | } else { |
| | | //在发动机成本参数表找到对应的包装容量 |
| | |
| | | and engine.Factory() = dlunit ); |
| | | if( not isnull( enginecost ) ){ |
| | | cost := ceil( [Number]pispip.NewSupplyQuantity() / enginecost.PackagingCapacity() ) * enginecost.StoragePrice();//四舍五入 |
| | | // cell.DLRentStorageCost( cell.DLRentStorageCost() + cost );; 属性类型修改 |
| | | cell.DLRentStorCost( cell.DLRentStorCost() + cost ); |
| | | } |
| | | } |
| | | } |