public override void OnLoad() { if (this.Registro != null) { if (this.GetFieldValue <int>("id_banco") > 0) { this.Banco = new Bancos.Banco(this.Connection, this.GetFieldValue <int>("id_banco")); } else { this.Banco = null; } if (this.GetFieldValue <int>("id_concepto") > 0) { this.Concepto = new Cajas.Concepto(this.Connection, this.GetFieldValue <int>("id_concepto")); } else { this.Concepto = null; } if (this.GetFieldValue <int>("id_chequera") > 0) { this.Chequera = new Bancos.Chequera(this.Connection, this.GetFieldValue <int>("id_chequera")); } else { this.Chequera = null; } if (this.GetFieldValue <int>("id_cliente") > 0) { this.Cliente = new Personas.Persona(this.Connection, this.GetFieldValue <int>("id_cliente")); } else { this.Cliente = null; } if (this.GetFieldValue <int>("id_comprob") > 0) { this.Factura = new Comprobantes.ComprobanteConArticulos(this.Connection, this.GetFieldValue <int>("id_comprob")); } else { this.Factura = null; } } base.OnLoad(); }
public override void ActualizarElemento() { Lbl.Bancos.Chequera Res = this.Elemento as Lbl.Bancos.Chequera; Res.Banco = EntradaBanco.Elemento as Lbl.Bancos.Banco; Res.Caja = EntradaCaja.Elemento as Lbl.Cajas.Caja; Res.Sucursal = EntradaSucursal.Elemento as Lbl.Entidades.Sucursal; Res.Desde = Lfx.Types.Parsing.ParseInt(EntradaDesde.Text); Res.Hasta = Lfx.Types.Parsing.ParseInt(EntradaHasta.Text); Res.Titular = EntradaTitular.Text; Res.Estado = Lfx.Types.Parsing.ParseInt(EntradaEstado.TextKey); base.ActualizarElemento(); }
public override void ActualizarControl() { Lbl.Bancos.Chequera Res = this.Elemento as Lbl.Bancos.Chequera; EntradaBanco.Elemento = Res.Banco; EntradaDesde.Text = Res.Desde.ToString(); EntradaHasta.Text = Res.Hasta.ToString(); EntradaCaja.Elemento = Res.Caja; EntradaTitular.Text = Res.Titular; EntradaEstado.TextKey = Res.Estado.ToString(); EntradaSucursal.Elemento = Res.Sucursal; if (Res.Existe) { EntradaCaja.Filter = null; } else { EntradaCaja.Filter = "estado=1"; } base.ActualizarControl(); }
public override void OnLoad() { if (this.Registro != null) { if (this.GetFieldValue<int>("id_banco") > 0) this.Banco = new Bancos.Banco(this.Connection, this.GetFieldValue<int>("id_banco")); else this.Banco = null; if (this.GetFieldValue<int>("id_concepto") > 0) this.Concepto = new Cajas.Concepto(this.Connection, this.GetFieldValue<int>("id_concepto")); else this.Concepto = null; if (this.GetFieldValue<int>("id_chequera") > 0) this.Chequera = new Bancos.Chequera(this.Connection, this.GetFieldValue<int>("id_chequera")); else this.Chequera = null; if (this.GetFieldValue<int>("id_cliente") > 0) this.Cliente = new Personas.Persona(this.Connection, this.GetFieldValue<int>("id_cliente")); else this.Cliente = null; if (this.GetFieldValue<int>("id_comprob") > 0) this.Factura = new Comprobantes.ComprobanteConArticulos(this.Connection, this.GetFieldValue<int>("id_comprob")); else this.Factura = null; } base.OnLoad(); }