Exemplo n.º 1
0
        void llenar_formulario()
        {
            fuente_datos ts = new fuente_datos();

            informacion_cliente = ts.datos_cliente(id_cliente);
            //hilo que verifica si el cliente es de un distribuidor
            Thread Agente_info = new Thread(new ThreadStart(busqueda.agenteInfo));

            Agente_info.Start();

            tb_id.Text              = "" + fuente_datos.codigos[item_seleccionado + 1];
            lb_estatus.Text         = Convert.ToString(informacion_cliente["estatus"]) + " | " + Convert.ToString(informacion_cliente["deuda"]);
            tb_razon.Text           = Convert.ToString(informacion_cliente["razon"]);
            tb_domicilio.Text       = Convert.ToString(informacion_cliente["domicilio"]);
            tb_localidad.Text       = Convert.ToString(informacion_cliente["localidad"]);
            tb_telefonos.Text       = Convert.ToString(informacion_cliente["telefonos"]);
            tb_correos.Text         = Convert.ToString(informacion_cliente["emails"]);
            tb_RFC2.Text            = Convert.ToString(informacion_cliente["rfc"]);
            tb_contactos.Text       = Convert.ToString(informacion_cliente["contactos"]);
            tb_ccontactos.Text      = Convert.ToString(informacion_cliente["ccontactos"]);
            btn_documentos.Enabled  = true;
            btn_seguimiento.Enabled = true;

            Agente_info.Join();
        }
Exemplo n.º 2
0
 void clientes_registrados()
 {
     if ((tb_busqueda.Text.Trim() != "") && (Validador.check_busqueda(tb_busqueda.Text.Trim()) == true))
     {
         fuente_datos tsql = new fuente_datos();
         if (rb_rfc.Checked == true)
         {
             clientes = tsql.clientes("", tb_busqueda.Text.Trim());
         }
         if (rb_razon.Checked == true)
         {
             clientes = tsql.clientes(tb_busqueda.Text.Trim(), "");
         }
         if ("" + clientes[0, 0] == "0")
         {
             MessageBox.Show("cliente no encontrado");
             limpiar_formulario();
         }
         else
         {
             resultados = Convert.ToInt32(clientes[0, 0]);
             cb_clientes.Items.Clear();
             for (int x = 1; x < resultados + 1; x++)
             {
                 cb_clientes.Items.Add("" + clientes[x, 1]);
             }
             cb_clientes.SelectedIndex = 0;
         }
     }
     else
     {
         MessageBox.Show("No es posible realizar la busqueda");
     }
 }
Exemplo n.º 3
0
 private void pb_help_MouseEnter(object sender, EventArgs e)
 {
     if (id_cliente != 0)
     {
         fuente_datos fd = new fuente_datos();
         mtb_msg.Text    = fd.verifica_credito(id_cliente);
         mtb_msg.Visible = true;
     }
 }
Exemplo n.º 4
0
        // METODOS EN PROCESOS SEPARADOS

        static void agenteInfo()
        {
            fuente_datos fd = new fuente_datos();

            fd.agente_informacion(id_cliente, Convert.ToString(informacion_cliente["razon"]));
        }