2011-11-14 17:40:41 +00:00
|
|
|
|
unit uViewConfiguracionDocBano;
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
|
Dialogs, uViewConfiguracionBase, cxControls, cxContainer, cxEdit, cxTextEdit, cxMemo,
|
2011-11-18 17:12:39 +00:00
|
|
|
|
cxRichEdit, uViewBase, JvExControls, JvGradientHeaderPanel, StdCtrls, ExtCtrls,
|
|
|
|
|
|
cxGraphics, DB, uDAInterfaces, uDADataTable, cxMaskEdit, cxDropDownEdit,
|
|
|
|
|
|
cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox, uFormasPagoController, uBizFormasPago;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
TfrViewConfiguracionDocBano = class(TfrViewConfiguracionBase)
|
|
|
|
|
|
eCondiciones: TcxRichEdit;
|
|
|
|
|
|
ePlazosEntrega: TMemo;
|
|
|
|
|
|
eObservaciones: TMemo;
|
|
|
|
|
|
Label2: TLabel;
|
|
|
|
|
|
Label4: TLabel;
|
2011-11-18 17:12:39 +00:00
|
|
|
|
bFormasPago: TButton;
|
|
|
|
|
|
cbFormaPago: TcxLookupComboBox;
|
|
|
|
|
|
Label5: TLabel;
|
|
|
|
|
|
dsFormaPago: TDADataSource;
|
|
|
|
|
|
protected
|
|
|
|
|
|
FFormasPago : IBizFormaPago;
|
|
|
|
|
|
FFormasPagoController : IFormasPagoController;
|
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
|
public
|
|
|
|
|
|
class function GetViewClass : TClass; override;
|
|
|
|
|
|
class function DarEtiqueta : String; override;
|
|
|
|
|
|
procedure CargarValores; override;
|
|
|
|
|
|
procedure GuardarValores; override;
|
2011-11-18 17:12:39 +00:00
|
|
|
|
constructor Create(AOwner: TComponent); override;
|
|
|
|
|
|
destructor Destroy; override;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
|
frViewConfiguracionDocBano: TfrViewConfiguracionDocBano;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
{ TfrViewConfiguracionDocBANO }
|
|
|
|
|
|
|
|
|
|
|
|
uses uFactuGES_App, uConfiguracionController, uPresupuestosClienteController;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocBano.CargarValores;
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
2011-11-18 17:12:39 +00:00
|
|
|
|
FFormasPago := FFormasPagoController.BuscarTodos;
|
|
|
|
|
|
dsFormaPago.DataTable := FFormasPago.DataTable;
|
|
|
|
|
|
dsFormaPago.DataTable.Active := True;
|
|
|
|
|
|
cbFormaPago.EditValue := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_FORMA_PAGO_BANO);
|
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
|
ePlazosEntrega.Lines.Clear;
|
|
|
|
|
|
ePlazosEntrega.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_PLAZOS_ENTREGA_BANO);
|
|
|
|
|
|
eObservaciones.Lines.Clear;
|
|
|
|
|
|
eObservaciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_OBSERVACIONES_BANO);
|
|
|
|
|
|
eCondiciones.Lines.Clear;
|
|
|
|
|
|
eCondiciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_CONDICIONES_BANO);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2011-11-18 17:12:39 +00:00
|
|
|
|
constructor TfrViewConfiguracionDocBano.Create(AOwner: TComponent);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
FFormasPagoController := TFormasPagoController.Create;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
|
class function TfrViewConfiguracionDocBano.DarEtiqueta: String;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := 'Documentos ba<62>o';
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2011-11-18 17:12:39 +00:00
|
|
|
|
destructor TfrViewConfiguracionDocBano.Destroy;
|
|
|
|
|
|
begin
|
|
|
|
|
|
FFormasPago := Nil;
|
|
|
|
|
|
FFormasPagoController := NIL;
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
|
class function TfrViewConfiguracionDocBano.GetViewClass: TClass;
|
|
|
|
|
|
begin
|
|
|
|
|
|
Result := TfrViewConfiguracionDocBANO;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocBano.GuardarValores;
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
2011-11-18 17:12:39 +00:00
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_FORMA_PAGO_BANO, cbFormaPago.EditValue);
|
2011-11-14 17:40:41 +00:00
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_PLAZOS_ENTREGA_BANO, ePlazosEntrega.Text);
|
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_OBSERVACIONES_BANO, eObservaciones.Text);
|
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_CONDICIONES_BANO, eCondiciones.Text);
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end.
|