2 using System.Collections.Generic;
11 namespace sage.ew.objetos
19 private string _cCampoBinding =
"_Fecha";
20 private dynamic _oForm = null;
21 private dynamic _oDocumento;
25 public dynamic _Documento
27 get {
return this._oDocumento; }
29 this._oDocumento = value;
31 if (this._oDocumento != null &&
eTipoDocumento.FacturaCompra ==
this._oDocumento._TipoDocumento)
32 _cCampoBinding =
"_FechaFac";
36 private bool _bReadOnly =
false;
43 get {
return _bReadOnly; }
46 if (_bReadOnly != value)
51 this.Enabled = !_bReadOnly;
59 protected override void OnLeave(EventArgs e)
62 Value = this._OldValue;
71 private void ewDateDoc_KeyPress(
object sender, KeyPressEventArgs e)
75 if (
char.IsDigit(e.KeyChar))
87 private void ewDateDoc_KeyDown(
object sender, KeyEventArgs e)
91 if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
103 this.DataBindings.Clear();
104 this.DataBindings.Add(
"Value", _oDocumento._Cabecera, _cCampoBinding,
true);
110 _oForm = this.FindForm();
116 this._ReadOnly = _oForm._Controles_En_Formulario_De_Solo_Lectura();
126 _Intervalo_Ejercicio =
true;
127 _FechaIniIntervalo = (DateTime)EW_GLOBAL._GetVariable(
"wd_periodoini");
128 _FechaFinIntervalo = (DateTime)EW_GLOBAL._GetVariable(
"wd_periodofin");
131 this.KeyDown +=
new KeyEventHandler(ewDateDoc_KeyDown);
132 this.KeyPress +=
new KeyPressEventHandler(ewDateDoc_KeyPress);
Campo fecha cabecera de documentos
override void OnLeave(EventArgs e)
Unicamente es para impedir que nos puedan cambiar el valor de la fecha cuando el control está en Read...
Interfaz utilizada en los controles que se añaden en los perfiles
eTipoDocumento
Detalle los tipos de documento posibles de ventas y compras
void _Refresh()
Refrescar objeto para que actualize su contenido en funcion del objeto documento de venta no visual...
Interfaz para refrescar los controles de los perfiles
Clase sage.ew.objetos.ewdate