Quintiq file version 2.0
|
#parent: #root
|
Method ExecuteSalesDemandBrokers (
|
Boolean isexcel,
|
BinaryValues binarydatas,
|
Strings brokers
|
)
|
{
|
Description: 'Execute brokers that are associated with objects in SalesDemand ObjectGroup'
|
TextBody:
|
[*
|
if( not isexcel )
|
{
|
this.MPSync().MPSync_ImportForecastsFromDBBroker().Execute();
|
this.MPSync().MPSync_ImportPostponementsAndFulfillmentsFromDBBroker().Execute();
|
}
|
else
|
{
|
brokername :="";
|
try
|
{
|
// Sales demands
|
brokername := typeof( MPSync_ImportForecastFromExcelBroker ).ShortName();
|
binaryvalue := this.GetBinaryData( binarydatas, brokers, brokername );
|
this.ValidateBroker( brokername,
|
this.MPSync().MPSync_ImportForecastFromExcelBroker().Source(),
|
binaryvalue );
|
this.MPSync().MPSync_ImportForecastFromExcelBroker().ExecuteFromXLS( binaryvalue.AsBinaryData(), true );
|
}
|
onfailure
|
{
|
this.UpdateLastExecutedImportObjectGroupErrorMessage( brokername + ":" + e.GeneralInformation() );
|
}
|
}
|
*]
|
InterfaceProperties { Accessibility: 'Extensible' }
|
}
|