rislai
2024-06-21 e4724fcc72232d94e939d39a51234ce89b8c61e3
_Main/BL/Type_ArchivePR/Method_Load.qbl
@@ -1,7 +1,6 @@
Quintiq file version 2.0
#parent: #root
Method Load (
  Archive archive,
  LocalTable localTable
) const
{
@@ -9,10 +8,7 @@
  [*
    // rislai Jun-20-2024 (created)
    file := OSFile::Construct();
    //originRow := localTable.LocalRow( relnew ,Index := localTable.GetRowIndexCache());
    //carTypeRow := localTable.LocalRow( relnew ,Index := localTable.GetRowIndexCache());
    //productRow := localTable.LocalRow( relnew ,Index := localTable.GetRowIndexCache());
    //fourDigitRow := localTable.LocalRow( relnew,Index := localTable.GetRowIndexCache());
    recycleBin := localTable.RecycleBin();
    
    columns := selectset( localTable,LocalColumn,column,true );
    columnTree := NamedValueTree::Create();
@@ -26,7 +22,7 @@
      file.Open( this.FilePath(), "Read", false );
      webFileBinaryData := file.ReadBinary();
        
      generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( archive, webFileBinaryData, this.Name() );
      generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( recycleBin, webFileBinaryData, this.Name() );
      generalExcelImportAndExportDataSource.ReadStructure();
      selections := selectset( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, true );
      if( selections.Size() <> 0 ){