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.
nmWATI/Include/mData/mProjectManager/iDataIoUtilsEx.h

39 lines
1.0 KiB
C

#pragma once
#include "iDataIoUtils.h"
#include "mProjectManager_global.h"
class M_PROJECTMANAGER_EXPORT iDataIoUtilsEx : public iDataIoUtils
{
public:
/// @note pSqlDb为空则自动从ZxDbSimple中获取
iDataIoUtilsEx(QString sConnStr = "", QSqlDatabase* pSqlDb = NULL);
~iDataIoUtilsEx();
public:
// 获取所有井名/井号
bool getAllWells(QStringList& listNames, \
QStringList& listCodes, \
QString sBlock = "");
// 获取所有井号
//QStringList getAllWellCodes(QString sBlock = "");
// 获取所有作业名,按照时间降序排列
QStringList getAllJobNames(QString sWellCode = "");
// 获取某表所有的数据
bool getWellDatas(VVecVariant& vvec, QString sTable, QString sWellCode = "");
public:
/// @brief 批量保存模式,需要统一删除原来的重复数据
/// @param sTable针对表名
/// @param vvecData结果
virtual bool saveDataEx(QString sTable, VVecVariant& vvecData);
};