Quintiq file version 2.0
|
#parent: #root
|
Method CreateDataSources
|
{
|
Description: 'Display files that user can import in web app'
|
TextBody:
|
[*
|
// Create Strings to store file names
|
if( this.LibSOPImpExp_DataSource( relsize ) <= 0 )
|
{
|
// Set all file names
|
filenameParam := MPSyncUtility::GetImportFileName( typeof( MPSync_ImportSCMPParamsFromExcelBroker ).Name() );
|
filenameDetailSc := MPSyncUtility::GetImportFileName( typeof( MPSync_ImportDetailedScheduleFromExcelBroker ).Name() );
|
|
// set broker name
|
brokerParam := Translations::Planned_Order_Parameters();
|
brokerDetailSc := Translations::Planned_Order_Detailed_Schedule();
|
|
// 1. Create the file for parameter
|
scparameter := LibSOPImpExp_DataSource::FindCreate( this, brokerParam, brokerParam );
|
LibSOPImpExp_DataSourceFile::Create( scparameter, filenameParam, brokerParam, '' );
|
|
// 2. Create the file for detailed schedule
|
scdetailSc := LibSOPImpExp_DataSource::FindCreate( this, brokerDetailSc, brokerDetailSc );
|
LibSOPImpExp_DataSourceFile::Create( scdetailSc, filenameDetailSc, brokerDetailSc, '' );
|
}
|
*]
|
}
|