From b8e6a7bb37d04f1e974e231a5caffc1854cf7f41 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 27 六月 2024 09:37:26 +0800
Subject: [PATCH] this update tree data item

---
 jrj/xframe/xcontrol/xdwgrid.hpp |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/jrj/xframe/xcontrol/xdwgrid.hpp b/jrj/xframe/xcontrol/xdwgrid.hpp
index 8f4a517..11f7f9c 100644
--- a/jrj/xframe/xcontrol/xdwgrid.hpp
+++ b/jrj/xframe/xcontrol/xdwgrid.hpp
@@ -270,9 +270,9 @@
 		return getKReport()->GetTitleName(col);
 	}
 public:
-	int SetRowSort(LPTSTR colName, bool colOrder = true)
+	int SetRowSort(LPCTSTR colName, bool colOrder = true)
 	{
-		return getKReport()->SetRowSort(colName, colOrder);
+		return getKReport()->SetRowSort((LPTSTR)colName, colOrder);
 	}
 	int SetClickEditFlag(bool f)
 	{
@@ -302,9 +302,9 @@
 	{
 		return getKReport()->RetrieveDiff(xml);
 	}
-	int Filter(LPTSTR pColumn, LPTSTR pStr)
+	int Filter(LPCTSTR pColumn, LPCTSTR pStr)
 	{
-		return getKReport()->Filter(pColumn, pStr);
+		return getKReport()->Filter((LPTSTR)pColumn, (LPTSTR)pStr);
 	}
 public:
 	int SetHeaderText(int row, int col, LPTSTR name)
@@ -460,6 +460,17 @@
 		return L"";
 	}
 
+	int SetGuid(int row,xstring val)
+	{
+		KXMLDOMElement  e = GetRowElement(row);
+		if (e)
+		{
+			e.setAttribute(L"guid",val.c_str());
+			return 1;
+		}
+		return 0;
+	}
+
 public:
 
 	int DwRetrieve(string ServerUrl, string src, string argstr)

--
Gitblit v1.9.3