| | |
| | | |
| | | //çæè¡æ°æ® |
| | | rowKeys := construct( Strings ); |
| | | rowKeyIndexTree := NamedValueTree::Create(); |
| | | |
| | | baseVersionRowTree := NamedValueTree::Create(); |
| | | baseVersionRows := construct( GeneralExcelImportAndExportDataRows ,constcontent); |
| | | compareVersionRowTree := NamedValueTree::Create(); |
| | | compareVersionRows := construct( GeneralExcelImportAndExportDataRows ,constcontent); |
| | | LocalCell_DemandComparison::FillRows( baseVersionTable,rowKeys,baseVersionRowTree,baseVersionRows ); |
| | | LocalCell_DemandComparison::FillRows( compareVersionTable,rowKeys,compareVersionRowTree,compareVersionRows ); |
| | | LocalCell_DemandComparison::FillRows( baseVersionTable,rowKeys,rowKeyIndexTree,baseVersionRowTree,baseVersionRows ); |
| | | LocalCell_DemandComparison::FillRows( compareVersionTable,rowKeys,rowKeyIndexTree,compareVersionRowTree,compareVersionRows ); |
| | | |
| | | // çæåæ°æ® |
| | | columnTree := NamedValueTree::Create(); |
| | |
| | | StaticMethod FillRows ( |
| | | const GeneralExcelImportAndExportDataTable general, |
| | | Strings rowKeys, |
| | | NamedValueTree rowKeyIndexTree, |
| | | NamedValueTree rowTree, |
| | | constcontent GeneralExcelImportAndExportDataRows rows |
| | | ) |
| | |
| | | tempHandle := rowTree.GetHandle( rowKey ); |
| | | rowTree.Root().AddChild( tempHandle ,i); |
| | | rows.Add( tempRowKeyCell1.GeneralExcelImportAndExportDataRow()); |
| | | |
| | | rowKeyHanlde := rowKeyIndexTree.GetHandle( rowKey ); |
| | | rowKeyIndex := guard( rowKeyIndexTree.Root().Child( rowKeyHanlde ),null( NamedValue )); |
| | | if( isnull( rowKeyIndex )){ |
| | | rowKeys.Add( rowKey ); |
| | | rowKeyIndexTree.Root().AddChild( rowKeyHanlde,rowKeys.Size() - 1 ); |
| | | } |
| | | |
| | | } |
| | | *] |
| | | } |
| | |
| | | localCells := construct( LocalCell_ScheduleSummarys ); |
| | | localCellIndexTree := NamedValueTree::Create(); |
| | | |
| | | units := selectset( owner,Unit,unit,unit.HasCapacityTypeTime() and not unit.HasChild()); |
| | | unitIndexTree := NamedValueTree::Create(); |
| | | for( i := 0 ; i< units.Size() ; i++ ){ |
| | | unit := units.Element( i ); |
| | | unitHandle := unitIndexTree.GetHandle( unit.ID() ); |
| | | unitIndexTree.Root().AddChild( unitHandle,i ); |
| | | } |
| | | |
| | | |
| | | //shiftPatternCount := NamedValueTree::Create(); |
| | | traverse( tables,Elements.MP_Row,row ){ |
| | | rowMacroPlan := row.MP_Table().MacroPlan(); |
| | |
| | | cell.MP_Column().CustomDate() >= localColumn.CustomDate() and |
| | | cell.MP_Column().CustomDate() < localColumn.CustomDate().StartOfNextMonth() ); |
| | | |
| | | output := 0.0; |
| | | isFuture := owner.StartOfPlanning().Date() >= localColumn.CustomDate(); |
| | | |
| | | output := 0.0; |
| | | if( isFuture ){ |
| | | unitHandle := unitIndexTree.GetHandle( row.Name() ); |
| | | unitIndex := guard( unitIndexTree.Root().Child( unitHandle ),null( NamedValue )); |
| | | if( not isnull( unitIndex )){ |
| | | unit := units.Element( unitIndex.GetValueAsNumber() ); |
| | | output := sum( unit,UnitPeriod.PeriodTask_MP.NewSupply,np, |
| | | np.PeriodTask_MP().UnitPeriod().StartDate() >= localColumn.CustomDate() and |
| | | np.PeriodTask_MP().UnitPeriod().StartDate() < localColumn.CustomDate(), |
| | | np.Quantity() ); |
| | | } |
| | | }else{ |
| | | scheduleSummaryOutputDataKey := row.Name() + localColumn.CustomDate().AsQUILL(); |
| | | scheduleSummaryOutputDataHandle := scheduleSummaryOutputDataIndexTree.GetHandle( scheduleSummaryOutputDataKey ); |
| | | scheduleSummaryOutputDataIndex := guard( scheduleSummaryOutputDataIndexTree.Root().Child( scheduleSummaryOutputDataHandle ),null( NamedValue )); |
| | | if( not isnull( scheduleSummaryOutputDataIndex )){ |
| | | scheduleSummaryOutputData := scheduleSummaryOutputDatas.Element( scheduleSummaryOutputDataIndex.GetValueAsNumber() ); |
| | | output := scheduleSummaryOutputData.Output(); |
| | | } |
| | | } |
| | | |
| | | maxShiftPattern := ""; |
| | |
| | | } |
| | | } |
| | | |
| | | if( not maxShiftPattern = "" ){ |
| | | localCell.ShiftPattern( maxShiftPattern ); |
| | | } |
| | | localCell.WorkingDay( localCell.WorkingDay() + workingDay ); |
| | | localCell.Capacity( localCell.Capacity() + capacity ); |
| | | localCell.Output( localCell.Output() + output ); |
| | |
| | | if( isnull( outputTable )){ |
| | | error( "导å
¥çæä»¶ä¸æ£ç¡®" ); |
| | | } |
| | | |
| | | archive.ScheduleSummaryOutputLine( relflush ); |
| | | |
| | | lines := construct( ScheduleSummaryOutputLines ); |
| | | lineIndexTree := NamedValueTree::Create(); |
| | | |
| | |
| | | ScenarioManager scenarioManager, |
| | | MacroPlan macroPlan, |
| | | Archive archive, |
| | | RecycleBin recycleBin |
| | | RecycleBin recycleBin, |
| | | ArchiveExecutionStatus archiveExecutionStatus |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | // } |
| | | //} |
| | | |
| | | table := select( macroPlan,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | table.Delete(); |
| | | } |
| | | //table := select( macroPlan,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | //if( not isnull( table )){ |
| | | // table.Delete(); |
| | | //} |
| | | |
| | | |
| | | |
| | | archiveExecutionStatus.RequirementImportExecutionStatus( relnew, |
| | | ExecutionCode := 500, |
| | | ExecutionIsSuccess := false, |
| | | ExecutionRespMessage := "11111", |
| | | ExecutionStatus := "Complete", |
| | | ExecutionUserName := "vwedadmin" ); |
| | | *] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | Test::Test( ScenarioManager,MacroPlan,Archive,RecycleBin ); |
| | | Test::Test( ScenarioManager,MacroPlan,Archive,RecycleBin,ArchiveExecutionStatus ); |
| | | |
| | | WebMessageBox::Success( "Success"); |
| | | *] |
| | |
| | | #child: pSelectionCurve |
| | | #child: pSelectionPP |
| | | #child: PanelSelectionChecks |
| | | Component dhDateUnit |
| | | { |
| | | #keys: '[414996.1.58048570]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'String*' |
| | | Properties: |
| | | [ |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | FilterArguments: 'baseSelection:QMacroPlanner::FormDemandComparison.dhBaseVersionBudget' |
| | | FixedFilter: 'object <> baseSelection' |
| | | FilterArguments: 'baseSelection:QMacroPlanner::FormDemandComparison.dhBaseVersionBudget;dateUnit:QMacroPlanner::FormDemandComparison.dhDateUnit' |
| | | FixedFilter: 'object <> baseSelection and object.Name().LikeUserLocale( dateUnit )' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchiveBudget' |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | FilterArguments: 'baseSelection:QMacroPlanner::FormDemandComparison.dhBaseVersionPP' |
| | | FixedFilter: 'object <> baseSelection' |
| | | FilterArguments: 'baseSelection:QMacroPlanner::FormDemandComparison.dhBaseVersionPP;dateUnit:QMacroPlanner::FormDemandComparison.dhDateUnit' |
| | | FixedFilter: 'object <> baseSelection and object.Name().LikeUserLocale( dateUnit )' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePP' |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: 'åºåéæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | DisplayField: 'Name' |
| | | Label: '对æ¯éæ±çæ¬ï¼' |
| | | NumberOfColumns: 50 |
| | | Taborder: 2 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pSelectionBudget/dhBaseVersionBudget |
| | | Response OnDataChanged () id:Response_pSelectionBudget_dhBaseVersionBudget_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.58018748]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Name().LikeUserLocale( "M" )){ |
| | | dhDateUnit.Data( "M" ); |
| | | }else{ |
| | | dhDateUnit.Data( "W" ); |
| | | } |
| | | *] |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pSelectionPP/dhBaseVersionPP |
| | | Response OnDataChanged () id:Response_pSelectionPP_dhBaseVersionPP_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.55350834]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( this.Name().LikeUserLocale( "M" )){ |
| | | dhDateUnit.Data( "M" ); |
| | | }else{ |
| | | dhDateUnit.Data( "W" ); |
| | | } |
| | | *] |
| | | } |
| | | } |