From 3c42a475e218e9feb793e93563c8d5dede6fcb5d Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期五, 13 九月 2024 10:06:54 +0800 Subject: [PATCH] update --- jrj/project/business/BasicCode/QuickCode.cpp | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/jrj/project/business/BasicCode/QuickCode.cpp b/jrj/project/business/BasicCode/QuickCode.cpp index 1fd2885..8fc01e6 100644 --- a/jrj/project/business/BasicCode/QuickCode.cpp +++ b/jrj/project/business/BasicCode/QuickCode.cpp @@ -139,7 +139,7 @@ xml xi; xaserverarg argi; - argi.setNativePointer(argi.CreateInstance()); + if (xurl::get(L"QuickCode/ExchangeRate/import", argi.GetString(), xi) != 1) { trace(xi.text()); @@ -468,8 +468,7 @@ } m_dbmap = dbmap; - dw_list = new xdwgrid; - dw_list.setNativePointer(GetControl(dwname)); + dw_list = GetControl(dwname); dw_list.openUrl(vface + L"/" + tpl); //dw_list.SetSelectionMode(4); return 1; @@ -480,7 +479,7 @@ xml x1; xaserverarg arg1; - arg1.setNativePointer(arg1.CreateInstance()); + arg1.AddArg(L"id", L"地区"); if (xurl::get(L"/sale/data/QuickCode/entity/list", arg1.GetString(), x1) != 1) { @@ -515,7 +514,7 @@ xml x2; xaserverarg arg2; - arg2.setNativePointer(arg2.CreateInstance()); + arg2.AddArg(L"id", L"FND_Currency"); if (xurl::get(L"/sale/data/QuickCode/entity/list", arg2.GetString(), x2) != 1) { @@ -550,7 +549,7 @@ xml x3; xaserverarg arg3; - arg3.setNativePointer(arg3.CreateInstance()); + arg3.AddArg(L"id", L"FND_Country"); if (xurl::get(L"/sale/data/QuickCode/entity/list", arg3.GetString(), x3) != 1) { -- Gitblit v1.9.3