使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#include "CursorBase.h"
#include "dbCursor.h"
#include "MBAMDBConnect.h"
// CMsgOwner command target
 
 
class AFX_EXT_CLASS CMsgOwnerItem : public CCursorBase
{
    DECLARE_DYNAMIC(CMsgOwnerItem)
public:
    CMsgOwnerItem();
    virtual ~CMsgOwnerItem();
    void operator =( const CMsgOwnerItem& item );
// Attributes
public:
    CString            m_strOwner;            // Receiver User Login Name
    CString            m_strOwnerName;        // Receiver User Name
    COleDateTime    m_tmOpenDate;        // Date of Open Message
    CString            m_strAttitude;        //
    CString            m_strMsgID;            // ¹ØÁªµÄÏûÏ¢ID
    int                m_nOwnerType;
 
// 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    UpdateUserAttitude( CDBConnect *pAConnect,CString strAttitude);
};
 
 
class CMsgs;
 
class AFX_EXT_CLASS CMsgOwners  : public CdbCursor, public CMsgOwnerItem
{
public:
    CMsgOwners(CMBAMDBConnect *pAConnect);
    virtual ~CMsgOwners();
    void operator =( const CMsgOwners& item );
 
// Attributes
public:
    CMsgs            *m_pMsgs;
 
// Operations
public:
    int                ListSpMsgID( LPCTSTR lpszMsgID, LPCTSTR lpszOwner = NULL, int nOwnerType = 0 );    
    void            LoadData( CMsgOwnerItem msgOwner );
    bool            GetMsg( CMsgs &msg );
public:
    virtual bool    GetData( );
};