git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@1166 0c75b7a4-871f-7646-8a2f-f78d34cc349f
52 lines
1.4 KiB
ObjectPascal
52 lines
1.4 KiB
ObjectPascal
unit uEditorElegirFechaCancelacion;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, StdCtrls, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit,
|
|
cxDropDownEdit, cxCalendar, ExtCtrls, uEditorBasico, uIEditorElegirFechaCancelacion,
|
|
cxGraphics, DB, uDAInterfaces, uDADataTable, cxDBEdit, uEmpresasController;
|
|
|
|
type
|
|
TfEditorElegirFechaCancelacion = class(TfEditorBasico, IEditorElegirFechaCancelacion)
|
|
Label1: TLabel;
|
|
bAceptar: TButton;
|
|
bCancelar: TButton;
|
|
Label2: TLabel;
|
|
Panel1: TPanel;
|
|
cbFechaCancelacion: TcxDateEdit;
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
private
|
|
FFechaCancelacion: datetime;
|
|
function GetFechaCancelacion: datetime;
|
|
procedure SetFechaCancelacion(const Value: datetime);
|
|
|
|
public
|
|
property FechaCancelacion: datetime Read GetFechaCancelacion write SetFechaCancelacion;
|
|
end;
|
|
|
|
implementation
|
|
{$R *.dfm}
|
|
|
|
uses uFactuGES_App, DateUtils;
|
|
|
|
procedure TfEditorElegirFechaCancelacion.FormShow(Sender: TObject);
|
|
begin
|
|
cbFechaCancelacion.EditValue := DateOf(Date);
|
|
end;
|
|
|
|
function TfEditorElegirFechaCancelacion.GetFechaCancelacion: datetime;
|
|
begin
|
|
Result := cbFechaCancelacion.EditValue;
|
|
end;
|
|
|
|
procedure TfEditorElegirFechaCancelacion.SetFechaCancelacion(const Value: datetime);
|
|
begin
|
|
cbFechaCancelacion.EditValue := Value;
|
|
end;
|
|
|
|
|
|
end.
|