From 8da3dba7cd9f7d64876af84c2ce37da87d7113d2 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期一, 02 九月 2024 18:52:38 +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