Esempio n. 1
0
    protected void btn_procesar_Click(object sender, EventArgs e)
    {
        SolicitudBC s = new SolicitudBC();

        try
        {
            string msj;
            if (s.ProcesarExcel(hf_codinterno.Value, user.ID, out msj))
            {
                utils.ShowMessage2(this, "procesa", "success");
            }
            else
            {
                utils.ShowMessage(this, msj, "error", false);
            }
        }
        catch (Exception ex)
        {
            utils.ShowMessage(this, ex.Message, "error", false);
        }
        finally
        {
            hf_codinterno.Value  = "";
            gv_listar.DataSource = null;
            gv_listar.DataBind();
            btn_procesar.Enabled = false;
        }
    }