-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUClassificacao.pas
More file actions
69 lines (58 loc) · 1.57 KB
/
Copy pathUClassificacao.pas
File metadata and controls
69 lines (58 loc) · 1.57 KB
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
unit UClassificacao;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UPadrao, FMTBcd, DB, SqlExpr, DBClient, Provider, StdCtrls, Buttons,
PngBitBtn, pngimage, ExtCtrls, Mask, DBCtrls, rxToolEdit, RXDBCtrl;
type
TfrmClassificacao = class(TfrmPadrao)
GroupBox2: TGroupBox;
Label5: TLabel;
Label6: TLabel;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
DBDateEdit1: TDBDateEdit;
Label7: TLabel;
cdsTabCOD_CLASS: TIntegerField;
cdsTabDAT_CAD: TDateField;
cdsTabDESCRICAO: TStringField;
cdsTabACIMA_DE: TStringField;
cdsTabIDADE_MIN: TIntegerField;
cdsTabIDADE_MAX: TIntegerField;
Label8: TLabel;
DBEdit3: TDBEdit;
lblMaxima: TLabel;
txtMaxima: TDBEdit;
DBCheckBox1: TDBCheckBox;
DBCheckBox2: TDBCheckBox;
cdsTabABAIXO_DE: TStringField;
procedure btNovoClick(Sender: TObject);
procedure btGravarClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmClassificacao: TfrmClassificacao;
implementation
uses UFuncoes;
{$R *.dfm}
procedure TfrmClassificacao.btGravarClick(Sender: TObject);
begin
if Vazio(DBEdit2.Text) then begin
application.MessageBox('Informe o Nome do Agente.', 'Atenção', MB_IconQuestion);
DBEdit2.SetFocus;
Exit;
end;
inherited;
end;
procedure TfrmClassificacao.btNovoClick(Sender: TObject);
begin
inherited;
cdsTabCOD_CLASS.AsInteger := PegaSequencia('GEN_CLASSIFICACAO_ID');
cdsTabDAT_CAD.AsDateTime := Date;
cdsTabACIMA_DE.AsString := 'N';
DBEdit2.SetFocus;
end;
end.