xj qian
2024-07-09 2fd87264ec85c9afbe4c813404c27e79f7be541d
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)
@@ -390,6 +390,15 @@
      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:
   int openUrl(string aurl)
   {
@@ -460,6 +469,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)