protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        L_QuejasAdmin logi = new L_QuejasAdmin();
        U_AuxQuejAdm  rep  = logi.page_load(Session["Sesion"], GridView1.Rows.Count, TableRowSection.TableHeader, Session["sesion"]);

        GridView1.UseAccessibleHeader    = rep.AcceHeader;
        GridView1.HeaderRow.TableSection = (TableRowSection)rep.Header1;
        int num = rep.Num;
        //Seteando Idiomas
        L_Idioma  idiot      = new L_Idioma();
        Object    sesidioma  = Session["idiomases"];
        Int32     formulario = 29;
        Int32     idiom      = Convert.ToInt32(sesidioma);
        Hashtable compIdioma = new Hashtable();

        idiot.mostraridioma(formulario, idiom, compIdioma);
        try
        {
            this.quej.InnerText      = compIdioma["quej"].ToString();
            this.comprom.InnerText   = compIdioma["comprom"].ToString();
            this.adm_pqr.InnerText   = compIdioma["adm_pqr"].ToString();
            this.emp_pqr.InnerText   = compIdioma["emp_pqr"].ToString();
            this.clien_pqr.InnerText = compIdioma["clien_pqr"].ToString();

            //this.bloq_perfi.InnerText = compIdioma["bloq_perfi"].ToString();
        }
        catch (Exception ex)
        {
        }
        Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + rep.Redir + "');", true);
    }
        public U_AuxQuejAdm pageLoad(Object Session, int GV1_Count, Object sesion, Object Header)
        {
            U_AuxQuejAdm rep = new U_AuxQuejAdm();

            if (Session == null)
            {
                rep.AcceHeader = false;
                rep.Redir      = "LoginUsr.aspx";
                rep.Num        = 0;
                //Response.Redirect("LoginUsr.aspx");
            }
            else
            {
                if (GV1_Count > 0)
                {
                    rep.AcceHeader = true;
                    rep.Header1    = Header;
                    rep.Redir      = "0";
                }
                int num = int.Parse(((DataTable)(sesion)).Rows[0]["idTipo"].ToString());
                rep.Num   = num;
                rep.Redir = "0";
                if (int.Parse(((DataTable)(sesion)).Rows[0]["idTipo"].ToString()) == 1)
                {
                }
                else
                {
                    rep.Num        = 0;
                    rep.AcceHeader = false;
                    rep.Redir      = "LoginUsr.aspx";
                    //Response.Redirect("LoginUsr.aspx");
                }
            }
            return(rep);
        }
Example #3
0
        public U_AuxQuejAdm pageLoad(Object Session, Object sesion, int GV_count)
        {
            U_AuxQuejAdm repo = new U_AuxQuejAdm();

            if (Session == null)
            {
                repo.Redir      = "LoginUsr.aspx";
                repo.Num        = 0;
                repo.AcceHeader = false;
                //Response.Redirect("LoginUsr.aspx");
            }
            else
            {
                if (int.Parse(((DataTable)(sesion)).Rows[0]["idTipo"].ToString()) == 1)
                {
                    if (GV_count > 0)
                    {
                        repo.AcceHeader = true;
                        repo.Redir      = "0";
                        repo.Num        = 0;
                        //GridView1.UseAccessibleHeader = true;
                        //GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
                    }
                    int num = int.Parse(((DataTable)(sesion)).Rows[0]["idTipo"].ToString());
                }
                else
                {
                    repo.AcceHeader = false;
                    repo.Redir      = "LoginUsr.aspx";
                    repo.Num        = 0;
                    //Response.Redirect("LoginUsr.aspx");
                }
            }
            return(repo);
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        L_MostrTablaEmp log = new L_MostrTablaEmp();
        U_AuxQuejAdm    res = log.pageLoad(Session["Sesion"], Session["sesion"], GridView1.Rows.Count);

        GridView1.UseAccessibleHeader    = true;
        GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;

        //Seteando Idiomas
        L_Idioma  idiot      = new L_Idioma();
        Object    sesidioma  = Session["idiomases"];
        Int32     formulario = 27;
        Int32     idiom      = Convert.ToInt32(sesidioma);
        Hashtable compIdioma = new Hashtable();

        idiot.mostraridioma(formulario, idiom, compIdioma);
        try
        {
            this.adm.InnerText      = compIdioma["adm"].ToString();
            this.cat.InnerText      = compIdioma["cat"].ToString();
            this.cat2.InnerHtml     = compIdioma["cat"].ToString() + " <small id='comp_our' runat='server'>" + compIdioma["comp_our"].ToString() + "</small>";
            this.all_cat.InnerText  = compIdioma["all_cat"].ToString();
            this.reg_cat.InnerText  = compIdioma["reg_cat"].ToString();
            this.Button2.Text       = compIdioma["Button2"].ToString();
            this.Button1.Text       = compIdioma["Button1"].ToString();
            this.vent_cat.InnerText = compIdioma["vent_cat"].ToString();
            this.Label1.Text        = compIdioma["Label1"].ToString();
            this.NombreCategoria.Attributes.Remove("placeholder");
            this.NombreCategoria.Attributes.Add("placeholder", compIdioma["Nomb_Cat"].ToString());
            this.GridView2.Columns[1].HeaderText = compIdioma["GV2_Nom"].ToString();
            this.GridView1.Columns[0].HeaderText = compIdioma["GV2_Nom"].ToString();
            this.GridView1.Columns[1].HeaderText = compIdioma["GV1_N_EMP"].ToString();
            this.GridView1.Columns[2].HeaderText = compIdioma["GV1_N_VEN"].ToString();
            this.GridView1.Columns[3].HeaderText = compIdioma["GV1_T_VEN"].ToString();
            //this.bloq_perfi.InnerText = compIdioma["bloq_perfi"].ToString();
        }
        catch (Exception ex)
        {
        }
        Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + res.Redir + "');", true);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
        L_MostrTablaEmp log = new L_MostrTablaEmp();

        //Seteando Idiomas
        L_Idioma  idiot      = new L_Idioma();
        Object    sesidioma  = Session["idiomases"];
        Int32     formulario = 37;
        Int32     idiom      = Convert.ToInt32(sesidioma);
        Hashtable compIdioma = new Hashtable();

        idiot.mostraridioma(formulario, idiom, compIdioma);
        try
        {
            this.emp.InnerText     = compIdioma["emp"].ToString();
            this.all.InnerText     = compIdioma["all"].ToString();
            this.usr_emp.InnerHtml = compIdioma["usr_emp"].ToString() + " <small id='our_com' runat='server'> " + compIdioma["our_com"].ToString() + "</small>";
            this.empres.InnerText  = compIdioma["empres"].ToString();
            this.LB_Emp_Reg.Text   = compIdioma["LB_Emp_Reg"].ToString();
            this.LB_Wel.Text       = compIdioma["LB_Wel"].ToString();
            this.GridView1.Columns[0].HeaderText = compIdioma["GV_Nom"].ToString();
            this.GridView1.Columns[1].HeaderText = compIdioma["GV_Tel"].ToString();
            this.GridView1.Columns[2].HeaderText = compIdioma["GV_Corr"].ToString();
            this.GridView1.Columns[3].HeaderText = compIdioma["GV_Dire"].ToString();
            this.GridView1.Columns[4].HeaderText = compIdioma["GV_Nit"].ToString();
            this.GridView1.Columns[5].HeaderText = compIdioma["GV_Calif"].ToString();
            this.GridView1.Columns[6].HeaderText = compIdioma["GV_Mem"].ToString();
            //this.GridView1.Columns[5].HeaderText = compIdioma["GV_Dir"].ToString();
        }
        catch (Exception ex)
        { }

        U_AuxQuejAdm res = log.pageLoad(Session["Sesion"], Session["sesion"], GridView1.Rows.Count);

        GridView1.UseAccessibleHeader    = true;
        GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
        Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + res.Redir + "');", true);
    }