修改GeneralExcelImportAndExportDataSource的存储位置
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Relation GeneralExcelImportAndExportDataSource_RecycleBin_RecycleBin_GeneralExcelImportAndExportDataSource |
| | | { |
| | | #keys: '1[412672.0.1087854694]' |
| | | DefaultRelationStrategy |
| | | { |
| | | } |
| | | RelationSide.LeftSide RecycleBin |
| | | { |
| | | #keys: '3[412672.0.1087854696][412672.0.1087854695][412672.0.1087854697]' |
| | | Cardinality: '0to1' |
| | | ObjectDefinition: GeneralExcelImportAndExportDataSource |
| | | OwningSide: 'Reference' |
| | | } |
| | | RelationSide.RightSide GeneralExcelImportAndExportDataSource |
| | | { |
| | | #keys: '3[412672.0.1087854699][412672.0.1087854698][412672.0.1087854700]' |
| | | Cardinality: '1toN' |
| | | ObjectDefinition: RecycleBin |
| | | OwningSide: 'Owned' |
| | | } |
| | | } |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Load ( |
| | | Archive archive, |
| | | LocalTable localTable |
| | | ) const |
| | | { |
| | |
| | | [* |
| | | // 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(); |
| | |
| | | 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 ){ |
| | |
| | | #parent: #root |
| | | StaticMethod Compared ( |
| | | RecycleBin recycleBin, |
| | | ArchivePR baseVersion, |
| | | ArchivePR compareVersion |
| | | const ArchivePR baseVersion, |
| | | const ArchivePR compareVersion |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Jun-20-2024 (created) |
| | | archive := baseVersion.Archive(); // archiveä¸å¯è®¾ç½®ä¸ºåªè¯» |
| | | // archive := baseVersion.Archive(); // archiveä¸å¯è®¾ç½®ä¸ºåªè¯» |
| | | |
| | | table := recycleBin.LocalTable( relnew ); |
| | | |
| | | baseVersion.Load( archive,table ); |
| | | compareVersion.Load( archive,table ); |
| | | baseVersion.Load( table ); |
| | | compareVersion.Load( table ); |
| | | |
| | | return table; |
| | | *] |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod Upload ( |
| | | Archive archive, |
| | | RecycleBin recycleBin, |
| | | BinaryValue binaryValue, |
| | | String filePath |
| | | ) const as GeneralExcelImportAndExportDataSource |
| | |
| | | [* |
| | | fileName := filePath.Tokenize( "\" ).Element( filePath.Tokenize( "\" ).Size() - 1 ); |
| | | |
| | | generalExcelImportAndExportDataSource := archive.GeneralExcelImportAndExportDataSource( relnew, |
| | | generalExcelImportAndExportDataSource := recycleBin.GeneralExcelImportAndExportDataSource( relnew, |
| | | FileBinaryValue := binaryValue, |
| | | Name := fileName, |
| | | IsXLSX := fileName.EndsWith( "xlsx" ), |
| | |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( Archive, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( RecycleBin, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource.ReadStructure(); |
| | | |
| | | selection := select( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, tempGEIAEDT.Name() = "Sheet1" ); |
| | |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( Archive, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( RecycleBin, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource.ReadStructure(); |
| | | |
| | | selection := select( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, tempGEIAEDT.Name() = "Sheet1" ); |
| | |
| | | |
| | | webFileBinaryData := BinaryData::FromBase64EncodedString( base64String ).AsBinaryValue(); |
| | | |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( Archive, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource := GeneralExcelImportAndExportDataSource::Upload( RecycleBin, webFileBinaryData, fileName ); |
| | | generalExcelImportAndExportDataSource.ReadStructure(); |
| | | |
| | | selection := select( generalExcelImportAndExportDataSource, GeneralExcelImportAndExportDataTable, tempGEIAEDT, tempGEIAEDT.Name() = "Sheet1" ); |