git-svn-id: https://192.168.0.254/svn/Proyectos.AbetoDesign_FactuGES/trunk@175 93f398dd-4eb6-7a46-baf6-13f46f578da2
70 lines
1.9 KiB
ObjectPascal
70 lines
1.9 KiB
ObjectPascal
unit uEditorInstalador;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
uEditorContacto, JvAppStorage, JvAppRegistryStorage, JvComponentBase,
|
|
JvFormPlacement, DB, uDADataTable, ImgList, PngImageList, StdActns, ActnList,
|
|
ComCtrls, TBX, TB2Item, TB2Dock, TB2Toolbar, ExtCtrls, JvExControls,
|
|
JvComponent, JvNavigationPane, uCustomView, uViewBase, uViewContacto,
|
|
uViewInstalador, uBizContactos, uIEditorInstalador, pngimage,
|
|
TBXStatusBars, JvExComCtrls, JvStatusBar,
|
|
uViewDetallesGenerico, uViewContactoDatosBancarios, dxLayoutLookAndFeels,
|
|
dxLayoutControl, cxContainer, cxEdit, cxTextEdit, cxMemo, cxDBEdit, cxControls,
|
|
uDAInterfaces, uViewPersonalContacto, StdCtrls;
|
|
|
|
type
|
|
TfEditorInstalador = class(TfEditorContacto, IEditorInstalador)
|
|
frViewInstalador1: TfrViewInstalador;
|
|
protected
|
|
procedure EliminarInterno; override;
|
|
procedure SetContacto(const Value: IBizContacto); override;
|
|
public
|
|
constructor Create(AOwner: TComponent); override;
|
|
procedure PonerTitulos(const ATitulo: string = ''); override;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
uEditorDBItem, uDialogUtils;
|
|
|
|
{$R *.dfm}
|
|
|
|
{ TfEditorInstalador }
|
|
|
|
constructor TfEditorInstalador.Create(AOwner: TComponent);
|
|
begin
|
|
inherited;
|
|
ViewContacto := frViewInstalador1;
|
|
end;
|
|
|
|
procedure TfEditorInstalador.EliminarInterno;
|
|
begin
|
|
if (ShowConfirmMessage('¿Desea borrar este Instalador?', '') = IDYES) then
|
|
inherited;
|
|
end;
|
|
|
|
procedure TfEditorInstalador.PonerTitulos(const ATitulo: string);
|
|
var
|
|
FTitulo : String;
|
|
begin
|
|
if Assigned(Contacto) then
|
|
begin
|
|
if Contacto.EsNuevo then
|
|
FTitulo := 'Nuevo Instalador'
|
|
else
|
|
FTitulo := 'Instalador';
|
|
end;
|
|
|
|
inherited PonerTitulos(FTitulo);
|
|
end;
|
|
|
|
procedure TfEditorInstalador.SetContacto(const Value: IBizContacto);
|
|
begin
|
|
inherited;
|
|
end;
|
|
|
|
end.
|