Beispiel #1
0
        public void llenarcamposModificar()
        {
            //Llenar tabla cliente
            txtNombre.Text             = consultas.selectstring("select nombre from clientes where idcliente=" + idCliente);
            txtApellidos.Text          = consultas.selectstring("select apellidos from clientes where idcliente=" + idCliente);
            txtDireccion.Text          = consultas.selectstring("select direccion from clientes where idcliente=" + idCliente);
            cmbLocalidad.SelectedValue = Convert.ToInt32(consultas.selectstring("select reflocalidad from clientes where idcliente=" + idCliente));
            txtDni.Text           = consultas.selectstring("select dni from clientes where idcliente=" + idCliente);
            txtMovil.Text         = consultas.selectstring("select telmovil from clientes where idcliente=" + idCliente);
            txtFijo.Text          = consultas.selectstring("select telfijo from clientes where idcliente=" + idCliente);
            txtEmail.Text         = consultas.selectstring("select email from clientes where idcliente=" + idCliente);
            cmbConocido.Text      = consultas.selectstring("select conocido from clientes where idcliente=" + idCliente);
            txtObservaciones.Text = consultas.selectstring("select observaciones from clientes where idcliente=" + idCliente);
            txtApellidos.Text     = consultas.selectstring("select apellidos from clientes where idcliente=" + idCliente);

            //Llenar tabla entrevista
            txtModcocina.Text     = consultas.selectstring("select modcocina from entrevista where refcliente=" + idCliente);
            txtColorcocina.Text   = consultas.selectstring("select colorcocina from entrevista where refcliente=" + idCliente);
            txtModencimera.Text   = consultas.selectstring("select modencimera from entrevista where refcliente=" + idCliente);
            txtColorencimera.Text = consultas.selectstring("select colorencimera from entrevista where refcliente=" + idCliente);
            txtTirador.Text       = consultas.selectstring("select tirador from entrevista where refcliente=" + idCliente);
            txtCornisa.Text       = consultas.selectstring("select cornisa from entrevista where refcliente=" + idCliente);
            txtTapaluz.Text       = consultas.selectstring("select tapaluz from entrevista where refcliente=" + idCliente);
            txtCaldera.Text       = consultas.selectstring("select caldera from entrevista where refcliente=" + idCliente);
            cmbCentro.Text        = consultas.selectstring("select centro from entrevista where refcliente=" + idCliente);
            txtVendedor.Text      = consultas.selectstring("select numvendedor from entrevista where refcliente=" + idCliente);
            txtFechamontaje.Text  = consultas.selectstring("select fechamontaje from entrevista where refcliente=" + idCliente);
            dtpFechaentrada.Text  = consultas.selectstring("select fechaentrada from entrevista where refcliente=" + idCliente);
            llenarCombobox("zocalo", cmbZocalo, txtOzocalo);
            llenarCombobox("frigorifico", cmbFrigo, txtOfrigo);
            llenarCombobox("congelador", cmbConge, txtOconge);
            llenarCombobox("horno", cmbHorno, txtOhornos);
            llenarCombobox("microondas", cmbMicro, txtOmicroondas);
            llenarCombobox("campana", cmbCampana, txtOcampana);
            llenarCombobox("placa", cmbPlaca, txtOplaca);
            llenarCombobox("lavavajillas", cmbLavavajillas, txtOlavava);
            llenarCombobox("fregadero", cmbFrega, txtOfrega);
            llenarCombobox("lavadora", cmbLavadora, txtOlavadora);
        }
Beispiel #2
0
 //RELLENAR DATOS
 private void rellenarDatosCliente()
 {
     txtNombre.Text    = consultas.selectstring("select nombre from clientes where idcliente=" + RefCliente);
     txtApellidos.Text = consultas.selectstring("select apellidos from clientes where idcliente=" + RefCliente);
     txtDireccion.Text = consultas.selectstring("select direccion from clientes where idcliente=" + RefCliente);
     txtPoblacion.Text = consultas.selectstring("SELECT dbo.Localidades.descripcion FROM dbo.Clientes INNER JOIN "
                                                + " dbo.Localidades ON dbo.Clientes.reflocalidad = dbo.Localidades.idlocalidad where dbo.Clientes.idcliente=" + RefCliente);
     txtTelefono.Text = consultas.selectstring("select telmovil from clientes where idcliente=" + RefCliente);
 }