2011-11-14 17:40:41 +00:00
|
|
|
unit uViewConfiguracionDocVarios;
|
|
|
|
|
|
|
|
|
|
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,
|
2013-09-25 17:13:02 +00:00
|
|
|
ComCtrls, cxGraphics, DB, uDAInterfaces, uDADataTable, cxMaskEdit,
|
|
|
|
|
cxDropDownEdit, cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox, uFormasPagoController, uBizFormasPago;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
|
|
|
|
type
|
|
|
|
|
TfrViewConfiguracionDocVarios = class(TfrViewConfiguracionBase)
|
2012-07-11 15:39:13 +00:00
|
|
|
PageControl1: TPageControl;
|
|
|
|
|
pagNotas: TTabSheet;
|
|
|
|
|
pagCondiciones: TTabSheet;
|
|
|
|
|
Label1: TLabel;
|
2011-11-14 17:40:41 +00:00
|
|
|
Label2: TLabel;
|
|
|
|
|
Label4: TLabel;
|
2012-07-11 15:39:13 +00:00
|
|
|
ePlazosEntrega: TMemo;
|
|
|
|
|
eFormaPago: TMemo;
|
|
|
|
|
eObservaciones: TMemo;
|
|
|
|
|
eCondiciones: TcxRichEdit;
|
2013-09-25 17:13:02 +00:00
|
|
|
cbFormaPago: TcxLookupComboBox;
|
|
|
|
|
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;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
frViewConfiguracionDocVarios: TfrViewConfiguracionDocVarios;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
{ TfrViewConfiguracionDocVARIOS }
|
|
|
|
|
|
|
|
|
|
uses uFactuGES_App, uConfiguracionController, uPresupuestosClienteController;
|
|
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocVarios.CargarValores;
|
|
|
|
|
begin
|
|
|
|
|
inherited;
|
2013-09-25 17:13:02 +00:00
|
|
|
JvGradientHeaderPanel1.LabelCaption := JvGradientHeaderPanel1.LabelCaption + AppFactuGES.EmpresaActiva.NOMBRE;
|
|
|
|
|
|
|
|
|
|
FFormasPago := Nil;
|
|
|
|
|
FFormasPagoController := TFormasPagoController.Create;
|
|
|
|
|
FFormasPago := FFormasPagoController.BuscarTodos;
|
|
|
|
|
dsFormaPago.DataTable := FFormasPago.DataTable;
|
|
|
|
|
dsFormaPago.DataTable.Active := True;
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
ePlazosEntrega.Lines.Clear;
|
2013-09-25 17:13:02 +00:00
|
|
|
ePlazosEntrega.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_PLAZOS_ENTREGA_VARIOS, AppFactuGES.EmpresaActiva.ID);
|
2011-11-14 17:40:41 +00:00
|
|
|
eObservaciones.Lines.Clear;
|
2013-09-25 17:13:02 +00:00
|
|
|
eObservaciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_OBSERVACIONES_VARIOS, AppFactuGES.EmpresaActiva.ID);
|
2011-11-14 17:40:41 +00:00
|
|
|
eCondiciones.Lines.Clear;
|
2013-09-25 17:13:02 +00:00
|
|
|
eCondiciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_CONDICIONES_VARIOS, AppFactuGES.EmpresaActiva.ID);
|
|
|
|
|
|
|
|
|
|
cbFormaPago.EditValue := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_FORMA_PAGO_VARIOS, AppFactuGES.EmpresaActiva.ID);
|
|
|
|
|
// eFormaPago.Lines.Clear;
|
|
|
|
|
// eFormaPago.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_FORMA_PAGO_VARIOS);
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
class function TfrViewConfiguracionDocVarios.DarEtiqueta: String;
|
|
|
|
|
begin
|
|
|
|
|
Result := 'Documentos varios';
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
class function TfrViewConfiguracionDocVarios.GetViewClass: TClass;
|
|
|
|
|
begin
|
|
|
|
|
Result := TfrViewConfiguracionDocVARIOS;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocVarios.GuardarValores;
|
|
|
|
|
begin
|
|
|
|
|
inherited;
|
2013-09-25 17:13:02 +00:00
|
|
|
// AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_FORMA_PAGO_VARIOS, eFormaPago.Text);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_FORMA_PAGO_VARIOS, AppFactuGES.EmpresaActiva.ID, cbFormaPago.EditValue);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_PLAZOS_ENTREGA_VARIOS, AppFactuGES.EmpresaActiva.ID, ePlazosEntrega.Text);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_OBSERVACIONES_VARIOS, AppFactuGES.EmpresaActiva.ID, eObservaciones.Text);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_CONDICIONES_VARIOS, AppFactuGES.EmpresaActiva.ID, eCondiciones.Text);
|
2011-11-14 17:40:41 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end.
|