-
Notifications
You must be signed in to change notification settings - Fork 0
/
Modulo.pas
72 lines (58 loc) · 1.61 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
unit Modulo;
interface
uses
System.SysUtils, System.Classes, Data.DB, DBAccess, MyAccess, MemDS;
type
Tdm = class(TDataModule)
con: TMyConnection;
query_usuarios: TMyQuery;
query_tot_vendas: TMyQuery;
query_produtos: TMyQuery;
query_vendas: TMyQuery;
query_vendasvalor: TFloatField;
query_vendasfuncionario: TStringField;
query_mov: TMyQuery;
query_tot_mov: TMyQuery;
query_movtipo: TStringField;
query_movmovimento: TStringField;
query_movvalor: TFloatField;
query_movfuncionario: TStringField;
query_produtosnome: TStringField;
query_produtosdescricao: TStringField;
query_produtosestoque: TIntegerField;
query_produtosimagem: TBlobField;
query_gastos: TMyQuery;
query_gastosmotivo: TStringField;
query_gastosvalor: TFloatField;
query_gastosfuncionario: TStringField;
query_gastosdata: TDateField;
query_gastosid: TIntegerField;
query_mov_inserir: TMyQuery;
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
dm: Tdm;
nomeUsuario : string;
cargoUsuario : string;
acao : string;
//VARIAVEIS GLOBAIS PARA EDIÇÃO
motivoGasto : string;
valorGasto : double;
idGasto : string;
implementation
{%CLASSGROUP 'FMX.Controls.TControl'}
{$R *.dfm}
procedure Tdm.DataModuleCreate(Sender: TObject);
begin
con.Connected := true;
end;
procedure Tdm.DataModuleDestroy(Sender: TObject);
begin
con.Connected := false;
end;
end.