Пример #1
0
        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_caja") > 0)
                {
                    this.Caja = new Cajas.Caja(this.Connection, this.GetFieldValue <int>("id_caja"));
                }
                else
                {
                    this.Caja = null;
                }

                if (this.GetFieldValue <int>("id_sucursal") > 0)
                {
                    this.Sucursal = new Lbl.Entidades.Sucursal(this.Connection, this.GetFieldValue <int>("id_sucursal"));
                }
                else
                {
                    this.Sucursal = null;
                }
            }
            base.OnLoad();
        }
Пример #2
0
                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();
                }
Пример #3
0
 public Cheque(Lfx.Data.IConnection dataBase, decimal importe, int numero, string emisor, DbDateTime fechaEmision, DbDateTime fechaCobro, Bancos.Banco banco)
     : this(dataBase)
 {
     this.Importe      = importe;
     this.Numero       = numero;
     this.Emisor       = emisor;
     this.FechaEmision = fechaEmision;
     this.FechaCobro   = fechaCobro;
     this.Banco        = banco;
 }
Пример #4
0
                public Cheque(Lfx.Data.Connection dataBase, decimal importe, int numero, string emisor, NullableDateTime fechaEmision, NullableDateTime fechaCobro, Bancos.Banco banco)
			: this(dataBase)
		{
			this.Importe = importe;
                        this.Numero = numero;
                        this.Emisor = emisor;
                        this.FechaEmision = fechaEmision;
                        this.FechaCobro = fechaCobro;
                        this.Banco = banco;
		}
Пример #5
0
        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();
        }
Пример #6
0
                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_caja") > 0)
                                        this.Caja = new Cajas.Caja(this.Connection, this.GetFieldValue<int>("id_caja"));
                                else
                                        this.Caja = null;

                                if (this.GetFieldValue<int>("id_sucursal") > 0)
                                        this.Sucursal = new Lbl.Entidades.Sucursal(this.Connection, this.GetFieldValue<int>("id_sucursal"));
                                else
                                        this.Sucursal = null;
                        }
                        base.OnLoad();
                }