/
MysqlModule.h
73 lines (71 loc) · 2.57 KB
/
MysqlModule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//---------------------------------------------------------------------------
#ifndef MysqlModuleH
#define MysqlModuleH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Data.DB.hpp>
#include <FireDAC.Comp.Client.hpp>
#include <FireDAC.Comp.DataSet.hpp>
#include <FireDAC.DApt.hpp>
#include <FireDAC.DApt.Intf.hpp>
#include <FireDAC.DatS.hpp>
#include <FireDAC.FMXUI.Wait.hpp>
#include <FireDAC.Phys.hpp>
#include <FireDAC.Phys.Intf.hpp>
#include <FireDAC.Phys.MySQL.hpp>
#include <FireDAC.Phys.MySQLDef.hpp>
#include <FireDAC.Stan.Async.hpp>
#include <FireDAC.Stan.Def.hpp>
#include <FireDAC.Stan.Error.hpp>
#include <FireDAC.Stan.Intf.hpp>
#include <FireDAC.Stan.Option.hpp>
#include <FireDAC.Stan.Param.hpp>
#include <FireDAC.Stan.Pool.hpp>
#include <FireDAC.UI.Intf.hpp>
#include <FireDAC.Comp.UI.hpp>
#include <FireDAC.Phys.SQLite.hpp>
#include <FireDAC.Phys.SQLiteDef.hpp>
#include <FireDAC.Stan.ExprFuncs.hpp>
#include <System.IOUtils.hpp>
//---------------------------------------------------------------------------
class TModule : public TDataModule
{
__published: // IDE-managed Components
TFDConnection *GodConnection;
TFDQuery *DataTable;
TFDQuery *ResultTable;
TFDQuery *UserTable;
TWideStringField *DataTablecontent;
TWideStringField *DataTableexplanation;
TFDGUIxWaitCursor *FDGUIxWaitCursor1;
TWideStringField *DataTablename;
TShortintField *DataTableid;
TWideStringField *DataTableganzhi;
TWideStringField *DataTablegua;
TWideStringField *DataTablepregnant;
TWideStringField *DataTablefortune;
TWideStringField *DataTablemarriage;
TWideStringField *DataTablefame;
TWideStringField *DataTablefamily_fortune;
TWideStringField *DataTablewealth;
TWideStringField *DataTablebusiness;
TWideStringField *DataTablesick;
TShortintField *UserTablegender;
TShortintField *UserTableage;
TShortintField *UserTableeducation;
TShortintField *UserTablereligion;
TShortintField *UserTablecountry;
TShortintField *UserTableexperience;
TFDAutoIncField *UserTableid;
TFDPhysMySQLDriverLink *FDPhysMySQLDriverLink1;
void __fastcall GodConnectionBeforeConnect(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TModule(TComponent* Owner);
void __fastcall filter(int nID); // ±NÅÒ¸Ö§ä¥X¨Ó~
int __fastcall addUser(int nGender, int nAge, int nEducation, int nReligion, int nCountry, int nExperience);
};
//---------------------------------------------------------------------------
extern PACKAGE TModule *Module;
//---------------------------------------------------------------------------
#endif