Esempio n. 1
0
        public void ValidarExistenciaDeVigenciaDePlan(string rutCliente, string idPlan)
        {
            CmdBuscarContratoVigente myCommand = CmdBuscarContratoVigente.Crear(rutCliente, idPlan);

            myCommand.Ejecutar();
            if (myCommand.OcurrioError)
            {
                MessageBox.Show(myCommand.MensajeError.ToString(), "Error.", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.FalloValidacion = true;
                return;
            }
            if (myCommand.fueEncontrado)
            {
                MessageBox.Show(myCommand.MensajeBusqueda.ToString(), "Atención.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.FalloValidacion = true;
                return;
            }
            this.FalloValidacion = false;
        }
Esempio n. 2
0
        public void ValidarExistenciaDeVigenciaDePlan(string rutCliente, string idPlan)
        {
            CmdBuscarContratoVigente myCommand = CmdBuscarContratoVigente.Crear(rutCliente, idPlan);

            myCommand.Ejecutar();
            if (myCommand.OcurrioError)
            {
                MsgBox.Show(this.myForm, myCommand.MensajeError.ToString(), StringResources.TituloMensajes_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.FalloValidacion = true;
                return;
            }
            if (myCommand.fueEncontrado)
            {
                MsgBox.Show(this.myForm, myCommand.MensajeBusqueda.ToString(), StringResources.TituloMensajes_Atencion, MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.FalloValidacion = true;
                return;
            }
            this.FalloValidacion = false;
        }