From 8ea6d363df77de2dca288397da8d4f9c3d3a5c4d Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 18 十月 2024 18:41:57 +0800
Subject: [PATCH] '项目完善'

---
 Monitor/MonitorDlg.cpp |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/Monitor/MonitorDlg.cpp b/Monitor/MonitorDlg.cpp
index c0f87c5..b55e94a 100644
--- a/Monitor/MonitorDlg.cpp
+++ b/Monitor/MonitorDlg.cpp
@@ -112,6 +112,8 @@
 					desc.Append(L"(");
 					desc.Append(r.name);
 					desc.Append(L")");
+					desc.Append(L" ");
+					desc.Append(CString(StringUtil::to_string(r.rate).c_str()));
 					dlg->listL2Codes.SetItemText(index, 0, desc);
 
 				}
@@ -609,6 +611,21 @@
 						int count = data[L"today_history_k_bar_count"].GetInt();
 						dlg->labelTodayKBarsCount.SetWindowTextW(to_wstring(count).c_str());
 					}
+					if (data.HasMember(L"data_server_open")) {
+						int state = data[L"data_server_open"].GetInt();
+						if (state > 0) {
+							dlg->labelColors[IDC_STATIC_DATA_SERVER_STATE] = RGB(0, 0, 0);
+							dlg->labelDataServerState.SetWindowTextW(L"宸插紑鍚�");
+						}
+						else {
+							dlg->labelColors[IDC_STATIC_DATA_SERVER_STATE] = RGB(255, 0, 0);
+							dlg->labelDataServerState.SetWindowTextW(L"鏈紑鍚�");
+						}
+						
+					}
+					else {
+						dlg->labelDataServerState.SetWindowTextW(L"鏈煡");
+					}
 
 					
 
@@ -631,12 +648,6 @@
 		if (kill) {
 			break;
 		}
-
-
-
-
-
-
 		Sleep(2000);
 	}
 
@@ -835,6 +846,7 @@
 	DDX_Control(pDX, IDC_EDIT_CODE_FOR_SEARCH, editSearchCode);
 	DDX_Control(pDX, IDC_BUTTON_SEARCH, btnSearch);
 	DDX_Control(pDX, IDC_STATIC_TODAY_K_BARS_COUNT, labelTodayKBarsCount);
+	DDX_Control(pDX, IDC_STATIC_DATA_SERVER_STATE, labelDataServerState);
 }
 
 

--
Gitblit v1.8.0