已重命名1个文件
已修改10个文件
已添加7个文件
已删除1个文件
| | |
| | | } |
| | | traverse( macroPlan, NewAssemblyOnlinePlanRow, aoprow, aoprow.Type() = '1' ){ |
| | | row := table.GetRow( aoprow ); |
| | | traverse( aoprow, NewAssemblyOnlinePlanCell, aopcell ){ |
| | | column := selectobject( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = aopcell.NewAssemblyOnlinePlanColumn().StartDate() ); |
| | | traverse( table, Column, column ){//, aopcolumns.Find( column.StartDate() ) > -1 |
| | | qty := sum( aoprow, NewAssemblyOnlinePlanCell, aopcell, column.StartDate() <= aopcell.NewAssemblyOnlinePlanColumn().StartDate() |
| | | and column.EndDate() >= aopcell.NewAssemblyOnlinePlanColumn().StartDate(), aopcell.Quantity() ); |
| | | |
| | | cell := selectobject( row, Cell, cell, cell.Column() = column ); |
| | | // cell.InventoryWeight( aopcell.InventoryWeight() ); |
| | | cell.Quantity( aopcell.Quantity() ); |
| | | cell.Quantity( qty ); |
| | | } |
| | | } |
| | | showtable.Generate( search ); |
| | |
| | | traverse( table, GeneralExcelImportAndExportDataRow, row ){ |
| | | productcell := selectobject( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 2 ); |
| | | factorycell := selectobject( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() = 0 ); |
| | | idsrow := idstable.GetRowByUnit( productcell.Value(), factorycell.Value() ); |
| | | unitname := ifexpr( factorycell.Value().StartsWith( 'é¿æ¥' ), FinancialProductionReport::GetDefaultCCUnit(), FinancialProductionReport::GetDefaultDLUnit() ); |
| | | idsrow := idstable.GetRowByUnit( productcell.Value(), unitname ); |
| | | traverse( row, GeneralExcelImportAndExportDataCell, cell, cell.GeneralExcelImportAndExportDataColumn().ColumnIndex() > 2 ){ |
| | | period := cnv2.Convert( cell.GeneralExcelImportAndExportDataColumn().Name() ); |
| | | daycolumn := idstable.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Day(), period ); |
| | |
| | | } |
| | | } |
| | | traverse ( macroplan, SalesDemand.astype( Forecast ), forecast, not isnull( forecast.Product_MP() ) and forecast.Origin() = 'PPA' ){ |
| | | unitname := ifexpr( forecast.SalesSegment_MP().Name().StartsWith( 'Changchun' ) |
| | | |
| | | unitname := ifexpr( forecast.StockingPointID().StartsWith( 'é¿æ¥' ) , FinancialProductionReport::GetDefaultCCUnit(), FinancialProductionReport::GetDefaultDLUnit() );/*ifexpr( forecast.SalesSegment_MP().Name().StartsWith( 'Changchun' ) |
| | | or exists( forecast.SalesSegment_MP().GetAllParent(), Elements, psalessegment, psalessegment.Name().StartsWith( 'Changchun' ) ) |
| | | , FinancialProductionReport::GetDefaultCCUnit() |
| | | , FinancialProductionReport::GetDefaultDLUnit() ); |
| | | , FinancialProductionReport::GetDefaultDLUnit() );*/ |
| | | traverse( forecast, PlanningSalesDemandInPeriod, sdip ){ |
| | | idsrow := idstable.GetRowByUnit( forecast.ProductID(), unitname ); |
| | | daycolumn := idstable.GetColumnByTimeUnit( Translations::MP_GlobalParameters_Day(), sdip.StartDate() ); |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Generate ( |
| | | OfflinePlanArchiveSearch search |
| | | OfflinePlanArchiveSearch 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.Find( row.ProductionLine() ) > -1 and products.Find( row.Name() ) > -1 ){ |
| | | |
| | | showrow := selectobject( this, Row, showrow, showrow.Name() = row.Name() and showrow.Unit() = search.Unit() ); |
| | | if( isnull( showrow ) ){ |
| | | showrow := this.Row( relnew, Name := row.Name(), ProductID := row.ProductID(), Unit := search.Unit() ); |
| | | } |
| | | traverse( row, Cell, cell, cell.Column().TimeUnit() = search.TimeUnit() ){ |
| | | column := selectobject( this, Column, column, column.ColumnName() = cell.Column().ColumnName() ); |
| | | traverse( this, Column, column ){ |
| | | cells := selectset( row, Cell, cell, cell.Column().TimeUnit() = Translations::MP_GlobalParameters_Day() |
| | | and cell.Column().StartDate() >= column.StartDate() |
| | | and cell.Column().StartDate() <= column.EndDate() ); |
| | | |
| | | // traverse( row, Cell, cell, cell.Column().TimeUnit() = search.TimeUnit() ){ |
| | | // column := selectobject( this, Column, column, column.ColumnName() = cell.Column().ColumnName() ); |
| | | if( not isnull( column ) ){ |
| | | showcell := selectobject( showrow, Cell, showcell, showcell.Column() = column ); |
| | | if( isnull( showcell ) ){ |
| | | showcell := showrow.Cell( relnew, Quantity := 0, ActualProductionQty := 0 ); |
| | | column.Cell( relinsert, showcell ); |
| | | } |
| | | showcell.Quantity( cell.Quantity() + showcell.Quantity() ); |
| | | showcell.ActualProductionQty( cell.ActualProductionQty() + showcell.ActualProductionQty() ); |
| | | qty := sum( cells, Elements, cell, cell.Quantity() ); |
| | | actqty := sum( cells, Elements, cell, cell.ActualProductionQty() ); |
| | | showcell.Quantity( qty + showcell.Quantity() ); |
| | | showcell.ActualProductionQty( actqty + showcell.ActualProductionQty() ); |
| | | if( search.TimeUnit() = Translations::MP_GlobalParameters_Day() ){ |
| | | showcell.Order( cells.Element( 0 ).Order() ); |
| | | showcell.OrderNr( cells.Element( 0 ).OrderNr() ); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | table := selectobject( owner, OfflinePlanArchiveVersion, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | table.Generate( search); |
| | | productids := selectuniquevalues( table, Row, row, row.Name() ); |
| | | productlines := selectuniquevalues( table, Row, row, row.ProductionLine() ); |
| | | table.Generate( search, productids, productlines ); |
| | | } |
| | | return table; |
| | | *] |
| | |
| | | actproductionhandle := actproductiontree.GetHandle( actproductionKey ); |
| | | actproductiontree.Root().AddChild( actproductionhandle,i ); |
| | | } |
| | | |
| | | traverse( noptable, NewOfflinePlanRow, noprow, noprow.Type() = '1' ){ |
| | | row := table.GetRow( noprow ); |
| | | if( not isnull( row ) ){ |
| | |
| | | } |
| | | cell.ActualProductionQty( actproductionqty ); |
| | | cell.InventoryWeight( nopcell.InventoryWeight() ); |
| | | cell.Order( nopcell.Order() ); |
| | | cell.OrderNr( nopcell.OrderNr() ); |
| | | // cell.ProductionSerialNumber( nopcell.ProductionSerialNumber() ); |
| | | cell.Quantity( nopcell.Quantity() ); |
| | | // cell.Shift( nopcell.Shift() ); |
| | |
| | | } |
| | | } |
| | | } |
| | | 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 |
| | | Attribute Order |
| | | { |
| | | #keys: '3[415136.0.1312430050][415136.0.1312430049][415136.0.1312430051]' |
| | | Description: 'ç产顺åºï¼Stringï¼' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute OrderNr |
| | | { |
| | | #keys: '3[415136.0.1312430053][415136.0.1312430052][415136.0.1312430054]' |
| | | Description: 'ç产顺åºï¼Numberï¼' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: Order |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ShowName |
| | | { |
| | | #keys: '3[415136.0.1312430042][415136.0.1312430041][415136.0.1312430043]' |
| | | Description: 'æ¾ç¤ºåç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: ShowName |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcShowName |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Nov-18-2024 (created) |
| | | |
| | | value := this.ProductionLine().Concat( '_' ).Concat( this.Name() ); |
| | | |
| | | this.ShowName( value ); |
| | | *] |
| | | } |
| | |
| | | [ |
| | | #child: PanelPeriod |
| | | #child: PanelTimeUnit_720 |
| | | #child: PanelOperation |
| | | ] |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_PanelOperation#679.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component PanelOperation id:PanelOperation_679 |
| | | Component PanelOperation |
| | | { |
| | | #keys: '[415136.0.1306620726]' |
| | | #keys: '[415136.0.1313960022]' |
| | | BaseType: 'WebPanel' |
| | | Children: |
| | | [ |
| | | Component ButtonSearch |
| | | { |
| | | #keys: '[415136.0.1306620727]' |
| | | #keys: '[415136.0.1313960023]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 2 |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 1 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | #child: PanelUnit |
| | | #child: PanelProductLine |
| | | #child: PanelProduct_780 |
| | | #child: PanelOperation_679 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: PanelOperation/ButtonSearch |
| | | Response OnClick () id:Response_PanelOperation_ButtonSearch_OnClick |
| | | { |
| | | #keys: '[415136.0.1313960021]' |
| | | 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 |
| | | } |
| | | } |