使用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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include "StdAfx.h"
#include "MBFireQrCodeSet.h"
 
 
CMBFireQrCodeSet::CMBFireQrCodeSet(void)
{
    RemoveAllQrCode();
}
 
 
CMBFireQrCodeSet::~CMBFireQrCodeSet(void)
{
    RemoveAllQrCode();
}
 
void             CMBFireQrCodeSet::GetQrCodeVector( CMBFireQrCodeInfoVector &vectorQr)
{
    vectorQr.clear();
    vectorQr = m_vectorQr;
 
bool             CMBFireQrCodeSet::AddQrCode( CMBFireQrCodeInfo *pQrCodeInfo )
{
    if( NULL ==  pQrCodeInfo )
        return false;
 
     
    m_vectorQr.push_back(pQrCodeInfo);
 
    return true; 
}
 
bool             CMBFireQrCodeSet::RemoveAllQrCode()
{
    CMBFireQrCodeInfoVector::iterator    it; 
    CMBFireQrCodeInfo *pQrCodeInfo  = NULL;
 
    for( it = m_vectorQr.begin();it != m_vectorQr.end();it++ )
    {
        pQrCodeInfo = *it;
        delete pQrCodeInfo;
        pQrCodeInfo = NULL;        
    } 
     
    m_vectorQr.clear();
 
    return true;
}
 
 
CMBFireQrCodeInfo   *CMBFireQrCodeSet::GetQrCode( int nDataType,CString strClsID,CString strAttr  )
{
    CMBFireQrCodeInfoVector::iterator    it; 
    CMBFireQrCodeInfo *pQrCodeInfo  = NULL;
 
    for( it = m_vectorQr.begin();it != m_vectorQr.end();it++ )
    {
        pQrCodeInfo = *it;
        if( pQrCodeInfo->m_nDataType == nDataType && pQrCodeInfo->m_strClsID == strClsID && pQrCodeInfo->m_strAttr ==  strAttr )
            return pQrCodeInfo;
     
    } 
    return  NULL;
}
 
CString  CMBFireQrCodeSet::GetQrCodeStr()
    CString strQr;
    CMBFireQrCodeInfoVector vectorQr;
    CMBFireQrCodeInfoVector::iterator    it; 
    CMBFireQrCodeInfo *pQrCodeInfo  = NULL;
     
 
    for( it = m_vectorQr.begin();it != m_vectorQr.end();it++ )
    {
        pQrCodeInfo = *it; 
 
        strQr += pQrCodeInfo->m_strTmpValue; 
    } 
    return strQr; 
}