2011-11-14 17:40:41 +00:00
|
|
|
unit uViewConfiguracionDocCocina;
|
|
|
|
|
|
|
|
|
|
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,
|
2012-07-11 15:39:13 +00:00
|
|
|
ComCtrls, uCustomView, uViewDetallesBase, uViewDetallesDTO,
|
|
|
|
|
uViewDetallesArticulos, uViewConfiguracionCapitulo;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
|
|
|
|
type
|
|
|
|
|
TfrViewConfiguracionDocCocina = class(TfrViewConfiguracionBase)
|
2012-07-11 15:39:13 +00:00
|
|
|
Paginas: TPageControl;
|
|
|
|
|
pagNotas: 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;
|
|
|
|
|
pagCapitulo: TTabSheet;
|
|
|
|
|
frViewConfiguracionCapitulo: TfrViewConfiguracionCapitulo;
|
|
|
|
|
pagCondiciones: TTabSheet;
|
|
|
|
|
eCondiciones: TcxRichEdit;
|
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;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
{ TfrViewConfiguracionDocCocina }
|
|
|
|
|
|
2012-07-11 15:39:13 +00:00
|
|
|
uses uFactuGES_App, uConfiguracionController, uPresupuestosClienteController,
|
|
|
|
|
uBizDetallesPresupuestoCliente, uDetallesPresupuestoClienteController;
|
2011-11-14 17:40:41 +00:00
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocCocina.CargarValores;
|
|
|
|
|
begin
|
|
|
|
|
inherited;
|
2012-07-11 15:39:13 +00:00
|
|
|
eFormaPago.Lines.Clear;
|
|
|
|
|
eFormaPago.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_FORMA_PAGO_COCINA);
|
2011-11-14 17:40:41 +00:00
|
|
|
ePlazosEntrega.Lines.Clear;
|
|
|
|
|
ePlazosEntrega.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_PLAZOS_ENTREGA_COCINA);
|
|
|
|
|
eObservaciones.Lines.Clear;
|
|
|
|
|
eObservaciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_OBSERVACIONES_COCINA);
|
|
|
|
|
eCondiciones.Lines.Clear;
|
|
|
|
|
eCondiciones.Text := AppFactuGES.Configuracion.GetSettingAsString(teBD,CTE_CONDICIONES_COCINA);
|
|
|
|
|
|
2012-07-11 15:39:13 +00:00
|
|
|
frViewConfiguracionCapitulo.Controller := TDetallesPresupuestoClienteController.Create;
|
|
|
|
|
frViewConfiguracionCapitulo.Detalles := (frViewConfiguracionCapitulo.Controller as IDetallesPresupuestoClienteController).BuscarCapitulo(TIPO_CAPITULO_C);
|
2011-11-18 17:12:39 +00:00
|
|
|
end;
|
|
|
|
|
|
2011-11-14 17:40:41 +00:00
|
|
|
class function TfrViewConfiguracionDocCocina.DarEtiqueta: String;
|
|
|
|
|
begin
|
|
|
|
|
Result := 'Documentos cocina';
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
class function TfrViewConfiguracionDocCocina.GetViewClass: TClass;
|
|
|
|
|
begin
|
|
|
|
|
Result := TfrViewConfiguracionDocCocina;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure TfrViewConfiguracionDocCocina.GuardarValores;
|
|
|
|
|
begin
|
|
|
|
|
inherited;
|
2012-07-11 15:39:13 +00:00
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_FORMA_PAGO_COCINA, eFormaPago.Text);
|
2011-11-14 17:40:41 +00:00
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_PLAZOS_ENTREGA_COCINA, ePlazosEntrega.Text);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_OBSERVACIONES_COCINA, eObservaciones.Text);
|
|
|
|
|
AppFactuGES.Configuracion.SetSettingAsString(teBD, CTE_CONDICIONES_COCINA, eCondiciones.Text);
|
2012-07-11 15:39:13 +00:00
|
|
|
|
|
|
|
|
frViewConfiguracionCapitulo.Detalles.DataTable.ApplyUpdates;
|
2011-11-14 17:40:41 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end.
|