-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUComprador.pas
105 lines (94 loc) · 2.49 KB
/
UComprador.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
unit UComprador;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UPadrao, FMTBcd, DB, SqlExpr, DBClient, Provider, StdCtrls, Buttons,
PngBitBtn, pngimage, ExtCtrls, rxToolEdit, RXDBCtrl, Mask, DBCtrls, ComCtrls;
type
TfrmComprador = class(TfrmPadrao)
cdsTabCOD_COMP: TIntegerField;
cdsTabDAT_CAD: TDateField;
cdsTabNOME: TStringField;
cdsTabAPELIDO: TStringField;
cdsTabCPF_CNPJ: TStringField;
cdsTabRG_IE: TStringField;
cdsTabENDERECO: TStringField;
cdsTabBAIRRO: TStringField;
cdsTabCIDADE: TStringField;
cdsTabUF: TStringField;
cdsTabCEP: TStringField;
cdsTabTELEFONE: TStringField;
cdsTabTELEFONE1: TStringField;
cdsTabTELEFONE2: TStringField;
cdsTabOBS: TBlobField;
cdsTabPOSICAO: TStringField;
PngBitBtn1: TPngBitBtn;
PageControl1: TPageControl;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
GroupBox2: TGroupBox;
Label5: TLabel;
Label6: TLabel;
lblNome: TLabel;
lblCPF: TLabel;
lblRG: TLabel;
Label17: TLabel;
Label20: TLabel;
Label21: TLabel;
Label26: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
DBEdit1: TDBEdit;
DBDateEdit1: TDBDateEdit;
DBEdit2: TDBEdit;
DBEdit4: TDBEdit;
DBEdit5: TDBEdit;
DBEdit13: TDBEdit;
DBEdit15: TDBEdit;
DBEdit16: TDBEdit;
DBEdit19: TDBEdit;
DBEdit3: TDBEdit;
DBMemo1: TDBMemo;
DBEdit6: TDBEdit;
DBEdit7: TDBEdit;
cdsTabREFERENCIAS: TBlobField;
DBMemo2: TDBMemo;
Label11: TLabel;
procedure btNovoClick(Sender: TObject);
procedure btEditarClick(Sender: TObject);
procedure PngBitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmComprador: TfrmComprador;
implementation
uses UFuncoes, UArquivos;
{$R *.dfm}
procedure TfrmComprador.btEditarClick(Sender: TObject);
begin
inherited;
DBEdit2.SetFocus;
end;
procedure TfrmComprador.btNovoClick(Sender: TObject);
begin
inherited;
cdsTabCOD_COMP.AsInteger := PegaSequencia('GEN_COMPRADOR_ID');
cdsTabDAT_CAD.AsDateTime := Date;
DBEdit2.SetFocus;
end;
procedure TfrmComprador.PngBitBtn1Click(Sender: TObject);
begin
inherited;
Application.CreateForm(TfrmArquivos, frmArquivos);
frmArquivos.cdsTab.Close;
frmArquivos.sqlTab.Close;
frmArquivos.sqlTab.ParamByName('COD_CLIE').AsInteger := cdsTabCOD_COMP.AsInteger;
frmArquivos.cdsTab.Open;
frmArquivos.ShowModal;
end;
end.