xj qian
2024-09-04 ca7bfcdac21b765d29d0045308d434dfd038b10c
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)
   {