private void Cliente_Agente_Load(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     LoadData();
     m.LlenarCliente(IdCliente, textBox1, textBox2, textBox3, textBox4);
     m.LlenarAgente(IdAgente, textBox7, textBox8, textBox9, textBox10);
 }
        public DetallesDeCasting(int Id, verCastings v)
        {
            InitializeComponent();
            this.Id = Id;
            this.v = v;
             MetodosCasting m = new MetodosCasting();
             m.MostrarDetalles(Id, nombre, dir, tipo, tel, numEmp, ced, agente, agenteApellido, dirAgente);

        }
示例#3
0
        private void Fases_Load(object sender, EventArgs e)
        {
            m = new MetodosCasting();
            m.MostrarFase(Id, textBox1);
            textBox1.Enabled = false;
            maskedTextBox1.Enabled = false;
            maskedTextBox1.Text = DateTime.Now.ToString();

        }
 private void DetallesContactoCl_Load(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     m.InfoTextBox(Id, idCliente, nombre, apellido, ced);
     idCliente.Enabled = false;
     nombre.Enabled = false;
     apellido.Enabled = false;
     ced.Enabled = false;
 }
 private void textBox1_KeyUp(object sender, KeyEventArgs e)
 {
     m = new MetodosCasting();
     if (comboBox1.SelectedIndex == 0)
     {
         m.ClienteTipo(textBox1, dataGridView1);
     }
     else if (comboBox1.SelectedIndex == 1)
     {
         m.ClienteNombre(textBox1, dataGridView1);
     }
 }
 private void button3_Click(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     if (nombre.Text.Length == 0 || descrip.Text.Length == 0 || coste.Text.Length == 0 || nper.Value == 0)
     {
         MessageBox.Show("Complete toda la información antes de registrar");
     }
     else
     {
      m.GuardarCasting(IdCliente, IdAgente, nombre.Text, descrip.Text, Convert.ToDouble(coste.Text), Convert.ToInt32(nper.Value));
      this.Dispose();
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     if (sala.Text.Length == 0 || descrip.Text.Length == 0)
     {
         MessageBox.Show("Complete la información de los campos","", 
         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         m.GuardarPrueba(Id, sala.Text, descrip.Text, maskedTextBox1.Text);
         this.Dispose();
     }
 }
        private void textBox2_KeyUp(object sender, KeyEventArgs e)
        {
            if (textBox2.Text.Trim().Equals(""))
            {
                MetodosCasting m = new MetodosCasting();
                m.MostrarAgentes(dataGridView1);
                return;
            }
            else
            {
                String Cad = "%"+textBox2.Text+"%";

                if (comboBox2.SelectedIndex == 0)
                {
                    String Query = "SELECT *FROM MostrarAgentes WHERE [# de Empleado] like '" + Cad + "'";

                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);
                }
                else if (comboBox2.SelectedIndex == 1)
                {
                    String Query = "SELECT *FROM MostrarAgentes WHERE [Cédula] like '" + Cad + "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);

                }
                else if (comboBox2.SelectedIndex == 2)
                {
                    String Query = "SELECT *FROM MostrarAgentes WHERE [Nombre] like '" + Cad + "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);

                }
                else if (comboBox2.SelectedIndex == 3)
                {
                    String Query = "SELECT *FROM MostrarAgentes WHERE [Apellido] like '" + Cad + "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);
                }
                else if (comboBox2.SelectedIndex == 4)
                {
                    String Query = "Select *From MostrarAgentes WHERE [Estado] like '" + Cad + "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);
                }
            }///
        }
示例#9
0
        private void button1_Click(object sender, EventArgs e)
        {
            MetodosCasting m = new MetodosCasting();

            if (nombre.Text.Length == 0 || apellido.Text.Length == 0 || numEmpleado.Text.Length == 0 || ced.Text.Trim().Length < 16)
            {
                MessageBox.Show("Complete los campos obligatorios", "Lo sentimos...");
                pic1.Visible = true;
                pic2.Visible = true;
                pic3.Visible = true;
                pic4.Visible = true;
            }
            else
            {
                m.GuardarAgente(nombre.Text, apellido.Text, dir.Text, ced.Text, numEmpleado.Text);
                this.Hide();
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            m = new MetodosCasting();
            if (nombre.Text.Length == 0 || apellido.Text.Length == 0 || dir.Text.Length == 0)
            {
                MessageBox.Show("Complete los campos obligatorios");
                pic1.Visible = true;
                pic2.Visible = true;
            }
            else
            {
                m.ActualizarAgente(Id, nombre.Text, apellido.Text, dir.Text, comboBox1.SelectedItem.ToString());
                editar = new EditarAgente();
                editar.MdiParent = this.MdiParent;
                editar.Show();
                this.Dispose();

            }
        }
        private void textBox2_KeyUp(object sender, KeyEventArgs e)
        {
            if (textBox2.Text.Trim().Equals(""))
            {
                m = new MetodosCasting();
                m.MostrarAgentes(dataGridView2);
                return;
            }
            else
            {
                String Cad = "%" + textBox2.Text + "%";

                if (comboBox2.SelectedIndex == 0)
                {
                    String Query = "SELECT *FROM MostrarAgentes WHERE [Estado]='Activo' AND [# de Empleado] like'" + Cad + "'";

                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView2);
                }
                else if (comboBox2.SelectedIndex == 1)
                {
                    String     Query = "SELECT *FROM MostrarAgentes WHERE [Estado]='Activo' AND [Cédula] like'" + Cad + "'";
                    MetodosNav nav   = new MetodosNav();
                    nav.Buscar(Query, dataGridView2);
                }
                else if (comboBox2.SelectedIndex == 2)
                {
                    String     Query = "SELECT *FROM MostrarAgentes WHERE [Estado]='Activo' AND [Nombre] like'" + Cad + "'";
                    MetodosNav nav   = new MetodosNav();
                    nav.Buscar(Query, dataGridView2);
                }
                else if (comboBox2.SelectedIndex == 3)
                {
                    String     Query = "SELECT *FROM MostrarAgentes WHERE [Estado]='Activo' AND [Apellido] like'" + Cad + "'";
                    MetodosNav nav   = new MetodosNav();
                    nav.Buscar(Query, dataGridView2);
                }
            } ///
        }     //
 private void DetallesAgente_Load(object sender, EventArgs e)
 {
     comboBox1.SelectedIndex = 0;
     m = new MetodosCasting();
     m.MostrarDetalleAgente(Id, nombre, apellido, numEmpleado, ced, dir);
 }
示例#13
0
 private void EditarAgente_Load(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     m.MostrarAgentes(dataGridView1);
 }
示例#14
0
        private void textBox1_KeyUp(object sender, KeyEventArgs e)
        {
            if (textBox1.Text.Trim().Equals(""))
            {
                m = new MetodosCasting();
                m.VerCastings(dataGridView1);
                return;
            }
            else
            {
                String Cad = "%"+textBox1.Text+"%";

                if (comboBox1.SelectedIndex == 0)
                {
                    String Query = "SELECT *FROM VistaCasting WHERE [Nombre] like '" +Cad+ "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);
                }
                else if (comboBox1.SelectedIndex == 1)
                {
                    String Query = "SELECT *FROM VistaCasting WHERE [Costo] like '" +Cad+ "'";
                    MetodosNav nav = new MetodosNav();
                    nav.Buscar(Query, dataGridView1);
                }

            }
        }
示例#15
0
 private void verPruebas_Load(object sender, EventArgs e)
 {
     MetodosCasting m = new MetodosCasting();
     m.MostrarPruebas(Id, dataGridView1);
     Estado.Text ="Id de fase: "+ Id.ToString();
 }
 private void textBox1_KeyUp(object sender, KeyEventArgs e)
 {
     m = new MetodosCasting();
     if (comboBox1.SelectedIndex==0){ m.ClienteTipo(textBox1, dataGridView1);
     } else if (comboBox1.SelectedIndex == 1) { m.ClienteNombre(textBox1, dataGridView1); }
 }
 private void ContratarCasting_Load(object sender, EventArgs e)
 {
     m = new MetodosCasting();
     m.MostrarClientes(dataGridView1);
     m.MostrarAgentesActivos(dataGridView2);
 }
示例#18
0
 private void button1_Click(object sender, EventArgs e)
 {
     m = new MetodosCasting();
     m.GuardarFase(Id, Convert.ToInt32(textBox1.Text));
     this.Hide();
 }
示例#19
0
 private void verCastings_Load(object sender, EventArgs e)
 {
     m = new MetodosCasting();
     m.VerCastings(dataGridView1);
 }
 private void ContratarCasting_Load(object sender, EventArgs e)
 {
     m = new MetodosCasting();
     m.MostrarClientes(dataGridView1);
     m.MostrarAgentesActivos(dataGridView2);
 }
示例#21
0
 private void Pruebas_Load(object sender, EventArgs e)
 {
     m = new MetodosCasting();
     m.MostrarFase(Id, dataGridView1);
 }