This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
AlonsoYSal_FactuGES/Modulos/Presupuestos_/Cliente/uViewDatosPresupuesto.pas
2007-06-21 16:02:50 +00:00

67 lines
1.6 KiB
ObjectPascal

unit uViewDatosPresupuesto;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uViewBase, DB, uDADataTable, cxControls, cxContainer, cxEdit,
cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCalendar, cxDBEdit, StdCtrls,
Mask, DBCtrls, ExtCtrls, cxGraphics;
type
TfrViewDatosPresupuesto = class(TfrViewBase)
Bevel1: TBevel;
Label5: TLabel;
Label1: TLabel;
Label2: TLabel;
edtFechaPresupuesto: TcxDBDateEdit;
Label3: TLabel;
edtVigencia: TcxDBDateEdit;
DADataSource: TDADataSource;
eReferencia: TcxDBTextEdit;
Label4: TLabel;
cbTipoPresupuesto: TcxDBComboBox;
procedure cbTipoPresupuestoPropertiesInitPopup(Sender: TObject);
procedure eReferenciaPropertiesEditValueChanged(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frViewDatosPresupuesto: TfrViewDatosPresupuesto;
implementation
uses uBizPresupuestosCliente;
{$R *.dfm}
procedure TfrViewDatosPresupuesto.cbTipoPresupuestoPropertiesInitPopup(
Sender: TObject);
begin
inherited;
with cbTipoPresupuesto.Properties.Items do
if Count = 0 then
begin
BeginUpdate;
try
Clear;
Add(TIPO_COCINA);
Add(TIPO_BANO);
finally
EndUpdate;
end;
end;
end;
procedure TfrViewDatosPresupuesto.eReferenciaPropertiesEditValueChanged(
Sender: TObject);
begin
inherited;
cbTipoPresupuesto.Enabled := not (Length(eReferencia.Text) > 0);
end;
end.