2010-07-12 18:03:50 +00:00
|
|
|
|
unit uDialogOpcionesImpresionPresupuestosCliente;
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
|
Dialogs, uDialogBase, ActnList, StdCtrls, ExtCtrls, jpeg, dxGDIPlusClasses;
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
TfDialogOpcionesImpresionPresupuestosCliente = class(TfDialogBase)
|
|
|
|
|
|
Image1: TImage;
|
|
|
|
|
|
Image2: TImage;
|
2017-01-24 13:11:16 +00:00
|
|
|
|
Label1: TLabel;
|
|
|
|
|
|
Label3: TLabel;
|
2020-03-11 18:03:13 +00:00
|
|
|
|
Label4: TLabel;
|
|
|
|
|
|
Image3: TImage;
|
2010-07-12 18:03:50 +00:00
|
|
|
|
procedure actAceptarExecute(Sender: TObject);
|
|
|
|
|
|
procedure actCancelarExecute(Sender: TObject);
|
|
|
|
|
|
procedure Image1DblClick(Sender: TObject);
|
|
|
|
|
|
procedure FormCreate(Sender: TObject);
|
|
|
|
|
|
procedure Image2DblClick(Sender: TObject);
|
2020-03-11 18:03:13 +00:00
|
|
|
|
procedure Image3DblClick(Sender: TObject);
|
2010-07-12 18:03:50 +00:00
|
|
|
|
private
|
|
|
|
|
|
FVerSello: Integer;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2018-04-18 14:48:17 +00:00
|
|
|
|
function elegirFirmaDocumento(var AVerSello: Integer): Boolean;
|
|
|
|
|
|
|
2014-02-18 22:41:52 +00:00
|
|
|
|
function ElegirOpcionesImpresionPresupuestoCliente(var AVerSello : Integer): Boolean;
|
2010-07-12 18:03:50 +00:00
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
2018-04-18 14:48:17 +00:00
|
|
|
|
uses
|
|
|
|
|
|
uFactuGES_App,
|
|
|
|
|
|
uDialogOpcionesImpresionPresupuestosClienteAzacan,
|
|
|
|
|
|
uDialogOpcionesImpresionPresupuestosClienteMusaeda,
|
|
|
|
|
|
uDialogOpcionesImpresionPresupuestosClienteCristalCleaner;
|
|
|
|
|
|
|
2014-02-18 22:41:52 +00:00
|
|
|
|
function ElegirOpcionesImpresionPresupuestoCliente(var AVerSello : Integer): Boolean;
|
2010-07-12 18:03:50 +00:00
|
|
|
|
var
|
|
|
|
|
|
AEditor : TfDialogOpcionesImpresionPresupuestosCliente;
|
|
|
|
|
|
begin
|
|
|
|
|
|
AEditor := TfDialogOpcionesImpresionPresupuestosCliente.Create(NIL);
|
|
|
|
|
|
try
|
|
|
|
|
|
Result := (AEditor.ShowModal = mrOk);
|
|
|
|
|
|
if Result then
|
|
|
|
|
|
begin
|
|
|
|
|
|
AVerSello := AEditor.FVerSello;
|
|
|
|
|
|
end;
|
|
|
|
|
|
finally
|
|
|
|
|
|
AEditor.Release;
|
|
|
|
|
|
end;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.actAceptarExecute(Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
ModalResult := mrOk
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.actCancelarExecute(Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
ModalResult := mrCancel;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.FormCreate(
|
|
|
|
|
|
Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
FVerSello := 1;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.Image1DblClick(
|
|
|
|
|
|
Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
FVerSello := 1;
|
|
|
|
|
|
actAceptar.Execute;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.Image2DblClick(
|
|
|
|
|
|
Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
FVerSello := 2;
|
|
|
|
|
|
actAceptar.Execute;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2018-04-18 14:48:17 +00:00
|
|
|
|
|
2020-03-11 18:03:13 +00:00
|
|
|
|
procedure TfDialogOpcionesImpresionPresupuestosCliente.Image3DblClick(
|
|
|
|
|
|
Sender: TObject);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
FVerSello := 3;
|
|
|
|
|
|
actAceptar.Execute;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2018-04-18 14:48:17 +00:00
|
|
|
|
function elegirFirmaDocumento(var AVerSello: Integer): Boolean;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := True;
|
|
|
|
|
|
|
|
|
|
|
|
if (AppFactuGES.EmpresaActiva.ID = 1) then
|
|
|
|
|
|
//Preguntamos si desea que en los presupuestos se vea el Sello de Paco u Oscar,
|
|
|
|
|
|
//solo para empresa Tecsitel
|
|
|
|
|
|
Result := ElegirOpcionesImpresionPresupuestoCliente(AVerSello);
|
|
|
|
|
|
|
|
|
|
|
|
if (AppFactuGES.EmpresaActiva.ID = 3) then
|
|
|
|
|
|
//Preguntamos si desea que en los presupuestos se vea el Sello de Oscar, Jos<6F> Lu<4C>s y David,
|
|
|
|
|
|
//solo para empresa Azacan
|
|
|
|
|
|
Result := ElegirOpcionesImpresionPresupuestoClienteAzacan(AVerSello);
|
|
|
|
|
|
|
|
|
|
|
|
if (AppFactuGES.EmpresaActiva.ID = 4) then
|
|
|
|
|
|
//Preguntamos si desea que en los presupuestos se vea el Sello de Oscar o David,
|
|
|
|
|
|
//solo para empresa Musaeda
|
|
|
|
|
|
Result := ElegirOpcionesImpresionPresupuestoClienteMusaeda(AVerSello);
|
|
|
|
|
|
|
|
|
|
|
|
if (AppFactuGES.EmpresaActiva.ID = 5) then
|
|
|
|
|
|
//Preguntamos si desea que en los presupuestos se vea el Sello de Oscar, Jos<6F> Lu<4C>s o David,
|
|
|
|
|
|
//solo para empresa CRISTAL CLEANER
|
|
|
|
|
|
Result := ElegirOpcionesImpresionPresupuestoClienteCristalCleaner(AVerSello);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-12 18:03:50 +00:00
|
|
|
|
end.
|