| | |
| | | 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); }//读取数据 |
| | |
| | | int GetGroupStartRow(int nGroup) { return GetDwTable()->GetGroupStartRow_(nGroup); } //得到指定组的开始行 |
| | | int GetGroupRowCount(int nGroup) { return GetDwTable()->GetGroupRowCount_(nGroup); } //得到指定组的结束行 |
| | | int InsertGroupRow(int nGroup, int nRow) { return GetDwTable()->InsertGroupRow_(nGroup, nRow); } //插入组行 |
| | | int GetGroupFromRow(int nRow) { return GetDwTable()->GetGroupFromRow(nRow); } |
| | | public: |
| | | int GetMaxDeep() { return GetDwTable()->GetMaxDeep_(); } //插入数据视图的最大深度 |
| | | int GetLevel() { return GetDwTable()->GetLevel_(); } //得到数据视图的级号 |
| | | LPCTSTR GetDwXPath() { return GetDwTable()->GetDwXPath_(); } //得到数据视图的XPATH |
| | | public: |
| | | kdwtable* GetParent() { return (kdwtable*)GetDwTable()->GetParent_(); } //得到父数据试图 |
| | | xdwtable GetParent() { return GetDwTable()->GetParent_(); } //得到父数据试图 |
| | | public: |
| | | int GetChildCount() { return GetDwTable()->GetChildCount_(); } //得到子数据视图数 |
| | | kdwtable* GetChild(int nIndex) { return (kdwtable*)GetDwTable()->GetChild_(nIndex); } //得到指定序号的子数据视图 |
| | |
| | | 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(); |
| | | } |
| | | |
| | |
| | | DwRetrieve(ServerUrl, src, arg.GetString()); |
| | | return 1; |
| | | } |
| | | |
| | | int RetrieveDiff(KXMLDOMElement pElement) |
| | | { |
| | | return 0; |
| | | } |
| | | int RetrieveDiff(KXMLDOMDocument& xml) |
| | | { |
| | | return 0; |
| | | } |
| | | int DwUpdateToDiff(KXMLDOMDocument pXmlDoc) |
| | | { |
| | | return 0; |
| | | } |
| | | int DwUpdateAllToDiff(KXMLDOMDocument pXmlDoc) |
| | | { |
| | | return 0; |
| | | } |
| | | |
| | | }; |
| | | |
| | | |