#pragma once #include "MBAMDBConnect.h" #include "MsgAttachment.h" #include "STKMsgAttachmentRow.h" // STKMsgAttachmentRowSet command target class AFX_EXT_CLASS CSTKMsgAttachmentRowSet : public CObject { public: CSTKMsgAttachmentRowSet(); virtual ~CSTKMsgAttachmentRowSet(); void operator = ( const CSTKMsgAttachmentRowSet &Item ); // Attributers public: private: CMBAMDBConnect *m_pDBConnect; CString m_strStartDate; // ÏûÏ¢¿ªÊ¼ÈÕÆÚ CString m_strEndDate; // ÏûÏ¢µÄ½áÊøÈÕÆÚ CMsgAttachments *m_pMsgAttachments; // Operations public: void CleanDataSet( ); // IAMRowSet public: bool SetMsgFilterDate( CString strStartDate, CString strEndDate ); bool Prev( ); bool GetItemValueStr( CString strItemName, CString &strData ); bool GetItemValue( CString strItemName, VARIANT &vData ); bool GetRow( CSTKMsgAttachmentRow *pSTKRow ); bool Next( ); bool Top( ); bool MoveTo( long nPos ); bool ListAttachments( CString strUser,CString strUserName, CString strKey ,long &nCount ); bool SetDBConnect( CMBAMDBConnect *pDBConnect ); bool ListRecordCount( long &nCount ); };