private void button1_Click_1(object sender, EventArgs e) { List <Entidades.Seccion> lista = DAO.Seccion.buscarSeccion(grupo); int ERROR = buscarErrores(lista); if (ERROR == ERROR_01) { MessageBox.Show("Las secciones seleccionadas presentan distintos paquetes entre ellas"); return; } if (ERROR == ERROR_02) { MessageBox.Show("Las secciones seleccionadas presentan distintos paquetes a las ya incluidas"); return; } if (ERROR == ERROR_03) { MessageBox.Show("Las secciones seleccionadas presentan distintas posiciones entre ellas"); return; } if (ERROR == ERROR_04) { MessageBox.Show("Las secciones seleccionadas presentan distintas posiciones a las ya incluidas"); return; } try { CrearCedulaIdentidad m = new CrearCedulaIdentidad(DAO.DetalleAplicacion.getDetallePaquetePosicion(lista[0].Paquete, lista[0].Posicion + 1), lista, false, this); // dataGridView1.Rows.Clear(); m.ShowDialog(); } catch { } }
private void button1_Click(object sender, EventArgs e) { List <Entidades.Seccion> lista = DAO.Seccion.buscarSeccion(grupo); try { CrearCedulaIdentidad m = new CrearCedulaIdentidad(DAO.DetalleAplicacion.getDetallePaquetePosicion(lista[0].Paquete, lista[0].Posicion + 1), lista, false, this); m.ShowDialog(); } catch { } }
private void otraAplicacionToolStripMenuItem_Click(object sender, EventArgs e) { if (listActual.Count == 0) { return; } Entidades.Aplicacion a = cargarNuevaAplicacion(); if (a != null) { CrearCedulaIdentidad m = new CrearCedulaIdentidad(a, listActual, true, this); m.ShowDialog(); } else { MessageBox.Show(this, "Informacion incompleta", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void holaToolStripMenuItem_Click(object sender, EventArgs e) { if (buscarCoincidencia()) { try { CrearCedulaIdentidad m = new CrearCedulaIdentidad(DAO.DetalleAplicacion.getDetallePaquetePosicion(listActual[0].Paquete, listActual[0].Posicion + 1), listActual, false, this); m.ShowDialog(); } catch { MessageBox.Show(this, "Informacion incompleta", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show(this, "Las secciones deben de tener la misma posicion, grupo y etapa o puede que esten bloqueadas", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }