示例#1
0
        protected void Btn_redirije_Click(object sender, EventArgs e)
        {
            try
            {
                this.bank              = new Banco();
                this.bank.Opc          = 1;
                this.bank.Nombre_banco = this.txt_nombre_banco.Text;
                this.bank.Descripcion1 = this.txt_descripcion.Text;
                this.bank.Cuenta_iban  = this.txt_cuenta_iban.Text;
                this.bank.Estado       = "Activo";

                this.bankHelper = new bancoHelper(bank);
                this.bankHelper.Agrergar_Bancos();

                this.txt_nombre_banco.Text = null;
                this.txt_descripcion.Text  = null;
                this.txt_cuenta_iban.Text  = null;

                ScriptManager.RegisterStartupScript(this, typeof(Page), "mmensajeDeconfirmacion", "mensajeDeconfirmacion('" + "" + "');", true);
            }
            catch (Exception)
            {
                ScriptManager.RegisterStartupScript(this, typeof(Page), "mensajeError", "mensajeError('" + "" + "');", true);
            }
        }
示例#2
0
 public void buscaBanco()
 {
     try
     {
         this.bancos          = new Banco();
         this.bancos.Opc      = 3;
         this.bancos.Id_banco = id_banco;
         this.bancoshelper    = new bancoHelper(bancos);
         this.datos           = new DataTable();
         this.datos           = this.bancoshelper.Consulta_Bancos();
         if (datos.Rows.Count >= 0)
         {
             DataRow fila = datos.Rows[0];
             nombre_banco = fila["nombre_banco"].ToString();
         }
     }
     catch (Exception)
     {
         ScriptManager.RegisterStartupScript(this, typeof(Page), "mensajeError", "mensajeError('" + "" + "');", true);
     }
 }