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