已重命名2个文件
已添加6个文件
已修改16个文件
已删除4个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod AsyncCreateFullTable ( |
| | | const Keys macroPlanMDSIDs, |
| | | RecycleBin recycleBin, |
| | | const Archive archive, |
| | | const MacroPlan owner |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-11-2024 (created) |
| | | AsyncFlag::Running( recycleBin,MP_Cell_ScheduleSummary::GetTableName() ); |
| | | |
| | | macroPlans := stream[MacroPlan]::Success(); |
| | | traverse( macroPlanMDSIDs,Elements,mdsid ){ |
| | | streamMacroPlan := LocalTool::LoadMacroPlan( mdsid ); |
| | | macroPlans.Merge( streamMacroPlan ); |
| | | } |
| | | |
| | | macroPlans -> GroupAll() -> MP_Cell_ScheduleSummary::CreateFullTable( recycleBin,archive,owner ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod AsyncCreateTables ( |
| | | const Keys macroPlanMDSIDs |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Nov-11-2024 (created) |
| | | traverse( macroPlanMDSIDs,Elements,mdsid ){ |
| | | streamMacroPlan := LocalTool::LoadMacroPlan( mdsid ); |
| | | streamMacroPlan -> MP_Cell_ScheduleSummary::Create( ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-6-2024 (created) |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | traverse( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ){ |
| | | table.Delete(); |
| | | } |
| | | |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-7-2024 (created) |
| | | tables := MP_Table::GetMP_Tables_ScheduleSummary( owners ); |
| | | tables := selectset( owners,Elements.MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | |
| | | scheduleSummaryOutputDataIndexTree := NamedValueTree::Create(); |
| | | scheduleSummaryOutputDatas := selectset( archive,ScheduleSummaryOutputLine.ScheduleSummaryOutputData,data, |
| | |
| | | scheduleSummaryOutputDataIndexTree.Root().AddChild( scheduleSummaryOutputDataHandle,i ); |
| | | } |
| | | |
| | | traverse( recycleBin,LocalTable,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ){ |
| | | table.Delete(); |
| | | } |
| | | localTable := recycleBin.LocalTable( relnew,Name := MP_Cell_ScheduleSummary::GetTableName() ); |
| | | |
| | | startDate := minselect( tables,Elements.MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | endDate := maxselect( tables,Elements.MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | |
| | |
| | | // columnIndexTree.Root().AddChild( columnHandle,columns.Size() - 1 ); |
| | | //} |
| | | |
| | | |
| | | AsyncFlag::Success( recycleBin,MP_Cell_ScheduleSummary::GetTableName() ); |
| | | return localTable; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CreateTime |
| | | { |
| | | #keys: '3[414996.1.213514774][414996.1.213514773][414996.1.213514775]' |
| | | ValueType: DateTime |
| | | } |
| | |
| | | { |
| | | #keys: '5[412672.0.1084249615][412672.0.1084249613][0.0.0][412672.0.1084249614][412672.0.1084249616]' |
| | | BaseType: Object |
| | | OnCreate: 'this.CreateTime( DateTime::Now() );' |
| | | StructuredName: 'LocalTables' |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-6-2024 (created) |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | traverse( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ){ |
| | | table.Delete(); |
| | | } |
| | | |
| | |
| | | // rislai Aug-7-2024 (created) |
| | | tables := selectset( owners,Elements.MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName()); |
| | | |
| | | traverse( recycleBin,LocalTable,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ){ |
| | | table.Delete(); |
| | | } |
| | | localTable := recycleBin.LocalTable( relnew,Name := MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | |
| | | startDate := minselect( tables,Elements.MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | endDate := maxselect( tables,Elements.MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CreateTime |
| | | { |
| | | #keys: '3[414996.1.213444720][414996.1.213444719][414996.1.213444721]' |
| | | ValueType: DateTime |
| | | } |
| | |
| | | { |
| | | #keys: '5[412672.1.95254778][412672.1.95254776][0.0.0][412672.1.95254777][412672.1.95254779]' |
| | | BaseType: Object |
| | | OnCreate: 'this.CreateTime( DateTime::Now() );' |
| | | StructuredName: 'MP_Tables' |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhAnnualPlanTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow.LocalCell.astype(LocalCell_Default)' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProducts:QMacroPlanner::FormAnnualPlanReport.dhFinelProducts;checkedEntitys:QMacroPlanner::FormAnnualPlanReport.dhFinelEntitys' |
| | | FixedFilter: 'exists( checkedProducts,Elements,entity,entity.ID() = object.ProductID()) and exists( checkedEntitys,Elements,entity,entity.DisplayName() = object.ProductionLine())' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhAnnualPlanTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormAnnualPlanReport.dhStartDate;endDate:QMacroPlanner::FormAnnualPlanReport.dhEndDate;timeUnit:QMacroPlanner::FormAnnualPlanReport.dhTimeUnit' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date() and object.TimeUnit() = timeUnit' |
| | | Source: 'dhComparisonData' |
| | | Source: 'dhAnnualPlanTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | | ] |
| | |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | Component dhComparisonData |
| | | Component dhAnnualPlanTable |
| | | { |
| | | #keys: '[414996.1.209190961]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'LocalTable' |
| | | Children: |
| | | [ |
| | | Component deComparisonData |
| | | Component deAnnualPlanTable |
| | | { |
| | | #keys: '[414996.1.209190962]' |
| | | BaseType: 'WebDataExtractor' |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_pAnnualPlanReport_439_dhComparisonData_OnDataChanged.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pAnnualPlanReport_439/dhComparisonData |
| | | Response OnDataChanged () id:Response_pAnnualPlanReport_439_dhComparisonData_OnDataChanged |
| | | #parent: pAnnualPlanReport_439/dhAnnualPlanTable |
| | | Response OnDataChanged () id:Response_pAnnualPlanReport_439_dhAnnualPlanTable_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.209190954]' |
| | | CanBindMultiple: false |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhComparisonData.Data(),LocalRow,row,exists( dhFinelProducts.Data(),Elements,entity,entity.ID() = row.ProductID()) and exists( dhFinelEntitys.Data(),Elements,entity,entity.DisplayName() = row.ProductionLine())); |
| | | columns := selectset( dhComparisonData.Data(),LocalColumn,column,dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() and column.TimeUnit() = dhTimeUnit.Data()); |
| | | rows := selectset( dhAnnualPlanTable.Data(),LocalRow,row,exists( dhFinelProducts.Data(),Elements,entity,entity.ID() = row.ProductID()) and exists( dhFinelEntitys.Data(),Elements,entity,entity.DisplayName() = row.ProductionLine())); |
| | | columns := selectset( dhAnnualPlanTable.Data(),LocalColumn,column,dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() and column.TimeUnit() = dhTimeUnit.Data()); |
| | | LocalCell_Default::AsyncExport( RecycleBin,rows,columns ); |
| | | //Application.Download( "产åºå¯¼å
¥æ¨¡æ¿.xlsx",data.AsBinaryData() ); |
| | | *] |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | Source: 'dhTable' |
| | | Source: 'dhScheduleSummaryTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow.LocalCell.astype(LocalCell_ScheduleSummary)' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedEntitys:QMacroPlanner::FormScheduleSummaryReport.dhFinelEntitys' |
| | | FixedFilter: 'exists( checkedEntitys,Elements,entity,entity.DisplayName() = object.Name() )' |
| | | Source: 'dhTable' |
| | | Source: 'dhScheduleSummaryTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | | ] |
| | |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'startDate:QMacroPlanner::FormScheduleSummaryReport.dhStartDate;endDate:QMacroPlanner::FormScheduleSummaryReport.dhEndDate' |
| | | FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date() ' |
| | | Source: 'dhTable' |
| | | Source: 'dhScheduleSummaryTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalColumn' |
| | | ] |
| | |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component dhAsyncFlag |
| | | { |
| | | #keys: '[414996.1.214519511]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'AsyncFlag' |
| | | Children: |
| | | [ |
| | | Component deAsyncFlag |
| | | { |
| | | #keys: '[414996.1.214519512]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'RecycleBin' |
| | | FixedFilter: 'object.Name() = MP_Cell_ScheduleSummary::GetTableName()' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'AsyncFlag' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component lAsyncFlag id:lAsyncFlag_19 |
| | | { |
| | | #keys: '[414996.1.214519535]' |
| | | BaseType: 'WebLabel' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'dhAsyncFlag.Data.State' |
| | | Label: 'è¿è¡ç¶æ:' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | } |
| | | #child: MatrixEditor |
| | | Component dhTable |
| | | Component dhScheduleSummaryTable |
| | | { |
| | | #keys: '[412672.1.96380914]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'LocalTable' |
| | | Children: |
| | | [ |
| | | Component deScheduleSummaryTable |
| | | { |
| | | #keys: '[414996.1.214519458]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'RecycleBin' |
| | | FixedFilter: 'object.Name() = MP_Cell_ScheduleSummary::GetTableName()' |
| | | Source: 'RecycleBin' |
| | | Taborder: 0 |
| | | Transformation: 'LocalTable' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelEntitys.Data(),Elements,entity,entity.DisplayName() = row.Name() )); |
| | | columns := selectset( dhTable.Data(),LocalColumn,column,dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() ); |
| | | rows := selectset( dhScheduleSummaryTable.Data(),LocalRow,row,exists( dhFinelEntitys.Data(),Elements,entity,entity.DisplayName() = row.Name() )); |
| | | columns := selectset( dhScheduleSummaryTable.Data(),LocalColumn,column,dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() ); |
| | | attrbutes := construct( Strings ); |
| | | if( cbShiftPlan.Checked() ){ |
| | | attrbutes.Add( "ShiftPattern" ); |
| | |
| | | macroPlans := ApplicationMacroPlanner.GetLoadedMacroPlans(); |
| | | table := MP_Cell_ScheduleSummary::CreateFullTable( macroPlans,RecycleBin ,Archive, MacroPlan ); |
| | | |
| | | dhTable.Data( table ); |
| | | dhScheduleSummaryTable.Data( table ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pRibbonDown_478/dhAsyncFlag |
| | | Response OnDataChanged () id:Response_pRibbonDown_dhAsyncFlag_OnDataChanged |
| | | { |
| | | #keys: '[414996.1.214519509]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnDataChanged' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | MP_Table::CreateMP_Tables_ScheduleSummary( ApplicationMacroPlanner.GetLoadedMacroPlans() ); |
| | | WebMessageBox::Success( "Success" ); |
| | | macroPlanMDSIDs := ApplicationMacroPlanner.GetMacroPlanMDSIDsByName( "è®¡åæ±æ»" ); |
| | | MP_Cell_ScheduleSummary::AsyncCreateTables( macroPlanMDSIDs ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | macroPlans := ApplicationMacroPlanner.GetLoadedMacroPlans(); |
| | | table := MP_Cell_ScheduleSummary::CreateFullTable( macroPlans,RecycleBin ,Archive, MacroPlan ); |
| | | macroPlanMDSIDs := ApplicationMacroPlanner.GetMacroPlanMDSIDsByName( "è®¡åæ±æ»" ); |
| | | |
| | | dhTable.Data( table ); |
| | | |
| | | WebMessageBox::Success( "Success" ); |
| | | MP_Cell_ScheduleSummary::AsyncCreateFullTable( macroPlanMDSIDs,RecycleBin,Archive, MacroPlan ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pScheduleSummary/dhScheduleSummaryTable |
| | | Response OnCreated () id:Response_pScheduleSummary_dhScheduleSummaryTable_OnCreated |
| | | { |
| | | #keys: '[412672.1.96380911]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormScheduleSummaryReport/Response_pScheduleSummary_dhTable_OnDataChanged#906.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: pScheduleSummary/dhTable |
| | | Response OnDataChanged () id:Response_pScheduleSummary_dhTable_OnDataChanged_906 |
| | | #parent: pScheduleSummary/dhScheduleSummaryTable |
| | | Response OnDataChanged () id:Response_pScheduleSummary_dhScheduleSummaryTable_OnDataChanged_906 |
| | | { |
| | | #keys: '[412672.1.99700929]' |
| | | CanBindMultiple: false |