git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@1164 0c75b7a4-871f-7646-8a2f-f78d34cc349f
53 lines
1.3 KiB
ObjectPascal
53 lines
1.3 KiB
ObjectPascal
unit uEditorElegirFechaVencimiento;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, StdCtrls, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit,
|
|
cxDropDownEdit, cxCalendar, ExtCtrls, uEditorBasico, uIEditorElegirFechaVencimiento,
|
|
cxGraphics, DB, uDAInterfaces, uDADataTable, cxDBEdit, uEmpresasController;
|
|
|
|
type
|
|
TfEditorElegirFechaVencimiento = class(TfEditorBasico, IEditorElegirFechaVencimiento)
|
|
Label1: TLabel;
|
|
bAceptar: TButton;
|
|
bCancelar: TButton;
|
|
Label2: TLabel;
|
|
Panel1: TPanel;
|
|
Label3: TLabel;
|
|
cbFechaVencimiento: TcxDateEdit;
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
private
|
|
FFechaVencimiento: datetime;
|
|
function GetFechaVencimiento: datetime;
|
|
procedure SetFechaVencimiento(const Value: datetime);
|
|
|
|
public
|
|
property FechaVencimiento: datetime Read GetFechaVencimiento write SetFechaVencimiento;
|
|
end;
|
|
|
|
implementation
|
|
{$R *.dfm}
|
|
|
|
uses uFactuGES_App;
|
|
|
|
procedure TfEditorElegirFechaVencimiento.FormShow(Sender: TObject);
|
|
begin
|
|
//
|
|
end;
|
|
|
|
function TfEditorElegirFechaVencimiento.GetFechaVencimiento: datetime;
|
|
begin
|
|
Result := cbFechaVencimiento.EditValue;
|
|
end;
|
|
|
|
procedure TfEditorElegirFechaVencimiento.SetFechaVencimiento(const Value: datetime);
|
|
begin
|
|
cbFechaVencimiento.EditValue := Value;
|
|
end;
|
|
|
|
|
|
end.
|