| | |
| | | CapacityAndSaleBudgeCompareItemCell::CreateSalesVolumeData( macroPlans, globalOTDTable, this, items, years, months ); |
| | | |
| | | CapacityAndSaleBudgeCompareItemCell::CreatePanelAllocation( macroPlans, globalOTDTable, this, items, years, months ); |
| | | |
| | | //if ( CapacityAndSaleBudgeFilterItem::Contains( items, "面板分配量" ) ) { |
| | | // traverse ( years, Elements, year ) { |
| | | // CapacityAndSaleBudgeCompareItemCell::CreatePanelAllocationBudget( this, months, year, globalOTDTable ); |
| | | // CapacityAndSaleBudgeCompareItemCell::CreatePanelAllocationByScenario( macroPlans, this, months, year ); |
| | | // } |
| | | //} |
| | | // |
| | | //if ( CapacityAndSaleBudgeFilterItem::Contains( items, "销售额" ) ) { |
| | | // traverse ( years, Elements, year ) { |
| | | // CapacityAndSaleBudgeCompareItemCell::CreateSalesVolume( this, months, year, globalOTDTable ); |
| | | // CapacityAndSaleBudgeCompareItemCell::CreateSalesVolumeByScenario( macroPlans, this, months, year ); |
| | | // } |
| | | //} |
| | | |
| | | // 大张盈利额 |
| | | //traverse ( years, Elements, year ) { |
| | | // // 历史数据 |
| | | // columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "大张盈利额-" + [String]year.YearNo() + "年-年度预算" ); |
| | | // traverse ( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | // cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | // } |
| | | // // S&OP数据 |
| | | // traverse( macroPlans, Elements, macroPlan ) { |
| | | // columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "大张盈利额-" + [String]year.YearNo() + "年-" + macroPlan.ScenarioName() ); |
| | | // traverse( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | // cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | // } |
| | | // } |
| | | //} |
| | | //// 产品盈利额 |
| | | //traverse ( years, Elements, year ) { |
| | | // // 历史数据 |
| | | // columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产品盈利额-" + [String]year.YearNo() + "年-年度预算" ); |
| | | // traverse ( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | // cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | // } |
| | | // // S&OP数据 |
| | | // traverse ( macroPlans, Elements, macroPlan ) { |
| | | // columnYear := CapacityAndSaleBudgeCompareItemColumn::CreateIfNotExist( this, "产品盈利额-" + [String]year.YearNo() + "年-" + macroPlan.ScenarioName() ); |
| | | // traverse ( this, CapacityAndSaleBudgeCompareItemRow, row ) { |
| | | // // todo |
| | | // cell := columnYear.CapacityAndSaleBudgeCompareItemCell( relnew, CellContent := [String]Number::Random( 0, 0 ) ); |
| | | // cell.CapacityAndSaleBudgeCompareItemRow( relset, row ); |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | // 设置rowNo和columnNo |
| | | //rowNo := 1; |
| | | //rowSorted := selectsortedset( this, CapacityAndSaleBudgeCompareItemRow, item, item.PlaceOfProductionOfArray() + "_" + item.BusinessType() ); |
| | | //traverse( rowSorted, Elements, item ) { |
| | | // item.RowNo( rowNo ); |
| | | // rowNo := rowNo + 1; |
| | | //} |
| | | //columnNo := 1; |
| | | //traverse( this, CapacityAndSaleBudgeCompareItemColumn, item ) { |
| | | // item.ColumnNo( columnNo ); |
| | | // columnNo := columnNo + 1; |
| | | //} |
| | | *] |
| | | } |