-
Notifications
You must be signed in to change notification settings - Fork 0
/
Modulo.pas
58 lines (50 loc) · 1.72 KB
/
Modulo.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
57
58
unit Modulo;
interface
uses
System.SysUtils, System.Classes, 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.MySQL,
FireDAC.Phys.MySQLDef, FireDAC.VCLUI.Wait, Data.DB, FireDAC.Comp.Client,
FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.DApt,
FireDAC.Comp.DataSet;
type
Tdm = class(TDataModule)
fd: TFDConnection;
FDPhysMySQLDriverLink1: TFDPhysMySQLDriverLink;
tb_vendas: TFDTable;
tb_vendasnumero: TFDAutoIncField;
tb_vendasdata: TDateTimeField;
tb_vendasvalor: TBCDField;
tb_vendasforma_pgto: TStringField;
query_vendas: TFDQuery;
query_vendasnumero: TFDAutoIncField;
query_vendasdata: TDateTimeField;
query_vendasvalor: TBCDField;
query_vendasforma_pgto: TStringField;
ds_vendas: TDataSource;
tb_det_vendas: TFDTable;
tb_det_vendascodigo: TFDAutoIncField;
tb_det_vendasnumero_venda: TIntegerField;
tb_det_vendasproduto: TStringField;
tb_det_vendasquantidade: TIntegerField;
tb_det_vendasvalor_unitario: TBCDField;
tb_det_vendasvalor_total: TBCDField;
query_det_vendas: TFDQuery;
query_det_vendascodigo: TFDAutoIncField;
query_det_vendasnumero_venda: TIntegerField;
query_det_vendasproduto: TStringField;
query_det_vendasquantidade: TIntegerField;
query_det_vendasvalor_unitario: TBCDField;
query_det_vendasvalor_total: TBCDField;
ds_det_vendas: TDataSource;
private
{ Private declarations }
public
{ Public declarations }
end;
var
dm: Tdm;
implementation
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
end.