From b8b0912fb9385f08c55e7055f37564c21e98fa50 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期一, 05 八月 2024 09:07:01 +0800
Subject: [PATCH] update
---
jrj/xframe/xcontrol/xdwgrid.hpp | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 55 insertions(+), 3 deletions(-)
diff --git a/jrj/xframe/xcontrol/xdwgrid.hpp b/jrj/xframe/xcontrol/xdwgrid.hpp
index 9436db8..ae30a2b 100644
--- a/jrj/xframe/xcontrol/xdwgrid.hpp
+++ b/jrj/xframe/xcontrol/xdwgrid.hpp
@@ -261,7 +261,7 @@
}
int AcceptText()
{
- return getKReport()->AcceptText();
+ return getKReport()->AcceptText_();
}
int ShowRowTo(int row)
{
@@ -286,7 +286,7 @@
}
int Redraw()
{
- return getKReport()->RedrawEx();
+ return getKReport()->Redraw();
}
bool SetRowMove(int row, int movecount)
{
@@ -400,7 +400,7 @@
bool SetItemDouble(int row, xstring col, double str)
{
- return SetItemString(row, col.c_str(), xstring(str));
+ return SetItemString(row, col, xstring(str));
}
int DataBI(LPCTSTR pSchema = NULL) //鏁版嵁BI鍒嗘瀽
@@ -412,6 +412,58 @@
return getKReport()->DataAnalysis(pSchema);
}
+ xstring GetItemString(int nRow, xstring ColumnName, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->GetItemString_(nRow, ColumnName.c_str(),dwBuffer);
+ }
+
+ bool SetItemString(int nRow, int ColumnName, xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemString_(nRow, ColumnName, lptStr.c_str(), dwBuffer);
+ }
+
+ bool SetItemString(int nRow, LPCTSTR ColumnName, xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemString_(nRow, ColumnName, lptStr.c_str(), dwBuffer);
+ }
+
+ bool SetItemString(int nRow, xstring ColumnName,xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemString_(nRow, ColumnName.c_str(), lptStr.c_str(), dwBuffer);
+ }
+ bool SetItemString(int nRow, xstring ColumnName, LPCTSTR lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemString_(nRow, ColumnName.c_str(), lptStr, dwBuffer);
+ }
+
+ xstring GetItemDisplayString(int nRow, xstring ColumnName, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->GetItemDisplayString(nRow, ColumnName.c_str(), dwBuffer);
+ }
+
+ bool SetItemDisplayString(int nRow, int ColumnName, xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemDisplayString(nRow, ColumnName, lptStr.c_str(), dwBuffer);
+ }
+
+ bool SetItemDisplayString(int nRow, LPCTSTR ColumnName, xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemDisplayString(nRow, ColumnName, lptStr.c_str(), dwBuffer);
+ }
+
+ bool SetItemDisplayString(int nRow, xstring ColumnName, xstring lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemDisplayString(nRow, ColumnName.c_str(), lptStr.c_str(), dwBuffer);
+ }
+ bool SetItemDisplayString(int nRow, xstring ColumnName, LPCTSTR lptStr, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->SetItemDisplayString(nRow, ColumnName.c_str(), lptStr, dwBuffer);
+ }
+ LPCTSTR GetItemTipString(int nRow, xstring ColumnName, kdwgrid::DWBuffer dwBuffer = kdwgrid::dbuf_normal)
+ {
+ return getKReport()->GetItemTipString(nRow, ColumnName.c_str(), dwBuffer);
+ }
+
public:
int openUrl(string aurl)
{
--
Gitblit v1.9.3