使用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
#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  );
 
};