Exemple #1
0
        public void cargarTipos()
        {
            TipoCliente tipoCSilver   = new TipoCliente("SILVER", 500.00F, 1000.00F);
            TipoCliente tipoCGold     = new TipoCliente("GOLD", 5000.00F, 6000.00F);
            TipoCliente tipoCPlatinum = new TipoCliente("PLATINUM", 15000.00F, 30000.00F);

            TipoEmpleado tipoEDireccion = new TipoEmpleado("DIRECCIÓN", 1);
            TipoEmpleado tipoECajero    = new TipoEmpleado("CAJERO", 2);
            TipoEmpleado tipoEComercial = new TipoEmpleado("COMERCIAL", 3);

            Producto producto1 = new Producto(001, "CUENTA DE AHORRO", "Cuenta a la vista donde poder realizar operaciones de ingreso y reintegro", 1.2F, true);
            Producto producto2 = new Producto(002, "PLAZO FIJO", "Depósito que mantiene un saldo fijo por un período de tiempo y ofrece una rentabilidad fija asegurada", 2.5F, true);
            Producto producto3 = new Producto(003, "FONDO DE INVERSIÓN", "Depósito que mantiene un saldo fijo por un período de tiempo y ofrece rentabilidad variable", 5.2F, true);
            Producto producto4 = new Producto(004, "PRÉSTAMO", "Cantidad de dinero prestada al cliente que tiene que devolverlo en un plazo con un interés asociado", 16.5F, true);


            this.agregarTipoCliente(tipoCSilver);
            this.agregarTipoCliente(tipoCGold);
            this.agregarTipoCliente(tipoCPlatinum);

            this.agregarTipoEmpleado(tipoEDireccion);
            this.agregarTipoEmpleado(tipoECajero);
            this.agregarTipoEmpleado(tipoEComercial);

            this.agregarProducto(producto1);
            this.agregarProducto(producto2);
            this.agregarProducto(producto3);
            this.agregarProducto(producto4);
        }
Exemple #2
0
        // ZONA DE CONSTRUCCTORES

        public Cliente()
        {
            nombre       = null;
            apellidos    = null;
            _dni         = null;
            _fecha_nac   = new DateTime();
            _usuario     = null;
            _password    = null;
            _tipoCliente = null;
            _contratos   = null;
        }
Exemple #3
0
        // MÉTODOS PARA NUTRIR DE DATOS LOS ARRAY DINÁMICOS DE DATOS

        // MÉTODO PARA AGREGAR UN TIPO DE CLIENTE
        public bool agregarTipoCliente(TipoCliente tipo)
        {
            bool agregado = false;

            TipoCliente[] copia = null;

            if (_lista_tipos_clientes == null)
            {
                _lista_tipos_clientes = new TipoCliente[1];
            }
            else
            {
                copia = new TipoCliente[_lista_tipos_clientes.Length];
                _lista_tipos_clientes.CopyTo(copia, 0);
                _lista_tipos_clientes = new TipoCliente[copia.Length + 1];
                copia.CopyTo(_lista_tipos_clientes, 0);
                copia = null;
            }
            _lista_tipos_clientes[_lista_tipos_clientes.Length - 1] = tipo;
            agregado = true;
            return(agregado);
        }
Exemple #4
0
 public Cliente(int id, string nombre, string apellidos, string dni, string fecha_nac, string usuario, string pass, TipoCliente tipo)
 {
     this.id           = id;
     this.nombre       = nombre;
     this.apellidos    = apellidos;
     this.dni          = dni;
     this.fecha_nac    = fecha_nac;
     this.usuario      = usuario;
     this.password     = pass;
     this.tipo_cliente = tipo;
     this._contratos   = null;
 }