-
Notifications
You must be signed in to change notification settings - Fork 2
/
Connection.pas
56 lines (48 loc) · 1.61 KB
/
Connection.pas
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
unit Connection;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.ExprFuncs,
FireDAC.Phys.SQLiteDef, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.SQLite,
FireDAC.VCLUI.Wait, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf,
FireDAC.DApt, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client;
type
TDT_connection = class(TDataModule)
FDPhysSQLiteDriverLink1: TFDPhysSQLiteDriverLink;
FDcon: TFDConnection;
qryColeta: TFDQuery;
FDPhysSQLiteDriverLink2: TFDPhysSQLiteDriverLink;
qrySensor: TFDQuery;
qryvalorKWHcity: TFDQuery;
qryvalorKWHcityCidade: TWideStringField;
qryvalorKWHcityValorKWH: TBCDField;
qryvalorKWHcityObs: TWideStringField;
qryVaxrede: TFDQuery;
qryEquip: TFDQuery;
qrySensorSetorSensor: TStringField;
qrySensorNomeSensor: TStringField;
qrySensorRede: TBCDField;
qrySensor2: TFDQuery;
StringField1: TStringField;
StringField2: TStringField;
BCDField1: TBCDField;
qrySensor2SensorID: TIntegerField;
qryTipoEquip: TFDQuery;
qryEquipDescricaoEquip: TStringField;
qryEquipTipoEquipamento_idTipoEquipamento: TStringField;
qryEquipQTDE: TIntegerField;
qryEquipEspecificacao: TStringField;
qryEquipSensor_SensorID: TIntegerField;
qryEquipidEquipamentosSetor: TIntegerField;
private
{ Private declarations }
public
{ Public declarations }
end;
var
DT_connection: TDT_connection;
implementation
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
end.