private void btnAceptar_Click(object sender, EventArgs e) { string opcion; opcion = comOpcion.Text; switch (opcion) { case "valor gastado por cada cliente pospago ordenados de menor a mayor": ControlBL objControlBL = new ControlBL(); DataTable objControl = objControlBL.Reporte1();; if (objControl != null) { dgvDatos.DataSource = objControl; } break; case "linea pospago que han enviado mensajes y cuantos": ControlBL objControlBL1 = new ControlBL(); DataTable objControl1 = objControlBL1.Reporte2();; if (objControl1 != null) { dgvDatos.DataSource = objControl1; } break; } }
private void btnEjecF2_Click(object sender, EventArgs e) { ControlBL objControl = new ControlBL(); int num = objControl.funclieCiudadMas(int.Parse(txtidCiudad.Text)); txtResutlF2.Text = num.ToString(); }
private void btnEjecF3_Click(object sender, EventArgs e) { ControlBL objControl = new ControlBL(); int num = objControl.funclieTotRecargas(int.Parse(txtidCliente.Text)); txtResutlF3.Text = num.ToString(); }
private void button1_Click(object sender, EventArgs e) { ControlBL objControl = new ControlBL(); int num = objControl.funMinutosCliente(int.Parse(textBox1.Text)); txtResutlF1.Text = num.ToString(); }