¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation CapacityAndSaleBudgeRunStatus_GlobalOTDSOP_GlobalOTDSOP_CapacityAndSaleBudgeRunStatus |
| | | { |
| | | #keys: '1[414702.1.385990039]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide GlobalOTDSOP |
| | | { |
| | | #keys: '3[414702.1.385990041][414702.1.385990040][414702.1.385990042]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: CapacityAndSaleBudgeRunStatus |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide CapacityAndSaleBudgeRunStatus |
| | | { |
| | | #keys: '3[414702.1.385990044][414702.1.385990043][414702.1.385990045]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: GlobalOTDSOP |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ExecuteAsyncCapacityAndSaleBudgeCompare ( |
| | | GlobalOTDSOP globalOTDSOP, |
| | | MacroPlans macroPlans |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // hongjli Nov-6-2023 (created) |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute RunSataus |
| | | { |
| | | #keys: '3[414702.1.385990030][414702.1.385990029][414702.1.385990031]' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type CapacityAndSaleBudgeRunStatus |
| | | { |
| | | #keys: '5[414702.1.385990024][414702.1.385990022][0.0.0][414702.1.385990023][414702.1.385990025]' |
| | | BaseType: Object |
| | | StructuredName: 'CapacityAndSaleBudgeRunStatuss' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method AsyncCapacityAndSaleBudgeCompare ( |
| | | MacroPlans macroPlans, |
| | | CapacityAndSaleBudgeFilterItems items, |
| | | CapacityAndSaleBudgeFilterPlaceOfProductionOfArrays casbfpopoas, |
| | | CapacityAndSaleBudgeFilterBusinessTypes casbfbts, |
| | | CapacityAndSaleBudgeFilterYears years, |
| | | CapacityAndSaleBudgeFilterMonths months, |
| | | const GlobalOTDTable globalOTDTable |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | this -> CapacityAndSaleBudgeCompare( macroPlans, |
| | | items, |
| | | casbfpopoas, |
| | | casbfbts, |
| | | years, |
| | | months, |
| | | globalOTDTable ) |
| | | -> SetCapacityAndSaleBudgeRunStatus(); |
| | | *] |
| | | } |
| | |
| | | #parent: #root |
| | | Method CapacityAndSaleBudgeCompare ( |
| | | MacroPlans macroPlans, |
| | | owning CapacityAndSaleBudgeFilterItems items, |
| | | owning CapacityAndSaleBudgeFilterPlaceOfProductionOfArrays casbfpopoas, |
| | | owning CapacityAndSaleBudgeFilterBusinessTypes casbfbts, |
| | | owning CapacityAndSaleBudgeFilterYears years, |
| | | owning CapacityAndSaleBudgeFilterMonths months, |
| | | 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 ); |
| | | //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 ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method SetCapacityAndSaleBudgeRunStatus |
| | | { |
| | | TextBody: |
| | | [* |
| | | this.CapacityAndSaleBudgeRunStatus( relflush ); |
| | | this.CapacityAndSaleBudgeRunStatus( relnew, RunSataus := 0 ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Test ( |
| | | GlobalOTDSOP this, |
| | | MacroPlans macroPlans, |
| | | owning CapacityAndSaleBudgeFilterItems items, |
| | | owning CapacityAndSaleBudgeFilterPlaceOfProductionOfArrays casbfpopoas, |
| | | owning CapacityAndSaleBudgeFilterBusinessTypes casbfbts, |
| | | owning CapacityAndSaleBudgeFilterYears years, |
| | | owning CapacityAndSaleBudgeFilterMonths months, |
| | | const GlobalOTDTable globalOTDTable |
| | | ) |
| | | { |
| | | } |
| | |
| | | [ |
| | | Image: 'CHECK' |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | |
| | | exists( DataHolderCapacityAndSaleBudgeFilterMonth.Data(), Elements, tempCASBFM1, tempCASBFM1 = tempCASBFM ) ); |
| | | |
| | | |
| | | GlobalOTDSOP.CapacityAndSaleBudgeCompare( DataHolderMacroPlansForScenarioComparison.Data(), |
| | | &targetCapacityAndSaleBudgeFilterItem, |
| | | &targetCapacityAndSaleBudgeFilterPlaceOfProductionOfArray, |
| | | &targetCapacityAndSaleBudgeFilterBusinessType, |
| | | &targetCapacityAndSaleBudgeFilterYear, |
| | | &targetCapacityAndSaleBudgeFilterMonth, |
| | | GlobalOTDTable ); |
| | | //GlobalOTDSOP.CapacityAndSaleBudgeCompare( DataHolderMacroPlansForScenarioComparison.Data(), |
| | | // targetCapacityAndSaleBudgeFilterItem, |
| | | // targetCapacityAndSaleBudgeFilterPlaceOfProductionOfArray, |
| | | // targetCapacityAndSaleBudgeFilterBusinessType, |
| | | // targetCapacityAndSaleBudgeFilterYear, |
| | | // targetCapacityAndSaleBudgeFilterMonth, |
| | | // GlobalOTDTable ); |
| | | |
| | | GlobalOTDSOP.AsyncCapacityAndSaleBudgeCompare( DataHolderMacroPlansForScenarioComparison.Data(), |
| | | targetCapacityAndSaleBudgeFilterItem, |
| | | targetCapacityAndSaleBudgeFilterPlaceOfProductionOfArray, |
| | | targetCapacityAndSaleBudgeFilterBusinessType, |
| | | targetCapacityAndSaleBudgeFilterYear, |
| | | targetCapacityAndSaleBudgeFilterMonth, |
| | | GlobalOTDTable ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: dhStatus |
| | | Response OnDataChanged () id:Response_FormCapacityAndSaleBudgeCompare_dhStatus_OnDataChanged |
| | | { |
| | | #keys: '[414702.1.383710704]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if ( guard( this.Data().RunSataus() = 1, false ) ) { |
| | | ButtonCapacityAndSaleBudgeCompare.Enabled( false, "æ£å¨è¿è¡" ); |
| | | Image116.Image( "MEDIA_PLAY_GREEN" ); |
| | | } else if ( guard( this.Data().RunSataus() = 0, false ) ) { |
| | | ButtonCapacityAndSaleBudgeCompare.Enabled( true, "æ£å¨è¿è¡" ); |
| | | Image116.Image( "CHECK" ); |
| | | } else { |
| | | ButtonCapacityAndSaleBudgeCompare.Enabled( true, "æ£å¨è¿è¡" ); |
| | | Image116.Image( "CHECK" ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | GlobalOTDSOP.CapacityAndSaleBudgeRunStatus( relflush ); |
| | | GlobalOTDSOP.CapacityAndSaleBudgeRunStatus( relnew, RunStatus := 1 ); |
| | | GlobalOTDSOP.CapacityAndSaleBudgeRunStatus( relnew, RunSataus := 1 ); |
| | | |
| | | Form.CreateCapacityAndSaleBudgeCompareData(); |
| | | |
| | |
| | | [ |
| | | #child: MatrixEditorCapacityAndSaleBudgeCompare |
| | | #child: pButton |
| | | Component dhStatus |
| | | { |
| | | #keys: '[414702.1.386200525]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'CapacityAndSaleBudgeRunStatus' |
| | | Children: |
| | | [ |
| | | Component deStatus |
| | | { |
| | | #keys: '[414702.1.386200546]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'GlobalOTDSOP' |
| | | Source: 'GlobalOTDSOP' |
| | | Taborder: 0 |
| | | Transformation: 'CapacityAndSaleBudgeRunStatus' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |