Example #1
0
        private void txt_CodCliente_TextChanged(object sender, EventArgs e)
        {
            string[] datos;
            datos = new string[10];
            ClaseCapaLogicaCreacionDeCuentas cpl = new ClaseCapaLogicaCreacionDeCuentas();

            datos            = cpl.retornoDatosCliente(txt_CodCliente.Text);
            txt_nombreC.Text = datos[2];
            txt_apeC.Text    = datos[3];
        }
Example #2
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;
                }
            }
        }