¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionImportData_Cell_FinancialProductionCell_ImportData |
| | | { |
| | | #keys: '1[415136.0.978940064]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide Cell |
| | | { |
| | | #keys: '3[415136.0.978940066][415136.0.978940065][415136.0.978940067]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionImportData |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide ImportData |
| | | { |
| | | #keys: '3[415136.0.978940069][415136.0.978940068][415136.0.978940070]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionCell |
| | | OwningSide: 'Reference' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation FinancialProductionImportData_MacroPlan_MacroPlan_FPImportData |
| | | { |
| | | #keys: '1[415136.0.978920031]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide MacroPlan |
| | | { |
| | | #keys: '3[415136.0.978920033][415136.0.978920032][415136.0.978920034]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: FinancialProductionImportData |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide FPImportData |
| | | { |
| | | #keys: '3[415136.0.978920036][415136.0.978920035][415136.0.978920037]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: MacroPlan |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Generation |
| | | { |
| | | #keys: '3[415136.0.978920071][415136.0.978920070][415136.0.978920072]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MqbMlb |
| | | { |
| | | #keys: '3[415136.0.978920068][415136.0.978920067][415136.0.978920069]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Power |
| | | { |
| | | #keys: '3[415136.0.978920065][415136.0.978920064][415136.0.978920066]' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ProductID |
| | | { |
| | | #keys: '3[415136.0.978920045][415136.0.978920044][415136.0.978920046]' |
| | | Description: '产åID' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Quantity |
| | | { |
| | | #keys: '3[415136.0.978920075][415136.0.978920074][415136.0.978920076]' |
| | | ValueType: Real |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute StartDate |
| | | { |
| | | #keys: '3[415136.0.978920085][415136.0.978920084][415136.0.978920086]' |
| | | ValueType: Date |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[415136.0.978920055][415136.0.978920054][415136.0.978920056]' |
| | | Description: 'å·¥ååç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: Generation |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: MqbMlb |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: Power |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Function CalcQuantity |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Aug-8-2024 (created) |
| | | |
| | | value := guard( [Number]this.Cell().Value(), 0 ); |
| | | |
| | | this.Quantity( value ); |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #root |
| | | #parent: #DomainModel |
| | | Type FinancialProductionImportData |
| | | { |
| | | #keys: '5[415136.0.978920028][415136.0.978920026][0.0.0][415136.0.978920027][415136.0.978920029]' |
| | | BaseType: Object |
| | | Description: 'è´¢å¡äº§éæ¥è¡¨äºç»´è¡¨' |
| | | StructuredName: 'FinancialProductionImportDatas' |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetRowByUnit ( |
| | | String product, |
| | | Product_MP product, |
| | | String unit |
| | | ) as FinancialProductionRow |
| | | { |
| | |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Aug-2-2024 (created) |
| | | row := selectobject( this, FinancialProductionRow, row, row.Name() = product and row.Unit() = unit ); |
| | | row := selectobject( this, FinancialProductionRow, row, row.Name() = product.ID() and row.Unit() = unit ); |
| | | if( isnull( row ) ){ |
| | | //åå§ååå
æ ¼ |
| | | row := this.FinancialProductionRow( relnew, Name := product, Unit := unit ); |
| | | row := this.FinancialProductionRow( relnew, Name := product.ID(), Unit := unit ); |
| | | traverse( this, FinancialProductionColumn, column ){ |
| | | row.Initialize( column, unit ); |
| | | row.Initialize( column, product, unit ); |
| | | } |
| | | } |
| | | return row; |
| | |
| | | #parent: #root |
| | | Method Initialize ( |
| | | FinancialProductionColumn column, |
| | | Product_MP product, |
| | | String unit |
| | | ) |
| | | { |
| | |
| | | cell := column.FinancialProductionCell( relnew, Value := '' ); |
| | | |
| | | this.FinancialProductionCell( relinsert, cell ); |
| | | if( unit <> FinancialProductionReport::GetDefaultAllUnit() ){ |
| | | importdata := product.MacroPlan().FPImportData( relnew, Generation := product.Generation() |
| | | , MqbMlb := product.MQBMLB() |
| | | , Power := product.Power() |
| | | , ProductID := product.ID() |
| | | , StartDate := column.Period() |
| | | , Unit := unit ); |
| | | importdata.Cell( relset, cell ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | [* |
| | | // çå
°é¸½ Jun-24-2024 (created) |
| | | owner.FinancialProductionSource( relflush ); |
| | | owner.FPImportData( relflush ); |
| | | ccunit := FinancialProductionReport::GetDefaultCCUnit(); |
| | | dlunit := FinancialProductionReport::GetDefaultDLUnit(); |
| | | allunit := FinancialProductionReport::GetDefaultAllUnit(); |
| | |
| | | if( iscc or isdl ){ |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() ){ |
| | | //è·åå·¥åè¡ |
| | | factoryrow := table.GetRowByUnit( pisp.ProductID(), ifexpr( iscc, ccunit, dlunit ) ); |
| | | factoryrow := table.GetRowByUnit( pisp.Product_MP(), ifexpr( iscc, ccunit, dlunit ) ); |
| | | //è·ååè®¡è¡ |
| | | allrow := table.GetRowByUnit( pisp.ProductID(), allunit ); |
| | | allrow := table.GetRowByUnit( pisp.Product_MP(), allunit ); |
| | | products.Add( pisp.Product_MP() ); |
| | | //å½product planningçæ¥æåºé´å¨éè¦çæ¥æåºé´å
|
| | | traverse( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().StartDate() < startofnextyear |