Beispiel #1
0
        private void btn_buscar_Click(object sender, EventArgs e)
        {
            try
            {
                BuscarCliente abir = new BuscarCliente();
                this.Hide();
                abir.ShowDialog();

                if (!String.IsNullOrEmpty(abir.codigoC) && !String.IsNullOrEmpty(abir.nitC) && !String.IsNullOrEmpty(abir.nombreC) &&
                    !String.IsNullOrEmpty(abir.apellidoC) && !String.IsNullOrEmpty(abir.direccionC) && !String.IsNullOrEmpty(abir.telefonoC))
                {
                    temporalNumeroAdquirido = abir.codigoC;
                    txtCliente.Text         = abir.nombreC;
                    txtTelefono.Text        = abir.apellidoC;
                    txt_tipo.Text           = abir.tipo;
                    this.Show();
                    ControlProducto.Enabled = true;
                    LlenarProducto();
                }
            }
            catch
            {
                MessageBox.Show("Error al cargar formulario");
            }
        }
Beispiel #2
0
        public void BuscarCliente()
        {
            try
            {
                BuscarCliente abir = new BuscarCliente();
                //this.Hide();
                abir.ShowDialog();

                if (!String.IsNullOrEmpty(abir.codigoC) && !String.IsNullOrEmpty(abir.nitC) && !String.IsNullOrEmpty(abir.nombreC) &&
                            !String.IsNullOrEmpty(abir.apellidoC))
                {
                    txt_temporal.Text = abir.codigoC;
                    txt_nit.Text = abir.nitC;
                    txt_nombre.Text = abir.nombreC;
                    txt_apellido.Text = abir.apellidoC;
                    txt_tipo.Text = abir.tipo;
                    //this.Close();
                    //this.Show();
                    ProductoControl.Enabled = true;
                    TextLLeno();
                    int incidenciaParcial = CapaDatos.ConsultaInsidencia(txt_temporal.Text);
                    IncidenciaFinal = incidenciaParcial;
                    
                }
            }
            catch
            {
                MessageBox.Show("Error al cargar formulario");
            }
        }
Beispiel #3
0
        private void btn_buscarCliente_Click(object sender, EventArgs e)
        {
            try
            {
                BuscarCliente abrir = new BuscarCliente();
                this.Hide();
                abrir.ShowDialog();

                if (!String.IsNullOrEmpty(abrir.codigoC) && !String.IsNullOrEmpty(abrir.nitC) && !String.IsNullOrEmpty(abrir.nombreC) &&
                    !String.IsNullOrEmpty(abrir.apellidoC) && !String.IsNullOrEmpty(abrir.direccionC) && !String.IsNullOrEmpty(abrir.telefonoC))
                {
                    txt_codigoTemporal.Text = abrir.codigoC;
                    txt_nit.Text            = abrir.nitC;
                    txt_nombre.Text         = abrir.nombreC;
                    txt_apellido.Text       = abrir.apellidoC;
                    txt_direccion.Text      = abrir.direccionC;
                    txt_telefono.Text       = abrir.telefonoC;

                    this.Show();
                }

                else
                {
                    MessageBox.Show("Para cotizar necesita seleccionar un cliente");
                }
            }
            catch {
                MessageBox.Show("Error al cargar");
            }
        }
Beispiel #4
0
        private void btn_buscarCliente_Click(object sender, EventArgs e)
        {
            try
            {
                BuscarCliente abir = new BuscarCliente();
                //this.Hide();
                abir.ShowDialog();

                if (!String.IsNullOrEmpty(abir.codigoC) && !String.IsNullOrEmpty(abir.nitC) && !String.IsNullOrEmpty(abir.nombreC) &&
                    !String.IsNullOrEmpty(abir.apellidoC) && !String.IsNullOrEmpty(abir.direccionC) && !String.IsNullOrEmpty(abir.telefonoC))
                {
                    txt_temporal.Text  = abir.codigoC;
                    txt_nit.Text       = abir.nitC;
                    txt_nombre.Text    = abir.nombreC;
                    txt_apellido.Text  = abir.apellidoC;
                    txt_direccion.Text = abir.direccionC;
                    txt_telefono.Text  = abir.telefonoC;
                    txt_tipo.Text      = abir.tipo;
                    //this.Close();
                    //this.Show();
                }
            }
            catch
            {
                MessageBox.Show("Error al cargar formulario");
            }
        }