已重命名2个文件
已修改18个文件
已添加8个文件
| | |
| | | StaticMethod Dispatch ( |
| | | Date startDate, |
| | | Date endDate, |
| | | const OfflinePlanTable offlinePlan, |
| | | const NewOfflinePlanTable offlinePlan, |
| | | RecycleBin owner |
| | | ) |
| | | { |
| | |
| | | unitIndexTree.Root().AddChild( unitHandle,i ); |
| | | } |
| | | |
| | | traverse( offlinePlan,OfflinePlanRow,row ){ |
| | | traverse( offlinePlan,NewOfflinePlanRow,row ){ |
| | | productID := row.ProductID(); |
| | | productLine := row.ProductionLine(); |
| | | factory := constnull( Unit ); |
| | |
| | | factory := temp2; |
| | | } |
| | | } |
| | | traverse( row,OfflinePlanCell,cell ,startDate <= cell.OfflinePlanColumn().ColumnDate() and endDate > cell.OfflinePlanColumn().ColumnDate()){ |
| | | shiftDate := cell.OfflinePlanColumn().ColumnDate(); |
| | | shiftName := cell.Shift(); |
| | | traverse( row,NewOfflinePlanCell,cell ,startDate <= cell.NewOfflinePlanColumn().StartDate() and endDate >= cell.NewOfflinePlanColumn().EndDate()){ |
| | | shiftDate := cell.NewOfflinePlanColumn().StartDate(); |
| | | shiftName := cell.ShiftPatternName(); |
| | | shiftVolume := cell.Quantity(); |
| | | shiftDayTime := constnull( ShiftDayTime ); |
| | | { |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProduct:QMacroPlanner::FormOfflinePlanChanges.dhFinelProduct' |
| | | FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.ProductID())' |
| | | FilterArguments: 'checkedProducts:QMacroPlanner::FormOfflinePlanChanges.dhFinelProducts;checkedUnits:QMacroPlanner::FormOfflinePlanChanges.dhFinalUnits' |
| | | FixedFilter: 'exists( checkedProducts,Elements,product,product.ID() = object.ProductID()) and exists( checkedUnits,Elements,unit,unit.DisplayName() = object.ProductionLine())' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component dhFinelProduct |
| | | Component dhFinelProducts |
| | | { |
| | | #keys: '[412672.1.78210544]' |
| | | BaseType: 'WebDataHolder' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | #child: MatrixEditor |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component dhFinalUnits |
| | | { |
| | | #keys: '[414996.1.156002469]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Entity]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | prods := selectset( dhFinelProduct.Data(),Elements,element,exists( this.Data(),Elements.astype( Unit ).StockingPoint_MP.ProductInStockingPoint_MP.Product_MP,prod,prod = element )); |
| | | // prods := selectset( productInLanes,Elements.Product_MP,prod,true ); |
| | | dhFinelProduct.Data( &prods ); |
| | | units := selectset( dhFinalUnits.Data(),Elements,element,exists( this.Data(),Elements,entity,entity = element )); |
| | | dhFinalUnits.Data( &units ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinalUnits.Data( DataHolderEntities.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | dhFinelProduct.Data( this.Data().Copy() ); |
| | | dhFinelProducts.Data( this.Data().Copy() ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | prods := selectset( dhFinelProduct.Data(),Elements,element,exists( this.Data(),Elements.SalesDemand.Product_MP,prod,element = prod )); |
| | | dhFinelProduct.Data( &prods ); |
| | | prods := selectset( dhFinelProducts.Data(),Elements,element,exists( this.Data(),Elements.SalesDemand.Product_MP,prod,element = prod )); |
| | | dhFinelProducts.Data( &prods ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhFinalUnits |
| | | Response OnCreated () id:Response_PanelDemandComparison_dhFinalUnits_OnCreated |
| | | { |
| | | #keys: '[414996.1.156002689]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhFinalUnits.Data( DataHolderEntities.Data().Copy() ); |
| | | *] |
| | | } |
| | | } |
文件名从 _Main/UI/MacroPlannerWebApp/Component_Form701/Response_PanelDemandComparison_dhFinelProduct_OnCreated.def 修改 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison/dhFinelProduct |
| | | Response OnCreated () id:Response_PanelDemandComparison_dhFinelProduct_OnCreated |
| | | #parent: PanelDemandComparison/dhFinelProducts |
| | | Response OnCreated () id:Response_PanelDemandComparison_dhFinelProducts_OnCreated |
| | | { |
| | | #keys: '[412672.1.78210526]' |
| | | CanBindMultiple: false |
| | |
| | | ddslGeneration.Text( "<All>" ); |
| | | ddslMQBMLB.Text( "<All>" ); |
| | | ddslPower.Text( "<All>" ) |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | products := dhFinelProduct.Data().Copy(); |
| | | products := dhFinelProducts.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() = ddslGeneration.Text()); |
| | | } |
| | |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() = ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | dhFinelProducts.Data( &products ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.ProductID())); |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProducts.Data(),Elements,product,product.ID() = row.ProductID())); |
| | | columns := selectset( dhTable.Data( ),LocalColumn,column,true ); |
| | | LocalCell_OfflinePlanComparison::AsyncExport( RecycleBin, rows, columns, MacroPlan ); |
| | | *] |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component MatrixEditorArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002045]' |
| | | BaseType: 'WebMatrixEditor' |
| | | Children: |
| | | [ |
| | | Component MatrixEditorCellArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002046]' |
| | | BaseType: 'WebMatrixEditorCell' |
| | | Children: |
| | | [ |
| | | Component DataExtractorArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002047]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePackagingPlanRow.ArchivePackagingPlanCell' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Attributes: 'CC_PackagingInventory;CC_UnpackagedInventory;EndingInventory;InitialPackagingInventory;NetDemand;NewSupply;Out;Package;PackagingInventory;TransferIn;UnpackagedInventory;Unpacking' |
| | | Column: 'ArchivePackagingPlanColumn' |
| | | Row: 'ArchivePackagingPlanRow' |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component MatrixEditorRowsArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002050]' |
| | | BaseType: 'WebMatrixEditorHeaderLevel' |
| | | Children: |
| | | [ |
| | | Component DataExtractor871 |
| | | { |
| | | #keys: '[414996.1.156002051]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePackagingPlanRow' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'Name' |
| | | SortCriteria: 'ProductID' |
| | | Taborder: 1 |
| | | ] |
| | | } |
| | | Component MatrixEditorColumnsArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002054]' |
| | | BaseType: 'WebMatrixEditorHeaderLevel' |
| | | Children: |
| | | [ |
| | | Component DataExtractor489 |
| | | { |
| | | #keys: '[414996.1.156002055]' |
| | | BaseType: 'WebDataExtractor' |
| | | Properties: |
| | | [ |
| | | DataType: 'Archive' |
| | | Source: 'Archive' |
| | | Taborder: 0 |
| | | Transformation: 'ArchivePackagingPlanColumn' |
| | | ] |
| | | } |
| | | ] |
| | | Properties: |
| | | [ |
| | | Legend: 'StartDate' |
| | | SortCriteria: 'StartDate' |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | | #child: matrixEditorActionBarPageArchivePackagingPlan |
| | | #child: matrixeditorContextMenuArchivePackagingPlan |
| | | ] |
| | | Properties: |
| | | [ |
| | | AllowAttributeConfiguration: true |
| | | AllowMultipleAttributes: true |
| | | Columns: 'MatrixEditorColumnsArchivePackagingPlan' |
| | | ContextMenu: 'matrixeditorContextMenuArchivePackagingPlan' |
| | | Rows: 'MatrixEditorRowsArchivePackagingPlan' |
| | | Taborder: 0 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002000]' |
| | | BaseType: 'WebPanel' |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelArchivePackagingPlan922 |
| | | { |
| | | #keys: '[414996.1.156002011]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: MatrixEditorArchivePackagingPlan |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component matrixEditorActionBarPageArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002058]' |
| | | BaseType: 'matrixEditorActionBarPage' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | Component matrixeditorContextMenuArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156002061]' |
| | | BaseType: 'matrixeditorContextMenu' |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | ] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: MacroPlannerWebApp |
| | | OrphanComponent FormArchivePackagingPlan |
| | | { |
| | | #keys: '[414996.1.156001954]' |
| | | BaseType: 'WebForm' |
| | | Children: |
| | | [ |
| | | #child: PanelArchivePackagingPlan |
| | | #child: PanelArchivePackagingPlan922 |
| | | ] |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | offlineTable := select( MacroPlan,OfflinePlanTable,table,true ); |
| | | offlineTable := select( MacroPlan,NewOfflinePlanTable,table,true ); |
| | | |
| | | DispatchShiftSchedulingInformation::Dispatch( dsStartDate.Date(),dsEndDate.Date(),offlineTable,RecycleBin ); |
| | | *] |
| | |
| | | Properties: |
| | | [ |
| | | DataType: 'LocalTable' |
| | | FilterArguments: 'checkedProduct:QMacroPlanner::FormOfflinePlanComparison.dhFinelProduct' |
| | | FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.ProductID())' |
| | | FilterArguments: 'checkedProducts:QMacroPlanner::FormOfflinePlanComparison.dhFinelProducts;checkedUnits:QMacroPlanner::FormOfflinePlanComparison.dhFinalUnits' |
| | | FixedFilter: 'exists( checkedProducts,Elements,product,product.ID() = object.ProductID()) and exists( checkedUnits,Elements,unit,unit.DisplayName() = object.ProductionLine())' |
| | | Source: 'dhTable' |
| | | Taborder: 0 |
| | | Transformation: 'LocalRow' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | Component dhFinelProduct |
| | | Component dhFinelProducts |
| | | { |
| | | #keys: '[412672.1.61940686]' |
| | | BaseType: 'WebDataHolder' |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | ] |
| | | } |
| | | Component dhCheckUnits id:dhCheckUnits_21 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | Component dhFinalUnits id:dhFinalUnits_90 |
| | | { |
| | | #keys: '[414996.1.156002816]' |
| | | BaseType: 'WebDataHolder' |
| | | Databinding: 'structured[Entity]*' |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | ] |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | prods := selectset( dhFinelProduct.Data(),Elements,element,exists( this.Data(),Elements.astype( Unit ).StockingPoint_MP.ProductInStockingPoint_MP.Product_MP,prod,prod = element )); |
| | | // prods := selectset( productInLanes,Elements.Product_MP,prod,true ); |
| | | dhFinelProduct.Data( &prods ); |
| | | units := selectset( dhFinalUnits.Data(),Elements,element,exists( this.Data(),Elements,entity,entity = element )); |
| | | dhFinalUnits.Data( &units ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinalUnits.Data( DataHolderEntities.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | dhFinelProduct.Data( this.Data().Copy() ); |
| | | dhFinelProducts.Data( this.Data().Copy() ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( this.Data().Size() <> 0 ){ |
| | | prods := selectset( dhFinelProduct.Data(),Elements,element,exists( this.Data(),Elements.SalesDemand.Product_MP,prod,element = prod )); |
| | | dhFinelProduct.Data( &prods ); |
| | | prods := selectset( dhFinelProducts.Data(),Elements,element,exists( this.Data(),Elements.SalesDemand.Product_MP,prod,element = prod )); |
| | | dhFinelProducts.Data( &prods ); |
| | | }else{ |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | } |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison_634/dhFinalUnits_90 |
| | | Response OnCreated () id:Response_PanelDemandComparison_dhFinalUnits_OnCreated_540 |
| | | { |
| | | #keys: '[414996.1.156002814]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebComponent_OnCreated' |
| | | GroupServerCalls: true |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | dhFinalUnits.Data( DataHolderEntities.Data().Copy() ); |
| | | *] |
| | | } |
| | | } |
文件名从 _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelDemandComparison_634_dhFinelProduct_OnCreated.def 修改 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelDemandComparison_634/dhFinelProduct |
| | | Response OnCreated () id:Response_PanelDemandComparison_634_dhFinelProduct_OnCreated |
| | | #parent: PanelDemandComparison_634/dhFinelProducts |
| | | Response OnCreated () id:Response_PanelDemandComparison_634_dhFinelProducts_OnCreated |
| | | { |
| | | #keys: '[412672.1.61940668]' |
| | | CanBindMultiple: false |
| | |
| | | ddslGeneration.Text( "<All>" ); |
| | | ddslMQBMLB.Text( "<All>" ); |
| | | ddslPower.Text( "<All>" ) |
| | | dhFinelProduct.Data( DataHolderProduct.Data().Copy() ); |
| | | dhFinelProducts.Data( DataHolderProduct.Data().Copy() ); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | products := dhFinelProduct.Data().Copy(); |
| | | products := dhFinelProducts.Data().Copy(); |
| | | if( ddslGeneration.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Generation() = ddslGeneration.Text()); |
| | | } |
| | |
| | | if( ddslPower.Text() <> "<All>" ){ |
| | | products := selectset( products,Elements,element,element.Power() = ddslPower.Text()); |
| | | } |
| | | dhFinelProduct.Data( &products ); |
| | | dhFinelProducts.Data( &products ); |
| | | *] |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProduct.Data(),Elements,product,product.ID() = row.ProductID())); |
| | | rows := selectset( dhTable.Data(),LocalRow,row,exists( dhFinelProducts.Data(),Elements,product,product.ID() = row.ProductID())); |
| | | columns := selectset( dhTable.Data( ),LocalColumn,column,not column.IsAttrbuteColumn() and dhStartDate.Data() <= column.Date() and dhEndDate.Data() > column.Date() ); |
| | | LocalCell_ProductionComparison::AsyncExport( RecycleBin, rows, columns, MacroPlan ); |
| | | *] |