-
Notifications
You must be signed in to change notification settings - Fork 0
/
ufrmBuscarEquivalencia.pas
63 lines (51 loc) · 1.3 KB
/
ufrmBuscarEquivalencia.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
unit ufrmBuscarEquivalencia;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, DBGridEhGrouping,
ToolCtrlsEh, DBGridEhToolCtrls, DynVarsEh, Vcl.StdCtrls, Data.DB,
IBCustomDataSet, IBQuery, EhLibVCL, GridsEh, DBAxisGridsEh, DBGridEh,
ufrmTemplateModal, dr2gcomponentes;
type
TfrmBuscarEquivalencias = class(TfrmMensaje)
grid1: TDBGridEh;
dseq: TDataSource;
qryEq: TIBQuery;
qryEqRUC: TIBStringField;
qryEqRAZON_SOCIAL: TIBStringField;
lbl1: TLabel;
edtDato: TEdit;
btnBuscar: TButton;
procedure btnBuscarClick(Sender: TObject);
procedure edtDatoKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmBuscarEquivalencias: TfrmBuscarEquivalencias;
implementation
uses
datos;
{$R *.dfm}
procedure TfrmBuscarEquivalencias.btnBuscarClick(Sender: TObject);
begin
inherited;
with qryEq do
begin
Close;
ParamByName('dato').Text := edtDato.Text;
Prepare;
open;
end;
end;
procedure TfrmBuscarEquivalencias.edtDatoKeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
inherited;
if (Key = VK_RETURN) then
btnBuscar.Click;
end;
end.