-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathqreportthread.h
43 lines (34 loc) · 1.05 KB
/
qreportthread.h
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
#ifndef QREPORTTHREAD_H
#define QREPORTTHREAD_H
#include <QApplication>
#include <QThread>
#include "qreportevent.h"
#include "Common/logicinterface.h"
//作为所有查询使用, 比如进出记录
class QReportThread : public QThread
{
Q_OBJECT
public:
static QReportThread* CreateReportThread( );
void PostReportEvent( const QString& strXmlParams,
QMyReportEvent::MyReportEvent eEvent,
bool bResult = true );
protected:
void run( );
void customEvent( QEvent * e );
private:
explicit QReportThread(QObject *parent = 0);
bool ConnectDb( );
inline void PostEvent( QMyReportEvent* pEvent );
void ProcessEvent( int nType, QString& strSQL, bool bResult );
private:
CLogicInterface interfaceNormal;
static QReportThread* pThreadInstance;
QString strSpSql;
signals:
void ReportData( int nType, QStringList lstData );
void RefresehData( int nType );
void ExecuteSQLData( int nType, QStringList lstData, int nRows );
public slots:
};
#endif // QREPORTTHREAD_H