From cf8dba7748cc9826d744069b5063a14e3fcd2fa8 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 13 三月 2025 10:48:17 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- jrj/project/total3/ViewTotalWin.cpp | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/jrj/project/total3/ViewTotalWin.cpp b/jrj/project/total3/ViewTotalWin.cpp index 768456e..2feff78 100644 --- a/jrj/project/total3/ViewTotalWin.cpp +++ b/jrj/project/total3/ViewTotalWin.cpp @@ -87,7 +87,7 @@ int hCursor = 0; if (comdid == L"xmSearch") return OnSearch(); - + if (comdid == L"xmOwner") return OnOwnerData(); //if(UserNo !=L"00603") //{ if (comdid == L"xmAnalysis") @@ -258,6 +258,27 @@ return 1; } + int OnOwnerData() + { + int ret = MessageBox(GetHWND(), L"是否更新归属数据?\n更新过程预计需要些时间,如果中间弹出等待时间过长的提示,请点击中间重试按钮,或等待到一定时间再点击", L"提示", 0x4 /*yesno*/); + if (ret != 6 /*IDYES */) return 1; + + xml x; + HCURSOR hCursor = xutil::SetCursorWait(); + if (xurl::get(L"/sale/data/CustomerV3/owner/reload", L"", x) != 1) + { + xutil::RestoreCursor(hCursor); + return 1; + } + else + { + xutil::RestoreCursor(hCursor); + alert(x.text()); + return 1; + } + + return 1; + } //命令处理事件 int OnXCommand(TEvent* evt, int param) { -- Gitblit v1.9.3