69 lines
2.3 KiB
ObjectPascal
69 lines
2.3 KiB
ObjectPascal
|
|
unit uDialogOpcionesImpresionContratosCliente;
|
||
|
|
|
||
|
|
interface
|
||
|
|
|
||
|
|
uses
|
||
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||
|
|
Dialogs, uDialogBase, ActnList, StdCtrls, ExtCtrls;
|
||
|
|
|
||
|
|
type
|
||
|
|
TfDialogOpcionesImpresionContratosCliente = class(TfDialogBase)
|
||
|
|
cbVerPrecios: TCheckBox;
|
||
|
|
cbVerRefProveedor: TCheckBox;
|
||
|
|
cbVerIncidencias: TCheckBox;
|
||
|
|
cbVerObservaciones: TCheckBox;
|
||
|
|
cbVerLogotipo: TCheckBox;
|
||
|
|
cbVerTotales: TCheckBox;
|
||
|
|
procedure actAceptarExecute(Sender: TObject);
|
||
|
|
procedure actCancelarExecute(Sender: TObject);
|
||
|
|
end;
|
||
|
|
|
||
|
|
function ElegirOpcionesImpresionContratoCliente(var AVerLogotipo: Boolean; var AVerPrecios : Boolean; var AVerTotales : Boolean; var AVerRefProveedor : Boolean; var AVerObservaciones : Boolean; var AVerIncidencias : Boolean): Boolean;
|
||
|
|
|
||
|
|
implementation
|
||
|
|
|
||
|
|
{$R *.dfm}
|
||
|
|
|
||
|
|
function ElegirOpcionesImpresionContratoCliente(var AVerLogotipo: Boolean; var AVerPrecios : Boolean; var AVerTotales : Boolean; var AVerRefProveedor : Boolean; var AVerObservaciones : Boolean; var AVerIncidencias : Boolean): Boolean;
|
||
|
|
var
|
||
|
|
AEditor : TfDialogOpcionesImpresionContratosCliente;
|
||
|
|
begin
|
||
|
|
AEditor := TfDialogOpcionesImpresionContratosCliente.Create(NIL);
|
||
|
|
try
|
||
|
|
AEditor.cbVerLogotipo.Checked := AVerLogotipo;
|
||
|
|
AEditor.cbVerPrecios.Checked := AVerPrecios;
|
||
|
|
AEditor.cbVerTotales.Checked := AVerTotales;
|
||
|
|
AEditor.cbVerRefProveedor.Checked := AVerRefProveedor;
|
||
|
|
AEditor.cbVerObservaciones.Checked := AVerObservaciones;
|
||
|
|
AEditor.cbVerIncidencias.Checked := AVerIncidencias;
|
||
|
|
|
||
|
|
|
||
|
|
Result := (AEditor.ShowModal = mrOk);
|
||
|
|
if Result then
|
||
|
|
begin
|
||
|
|
AVerLogotipo := AEditor.cbVerLogotipo.Checked;
|
||
|
|
AVerPrecios := AEditor.cbVerPrecios.Checked;
|
||
|
|
AVerTotales := AEditor.cbVerTotales.Checked;
|
||
|
|
AVerRefProveedor := AEditor.cbVerRefProveedor.Checked;
|
||
|
|
AVerObservaciones := AEditor.cbVerObservaciones.Checked;
|
||
|
|
AVerIncidencias := AEditor.cbVerIncidencias.Checked;
|
||
|
|
end;
|
||
|
|
finally
|
||
|
|
AEditor.Release;
|
||
|
|
end;
|
||
|
|
end;
|
||
|
|
|
||
|
|
procedure TfDialogOpcionesImpresionContratosCliente.actAceptarExecute(Sender: TObject);
|
||
|
|
begin
|
||
|
|
inherited;
|
||
|
|
ModalResult := mrOk
|
||
|
|
end;
|
||
|
|
|
||
|
|
procedure TfDialogOpcionesImpresionContratosCliente.actCancelarExecute(Sender: TObject);
|
||
|
|
begin
|
||
|
|
inherited;
|
||
|
|
ModalResult := mrCancel;
|
||
|
|
end;
|
||
|
|
|
||
|
|
end.
|