|
@@ -161,24 +161,24 @@ namespace MySystem
|
|
|
InitMain();
|
|
|
|
|
|
//必须打开的
|
|
|
- if(Library.ConfigurationManager.EnvironmentFlag == 1)
|
|
|
- {
|
|
|
- }
|
|
|
- if(Library.ConfigurationManager.EnvironmentFlag == 2)
|
|
|
- {
|
|
|
+ // if(Library.ConfigurationManager.EnvironmentFlag == 1)
|
|
|
+ // {
|
|
|
+ // }
|
|
|
+ // if(Library.ConfigurationManager.EnvironmentFlag == 2)
|
|
|
+ // {
|
|
|
RecommandKingHelper.Instance.Start(); //推荐王
|
|
|
AddSourcePosSnHelper.Instance.Start(); //补来源机具
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
private void InitMain()
|
|
|
{
|
|
|
string conn = Configuration["Setting:SqlConnStr"];
|
|
|
string dbName = "KxsMainServer";
|
|
|
- if(Library.ConfigurationManager.EnvironmentFlag == 2)
|
|
|
- {
|
|
|
- dbName = "KxsProfitServer";
|
|
|
- }
|
|
|
+ // if(Library.ConfigurationManager.EnvironmentFlag == 2)
|
|
|
+ // {
|
|
|
+ // dbName = "KxsProfitServer";
|
|
|
+ // }
|
|
|
Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
|
|
|
System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = '" + dbName + "'", conn);
|
|
|
foreach (System.Data.DataRow subtable in tablecollection.Rows)
|