unit uViewConfiguracionDocBano; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uViewConfiguracionBase, cxControls, cxContainer, cxEdit, cxTextEdit, cxMemo, cxRichEdit, uViewBase, JvExControls, JvGradientHeaderPanel, StdCtrls, ExtCtrls; type TfrViewConfiguracionDocBano = class(TfrViewConfiguracionBase) eCondiciones: TcxRichEdit; ePlazosEntrega: TMemo; eFormaPago: TMemo; eObservaciones: TMemo; Label1: TLabel; Label2: TLabel; Label4: TLabel; public class function GetViewClass : TClass; override; class function DarEtiqueta : String; override; procedure CargarValores; override; procedure GuardarValores; override; end; var frViewConfiguracionDocBano: TfrViewConfiguracionDocBano; implementation {$R *.dfm} { TfrViewConfiguracionDocBANO } uses uFactuGES_App, uConfiguracionController, uPresupuestosClienteController; procedure TfrViewConfiguracionDocBano.CargarValores; begin inherited; eFormaPago.Lines.Clear; eFormaPago.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_FORMA_PAGO_BANO); 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; class function TfrViewConfiguracionDocBano.DarEtiqueta: String; begin Result := 'Documentos baņo'; end; class function TfrViewConfiguracionDocBano.GetViewClass: TClass; begin Result := TfrViewConfiguracionDocBANO; end; procedure TfrViewConfiguracionDocBano.GuardarValores; begin inherited; AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_FORMA_PAGO_BANO, eFormaPago.Text); 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.