2008-10-15 18:39:40 +00:00
|
|
|
unit uViewFiltroClientes;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
2008-10-17 19:42:07 +00:00
|
|
|
Dialogs, uViewBase, cxControls, cxContainer, cxEdit, cxTextEdit, cxDBEdit,
|
|
|
|
|
StdCtrls, Buttons, TBXDkPanels, uViewParametrosInforme;
|
2008-10-15 18:39:40 +00:00
|
|
|
|
|
|
|
|
type
|
2008-10-17 19:42:07 +00:00
|
|
|
IViewFiltroClientes = interface(IViewParametrosInforme)
|
|
|
|
|
['{129906DA-8E64-4312-8095-A04F8007CF7F}']
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
TfrViewFiltroClientes = class(TfrViewParametrosInforme, IViewFiltroClientes)
|
|
|
|
|
TBXLabel2: TTBXLabel;
|
2008-10-15 18:39:40 +00:00
|
|
|
rd1: TRadioButton;
|
|
|
|
|
rd2: TRadioButton;
|
|
|
|
|
cbxDesglosado: TCheckBox;
|
2008-10-17 19:42:07 +00:00
|
|
|
BitBtn1: TBitBtn;
|
|
|
|
|
cxDBTextEdit1: TcxDBTextEdit;
|
2008-10-15 18:39:40 +00:00
|
|
|
procedure rd1Click(Sender: TObject);
|
|
|
|
|
procedure rd2Click(Sender: TObject);
|
2008-10-17 19:42:07 +00:00
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
2008-10-15 18:39:40 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
implementation
|
2008-10-17 19:42:07 +00:00
|
|
|
|
2008-10-15 18:39:40 +00:00
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure TfrViewFiltroClientes.rd1Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if rd1.Checked then
|
|
|
|
|
begin
|
|
|
|
|
cbxDesglosado.Enabled := True;
|
2008-10-17 19:42:07 +00:00
|
|
|
{ actElegirContacto.Enabled := False;
|
2008-10-15 18:39:40 +00:00
|
|
|
actVerContacto.Enabled := False;
|
2008-10-17 19:42:07 +00:00
|
|
|
Cliente := Nil;}
|
2008-10-15 18:39:40 +00:00
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure TfrViewFiltroClientes.rd2Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if rd2.Checked then
|
|
|
|
|
begin
|
|
|
|
|
cbxDesglosado.Enabled := False;
|
2008-10-17 19:42:07 +00:00
|
|
|
{ actElegirContacto.Enabled := True;
|
|
|
|
|
actVerContacto.Enabled := True;}
|
2008-10-15 18:39:40 +00:00
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|