support SQLExpress localdb

main
Yik Teng Hie 2 years ago
parent 6f78bc60a9
commit 69ada9985d

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,34 @@
#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;
};

@ -52,21 +52,22 @@ public:
void InitMotorModule(std::vector<stModule>& modules); // Function to init motor module to maintenance page
// get Save all pkg
BOOL GetSaveAllPkg(std::string csPosName);
int GetNoOfMtrs(std::vector<stModule>& modules);
// set the motor position name from Motor and MotorSubField table
[[deprecated("For Legacy GUI use case")]]
void SetMtrPosName(std::vector<stModule>& modules);
// get motor and pos name
[[deprecated("For Legacy GUI use case")]]
bool GetMtrAndPosName(std::vector<stModule>& modules, int iMtrNo, int iMtrPos, std::string& csMtrName, std::string& csMtrPos);
// get motor pos name
[[deprecated("For Legacy GUI use case")]]
int GetMtrPosNo(std::vector<stModule>& module, std::string csModuleName, int iMtrNo, std::string csMtrPos,
std::string csSubPosName);
// get Save all pkg
BOOL GetSaveAllPkg(std::string csPosName);
int InitModule(std::vector<stModule>& module);
// set the motor position name from Motor and MotorSubField table
void SetMtrPosName(std::vector<stModule>& modules);
int GetNoOfMtrs(std::vector<stModule>& modules);
private:
CADODatabase m_db;
CADORecordset m_rs;

@ -10,7 +10,9 @@
#include "structure.h"
#include "ado2.h"
class CMtrProfileRS
#include "DllDefines.h"
class MCCTRDLLCLASS CMtrProfileRS
{
public:
CMtrProfileRS();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save