Quintiq file version 2.0
|
#parent: #root
|
MethodOverride Execute
|
{
|
TextBody:
|
[*
|
// OVERRIDE logic to import sales demand
|
opt := DatasetFindOptions::Construct( this.MacroPlanDatasetName() );
|
mp := MDSMacroPlan::Find( opt );
|
|
opt := DatasetFindOptions::Construct();
|
db := MDSLibDEF_DataBroker::Find( opt );
|
|
this
|
->SetStatusInProgress()
|
->( streamImportSalesDemand )
|
{
|
mp->ImportFromDM( null( MPSync ), // null mpsync as not integrating with Scheduler
|
true, // true for importing sales demand
|
select( db, System.SetTypeMeta.SetMeta, sm, sm.Name() = this.SetMetaName()
|
and sm.ChannelName() = LibDEC_ChannelManufacturingDemand::CHANNEL_NAME() ), // sales demand set meta
|
false, // false for not importing mp-sc def
|
false, // false for not importing mp params
|
null( LibDEF_SetMeta ), // null mpscparams
|
BinaryValue::Construct(), // null binary data as not importing excel
|
false, // false for not importing scplan
|
null( LibDEF_SetMeta ), // null scplan
|
BinaryValue::Construct() ); // null binary data
|
}
|
->|this->SetStatusDone()
|
->|mp->SetLastImportTime();
|
*]
|
}
|