LiFan
2025-02-13 03ef0b51103c735077c784c7df81ae2bcc1599ab
jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp
@@ -2,7 +2,7 @@
#include <wobject/xwin.hpp>
#include <wobject/xurl.hpp>
#include <memory.h>
struct PUser
{
   string id;
@@ -46,7 +46,7 @@
   }
   //取当前用户
   static PUser* GetUser(xstring id)
   static PUser& GetUser(xstring id)
   {
      string userno = xaserver::GetUserNo();
      //trace(userno);
@@ -61,6 +61,7 @@
      //trace(L"---%s",x.GetXml());
      KXMLDOMElement e = x.documentElement();
      PUser& p = *(new PUser);
      ::memset(&p, 0,sizeof(PUser));
      if (e)
      {
         if (e.selectSingleNode(L"任职"))   p.id = e.selectSingleNode(L"任职").text();
@@ -89,9 +90,9 @@
         if (e.selectSingleNode(L"电话"))   p.tel = e.selectSingleNode(L"电话").text();
      }
      return &p;
      return p;
   }
   static PUser* GetUser()
   static PUser& GetUser()
   {
      return GetUser(L"");
   }
@@ -238,7 +239,7 @@
      //xml 
      //x.setNativePointer(xml::CreateInstance());      
      xaserverarg arg;
      arg.setNativePointer(arg.CreateInstance());
      arg.AddArg(L"AssignmentID", sguid);
      if (xaserver::ExecXQuery(L"", L"[getAssignment.xq]", arg.GetString(), x) == 1)
      {