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
618 B
C
35 lines
618 B
C
|
2 years ago
|
#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(std::string sqlQuery);
|
||
|
|
void GetAllFieldsValue();
|
||
|
|
|
||
|
|
CADODatabase m_db;
|
||
|
|
CADORecordset m_rs;
|
||
|
|
};
|