Example #1
0
 protected void btnEliminar_Click(object sender, EventArgs e)
 {
     _funcionario_id = Convert.ToInt32(Request.QueryString["funcionario_id"]);
     if (_Fnc_FuncionariosBL.DeshabilitarFuncionario(_funcionario_id))
     {
         ClientScript.RegisterStartupScript(this.GetType(), "myScript", "ActualizoExito();cerrarYActualizar();", true);
     }
     else
     {
         ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "jAlert", "jAlert('Error al actualizar registro, contactate con el administrador.');", true);
     }
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    _func_id = Convert.ToInt32(Request.QueryString["func_id"]);
            int    _act     = Convert.ToInt32(Request.QueryString["act"]);
            string _texto   = Request.QueryString["texto"];

            if (_texto != null)
            {
                if (_act == 1)
                {
                    txtTag.Text = _texto;
                    _funcioBL.DeshabilitarFuncionario(_func_id);
                }
                else
                {
                    txtTag.Text = _texto;
                    _funcioBL.HabilitarFuncionario(_func_id);
                }
                //txtTag.Text = _texto;
                // generarTabla(_texto);
            }
        }