You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
975 B
C

5 years ago
#ifndef DETECTDATA_H
#define DETECTDATA_H
#include "databasesql.h"
#include <QObject>
#include "InfoFile.h"
#include "QMutex"
/*DetectDataDB 用于记录检测数据 便于查询和插入*/
class DetectDataDB : public DataBaseSql
{
Q_OBJECT
public:
DetectDataDB(const QString& dbName, const QString &dbType = QString("QSQLITE"));
~DetectDataDB();
virtual bool InitDatabase();
virtual bool checkoutData(QVariantMap m_value, QSqlQuery &sql);
virtual bool checkoutData(QString selectStr, QSqlQuery &sql);
virtual bool DelDatasByTime(QString minTime);
virtual bool DelAllDatas();
virtual bool DelWarnDataByCount(int model /*=1*/, int nCount/*=100000*/);
bool AddOneWarningMessage(WarnMessage m_messageInfo);
/*班次时间管理*/
bool ReadOutTimeData(QMap<QString, TimeStruct> &m_MapTimeMatch);
bool DelOneTime(TimeStruct &m_timestruct);
bool AddOneTime(TimeStruct &m_timestruct);
bool AddOneData(QVariantMap m_map);
private:
};
#endif // DETECTDATA_H