Quintiq file version 2.0
|
#parent: #root
|
Method CapacityAndSaleBudgeCompare (
|
MacroPlans macroPlans,
|
CapacityAndSaleBudgeFilterItems items,
|
CapacityAndSaleBudgeFilterPlaceOfProductionOfArrays casbfpopoas,
|
CapacityAndSaleBudgeFilterBusinessTypes casbfbts,
|
CapacityAndSaleBudgeFilterYears years,
|
CapacityAndSaleBudgeFilterMonths months,
|
const GlobalOTDTable globalOTDTable
|
) as stream[GlobalOTDSOP]
|
{
|
Description: 'todo : mappingParent改为mpSync, random删了'
|
TextBody:
|
[*
|
this.CapacityAndSaleBudgeCompareItemRow( relflush );
|
this.CapacityAndSaleBudgeCompareItemColumn( relflush );
|
|
//CapacityAndSaleBudgeCompareItemCell::SetFilterCriteria( this, &items, &casbfpopoas, &casbfbts, &years, &months );
|
//---------------------------------------------------------------------------
|
if ( items.Size() = 0 ) {
|
items := selectset( this, CapacityAndSaleBudgeFilterItem, tempCASBFI, tempCASBFI.ItemName() = "销售额" );
|
}
|
|
if ( casbfpopoas.Size() = 0 ) {
|
casbfpopoas := selectset( this, CapacityAndSaleBudgeFilterPlaceOfProductionOfArray, tempCASBFPOPOA, true );
|
}
|
|
if ( casbfbts.Size() = 0 ) {
|
casbfbts := selectset( this, CapacityAndSaleBudgeFilterBusinessType, tempCASBFBT, true );
|
}
|
|
if ( years.Size() = 0 ) {
|
years := selectset( this, CapacityAndSaleBudgeFilterYear, tempCASBFY, tempCASBFY.YearNo() = Date::ActualDate().Year() );
|
} else {
|
years := selectsortedset( years, Elements, tempCASBFY, true, tempCASBFY.YearNo() );
|
}
|
|
if ( months.Size() = 0 ) {
|
months := selectsortedset( this, CapacityAndSaleBudgeFilterMonth, tempCASBFM, true, tempCASBFM.MonthNo() );
|
} else {
|
months := selectsortedset( months, Elements, tempCASBFM, true, tempCASBFM.MonthNo() );
|
}
|
//---------------------------------------------------------------------------
|
|
CapacityAndSaleBudgeCompareItemCell::GenerateBasicDataBasedOnFilteringCriteria( this, globalOTDTable, items, casbfpopoas, casbfbts );
|
|
CapacityAndSaleBudgeCompareItemCell::CreateSalesVolumeData( macroPlans, globalOTDTable, this, items, years, months );
|
|
CapacityAndSaleBudgeCompareItemCell::CreatePanelAllocation( macroPlans, globalOTDTable, this, items, years, months );
|
|
return emit( this );
|
*]
|
}
|