对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Test ( |
| | | MacroPlan macroPlan |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | traverse ( macroPlan, SalesDemand, sd, sd.ProductID() = "Chassis - SUV 1" ) { |
| | | |
| | | } |
| | | *] |
| | | } |
文件名从 _Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl 修改 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod AutomaticallyGenerateCapacityRules ( |
| | | StaticMethod AutomaticallyGenerateCapacityAllocationResults ( |
| | | GlobalOTDTable globalOTDTable, |
| | | MacroPlan macroPlan |
| | | ) |
| | |
| | | traverse ( outputPISP, ProcessOutput.AsProcessOutput, pmp ) { |
| | | |
| | | ontype( pmp ) { |
| | | |
| | | Operation as o : { |
| | | traverse ( o, OperationInput, oi ) { |
| | | oiPISP := oi.ProductInStockingPoint_MP(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | targetCustomerOrder := CustomerOrder::Create( targetProduct_MP, |
| | | targetStockingPoint_MP, |
| | | OS::GenerateGUIDAsString(), |
| | | fillingCapacityOrder.OrderDate(), |
| | | fillingCapacityOrder.DemandDate(), |
| | | quantity, |
| | | 0.0, |
| | | "Normal", |
| | |
| | | if ( isStockingPoint_MP ) { |
| | | this.Global_MappingStockingPoint_MP( relflush ); |
| | | Global_BrokerExecuteLog::CreateInOperation( this, "StockingPoint_MP", executionUser ); |
| | | // this -> Global_MappingStockingPoint_MP::CreateByAPI() -> Exception() -> Global_MappingStockingPoint_MP::OnException( this ); |
| | | this -> Global_MappingStockingPoint_MP::CreateByAPI() -> Exception() -> Global_MappingStockingPoint_MP::OnException( this ); |
| | | } |
| | | |
| | | if ( isCurrency_MP ) { |
| | | this.Global_MappingCurrency_MP( relflush ); |
| | | Global_BrokerExecuteLog::CreateInOperation( this, "Currency_MP", executionUser ); |
| | | // this -> Global_MappingCurrency_MP::CreateByAPI() -> Exception() -> Global_MappingCurrency_MP::OnException( this ); |
| | | this -> Global_MappingCurrency_MP::CreateByAPI() -> Exception() -> Global_MappingCurrency_MP::OnException( this ); |
| | | } |
| | | |
| | | if ( isCurrencyRate_MP ) { |
| | | this.Global_MappingCurrencyRate_MP( relflush ); |
| | | Global_BrokerExecuteLog::CreateInOperation( this, "CurrencyRate_MP", executionUser ); |
| | | // this -> Global_MappingCurrencyRate_MP::CreateByAPI() -> Exception() -> Global_MappingCurrencyRate_MP::OnException( this ); |
| | | this -> Global_MappingCurrencyRate_MP::CreateByAPI() -> Exception() -> Global_MappingCurrencyRate_MP::OnException( this ); |
| | | } |
| | | |
| | | if ( isLane ) { |
| | | this.Global_MappingLane( relflush ); |
| | | Global_BrokerExecuteLog::CreateInOperation( this, "Lane", executionUser ); |
| | | // this -> Global_MappingLane::CreateByAPI() -> Exception() -> Global_MappingLane::OnException( this ); |
| | | this -> Global_MappingLane::CreateByAPI() -> Exception() -> Global_MappingLane::OnException( this ); |
| | | } |
| | | |
| | | if ( isLaneLeg ) { |
| | | this.Global_MappingLaneLeg( relflush ); |
| | | Global_BrokerExecuteLog::CreateInOperation( this, "LaneLeg", executionUser ); |
| | | // this -> Global_MappingLaneLeg::CreateByAPI() -> Exception() -> Global_MappingLaneLeg::OnException( this ); |
| | | this -> Global_MappingLaneLeg::CreateByAPI() -> Exception() -> Global_MappingLaneLeg::OnException( this ); |
| | | } |
| | | *] |
| | | } |
| | |
| | | BaseType: 'WebEditField' |
| | | Properties: |
| | | [ |
| | | DataBinding: 'DataHolderFillingCapacityOrder.Data.CustomerID' |
| | | Label: 'Customer ID' |
| | | Taborder: 12 |
| | | ] |
| | |
| | | SalesSegmentName := guard( ddlSalesSegment.Data().Name(), "null" ), |
| | | StockingPointID := guard( ddlStockingPoint_MP.Data().ID(), "null" ), |
| | | Customer := efCustomerName.Text(), |
| | | CustomerID := efCustomID.Text(), |
| | | Quantity := [Real]edtQuantity.Text(), |
| | | UnitOfMeasureName := ddlUnitOfMeasure_MP.Data().Name(), |
| | | ForecastDemandDate := dsForecastDemandDate.Date(), |
| | |
| | | data.SalesSegmentName( guard( ddlSalesSegment.Data().Name(), "null" ) ); |
| | | data.StockingPointID( guard( ddlStockingPoint_MP.Data().ID(), "null" ) ); |
| | | data.Customer( efCustomerName.Text() ); |
| | | data.CustomerID( efCustomID.Text() ); |
| | | data.Quantity( [Real]edtQuantity.Text() ); |
| | | data.UnitOfMeasureName( ddlUnitOfMeasure_MP.Data().Name() ); |
| | | data.ForecastDemandDate( dsForecastDemandDate.Date() ); |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | CapacityAllocationResultsRuleConfiguration::AutomaticallyGenerateCapacityRules( GlobalOTDTable, MacroPlan ); |
| | | CapacityAllocationResultsRuleConfiguration::AutomaticallyGenerateCapacityAllocationResults( GlobalOTDTable, MacroPlan ); |
| | | *] |
| | | } |
| | | } |