public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }

            if (textBoxIdClienteFact.Text == "")
            {
                ErrorEB.SetError(textBoxIdClienteFact, "Ingrese el ID");


                noError = false;
            }

            if (textBoxNombreClienteFact.Text == "")
            {
                ErrorEB.SetError(textBoxNombreClienteFact, "Ingrese el el nombre");


                noError = false;
            }

            return(noError);
        }
        public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }
            if (txtUser.Text == "")
            {
                ErrorEB.SetError(txtUser, "Ingrese su Usuario");


                noError = false;
            }


            if (txtPwd.Text == "")
            {
                ErrorEB.SetError(txtPwd, "Ingrese su Contraseña");


                noError = false;
            }



            return(noError);
        }
Exemplo n.º 3
0
        public bool validarEBc()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }

            if (textBoxCodigoRbuscar.Text == "")
            {
                ErrorEB.SetError(textBoxCodigoRbuscar, "Ingrese el codigo de Ruta");


                noError = false;
            }

            if (textBox1.Text == "")
            {
                ErrorEB.SetError(textBox1, "Ingrese el ID Alumno");


                noError = false;
            }


            if (textBox3.Text == "")
            {
                ErrorEB.SetError(textBox3, "Ingrese el Nombre del Alumno");


                noError = false;
            }



            return(noError);
        }
Exemplo n.º 4
0
        public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }

            if (textBoxNombre.Text == "")
            {
                ErrorEB.SetError(textBoxNombre, "Ingrese  el Nombre");

                noError = false;
            }

            if (textBoxId.Text == "")
            {
                ErrorEB.SetError(textBoxId, "Ingrese  el ID");
                noError = false;
            }

            if (textBoxtelefono.Text == "")
            {
                ErrorEB.SetError(textBoxtelefono, "Ingrese  el telefono");
                noError = false;
            }
            if (textBoxEmergencia.Text == "")
            {
                ErrorEB.SetError(textBoxEmergencia, "Ingrese  el  Numero de Emergencia");
                noError = false;
            }
            if (textBoxCorreo.Text == "")
            {
                ErrorEB.SetError(textBoxCorreo, "Ingrese  el Correo");
                noError = false;
            }
            if (textBoxDireccion.Text == "")
            {
                ErrorEB.SetError(textBoxDireccion, "Ingrese   la direccion");
                noError = false;
            }



            if (comboBox1.Text == "")
            {
                ErrorEB.SetError(comboBox1, "Elija   el Puesto");
                noError = false;
            }

            if (textBoxPuesto.Text == "")
            {
                ErrorEB.SetError(textBoxPuesto, "Elija el puesto");
                noError = false;
            }

            if (radioButtonSi.Checked == true)
            {
                if (textBoxUsuario.Text == "")
                {
                    ErrorEB.SetError(textBoxUsuario, "Ingrese el Usuario");
                }

                if (textBoxContrasena.Text == "")
                {
                    ErrorEB.SetError(textBoxContrasena, "Ingrese la Contraseña");
                }
            }


            return(noError);
        }
Exemplo n.º 5
0
        public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }

            if (textBoxIdEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxIdEmpleadoMod, "Ingrese el ID");


                noError = false;
            }

            if (textBoxNombreEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxNombreEmpleadoMod, "Ingrese el  Nombre ");


                noError = false;
            }

            if (textBoxDireccionEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxDireccionEmpleadoMod, "Ingrese la Direccion ");


                noError = false;
            }

            if (textBoxCorreoEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxCorreoEmpleadoMod, "Ingrese el Correo ");


                noError = false;
            }

            if (textBoxUsuarioEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxUsuarioEmpleadoMod, "Ingrese el Usuario ");


                noError = false;
            }

            if (textBoxTelefonoEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxTelefonoEmpleadoMod, "Ingrese el Telefono ");


                noError = false;
            }

            if (textBoxTelefonoEmergenciaEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(textBoxTelefonoEmergenciaEmpleadoMod, "Ingrese el Telefono de Emergencia ");


                noError = false;
            }

            if (comboBoxPuestoEmpleadoMod.Text == "")
            {
                ErrorEB.SetError(comboBoxPuestoEmpleadoMod, "Ingrese elija el Puesto ");


                noError = false;
            }



            return(noError);
        }
        public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }

            if (checkBox1.Checked == false)
            {
                ErrorEB.SetError(checkBox1, "Debe entregar sertificado de notas");


                noError = false;
            }

            if (checkBox2.Checked == false)
            {
                ErrorEB.SetError(checkBox2, "Debe entregar sertificado de notas");


                noError = false;
            }

            if (checkBox3.Checked == false)
            {
                ErrorEB.SetError(checkBox3, "Debe entregar constancia de conducta");


                noError = false;
            }

            if (checkBox4.Checked == false)
            {
                ErrorEB.SetError(checkBox4, "Debe entregar Fotografia");


                noError = false;
            }



            if (textBoxIdPrimer.Text == "")
            {
                ErrorEB.SetError(textBoxIdPrimer, "Ingrese  el ID");


                noError = false;
            }

            if (textBoxNombrePrimer.Text == "")
            {
                ErrorEB.SetError(textBoxNombrePrimer, "Ingrese  el Nombre");

                noError = false;
            }

            if (textBoxLugarPrimer.Text == "")
            {
                ErrorEB.SetError(textBoxLugarPrimer, "Ingrese  lugar de Nacimiento");

                noError = false;
            }

            if (textBoxTelefonoAlumno.Text == "")
            {
            }

            if (textBoxDireccionPrimer.Text == "")
            {
                ErrorEB.SetError(textBoxDireccionPrimer, "Ingrese  la Direccion");

                noError = false;
            }

            if (comboBoxGenero.Text == "")
            {
                ErrorEB.SetError(comboBoxGenero, "Elija Genero");

                noError = false;
            }

            if (textBoxRetrasada.Text == "" && radioButton1.Checked == true)
            {
                ErrorEB.SetError(textBoxRetrasada, "Ingrese Materia Retrasada");

                noError = false;
            }

            if (textBoxTPA.Text == "" && radioButton3.Checked == true)
            {
                ErrorEB.SetError(textBoxTPA, "Ingrese Materia de TPA");

                noError = false;
            }

            if (textBoxIdEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxIdEncargado, "Ingrese ID del Primer Encargado");

                noError = false;
            }

            if (textBoxNombreEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxNombreEncargado, "Ingrese Nombre del Primer encargado");

                noError = false;
            }

            if (textBoxDireccionEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxDireccionEncargado, "Ingrese la Direccion del Encargado ");

                noError = false;
            }

            if (textBoxCelularEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxCelularEncargado, "Ingrese el Celular de Encargado ");

                noError = false;
            }

            if (textBoxTelefonoEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxTelefonoEncargado, "Ingrese el Telefono de Encargado ");

                noError = false;
            }

            if (textBoxCorreoEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxCorreoEncargado, "Ingrese el Correo de Encargado ");



                noError = false;
            }

            if (textBoxTelefonoAlumno.Text == "")
            {
                ErrorEB.SetError(textBoxTelefonoAlumno, "Ingrese telefono del Alumno ");



                noError = false;
            }



            if (textBoxTrabajoEncargado.Text == "")
            {
                ErrorEB.SetError(textBoxTrabajoEncargado, "Ingrese el el lugar de trabajo Encargado ");

                noError = false;
            }

            /////////////////////////////////////////////////////////////////////////////////////////////////////////////
            if (textBoxIdEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxIdEncargado2, "Ingrese ID del Primer Encargado");

                noError = false;
            }

            if (textBoxNombreEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxNombreEncargado2, "Ingrese Nombre del segundo encargado");

                noError = false;
            }

            if (textBoxDireccionEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxDireccionEncargado2, "Ingrese la Direccion del Encargado ");

                noError = false;
            }

            if (textBoxCelularEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxCelularEncargado2, "Ingrese el Celular de Encargado ");

                noError = false;
            }

            if (textBoxTelefonoEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxTelefonoEncargado2, "Ingrese el Telefono de Encargado ");

                noError = false;
            }

            if (textBoxCorreoEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxCorreoEncargado2, "Ingrese el Correo de Encargado ");

                noError = false;
            }

            if (textBoxTrabajoEncargado2.Text == "")
            {
                ErrorEB.SetError(textBoxTrabajoEncargado2, "Ingrese el el lugar de trabajo Encargado ");

                noError = false;
            }

            if (comboBoxGrado.Text == "")
            {
                ErrorEB.SetError(comboBoxGrado, "Ingrese el Grado ");

                noError = false;
            }

            if (comboBoxSeccion.Text == "")
            {
                ErrorEB.SetError(comboBoxSeccion, "Ingrese la Seccion ");

                noError = false;
            }

            if (textBoxInstituto.Text == "")
            {
                ErrorEB.SetError(textBoxInstituto, "Ingrese la Seccion ");

                noError = false;
            }



            return(noError);
        }
        public bool validarEB()
        {
            bool noError = true;
            int  count   = 0;


            count = count + 1;

            if (count != 0)
            {
                ErrorEB.Clear();
            }
            if (checkBoxNotas.Checked == false && radioButtonTraslado.Checked == true)
            {
                ErrorEB.SetError(checkBoxNotas, "Verifique que entrego Notas");


                noError = false;
            }

            if (checkBoxConducta.Checked == false && radioButtonTraslado.Checked == true)
            {
                ErrorEB.SetError(checkBoxConducta, "Verifique que  entrego Constancia de Conducta");


                noError = false;
            }

            if (checkBoxFoto.Checked == false)
            {
                ErrorEB.SetError(checkBoxFoto, "Verifique que  entrego  Foto");


                noError = false;
            }

            if (checkBoxFoto.Checked == false)
            {
                ErrorEB.SetError(textBoxProcedenciaReingreso, "");


                noError = false;
            }


            if (textBoxIdAlumnoReingreso.Text == "")
            {
                ErrorEB.SetError(textBoxIdAlumnoReingreso, "Ingrese  el ID del Alumno");


                noError = false;
            }

            if (comboBoxGrado2.Text == "")
            {
                ErrorEB.SetError(comboBoxGrado2, "Ingrese el Grado a Matricular");


                noError = false;
            }

            if (comboBoxSeccion2.Text == "")
            {
                ErrorEB.SetError(comboBoxSeccion2, "Ingrese la Seccion");


                noError = false;
            }

            if (textBoxRetrasadaReingreso.Text == "" && radioButtonMateriaSi.Checked == true)
            {
                ErrorEB.SetError(textBoxRetrasadaReingreso, "Ingrese la Materia Retrasada");


                noError = false;
            }

            if (textBoxTPAreingreso.Text == "" && radioButtonTPAsi.Checked == true)
            {
                ErrorEB.SetError(textBoxTPAreingreso, "Ingrese TPA");


                noError = false;
            }

            if (textBoxProcedenciaReingreso.Text == "" && radioButtonTraslado.Checked == true)
            {
                ErrorEB.SetError(textBoxProcedenciaReingreso, "Ingrese Instituto de Precedencia");


                noError = false;
            }



            return(noError);
        }