Пример #1
0
        private void txt_CodigoACambiar_TextChanged(object sender, EventArgs e)
        {
            string[] datos = new string[9];
            ClaseCapaLogicaCreacionDeCuentas cl = new ClaseCapaLogicaCreacionDeCuentas();

            datos = cl.retornoDatosCuentas(txt_CodigoACambiar.Text);

            txtIdCuenta.Text       = datos[0];
            cdidcuenta             = datos[0];
            txtNumeroCuenta.Text   = datos[1];
            cdnumerocuenta         = datos[1];
            DtpFechaCreacion.Value = DateTime.Parse(datos[2]);
            txt_TipoCuenta.Text    = datos[4];
            txt_Empleado.Text      = datos[5];
            txt_Agencia.Text       = datos[6];
            txt_Moneda.Text        = datos[7];
            //txt_Organizacion.Text = datos[8];
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txtNumeroCuenta.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_cuenta", "numero_de_cuenta", txtNumeroCuenta.Text) == false && txtNumeroCuenta.Text != cdnumerocuenta)
                {
                    validacionNC = false;
                }
                else
                {
                    validacionNC = true;
                }
            }
            if (txtIdCuenta.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_cuenta", "id_cuenta", txtIdCuenta.Text) == false && txtIdCuenta.Text != cdidcuenta)
                {
                    validacionIDC = false;
                }
                else
                {
                    validacionIDC = true;
                }
            }
        }
Пример #2
0
        private void txtIdCuenta_TextChanged(object sender, EventArgs e)
        {
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txtIdCuenta.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_cuenta", "id_cuenta", txtIdCuenta.Text) == false && txtIdCuenta.Text != cdidcuenta)
                {
                    validacionIDC = false;
                }
                else
                {
                    validacionIDC = true;
                }
            }
        }
Пример #3
0
        private void txt_idOrg_TextChanged(object sender, EventArgs e)
        {
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txt_idOrg.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_organizacion_clientes", "id_organizacion", txt_idOrg.Text) == false)
                {
                    validacionNC = false;
                }
                else
                {
                    validacionNC = true;
                }
            }
            validacionBotones();
        }
        private void txt_codigo_TextChanged(object sender, EventArgs e)
        {
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txt_codigo.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_transferencia_externa", "id_transferencia_externa", txt_codigo.Text) == false)
                {
                    verificacionCodigo = false;
                }
                else
                {
                    verificacionCodigo = true;
                }
            }
            verificacionBotones();
        }
Пример #5
0
        private void txtNumeroCuenta_TextChanged(object sender, EventArgs e)
        {
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txtNumeroCuenta.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_cuenta", "numero_de_cuenta", txtNumeroCuenta.Text) == false)
                {
                    validacionNC = false;
                }
                else
                {
                    validacionNC = true;
                }
            }
            validacionBotones();
        }
Пример #6
0
        private void txt_ID_TextChanged(object sender, EventArgs e)
        {
            ClaseMultiusos cm = new ClaseMultiusos();

            if (txt_ID.Text != "")
            {
                if (cm.ValidarExistenciaDeCodigos("tbl_beneficiario_externo", "id_beneficiario_externo", txt_ID.Text) == false)
                {
                    validacionNC = false;
                }
                else
                {
                    validacionNC = true;
                }
            }
            validacionBotones();
        }