Esempio n. 1
0
        private void TxtNumRuc_Validated(object sender, EventArgs e)
        {
            if (TxtNumRuc.Text != "")
            {
                DataTable DtCliente2 = new DataTable();
                objClientes.mysConec = mysConec;

                DtCliente2 = objClientes.ClienteBuscar(TxtNumRuc.Text);
                if ((DtCliente2 != null) && (DtCliente2.Rows.Count != 0))
                {
                    TxtNomCli.Text    = DtCliente2.Rows[0]["c_nombre"].ToString();
                    TxtDireccion.Text = DtCliente2.Rows[0]["c_dir"].ToString();
                }
                else
                {
                    funFunciones.MensajeMostrarAviso(Mensajes.CRUD_BUSCAR.ToString(), "");
                    TxtNumRuc.Text = "";
                    TxtNumRuc.Focus();
                }
            }
        }