-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelcliente.pas
62 lines (44 loc) · 1.28 KB
/
relcliente.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
unit relCliente;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Buttons, ExtCtrls,
ZDataset, ZAbstractRODataset, LR_DBSet, LR_Class;
type
{ TrelClienteF }
TrelClienteF = class(TForm)
btnFechar: TBitBtn;
btnRelCliente: TBitBtn;
frDbRelCli: TfrDBDataSet;
frReportCli: TfrReport;
Image1: TImage;
qryCliente: TZQuery;
qryClienteclienteid: TZIntegerField;
qryClientecpf_cnpj_cliente: TZRawStringField;
qryClientenome_cliente: TZRawStringField;
qryClientetipo_cliente: TZRawStringField;
procedure btnFecharClick(Sender: TObject);
procedure btnRelClienteClick(Sender: TObject);
private
public
end;
var
relClienteF: TrelClienteF;
implementation
{$R *.lfm}
{ TrelClienteF }
// BOTÃO IMPRIMIR.
procedure TrelClienteF.btnRelClienteClick(Sender: TObject);
begin
frReportCli.LoadFromFile('relCliente.lrf');
frReportCli.PrepareReport;
frReportCli.ShowReport;
end;
// -----------------------------------------------------------------------------
// BOTÃO FECHAR.
procedure TrelClienteF.btnFecharClick(Sender: TObject);
begin
Close;
end;
// -----------------------------------------------------------------------------
end.