Selaa lähdekoodia

Merge branch 'develop' of http://112.33.111.155:3000/yanh/CNAS into develop

final
OCEAN 4 kuukautta sitten
vanhempi
commit
f414370553
15 muutettua tiedostoa jossa 39496 lisäystä ja 24 poistoa
  1. BIN
      .vs/CNAS_DBSync/v15/.suo
  2. BIN
      .vs/CNAS_DBSync/v15/Server/sqlite3/storage.ide-shm
  3. BIN
      .vs/CNAS_DBSync/v15/Server/sqlite3/storage.ide-wal
  4. +0
    -1
      CNAS_BalanceClient/CNAS_BalanceClient.csproj
  5. +47
    -7
      CNAS_DBSync/frmSyncParams.cs
  6. +1
    -1
      CnasSynchronousCommon/CnasSynchronousCommon.csproj
  7. +3
    -2
      CnasSynchronusDAL/CnasSynchronusDAL.csproj
  8. BIN
      dll/CNAS_DBSync.exe
  9. +3
    -11
      dll/CNAS_RunSync.exe.config
  10. BIN
      dll/CNAS_SyncService.exe
  11. +2
    -1
      dll/Cache/SyncTime.bin
  12. BIN
      dll/CnasSynchronousCommon.dll
  13. +1
    -1
      dll/Data/SyncInStrumentData.mes
  14. +38195
    -0
      dll/ErrorLog/20250219.txt
  15. +1244
    -0
      dll/ErrorLog/20250219.txt20250219.txt

BIN
.vs/CNAS_DBSync/v15/.suo Näytä tiedosto


BIN
.vs/CNAS_DBSync/v15/Server/sqlite3/storage.ide-shm Näytä tiedosto


BIN
.vs/CNAS_DBSync/v15/Server/sqlite3/storage.ide-wal Näytä tiedosto


+ 0
- 1
CNAS_BalanceClient/CNAS_BalanceClient.csproj Näytä tiedosto

@@ -38,7 +38,6 @@
<ApplicationIcon>scales_of_Balance_16px_1117673_easyicon.net.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Devart.Data, Version=5.0.2194.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL" />
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\log4net.dll</HintPath>


+ 47
- 7
CNAS_DBSync/frmSyncParams.cs Näytä tiedosto

@@ -287,14 +287,10 @@ namespace CNAS_DBSync
/// <param name="e"></param>
private void cbxInstrument_SelectedIndexChanged(object sender, EventArgs e)
{



if (cbxInstrument.Text == null) return;

InstrumentData instrumentData = InstrumentDataFact.CreateInstrumentDataSource(currentSyncItem.SyncInstrumentDSInfo, new object[] { "", "", "" });
//dictInstruTables = instrumentData.GetInstrumentData();
//dictInstruTables =

DataTable dtTableType = null;
string strTableName_Instru = cbxInstrument.Text.ToString();

@@ -604,6 +600,17 @@ namespace CNAS_DBSync
return 1;
}

public AccessFormatConfig AccessFormat { get; set; }
public ExcelFormatConfig ExcelFormat { get; set; }
public FoxProFormatConfig FoxProFormat { get; set; }
public SqliteFormatConfig SqliteFormat { get; set; }
public SqlServerFormatConfig SqlServerFormat { get; set; }
public OracleFormatConfig OracleFormat { get; set; }
public MySqlFormatConfig MySqlFormat { get; set; }
public NormalFileFormatConfig NormalFileFormat { get; set; }
public PostgreSqlFormatConfig PostgreSqlFormat { get; set; }
public KingbaseFormatConfig KingbaseFormat { get; set; }
public DmFormatConfig DmFormat { get; set; }
/// <summary>
/// 手动输入表名时,获取该表的表信息
/// </summary>
@@ -612,9 +619,42 @@ namespace CNAS_DBSync
{
if (currentSyncItem.SyncInstrumentDSInfo == null) return -1;
if (currentSyncItem.SyncTargetDBInfo == null) return -2;
SqlServerFormatConfig SqlServerFormat = FileOperation.GetFormatConfigData<SqlServerFormatConfig>("SqlServerFormatConfig.xml");
string sql = "";
ExcelFormat = FileOperation.GetFormatConfigData<ExcelFormatConfig>("ExcelFormatConfig.xml");
AccessFormat = FileOperation.GetFormatConfigData<AccessFormatConfig>("AccessFormatConfig.xml");
FoxProFormat = FileOperation.GetFormatConfigData<FoxProFormatConfig>("FoxProFormatConfig.xml");
SqliteFormat = FileOperation.GetFormatConfigData<SqliteFormatConfig>("SqliteFormatConfig.xml");
SqlServerFormat = FileOperation.GetFormatConfigData<SqlServerFormatConfig>("SqlServerFormatConfig.xml");
OracleFormat = FileOperation.GetFormatConfigData<OracleFormatConfig>("OracleFormatConfig.xml");
NormalFileFormat = FileOperation.GetFormatConfigData<NormalFileFormatConfig>("NormalFileFormatConfig.xml");
KingbaseFormat = FileOperation.GetFormatConfigData<KingbaseFormatConfig>("KingbaseFormatConfig.xml");

switch (currentSyncItem.SyncInstrumentDSInfo.InstrumentDataSourceType)
{
case DataSourceType.MySQL:
MySqlFormat = FileOperation.GetFormatConfigData<MySqlFormatConfig>("MySqlFormatConfig.xml");
sql = MySqlFormat.AutoSql.MySqlViewSql;
break;
case DataSourceType.Dm:
DmFormat = FileOperation.GetFormatConfigData<DmFormatConfig>("DmFormatConfig.xml");
sql = DmFormat.AutoSql.DmViewSql;
break;
case DataSourceType.Oracle:
OracleFormat = FileOperation.GetFormatConfigData<OracleFormatConfig>("OracleFormatConfig.xml");
sql = OracleFormat.AutoSql.OracleViewSql;
break;
case DataSourceType.PostgreSQL:
PostgreSqlFormat = FileOperation.GetFormatConfigData<PostgreSqlFormatConfig>("PostgreSqlFormatConfig.xml");
sql = PostgreSqlFormat.AutoSql.PostgreSqlViewSql;
break;
case DataSourceType.SQL:
SqlServerFormat = FileOperation.GetFormatConfigData<SqlServerFormatConfig>("SqlServerFormatConfig.xml");
sql = SqlServerFormat.AutoSql.SqlServerViewSql;
break;
default:
break;
}

string sql = SqlServerFormat.AutoSql.SqlServerViewSql;

cbxInstrument.Text = ExtractTableNames(sql);
if (cbxInstrument.Text == "") return -6;


+ 1
- 1
CnasSynchronousCommon/CnasSynchronousCommon.csproj Näytä tiedosto

@@ -40,7 +40,7 @@
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\CNASClient\CNAS_DBSync\dll\Newtonsoft.Json.dll</HintPath>
<HintPath>..\dll\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />


+ 3
- 2
CnasSynchronusDAL/CnasSynchronusDAL.csproj Näytä tiedosto

@@ -89,8 +89,9 @@
<Reference Include="MySql.Data">
<HintPath>..\..\..\CNASClient\CNAS_DBSync\dll\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Npgsql, Version=8.0.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.8.0.3\lib\netstandard2.0\Npgsql.dll</HintPath>


BIN
dll/CNAS_DBSync.exe Näytä tiedosto


+ 3
- 11
dll/CNAS_RunSync.exe.config Näytä tiedosto

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
@@ -50,9 +50,7 @@
</filter>
</appender>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
@@ -76,11 +74,5 @@
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
</configuration>

BIN
dll/CNAS_SyncService.exe Näytä tiedosto


+ 2
- 1
dll/Cache/SyncTime.bin Näytä tiedosto

@@ -2,5 +2,6 @@
"ccc": "2025-02-17 10:40:25",
"ddd": "2025-02-17 11:32:02",
"eee": "2025-02-17 15:04:41",
"fff": "2025-02-17 14:31:03"
"fff": "2025-02-17 14:31:03",
"aaa": "2025-02-19 16:32:24"
}

BIN
dll/CnasSynchronousCommon.dll Näytä tiedosto


+ 1
- 1
dll/Data/SyncInStrumentData.mes
File diff suppressed because it is too large
Näytä tiedosto


+ 38195
- 0
dll/ErrorLog/20250219.txt
File diff suppressed because it is too large
Näytä tiedosto


+ 1244
- 0
dll/ErrorLog/20250219.txt20250219.txt
File diff suppressed because it is too large
Näytä tiedosto


Loading…
Peruuta
Tallenna