From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/AR/CustomerTran.AR.cpp | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/jrj/project/business/AR/CustomerTran.AR.cpp b/jrj/project/business/AR/CustomerTran.AR.cpp
index 156d497..6c80af8 100644
--- a/jrj/project/business/AR/CustomerTran.AR.cpp
+++ b/jrj/project/business/AR/CustomerTran.AR.cpp
@@ -99,12 +99,12 @@
if (str.length() != 36)
{
hdr.mask = DMS_CSSSTYLE;
- hdr.cssstyle = L"color:#ff0000";
+ hdr.pCssStyle = (LPTSTR)L"color:#ff0000";
}
else if (str.find(L"-") != 8)
{
hdr.mask = DMS_CSSSTYLE;
- hdr.cssstyle = L"color:#ff0000";
+ hdr.pCssStyle = (LPTSTR)L"color:#ff0000";
}
}
return 1;
@@ -123,6 +123,7 @@
//获取焦点事件,用于重置工具条
AttachEvent(L"WM_SETFOCUS", (FEvent)&CustomerTranARView::OnSetFocus);
AttachEvent(L"dw_list", L"DWV_ASKSTYLE", (FEvent)&CustomerTranARView::OnItemAskStyle);
+ return 1;
}
int OnSave()
@@ -131,7 +132,7 @@
xml x;
xaserverarg arg ;
- arg.setNativePointer(arg.CreateInstance());
+
dw_list.DwUpdateAllToEx(x);
arg.AddArg(L"content", x.xml());
if (getUrl(L"/sale/data/AR/update/tran/customer", arg.GetString(), x) != 1)
@@ -151,8 +152,8 @@
{
xml x;
- xaserverarg arg ;
- arg.setNativePointer(arg.CreateInstance());
+ xaserverarg arg =GetArg();
+
if (getUrl(L"/sale/data/AR/tran/customer", arg.GetString(), x) != 1)
{
trace(x.text());
@@ -168,6 +169,7 @@
int onload()
{
+ SetArg();
dw_list = GetControl(L"dw_list");
dw_list.openUrl(L"/sale/view/AR/template/customertran");
dw_list.SetAskStyle(true);
--
Gitblit v1.9.3