|  |  | 
 |  |  |    int wid; | 
 |  |  |    xtreeview tv; | 
 |  |  |    xdwgrid dw; | 
 |  |  |    xwin pwin; | 
 |  |  |    xwin* pwin; | 
 |  |  |  | 
 |  |  | public: | 
 |  |  |    AddUserGroup(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} | 
 |  |  |    AddUserGroup(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd),pwin(nullptr) {} | 
 |  |  | public: | 
 |  |  |    static AddUserGroup* CreateInstance(void* implPtr, void* hWnd) | 
 |  |  |    { | 
 |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |    int AppendItem(xml x, KXMLDOMElement r, xstring item) { | 
 |  |  |       var e = x.createElement(item); | 
 |  |  |       control xc = new control; | 
 |  |  |       xc.setNativePointer(GetControl(item)); | 
 |  |  |       e.text() = xc.GetText(); | 
 |  |  |       auto e = x.createElement(item); | 
 |  |  |       xcontrol xc = GetControl(item); | 
 |  |  |       e.settext(xc.GetText()); | 
 |  |  |       r.appendChild(e); | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |    int AppendAttrib(xml x, KXMLDOMElement r, xstring item) { | 
 |  |  |       var e = x.createElement(item); | 
 |  |  |       auto e = x.createElement(item); | 
 |  |  |       //xcontrol xc = GetControl(item); | 
 |  |  |       control xc = new control; | 
 |  |  |       xc.setNativePointer(GetControl(item)); | 
 |  |  |       e.text() = xc.GetText(); | 
 |  |  |       xcontrol xc= GetControl(item); | 
 |  |  |       e.settext(xc.GetText()); | 
 |  |  |       r.setAttribute(item, xc.GetText()); | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  | 
 |  |  |          xaserverarg arg; | 
 |  |  |  | 
 |  |  |          x.loadXML(L"<row/>"); | 
 |  |  |          var r = x.documentElement(); | 
 |  |  |          auto r = x.documentElement(); | 
 |  |  |          xstring gpguid; | 
 |  |  |          if (p.note == L"修改") | 
 |  |  |          { | 
 |  |  | 
 |  |  |          arg.AddArg(L"content", x.xml()); | 
 |  |  |          if (xaserver::ExecXAction(GetServerUrl(), L"[update.Usergroup.xa]", arg.GetString()) == 1) | 
 |  |  |          { | 
 |  |  |             control xc = new control; | 
 |  |  |             xc.setNativePointer(GetControl(L"JobName")); | 
 |  |  |             xcontrol xc = GetControl(L"JobName"); | 
 |  |  |             //p.tv.Redraw(); | 
 |  |  |             if (p.note == L"修改") | 
 |  |  |             { | 
 |  |  | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    int SetItem(xstring value, xstring item) { | 
 |  |  |       control xc = new control; | 
 |  |  |       xc.setNativePointer(GetControl(item)); | 
 |  |  |       xcontrol xc = GetControl(item); | 
 |  |  |       xc.SetText(value); | 
 |  |  |       return 1; | 
 |  |  |    } |