| | |
| | | public: |
| | | int SetRow(int row) { return GetDwTable()->SetRow_(row); } |
| | | public: |
| | | LPCTSTR GetNote(int nRow, int nColumn) { return GetDwTable()->GetNote_(nRow, nColumn); }//得到备注 |
| | | xstring GetNote(int nRow, int nColumn) { return GetDwTable()->GetNote_(nRow, nColumn); }//得到备注 |
| | | bool SetNote(int nRow, int nColumn, LPCTSTR pStrNote) { return GetDwTable()->SetNote_(nRow, nColumn, pStrNote); } //设置备注 |
| | | bool AddNote(int nRow, int nColumn, LPCTSTR pStrNote, LPCTSTR pUser = NULL, LPCTSTR pData = NULL) { return GetDwTable()->AddNote_(nRow, nColumn, pStrNote, pUser, pData); } //设置备注 |
| | | |
| | | LPCTSTR GetNote1(int nRow, int nColumn) { return GetDwTable()->GetNote1_(nRow, nColumn); }//得到修改 |
| | | xstring GetNote1(int nRow, int nColumn) { return GetDwTable()->GetNote1_(nRow, nColumn); }//得到修改 |
| | | bool SetNote1(int nRow, int nColumn, LPCTSTR pStrNote) { return GetDwTable()->SetNote1_(nRow, nColumn, pStrNote); } //设置修改 |
| | | bool AddNote1(int nRow, int nColumn, LPCTSTR pStrNote, LPCTSTR pUser = NULL, LPCTSTR pData = NULL) { return GetDwTable()->AddNote1_(nRow, nColumn, pStrNote, pUser, pData); } //设置修改 |
| | | |
| | | LPCTSTR GetNote2(int nRow, int nColumn) { return GetDwTable()->GetNote2_(nRow, nColumn); }//得到批注 |
| | | bool SetNote2(int nRow, int nColumn, LPCTSTR pStrNote) { return GetDwTable()->SetNote2_(nRow, nColumn, pStrNote); } //设置批注 |
| | | xstring GetNote2(int nRow, int nColumn) { return GetDwTable()->GetNote2_(nRow, nColumn); }//得到批注 |
| | | bool SetNote2(int nRow, int nColumn, xstring pStrNote) { return GetDwTable()->SetNote2_(nRow, nColumn, pStrNote); } //设置批注 |
| | | bool AddNote2(int nRow, int nColumn, LPCTSTR pStrNote, LPCTSTR pUser = NULL, LPCTSTR pData = NULL) { return GetDwTable()->AddNote2_(nRow, nColumn, pStrNote, pUser, pData); } //设置批注 |
| | | |
| | | public: |
| | |
| | | int InsertRows(int nRow, int nAmt) { return GetDwTable()->InsertRows_(nRow, nAmt); }//插入多行 |
| | | int DeleteRows(int nRow, int nAmt) { return GetDwTable()->DeleteRows_(nRow, nAmt); }//删除多行 |
| | | public: |
| | | LPCTSTR GetColumnName(int nColumn) { return GetDwTable()->GetColumnName_(nColumn); }//得到列名 |
| | | xstring GetColumnName(int nColumn) { return GetDwTable()->GetColumnName_(nColumn); }//得到列名 |
| | | int GetColumnIndex(LPCTSTR pColumn) { return GetDwTable()->GetColumnIndex_(pColumn); } //得到列号 |
| | | public: |
| | | //LPCTSTR GetItemString(int nRow, int nColumn, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) { return GetDwTable()->GetItemString_(nRow, nColumn, dwBuffer); }//得到数据值 |
| | |
| | | public: |
| | | int ClearObserver() { return GetDwTable()-> ClearObserver_(); }//清除事件侦听对象 |
| | | public: |
| | | int DwUpdateTo(KXMLDOMDocument pXmlDoc) { return GetDwTable()->DwUpdateTo_(pXmlDoc); }//把数据更新到XML对象中 |
| | | int DwUpdateAllTo(KXMLDOMDocument pXmlDoc) { return GetDwTable()->DwUpdateAllTo_(pXmlDoc); }//把数据更新到XML对象中 |
| | | int DwUpdateTo(KXMLDOMDocument pXmlDoc) { |
| | | return GetDwTable()->DwUpdateTo_(pXmlDoc); |
| | | }//把数据更新到XML对象中 |
| | | int DwUpdateAllTo(KXMLDOMDocument pXmlDoc) { |
| | | return GetDwTable()->DwUpdateAllTo_(pXmlDoc); |
| | | }//把数据更新到XML对象中 |
| | | public: |
| | | int Retrieve(LPCTSTR pServer, LPCTSTR pDataUrl, LPCTSTR pArgStr) { return GetDwTable()->Retrieve_(pServer, pDataUrl, pArgStr); }//读取数据 |
| | | int Retrieve(LPCTSTR pDataUrl, LPCTSTR pArgStr) { return GetDwTable()->Retrieve_(pDataUrl, pArgStr); }//读取数据 |
| | |
| | | public: |
| | | int GetMaxDeep() { return GetDwTable()->GetMaxDeep_(); } //插入数据视图的最大深度 |
| | | int GetLevel() { return GetDwTable()->GetLevel_(); } //得到数据视图的级号 |
| | | LPCTSTR GetDwXPath() { return GetDwTable()->GetDwXPath_(); } //得到数据视图的XPATH |
| | | xstring GetDwXPath() { return GetDwTable()->GetDwXPath_(); } //得到数据视图的XPATH |
| | | public: |
| | | xdwtable GetParent() { return GetDwTable()->GetParent_(); } //得到父数据试图 |
| | | public: |
| | | int GetChildCount() { return GetDwTable()->GetChildCount_(); } //得到子数据视图数 |
| | | kdwtable* GetChild(int nIndex) { return (kdwtable*)GetDwTable()->GetChild_(nIndex); } //得到指定序号的子数据视图 |
| | | public: |
| | | LPCTSTR GetDwName() { return GetDwTable()->GetDwName_(); } //得到数据视图的名称 |
| | | xstring GetDwName() { return GetDwTable()->GetDwName_(); } //得到数据视图的名称 |
| | | kdwtable* FindDwTable(LPCTSTR pStrName, kdwtable* pParent = NULL) { return (kdwtable*)GetDwTable()->FindDwTable_(pStrName, (Hxsoft::XFrame::IDwView*)pParent); } //查找数据试图 |
| | | kdwtable* GetCurTable(int& nRow, int& nCol) { return (kdwtable*)GetDwTable()->GetCurTable_(nRow, nCol); }//得到当前数据视图,并返回行列 |
| | | kdwtable* GetCurTable() { return (kdwtable*)GetDwTable()->GetCurTable_(); }//得到当前数据视图 |
| | |
| | | return GetDwTable()->ClearAdvanceString( nRow, nCol); |
| | | } |
| | | public: |
| | | LPCTSTR GetGuid(int nRow) |
| | | xstring GetGuid(int nRow) |
| | | { |
| | | return GetDwTable()->GetGuid(nRow); |
| | | } |
| | |
| | | { |
| | | return GetDwTable()->SetItemTipString(nRow, ColumnName, lptStr, dwBuffer); |
| | | } |
| | | |
| | | xstring GetItemString(int nRow, xstring ColumnName, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->GetItemString_(nRow, ColumnName.c_str(), dwBuffer); |
| | | }//得到数据值 |
| | | xstring SetItemString(int nRow, xstring ColumnName, LPCTSTR value,kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemString_(nRow, ColumnName.c_str(),value, dwBuffer); |
| | | } |
| | | xstring SetItemString(int nRow, xstring ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemString_(nRow, ColumnName.c_str(), value.c_str(), dwBuffer); |
| | | } |
| | | xstring SetItemString(int nRow, LPCTSTR ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemString_(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | xstring SetItemString(int nRow, int ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemString_(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | |
| | | xstring GetItemDisplayString(int nRow, xstring ColumnName, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->GetItemDisplayString(nRow, ColumnName.c_str(), dwBuffer); |
| | | }//得到数据值 |
| | | xstring SetItemDisplayString(int nRow, xstring ColumnName, LPCTSTR value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemDisplayString(nRow, ColumnName.c_str(), value, dwBuffer); |
| | | } |
| | | xstring SetItemDisplayString(int nRow, xstring ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemDisplayString(nRow, ColumnName.c_str(), value.c_str(), dwBuffer); |
| | | } |
| | | xstring SetItemDisplayString(int nRow, LPCTSTR ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemDisplayString(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | xstring SetItemDisplayString(int nRow, int ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->SetItemDisplayString(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | |
| | | xstring ItemChangeTo(int nRow, xstring ColumnName, LPCTSTR value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->ItemChangeTo(nRow, ColumnName.c_str(), value, dwBuffer); |
| | | } |
| | | xstring ItemChangeTo(int nRow, xstring ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->ItemChangeTo(nRow, ColumnName.c_str(), value.c_str(), dwBuffer); |
| | | } |
| | | xstring ItemChangeTo(int nRow, LPCTSTR ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->ItemChangeTo(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | xstring ItemChangeTo(int nRow, int ColumnName, xstring value, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) |
| | | { |
| | | return GetDwTable()->ItemChangeTo(nRow, ColumnName, value.c_str(), dwBuffer); |
| | | } |
| | | public: |
| | | int AcceptText() |
| | | { |
| | | return GetDwTable()->AcceptText(); |
| | | return GetDwTable()->AcceptText_(); |
| | | } |
| | | int getNullCell(POINT& p) |
| | | { |
| | |
| | | { |
| | | return GetDwTable()->SetRowSort(colName, colOrder); |
| | | } |
| | | |
| | | public: |
| | | int GetItemInt(int row, int col) |
| | | { |
| | | xstring str = GetItemString(row, col); |
| | | str = str.replace(L",", L""); |
| | | return str.toInt(); |
| | | } |
| | | |
| | | double GetItemDouble(int row, int col) |
| | | { |
| | | xstring str = GetItemString(row, col); |
| | | str = str.replace(L",", L""); |
| | | return str.toDouble(); |
| | | } |
| | | |
| | | int GetItemInt(int row, string col) |
| | | { |
| | | xstring str = GetItemString(row, col); |
| | | str = str.replace(L",", L""); |
| | | return str.toInt(); |
| | | } |
| | | |
| | | double GetItemDouble(int row, string col) |
| | | { |
| | | xstring str = GetItemString(row, col); |
| | | str = str.replace(L",", L""); |
| | | return str.toDouble(); |
| | | } |
| | | |
| | |
| | | return 0; |
| | | } |
| | | |
| | | xstring GetItemXmlString(int nRow, int nColumn, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) { |
| | | return xutil::ToXmlText(GetDwTable()->GetItemString_(nRow, nColumn, dwBuffer)); |
| | | } |
| | | xstring GetItemXmlString(int nRow, LPCTSTR ColumnName, kdwtable::DWBuffer dwBuffer = kdwtable::dbuf_normal) { |
| | | return xutil::ToXmlText(GetDwTable()->GetItemString_(nRow, ColumnName, dwBuffer)); |
| | | } |
| | | |
| | | }; |
| | | |
| | | |