|  | @@ -32,6 +32,7 @@ uint32_t g_tReminderInterval = 21600;
 | 
	
		
			
				|  |  |  string g_strMoMp;  //监控日志
 | 
	
		
			
				|  |  |  CMyRWLock g_lockSync;  //同步读写锁
 | 
	
		
			
				|  |  |  bool  g_bDataCompression;   //历史数据是否压缩
 | 
	
		
			
				|  |  | +bool  g_bExternalData;  //是否启用外部数据
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  C315ClientManager *g_p315ClientManager;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -123,6 +124,7 @@ bool CAppService::Start()
 | 
	
		
			
				|  |  |  	::GetPrivateProfileString("SET", "momp", "", szTemp, sizeof(szTemp), m_strIniPath);
 | 
	
		
			
				|  |  |  	g_strMoMp = szTemp;
 | 
	
		
			
				|  |  |  	g_bDataCompression = ::GetPrivateProfileInt("SET", "DataCompression", g_bDataCompression, m_strIniPath);
 | 
	
		
			
				|  |  | +	g_bExternalData = ::GetPrivateProfileInt("SET", "ExternalData", g_bExternalData, m_strIniPath);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      ::WritePrivateProfileStringA("ODBC", "DRIVER", CStringA(m_strDriver), m_strIniPath);
 | 
	
		
			
				|  |  |      ::WritePrivateProfileStringA("ODBC", "SERVER", CStringA(m_strDataSource), m_strIniPath);
 | 
	
	
		
			
				|  | @@ -133,6 +135,7 @@ bool CAppService::Start()
 | 
	
		
			
				|  |  |  	::WritePrivateProfileString("SET", "reminder_interval", (to_string(g_tReminderInterval) + " #报警提醒间隔").c_str(), m_strIniPath);
 | 
	
		
			
				|  |  |  	::WritePrivateProfileString("SET", "momp", g_strMoMp.c_str(), m_strIniPath);
 | 
	
		
			
				|  |  |  	::WritePrivateProfileString("SET", "DataCompression", to_string(g_bDataCompression).c_str(), m_strIniPath);
 | 
	
		
			
				|  |  | +    ::WritePrivateProfileString("SET", "ExternalData", fmt::format(" #是否采用外部程序分析数据进行智能判断 默认为0 9.6以上").c_str(), m_strIniPath);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	//ODBC
 | 
	
		
			
				|  |  |      if (CDBConnectPool::Instance()->Init(m_strDriver, m_strDataSource, m_strUserID, m_strPassWD, m_strCataLog, 5) == FALSE)
 |