#pragma once #include "CursorBase.h" #include "dbCursor.h" #include "MBAMDBConnect.h" // MsgProperty command target class CMsgs; class AFX_EXT_CLASS CMsgPropertyItem : public CCursorBase { public: CMsgPropertyItem( ); virtual ~CMsgPropertyItem(); // Attributes public: CString m_strName; // ÊôÐÔÃû CString m_strValue; // ÊôÐÔÖµ CString m_strMsgID; // ¹ØÁªµÄÏûÏ¢ID // Operations public: void Clear(); virtual BOOL GetItemValue( CString strName, CString &strValue ) { return CCursorBase::GetItemValue( strName, strValue ); } virtual BOOL GetItemValue( CString strName, COleVariant &varData ); BOOL InsertRecord( CDBConnect *pAConnect); BOOL UpdateRecord(CDBConnect *pAConnect ); BOOL IsMsgSysAttrib( ); BOOL IsMsgSysAttribDefValue( ); }; class AFX_EXT_CLASS CMsgPropertys : public CdbCursor, public CMsgPropertyItem { public: CMsgPropertys(CMBAMDBConnect *pAConnect); virtual ~CMsgPropertys(); void operator =( const CMsgPropertys& item ); // Attributes public: CMsgs *m_pMsgs; // Operations public: void LoadData( CMsgPropertyItem msgProperty ); bool GetMsg( CMsgs &msg ); public: virtual bool GetData( ); };