From a5289d51bd57a99a2377c5590bc61cb7a42e61d4 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期四, 18 七月 2024 12:15:47 +0800 Subject: [PATCH] upadte --- jrj/project/business/SystemSettings/AddUserGroup.cpp | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/jrj/project/business/SystemSettings/AddUserGroup.cpp b/jrj/project/business/SystemSettings/AddUserGroup.cpp index 978f2fa..6b8c2cf 100644 --- a/jrj/project/business/SystemSettings/AddUserGroup.cpp +++ b/jrj/project/business/SystemSettings/AddUserGroup.cpp @@ -41,8 +41,7 @@ } int AppendItem(xml x, KXMLDOMElement r, xstring item) { var e = x.createElement(item); - control xc = new control; - xc.setNativePointer(GetControl(item)); + xcontrol xc = GetControl(item); e.text() = xc.GetText(); r.appendChild(e); return 1; @@ -50,8 +49,7 @@ int AppendAttrib(xml x, KXMLDOMElement r, xstring item) { var e = x.createElement(item); //xcontrol xc = GetControl(item); - control xc = new control; - xc.setNativePointer(GetControl(item)); + xcontrol xc= GetControl(item); e.text() = xc.GetText(); r.setAttribute(item, xc.GetText()); return 1; @@ -88,8 +86,7 @@ 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"修改") { @@ -136,8 +133,7 @@ } int SetItem(xstring value, xstring item) { - control xc = new control; - xc.setNativePointer(GetControl(item)); + xcontrol xc = GetControl(item); xc.SetText(value); return 1; } -- Gitblit v1.9.3