| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Comparison ( |
| | | RecycleBin recycleBin |
| | | RecycleBin recycleBin, |
| | | const Archive archive |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | |
| | | macroPlan := this.MacroPlan(); |
| | | table := recycleBin.LocalTable( relnew,Name := "产量对比报表"); |
| | | |
| | | actualDailyProductionDatas := selectset( macroPlan,ActualDailyProductionData,data,true ); |
| | | actualDailyProductionDatas := selectset( archive,ActualDailyProductionData,data,true ); |
| | | actualDailyProductionDataIndexTree := NamedValueTree::Create(); |
| | | for( i := 0; i< actualDailyProductionDatas.Size(); i++ ){ |
| | | actualDailyProductionData := actualDailyProductionDatas.Element( i ); |
| | | actualDailyProductionDataKey := actualDailyProductionData.Product() + actualDailyProductionData.Date().AsQUILL(); |
| | | actualDailyProductionDataKey := actualDailyProductionData.ProductNo() + actualDailyProductionData.ProductionDate().AsQUILL(); |
| | | actualDailyProductionDataHandle := actualDailyProductionDataIndexTree.GetHandle( actualDailyProductionDataKey ); |
| | | actualDailyProductionDataIndexTree.Root().AddChild( actualDailyProductionDataHandle,i ); |
| | | } |
| | |
| | | actualDailyProductionVolume := 0.0; |
| | | if( not isnull( actualDailyProductionDataIndex )){ |
| | | actualDailyProductionData := actualDailyProductionDatas.Element( actualDailyProductionDataIndex.GetValueAsNumber() ); |
| | | actualDailyProductionVolume := actualDailyProductionData.ProductionVolume(); |
| | | actualDailyProductionVolume := actualDailyProductionData.ActualOut(); |
| | | } |
| | | localColumn := localColumns.Element( localColumnIndex.GetValueAsNumber() ); |
| | | localRow.LocalCell( relnew,LocalCell_ProductionComparison ,LocalColumn := localColumn, |