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
625 B
C++
35 lines
625 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include "DllDefines.h"
|
|
|
|
#include <ado2.h>
|
|
#include <structure.h>
|
|
|
|
class MCCTRDLLCLASS CModuleRS
|
|
{
|
|
public:
|
|
// Field/Param Data
|
|
long m_ID{ 0 };
|
|
std::string m_Module_Name{ "" };
|
|
|
|
public:
|
|
~CModuleRS();
|
|
|
|
std::string GetDefaultDBName(); // Default database name
|
|
std::string GetDefaultSQL(); // Default SQL for Recordset
|
|
|
|
|
|
// Close Recordset and close database
|
|
void Close();
|
|
|
|
int InitModule(std::vector<stModule>& modules);
|
|
|
|
private:
|
|
bool Open(const std::string& sqlQuery);
|
|
void GetAllFieldsValue();
|
|
|
|
CADODatabase m_db;
|
|
CADORecordset m_rs;
|
|
};
|