From f6b1117a23c5fefd2adf62c077c31cbe610437f2 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期三, 26 六月 2024 10:32:44 +0800
Subject: [PATCH] 提交代码
---
jrj/project/business/Supplier.maint.cpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/jrj/project/business/Supplier.maint.cpp b/jrj/project/business/Supplier.maint.cpp
index 699a072..3fc7c65 100644
--- a/jrj/project/business/Supplier.maint.cpp
+++ b/jrj/project/business/Supplier.maint.cpp
@@ -1083,9 +1083,9 @@
int UpLoad(xstring name)
{
xstring str = name.mid(0,2);
- str = str.upper();
+ str = str.toUpper();
//alert(str);
- int ret1 = xaserver::Upload(L"supplier"+str, name+L".jpg", GetHWND(),L"",false);
+ int ret1 = xaserver::Upload(GetServerUrl(), L"supplier" + str, name + L".jpg", GetHWND(), L"", false);
//alert(ret1);
return ret1;
}
@@ -1151,8 +1151,8 @@
int OnItemClick(TEvent* evt, int p)
{
- ref DWNMHDR hdr1 = trust(evt.pnmh as ref DWNMHDR);
- xstring colname1= hdr1.colname;
+ DWNMHDR* hdr1 = (DWNMHDR*)evt->notify.pnmh;
+ xstring colname1= hdr1->colname;
DWNMHDR* hdr = (DWNMHDR*)evt->notify.pnmh;
xstring value = hdr->data;
@@ -1293,9 +1293,9 @@
xdwtable dw = dw_visitp.FindDwTable(L"item4",0);
- ref DWNMHDR hdr = cast(evt.pnmh as ref DWNMHDR);
- xstring value = hdr.data;
- int row = hdr.row;
+ DWNMHDR* hdr = (DWNMHDR*)evt->notify.pnmh;
+ xstring value = hdr->data;
+ int row = hdr->row;
//alert(value);
xaserverarg& arg=*new xaserverarg;
arg.setNativePointer(arg.CreateInstance());
--
Gitblit v1.9.3