Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
已复制1个文件
已重命名1个文件
已修改28个文件
已添加2个文件
已删除3个文件
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Generate ( |
| | | AssemblyOnlinePlanVersionSearch search |
| | | AssemblyOnlinePlanVersionSearch search, |
| | | Strings products, |
| | | Strings units |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | //æ¸
空ä¹ååå¨çæ¾ç¤ºæ°æ® |
| | | aopcolumns := selectuniquevalues( table, Column, aopcolumn, aopcolumn.TimeUnit() = search.TimeUnit() and aopcolumn.StartDate() >= search.StartDate() and aopcolumn.StartDate() <= search.EndDate(), aopcolumn.StartDate() ); |
| | | this.Clear( aopcolumns ); |
| | | traverse( table, Row, row, ( search.Unit() = FinancialProductionReport::GetDefaultAllUnit() or row.Unit() = search.Unit() ) |
| | | and ( search.Product() = FinancialProductionReport::GetDefaultAllUnit() or search.Product() = row.Name() ) |
| | | and ( search.ProductionLine() = FinancialProductionReport::GetDefaultAllUnit() or search.ProductionLine() = row.ProductionLine() ) ){ |
| | | traverse( table, Row, row, ( units.Size() = 0 or units.Find( row.ProductionLine() ) > -1 ) and ( products.Size() = 0 or products.Find( row.Name() ) > -1 ) ){ |
| | | |
| | | showrow := selectobject( this, Row, showrow, showrow.Name() = row.Name() and showrow.Unit() = search.Unit() ); |
| | | if( isnull( showrow ) ){ |
| | |
| | | } |
| | | table := selectobject( owner, AssemblyOnlinePlanVersion, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | table.Generate( search); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | productlines := selectuniquevalues( table, Row, row, row.Unit() ); |
| | | table.Generate( search, productids, productlines ); |
| | | } |
| | | return table; |
| | | *] |
| | |
| | | cell.Quantity( qty ); |
| | | } |
| | | } |
| | | showtable.Generate( search ); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | productlines := selectuniquevalues( table, Row, row, row.ProductionLine() ); |
| | | showtable.Generate( search, productids, productlines ); |
| | | *] |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Generate ( |
| | | CustomerDemandIDSSearch search |
| | | CustomerDemandIDSSearch search, |
| | | Strings products |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | idscolumns := selectuniquevalues( table, Column, idscolumn, idscolumn.TimeUnit() = search.TimeUnit() and idscolumn.StartDate() >= search.StartDate() and idscolumn.StartDate() <= search.EndDate(), idscolumn.StartDate() ); |
| | | this.Clear( idscolumns ); |
| | | traverse( table, Row, row, ( search.Unit() = FinancialProductionReport::GetDefaultAllUnit() or row.Factory() = search.Unit() ) |
| | | and ( search.Product() = FinancialProductionReport::GetDefaultAllUnit() or search.Product() = row.Name() ) ){ |
| | | and ( products.Size() = 0 or products.Find( row.Name() ) > -1 ) ){ |
| | | |
| | | showrow := selectobject( this, Row, showrow, showrow.Name() = row.Name() and showrow.Factory() = search.Unit() ); |
| | | if( isnull( showrow ) ){ |
| | |
| | | |
| | | source.Delete(); |
| | | info( '-------------------------End---------------------'); |
| | | showtable.Generate( search ); |
| | | productids := selectuniquevalues( idstable, Row, row, row.Name() ); |
| | | showtable.Generate( search, productids ); |
| | | *] |
| | | } |
| | |
| | | } |
| | | table := selectobject( owner, CustomerDemandIDS, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | table.Generate( search); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | table.Generate( search, productids ); |
| | | } |
| | | return table; |
| | | *] |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Generate ( |
| | | InventoryPlanArchiveVersionSearch search |
| | | InventoryPlanArchiveVersionSearch search, |
| | | Strings products, |
| | | Strings units |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | //æ¸
空ä¹ååå¨çæ¾ç¤ºæ°æ® |
| | | aopcolumns := selectuniquevalues( table, Column, aopcolumn, aopcolumn.TimeUnit() = search.TimeUnit() and aopcolumn.StartDate() >= search.StartDate() and aopcolumn.StartDate() <= search.EndDate(), aopcolumn.StartDate() ); |
| | | this.Clear( aopcolumns ); |
| | | traverse( table, Row, row, ( search.Unit() = FinancialProductionReport::GetDefaultAllUnit() or row.Unit() = search.Unit() ) |
| | | and ( search.Product() = FinancialProductionReport::GetDefaultAllUnit() or search.Product() = row.Name() )){ |
| | | traverse( table, Row, row, ( units.Size() = 0 or units.Find( row.Unit() ) > -1 ) and ( products.Size() = 0 or products.Find( row.Name() ) > -1 ) ){ |
| | | |
| | | showrow := selectobject( this, Row, showrow, showrow.Name() = row.Name() and showrow.Unit() = search.Unit() ); |
| | | if( isnull( showrow ) ){ |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-25-2024 (created) |
| | | timeunit := guard( this.InterfaceDataset().AssemblyOnlinePlanVersionSearch().TimeUnit(), Translations::MP_GlobalParameters_Day() ) ; |
| | | timeunit := guard( this.InterfaceDataset().InventoryPlanArchiveVersionSearch().TimeUnit(), Translations::MP_GlobalParameters_Day() ) ; |
| | | weekstart := periods.Element( 0 ); |
| | | |
| | | monthstart := periods.Element( 0 ); |
| | |
| | | } |
| | | |
| | | info( '-------------------------End---------------------'); |
| | | showtable.Generate( search ); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | productlines := selectuniquevalues( table, Row, row, row.Unit() ); |
| | | showtable.Generate( search, productids, productlines ); |
| | | *] |
| | | } |
| | |
| | | } |
| | | table := selectobject( owner, InventoryPlanArchiveVersion, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | table.Generate( search); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | productlines := selectuniquevalues( table, Row, row, row.Unit() ); |
| | | table.Generate( search, productids, productlines ); |
| | | } |
| | | return table; |
| | | *] |
| | |
| | | TextBody: |
| | | [* |
| | | traverse ( selectedRows, Elements.NewOfflinePlanCell, cell, |
| | | cell.NewOfflinePlanRow().Type() = "1" and cell.Quantity() > 0.0 |
| | | cell.NewOfflinePlanRow().Type() = "1" and cell.Quantity() >= 0.0 |
| | | // and cell.NewOfflinePlanRow().ProductionLine() = "eMotor Assy (France)" and cell.NewOfflinePlanColumn().StartDate() = Date::Construct( 2020, 4, 4 ) |
| | | ) |
| | | { |
| | | pto := select( macroPlan, Unit.Operation.PeriodTaskOperation, tempPTO, |
| | | exists( tempPTO, NewSupply, tempNS, tempNS.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID() = cell.NewOfflinePlanRow().ProductID() ) and |
| | | tempPTO.Operation().UnitID() = cell.NewOfflinePlanRow().ProductionLine() and |
| | | tempPTO.Start().Date() = cell.NewOfflinePlanColumn().StartDate() ); |
| | | if ( isnull( pto ) ) { |
| | | pto := select( macroPlan, Unit.Operation.PeriodTaskOperation, tempPTO, |
| | | exists( tempPTO, NewSupply, tempNS, tempNS.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID() = cell.NewOfflinePlanRow().ProductID() ) and |
| | | tempPTO.Operation().UnitID() = cell.NewOfflinePlanRow().ProductionLine() and |
| | | tempPTO.Start().Date() = cell.NewOfflinePlanColumn().StartDate() ); |
| | | if ( isnull( pto ) and cell.Quantity() > 0 ) { |
| | | o := select( macroPlan, Unit.Operation, tempO, tempO.ID() = cell.NewOfflinePlanRow().OperationID() ); |
| | | up := select( macroPlan, Unit.UnitPeriod, tempUP, tempUP.UnitID() = cell.NewOfflinePlanRow().ProductionLine() and tempUP.StartDate() = cell.NewOfflinePlanColumn().StartDate() ); |
| | | if ( not isnull( o ) and not isnull( up ) ) { |
| | | PeriodTaskOperation::Create( o, up, cell.Quantity(), false ); |
| | | } |
| | | } else { |
| | | } else if ( not isnull( pto ) ) { |
| | | if ( [Number]cell.Quantity() <> [Number]pto.Quantity() ) { |
| | | pto.Update( cell.Quantity(), false ); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | *] |
| | |
| | | |
| | | if ( guard( [Number]value.SubString( 1, 2 ) <= 0, true ) ) { |
| | | error( "ä¸ç¬¦åæ ¼å¼" ); |
| | | }; |
| | | } |
| | | |
| | | if ( exists( nopc, NewOfflinePlanColumn.NewOfflinePlanCell, tempNOPCell, |
| | | tempNOPCell <> nopc and |
| | | tempNOPCell.NewOfflinePlanRow().Type() = "1" and |
| | | tempNOPCell.NewOfflinePlanRow().ProductionLine() = nopc.NewOfflinePlanRow().ProductionLine(), |
| | | tempNOPCell.OrderNr() = [Number]value.SubString( 1, 2 ) ) |
| | | ) { |
| | | error( "å·²ç»åå¨Orderï¼", [Number]value.SubString( 1, 2 ) ); |
| | | } |
| | | |
| | | nopc.Order( value ); |
| | | nopc.OrderNr( [Number]value.SubString( 1, 2 ) ); |
| | |
| | | String attrName |
| | | ) |
| | | { |
| | | TextBody: 'nopc.Quantity( value );' |
| | | TextBody: |
| | | [* |
| | | if ( value < 0 ) { |
| | | error( "æ°éä¸è½ä¸ºè´" ); |
| | | } |
| | | |
| | | nopc.Quantity( value ); |
| | | |
| | | // æ°é为0ï¼ä¿®æ¹Order |
| | | if ( value = 0 ) { |
| | | nopc.Order( "" ); |
| | | nopc.OrderNr( 0 ); |
| | | } |
| | | |
| | | // 妿æ°éä¸ä¸º0ï¼ä¿®æ¹Order |
| | | *] |
| | | } |
| | |
| | | //æ¸
空ä¹ååå¨çæ¾ç¤ºæ°æ® |
| | | aopcolumns := selectuniquevalues( table, Column, aopcolumn, aopcolumn.TimeUnit() = search.TimeUnit() and aopcolumn.StartDate() >= search.StartDate() and aopcolumn.StartDate() <= search.EndDate(), aopcolumn.StartDate() ); |
| | | this.Clear( aopcolumns ); |
| | | traverse( table, Row, row, units.Find( row.ProductionLine() ) > -1 and products.Find( row.Name() ) > -1 ){ |
| | | traverse( table, Row, row, ( units.Size() = 0 or units.Find( row.ProductionLine() ) > -1 ) and ( products.Size() = 0 or products.Find( row.Name() ) > -1 ) ){ |
| | | |
| | | showrow := selectobject( this, Row, showrow, showrow.Name() = row.Name() and showrow.Unit() = search.Unit() ); |
| | | if( isnull( showrow ) ){ |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jun-25-2024 (created) |
| | | timeunit := guard( this.InterfaceDataset().AssemblyOnlinePlanVersionSearch().TimeUnit(), Translations::MP_GlobalParameters_Day() ) ; |
| | | timeunit := guard( this.InterfaceDataset().OfflinePlanArchiveSearch().TimeUnit(), Translations::MP_GlobalParameters_Day() ) ; |
| | | weekstart := periods.Element( 0 ); |
| | | |
| | | monthstart := periods.Element( 0 ); |
| | |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | DataRepresentation.Conditional |
| | | { |
| | | BackgroundColor: '$FF0066' |
| | | ConditionBody: 'object.Quantity() < 0.0' |
| | | ConversionBody: '' |
| | | DefaultBackgroundColor: false |
| | | InheritConversion: false |
| | | } |
| | | ] |
| | | } |
| | | AttributeRepresentation ShiftPatternEnd |
| | |
| | | [ |
| | | #child: PanelPeriod_384 |
| | | #child: PanelTimeUnit |
| | | #child: PanelOperation_653 |
| | | ] |
| | | Properties: |
| | | [ |
copy from _Main/UI/MacroPlannerWebApp/Component_FormInventoryPlanArchive/Component_PanelOperation.def
copy to "_Main/UI/MacroPlannerWebApp/Component_FormAssemblyOnlinePlanVersion/Component_PanelOperation\043653.def"
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_FormInventoryPlanArchive/Component_PanelOperation.def ¸´ÖÆ |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelOperation |
| | | Component PanelOperation id:PanelOperation_653 |
| | | { |
| | | #keys: '[415136.0.1307935388]' |
| | | #keys: '[415136.0.1325100270]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonSearch |
| | | { |
| | | #keys: '[415136.0.1307935389]' |
| | | #keys: '[415136.0.1325100271]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | #child: PanelOperation |
| | | #child: PanelUnit_424 |
| | | #child: PanelProductLine_623 |
| | | #child: PanelProduct |
| | |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelOperation_653/ButtonSearch |
| | | Response OnClick () id:Response_PanelOperation_653_ButtonSearch_OnClick |
| | | { |
| | | #keys: '[415136.0.1325100269]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( DataHolderTable.Data() ) ){ |
| | | productids := selectuniquevalues( DataHolderProduct.Data(), Elements, product, product.ID() ); |
| | | units := selectuniquevalues( DataHolderUnit.Data(), Elements, unit, unit.ID() ); |
| | | DataHolderTable.Data().Generate( dhSearch.Data(), productids, units ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | FixedSize: true |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | if( not isnull( DataHolderTable.Data() ) ){ |
| | | DataHolderTable.Data().Generate( dhSearch.Data() ); |
| | | productids := selectuniquevalues( DataHolderProduct.Data(), Elements, product, product.ID() ); |
| | | DataHolderTable.Data().Generate( dhSearch.Data(), productids ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | |
| | | [ |
| | | #child: PanelPeriod_71 |
| | | #child: PanelTimeUnit |
| | | #child: PanelOperation_603 |
| | | ] |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormInventoryPlanArchive/Component_PanelOperation.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelOperation |
| | | Component PanelOperation id:PanelOperation_603 |
| | | { |
| | | #keys: '[415136.0.1307935388]' |
| | | #keys: '[415136.0.1323960400]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonSearch |
| | | { |
| | | #keys: '[415136.0.1307935389]' |
| | | #keys: '[415136.0.1323960401]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | [ |
| | | #child: PanelUnit_925 |
| | | #child: PanelProduct |
| | | #child: PanelOperation |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelOperation_603/ButtonSearch |
| | | Response OnClick () id:Response_PanelOperation_603_ButtonSearch_OnClick |
| | | { |
| | | #keys: '[415136.0.1323960399]' |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | if( not isnull( DataHolderTable.Data() ) ){ |
| | | productids := selectuniquevalues( DataHolderProduct.Data(), Elements, product, product.ID() ); |
| | | units := selectuniquevalues( DataHolderUnit.Data(), Elements, unit, unit.ID() ); |
| | | DataHolderTable.Data().Generate( dhSearch.Data(), productids, units ); |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | | } |