-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelcadprod.pas
57 lines (40 loc) · 1.1 KB
/
relcadprod.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
unit relCadProd;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Buttons, ExtCtrls,
LR_DBSet, LR_Class, ZDataset;
type
{ TrelCatProdF }
TrelCatProdF = class(TForm)
btnFechar: TBitBtn;
btnRelUsuarios: TBitBtn;
frDbCatProd: TfrDBDataSet;
frReportCatProd: TfrReport;
Image1: TImage;
qryCategory: TZQuery;
procedure btnFecharClick(Sender: TObject);
procedure btnRelUsuariosClick(Sender: TObject);
private
public
end;
var
relCatProdF: TrelCatProdF;
implementation
{$R *.lfm}
{ TrelCatProdF }
// BOTÃO IMPRIMIR.
procedure TrelCatProdF.btnRelUsuariosClick(Sender: TObject);
begin
frReportCatProd.LoadFromFile('relCategoria.lrf');
frReportCatProd.PrepareReport;
frReportCatProd.ShowReport;
end;
// -----------------------------------------------------------------------------
// BOTÃO FECHAR.
procedure TrelCatProdF.btnFecharClick(Sender: TObject);
begin
Close;
end;
// -----------------------------------------------------------------------------
end.