Se adaptan los informes para que se puedan generar con logo o sin logo según indique el usuario
git-svn-id: https://192.168.0.254/svn/Proyectos.AbetoArmarios_FactuGES/trunk@31 0a814768-cfdd-9c42-8d01-223fcc10da9d
This commit is contained in:
parent
143c42dee2
commit
875c36e0aa
@ -114,7 +114,7 @@ IncludeVerInfo=1
|
|||||||
AutoIncBuild=0
|
AutoIncBuild=0
|
||||||
MajorVer=3
|
MajorVer=3
|
||||||
MinorVer=2
|
MinorVer=2
|
||||||
Release=2
|
Release=3
|
||||||
Build=0
|
Build=0
|
||||||
Debug=0
|
Debug=0
|
||||||
PreRelease=0
|
PreRelease=0
|
||||||
@ -126,7 +126,7 @@ CodePage=1252
|
|||||||
[Version Info Keys]
|
[Version Info Keys]
|
||||||
CompanyName=
|
CompanyName=
|
||||||
FileDescription=
|
FileDescription=
|
||||||
FileVersion=3.2.2.0
|
FileVersion=3.2.3.0
|
||||||
InternalName=
|
InternalName=
|
||||||
LegalCopyright=
|
LegalCopyright=
|
||||||
LegalTrademarks=
|
LegalTrademarks=
|
||||||
|
|||||||
4058
Factuges.drc
4058
Factuges.drc
File diff suppressed because it is too large
Load Diff
BIN
Factuges.res
BIN
Factuges.res
Binary file not shown.
@ -38,6 +38,7 @@ type
|
|||||||
TablaDetallesAlbaranes: TIBQuery;
|
TablaDetallesAlbaranes: TIBQuery;
|
||||||
private
|
private
|
||||||
FCodigo : Variant;
|
FCodigo : Variant;
|
||||||
|
FConLogo: Boolean;
|
||||||
protected
|
protected
|
||||||
procedure PrepararConsultas; override;
|
procedure PrepararConsultas; override;
|
||||||
public
|
public
|
||||||
@ -50,15 +51,23 @@ var
|
|||||||
dmInformeAlbaranCliente: TdmInformeAlbaranCliente;
|
dmInformeAlbaranCliente: TdmInformeAlbaranCliente;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
|
uses Literales, Mensajes;
|
||||||
|
|
||||||
{ TdmInformeFacturaProforma }
|
{ TdmInformeFacturaProforma }
|
||||||
|
|
||||||
constructor TdmInformeAlbaranCliente.Create(AOwner: TComponent);
|
constructor TdmInformeAlbaranCliente.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FNombreInforme := 'InformeAlbaranCliente.frf';
|
|
||||||
|
FConLogo := (VerMensajePregunta(msgConLogo) = IDYES);
|
||||||
|
if FConLogo then
|
||||||
|
FNombreInforme := 'InformeAlbaranCliente(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'InformeAlbaranCliente.frf';
|
||||||
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmInformeAlbaranCliente.PrepararConsultas;
|
procedure TdmInformeAlbaranCliente.PrepararConsultas;
|
||||||
|
|||||||
@ -26,6 +26,7 @@ type
|
|||||||
FCodigoContrato : Variant;
|
FCodigoContrato : Variant;
|
||||||
FEntidad: TRdxEntidad;
|
FEntidad: TRdxEntidad;
|
||||||
FDocumento : TDocumento;
|
FDocumento : TDocumento;
|
||||||
|
FConLogo: Boolean;
|
||||||
procedure SetEntidad(const Value: TRdxEntidad);
|
procedure SetEntidad(const Value: TRdxEntidad);
|
||||||
protected
|
protected
|
||||||
procedure PrepararInforme; override;
|
procedure PrepararInforme; override;
|
||||||
@ -47,13 +48,14 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
StrFunc, Constantes, ComCtrls;
|
Literales, Mensajes, StrFunc, Constantes, ComCtrls;
|
||||||
|
|
||||||
{ TdmInformeContratoCliente }
|
{ TdmInformeContratoCliente }
|
||||||
|
|
||||||
constructor TdmInformeContratoCliente.Create(AOwner: TComponent);
|
constructor TdmInformeContratoCliente.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
FConLogo := (VerMensajePregunta(msgConLogo) = IDYES);
|
||||||
FDocumento := TDocumento.Create('MCOCINA');
|
FDocumento := TDocumento.Create('MCOCINA');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -194,18 +196,30 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmInformeContratoCliente.SetEntidad(
|
procedure TdmInformeContratoCliente.SetEntidad(const Value: TRdxEntidad);
|
||||||
const Value: TRdxEntidad);
|
|
||||||
begin
|
begin
|
||||||
if FEntidad = Value then
|
if FEntidad = Value then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
FEntidad := Value;
|
FEntidad := Value;
|
||||||
case FEntidad of
|
case FEntidad of
|
||||||
entContratoCocina : FNombreInforme := 'ContratoCocina.frf';
|
entContratoCocina : if FConLogo then
|
||||||
entContratoBano : FNombreInforme := 'ContratoBano.frf';
|
FNombreInforme := 'ContratoCocina(Con logo).frf'
|
||||||
entContratoArmarios : FNombreInforme := 'ContratoArmarios.frf';
|
else
|
||||||
|
FNombreInforme := 'ContratoCocina.frf';
|
||||||
|
entContratoBano : if FConLogo then
|
||||||
|
FNombreInforme := 'ContratoBano(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'ContratoBano.frf';
|
||||||
|
entContratoArmarios : if FConLogo then
|
||||||
|
FNombreInforme := 'ContratoArmarios(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'ContratoArmarios.frf';
|
||||||
else
|
else
|
||||||
FNombreInforme := 'ContratoCliente.frf';
|
if FConLogo then
|
||||||
|
FNombreInforme := 'ContratoCliente(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'ContratoCliente.frf';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -15,6 +15,7 @@ type
|
|||||||
TablaDetallesFacturas: TIBQuery;
|
TablaDetallesFacturas: TIBQuery;
|
||||||
private
|
private
|
||||||
FCodigoFactura : Variant;
|
FCodigoFactura : Variant;
|
||||||
|
FConLogo: Boolean;
|
||||||
protected
|
protected
|
||||||
procedure RellenarCabecera(Band: TfrBand); override;
|
procedure RellenarCabecera(Band: TfrBand); override;
|
||||||
procedure PrepararConsultas; override;
|
procedure PrepararConsultas; override;
|
||||||
@ -32,14 +33,19 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
TablaFacturasCliente, StrFunc, Constantes, BaseDatos, TablaEmpresas;
|
Mensajes, Literales, TablaFacturasCliente, StrFunc, Constantes, BaseDatos, TablaEmpresas;
|
||||||
|
|
||||||
{ TdmInformeFacturaCliente }
|
{ TdmInformeFacturaCliente }
|
||||||
|
|
||||||
constructor TdmInformeFacturaCliente.Create(AOwner: TComponent);
|
constructor TdmInformeFacturaCliente.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FNombreInforme := 'FacturaCliente.frf';
|
|
||||||
|
FConLogo := (VerMensajePregunta(msgConLogo) = IDYES);
|
||||||
|
if FConLogo then
|
||||||
|
FNombreInforme := 'FacturaCliente(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'FacturaCliente.frf';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmInformeFacturaCliente.PrepararConsultas;
|
procedure TdmInformeFacturaCliente.PrepararConsultas;
|
||||||
|
|||||||
@ -24,6 +24,7 @@ type
|
|||||||
private
|
private
|
||||||
FCodigoPresupuesto : Variant;
|
FCodigoPresupuesto : Variant;
|
||||||
FEntidad: TRdxEntidad;
|
FEntidad: TRdxEntidad;
|
||||||
|
FConLogo: Boolean;
|
||||||
procedure SetEntidad(const Value: TRdxEntidad);
|
procedure SetEntidad(const Value: TRdxEntidad);
|
||||||
protected
|
protected
|
||||||
procedure RellenarCabecera(Band: TfrBand); override;
|
procedure RellenarCabecera(Band: TfrBand); override;
|
||||||
@ -45,14 +46,14 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
StrFunc, Constantes, ShellAPI, Mensajes;
|
Literales, StrFunc, Constantes, ShellAPI, Mensajes;
|
||||||
|
|
||||||
{ TdmInformePresupuestoCliente }
|
{ TdmInformePresupuestoCliente }
|
||||||
|
|
||||||
constructor TdmInformePresupuestoCliente.Create(AOwner: TComponent);
|
constructor TdmInformePresupuestoCliente.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
//FNombreInforme := 'PresupuestoCliente.frf';
|
FConLogo := (VerMensajePregunta(msgConLogo) = IDYES);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmInformePresupuestoCliente.ImprimirFinanciacion;
|
procedure TdmInformePresupuestoCliente.ImprimirFinanciacion;
|
||||||
@ -203,18 +204,30 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TdmInformePresupuestoCliente.SetEntidad(
|
procedure TdmInformePresupuestoCliente.SetEntidad(const Value: TRdxEntidad);
|
||||||
const Value: TRdxEntidad);
|
|
||||||
begin
|
begin
|
||||||
if FEntidad = Value then
|
if FEntidad = Value then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
FEntidad := Value;
|
FEntidad := Value;
|
||||||
case FEntidad of
|
case FEntidad of
|
||||||
entPresupuestoCocina : FNombreInforme := 'PresupuestoCocina.frf';
|
entPresupuestoCocina : if FConLogo then
|
||||||
entPresupuestoBano : FNombreInforme := 'PresupuestoBano.frf';
|
FNombreInforme := 'PresupuestoCocina(Con logo).frf'
|
||||||
entPresupuestoArmarios : FNombreInforme := 'PresupuestoArmarios.frf';
|
else
|
||||||
|
FNombreInforme := 'PresupuestoCocina.frf';
|
||||||
|
entPresupuestoBano : if FConLogo then
|
||||||
|
FNombreInforme := 'PresupuestoBano(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'PresupuestoBano.frf';
|
||||||
|
entPresupuestoArmarios : if FConLogo then
|
||||||
|
FNombreInforme := 'PresupuestoArmarios(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'PresupuestoArmarios.frf';
|
||||||
else
|
else
|
||||||
FNombreInforme := 'PresupuestoCliente.frf';
|
if FConLogo then
|
||||||
|
FNombreInforme := 'PresupuestoCliente(Con logo).frf'
|
||||||
|
else
|
||||||
|
FNombreInforme := 'PresupuestoCliente.frf';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -382,6 +382,9 @@ resourcestring
|
|||||||
msgInfTri0 = 'No ha sido asignada la lista de tipos de operación al informe';
|
msgInfTri0 = 'No ha sido asignada la lista de tipos de operación al informe';
|
||||||
msgInfTri1 = 'Existen más tipos de operacion que los iniciales 14!';
|
msgInfTri1 = 'Existen más tipos de operacion que los iniciales 14!';
|
||||||
|
|
||||||
|
//Informes
|
||||||
|
msgConLogo = '¿Desea imprimir el documento con logotipo?';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
Binary file not shown.
BIN
bd/ABETO.GDB
BIN
bd/ABETO.GDB
Binary file not shown.
Reference in New Issue
Block a user