rislai
2024-06-21 e4724fcc72232d94e939d39a51234ce89b8c61e3
修改GeneralExcelImportAndExportDataSource的存储位置
已添加1个文件
已修改6个文件
已删除1个文件
74 ■■■■ 文件已修改
_Main/BL/Relations/Relation_GeneralExcelImportAndExportDataSource_Archive_Archive_GeneralExcelI.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_GeneralExcelImportAndExportDataSource_RecycleBin_RecycleBin_General.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ArchivePR/Method_Load.qbl 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ArchivePR/StaticMethod_Compared.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GeneralExcelImportAndExportDataSource/StaticMethod_Upload.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_Form989/Response_pHeader_bImport_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormPR_PP_Budget/Response_pHeader_bImport_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSixDigitCode/Response_pHeader_393_bImport_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_GeneralExcelImportAndExportDataSource_Archive_Archive_GeneralExcelI.qbl
ÎļþÒÑɾ³ý
_Main/BL/Relations/Relation_GeneralExcelImportAndExportDataSource_RecycleBin_RecycleBin_General.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
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'
  }
}
_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 ){
_Main/BL/Type_ArchivePR/StaticMethod_Compared.qbl
@@ -2,19 +2,19 @@
#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;
  *]
_Main/BL/Type_GeneralExcelImportAndExportDataSource/StaticMethod_Upload.qbl
@@ -1,7 +1,7 @@
Quintiq file version 2.0
#parent: #root
StaticMethod Upload (
  Archive archive,
  RecycleBin recycleBin,
  BinaryValue binaryValue,
  String filePath
) const as GeneralExcelImportAndExportDataSource
@@ -10,7 +10,7 @@
  [*
    fileName := filePath.Tokenize( "\" ).Element( filePath.Tokenize( "\" ).Size() - 1 );
    
    generalExcelImportAndExportDataSource := archive.GeneralExcelImportAndExportDataSource( relnew,
    generalExcelImportAndExportDataSource := recycleBin.GeneralExcelImportAndExportDataSource( relnew,
                                                                                            FileBinaryValue := binaryValue,
                                                                                            Name            := fileName,
                                                                                            IsXLSX          := fileName.EndsWith( "xlsx" ),
_Main/UI/MacroPlannerWebApp/Component_Form989/Response_pHeader_bImport_OnClick.def
@@ -24,7 +24,7 @@
              
          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" );
_Main/UI/MacroPlannerWebApp/Component_FormPR_PP_Budget/Response_pHeader_bImport_OnClick.def
@@ -24,7 +24,7 @@
              
          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" );
_Main/UI/MacroPlannerWebApp/Component_FormSixDigitCode/Response_pHeader_393_bImport_OnClick.def
@@ -24,7 +24,7 @@
              
          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" );