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