LiFan
2025-04-18 67c0065492e33c9936f12f46f9e2ebcdfb4f98ab
jrj/project/total3/viewex.total.cpp
@@ -69,6 +69,8 @@
         HCURSOR hCursor = 0;
         //if(UserNo !=L"00603")
         //{
         if (comdid == L"xmOwner") return OnOwnerData();
         if (comdid == L"xmAnalysis")
         {
            hCursor = xutil::SetCursorWait();
@@ -100,7 +102,7 @@
               Content = t.selectSingleNode(L"Content").text();
            }
            xaserverarg arg1 ;
            xaserverarg arg1=GetArg() ;
            
            arg1.AddArg(L"value", Content);
            OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1);
@@ -217,6 +219,28 @@
         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)
      {