public void modificarUsuario(Usuario usuario)
        {
            AccesoDatos datos   = new AccesoDatos();
            SqlCommand  comando = new SqlCommand();

            try
            {
                //datos.setearQuery("Update POKEMONS set Nombre=@Nombre Where Id=@Id");
                datos.setearSP("SP_ModificarUsuario");
                datos.AgregarParametro("@Id", usuario.IdUsuario.ToString());
                datos.AgregarParametro("@CodUsuario", usuario.CodUsuario.ToString());
                datos.AgregarParametro("@TipoUsuario", usuario.TipoUsuario);
                datos.AgregarParametro("@Email", usuario.Email);
                datos.AgregarParametro("@Sexo", usuario.Sexo);
                datos.AgregarParametroFecha("@FechaReg", usuario.FechaReg);
                datos.AgregarParametroFecha("@FechaNac", usuario.FechaNac);
                //datos.AgregarParametro("@FechaNac", chofer.FechaNacimiento);
                datos.AgregarParametro("@Estado", usuario.Estado);
                datos.AgregarParametro("@Clave", usuario.Clave);

                datos.ejecutarAccion();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
        public void modificarMicro(Micro micro)
        {
            AccesoDatos datos   = new AccesoDatos();
            SqlCommand  comando = new SqlCommand();

            try
            {
                //datos.setearQuery("Update POKEMONS set Nombre=@Nombre Where Id=@Id");
                datos.setearSP("SP_ModificarMicro");
                datos.AgregarParametro("@Id", micro.IdMicro.ToString());
                datos.AgregarParametro("@Patente", micro.Patente.ToString());
                datos.AgregarParametro("@Modelo", micro.Modelo.ToString());
                datos.AgregarParametroFecha("@FechaFabr", micro.FechaFabricacion);
                datos.AgregarParametro("@CantAsientos", micro.CantAsientos.ToString());
                datos.AgregarParametro("@Estado", micro.Estado);
                datos.ejecutarAccion();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 3
0
        public void modificarChofer(Chofer chofer)
        {
            AccesoDatos datos   = new AccesoDatos();
            SqlCommand  comando = new SqlCommand();

            try
            {
                //datos.setearQuery("Update POKEMONS set Nombre=@Nombre Where Id=@Id");
                datos.setearSP("SP_ModificarChofer");
                datos.AgregarParametro("@Id", chofer.IdChofer.ToString());
                datos.AgregarParametro("@Legajo", chofer.Legajo.ToString());
                datos.AgregarParametro("@Apellidos", chofer.Apellido);
                datos.AgregarParametro("@Nombres", chofer.Nombre);
                datos.AgregarParametro("@Sexo", chofer.Sexo);
                datos.AgregarParametroFecha("@FechaNac", chofer.FechaNacimiento);
                //datos.AgregarParametro("@FechaNac", chofer.FechaNacimiento);
                datos.AgregarParametro("@Estado", chofer.Estado);
                datos.ejecutarAccion();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }