|
@@ -141,11 +141,11 @@ namespace MySystem
|
|
|
{
|
|
|
Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
|
|
|
string connstr = Configuration["Setting:SqlConnStr"];
|
|
|
- System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'QrCodePlateMainServer'", connstr);
|
|
|
+ System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'QrCodePlateMainServer2'", connstr);
|
|
|
foreach (System.Data.DataRow subtable in tablecollection.Rows)
|
|
|
{
|
|
|
Dictionary<string, string> Columns = new Dictionary<string, string>();
|
|
|
- System.Data.DataTable columncollection = Library.CustomerSqlConn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'QrCodePlateMainServer' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'", connstr);
|
|
|
+ System.Data.DataTable columncollection = Library.CustomerSqlConn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'QrCodePlateMainServer2' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'", connstr);
|
|
|
foreach (System.Data.DataRow column in columncollection.Rows)
|
|
|
{
|
|
|
string datatype = column["DATA_TYPE"].ToString();
|
|
@@ -180,7 +180,7 @@ namespace MySystem
|
|
|
}
|
|
|
tables.Add(subtable["TABLE_NAME"].ToString(), Columns);
|
|
|
}
|
|
|
- AppConfig.Base.mainTables = tables;
|
|
|
+ AppConfig.Base.statTables = tables;
|
|
|
}
|
|
|
|
|
|
private void InitBs()
|