From 6e9569f0f27eeadb24f1dfd808fa9d53a74a395f Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 11 七月 2024 22:21:15 +0800
Subject: [PATCH] item

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

diff --git a/jrj/xframe/xcontrol/xdwgrid.hpp b/jrj/xframe/xcontrol/xdwgrid.hpp
index 8f4a517..8525154 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)
@@ -332,6 +332,11 @@
 	void AddRepeats(wchar_t* colName)
 	{
 		return getKReport()->AddRepeats(colName);
+	}
+public:
+	void ShowEditor()
+	{
+		getKReport()->ShowEditor();
 	}
 public:
 	LPCTSTR GetColumnProp(int nCol, LPCTSTR pItem)
@@ -388,6 +393,15 @@
 	bool SetItemDouble(int row, xstring col, double str)
 	{
 		return SetItemString(row, col.c_str(), xstring(str));
+	}
+
+	int DataBI(LPCTSTR pSchema = NULL) //鏁版嵁BI鍒嗘瀽
+	{
+		return getKReport()->DataBI_(pSchema);
+	}
+	LPTSTR DataAnalysis(LPCTSTR pSchema = NULL)
+	{
+		return getKReport()->DataAnalysis(pSchema);
 	}
 
 public:
@@ -460,6 +474,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