git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@679 0c75b7a4-871f-7646-8a2f-f78d34cc349f
52 lines
1.3 KiB
ObjectPascal
52 lines
1.3 KiB
ObjectPascal
unit uViewFiltroClientes;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, uViewDatosYSeleccionClienteBase, ImgList, PngImageList, ActnList, DB,
|
|
uDAInterfaces, uDADataTable, StdCtrls, Buttons, ExtCtrls, dxLayoutControl,
|
|
cxControls, cxContainer, cxEdit, cxTextEdit, cxDBEdit;
|
|
|
|
type
|
|
TfrViewFiltroClientes = class(TfrViewDatosYSeleccionClienteBase)
|
|
dxLayoutControl1Item1: TdxLayoutItem;
|
|
edtlNombre: TcxDBTextEdit;
|
|
dxLayoutControl1Item2: TdxLayoutItem;
|
|
edtNIFCIF: TcxDBTextEdit;
|
|
GroupBox1: TGroupBox;
|
|
rd1: TRadioButton;
|
|
rd2: TRadioButton;
|
|
cbxDesglosado: TCheckBox;
|
|
procedure rd1Click(Sender: TObject);
|
|
procedure rd2Click(Sender: TObject);
|
|
end;
|
|
|
|
implementation
|
|
{$R *.dfm}
|
|
|
|
procedure TfrViewFiltroClientes.rd1Click(Sender: TObject);
|
|
begin
|
|
inherited;
|
|
if rd1.Checked then
|
|
begin
|
|
cbxDesglosado.Enabled := True;
|
|
actElegirContacto.Enabled := False;
|
|
actVerContacto.Enabled := False;
|
|
Cliente := Nil;
|
|
end;
|
|
end;
|
|
|
|
procedure TfrViewFiltroClientes.rd2Click(Sender: TObject);
|
|
begin
|
|
inherited;
|
|
if rd2.Checked then
|
|
begin
|
|
cbxDesglosado.Enabled := False;
|
|
actElegirContacto.Enabled := True;
|
|
actVerContacto.Enabled := True;
|
|
end;
|
|
end;
|
|
|
|
end.
|