Esempio n. 1
0
        protected void MainMenu_ItemClick(object source, NavBarItemEventArgs e)
        {
            Session["GroupIndex"]   = e.Item.Group.Index;
            Session["ItemIndex"]    = e.Item.Index;
            e.Item.Selected         = true;
            Session["Submenu"]      = "";
            Session["SubItemIndex"] = null;

            Session["Submenu"] = e.Item.Name;
            SubMenu.Items.Clear();
            SubMenu.Visible = false;

            Session["MenuID"] = "";

            DataTable dt = (DataTable)Session["NavigatorTree"];

            DataRow[] dr = dt.Select("RefName='" + e.Item.Name + "'");
            if (dr.Length > 0)
            {
                Session["MenuID"] = dr[0]["ID"].ToString();
                if (dr[0]["PageLink"].ToString() != "")
                {
                    Response.Redirect(dr[0]["PageLink"].ToString());
                }
            }
        }
Esempio n. 2
0
        protected void CustomerMenu_ItemClick(object source, NavBarItemEventArgs e)
        {
            Session["GroupIndex"]   = e.Item.Group.Index;
            Session["ItemIndex"]    = e.Item.Index;
            e.Item.Selected         = true;
            Session["SubMenu"]      = "";
            Session["SubItemIndex"] = null;
            if (e.Item.Name == "Customer")
            {
                Session["Customer"]    = "";
                Session["Contacts"]    = "";
                Session["Notes"]       = "";
                Session["Tickets"]     = "";
                Session["VersionInfo"] = "";
                Response.Redirect("Customer.aspx");
            }

            if (e.Item.Name == "Contacts")
            {
                Response.Redirect("ContactSearch.aspx");
            }

            if (e.Item.Name == "Notes")
            {
                Response.Redirect("NotesSearch.aspx");
            }
            if (e.Item.Name == "Tickets")
            {
                Response.Redirect("TicketsSearch.aspx");
            }
            if (e.Item.Name == "VersionInfo")
            {
                Response.Redirect("VersionInfoSearch.aspx");
            }
        }
Esempio n. 3
0
        protected void nbMain_ItemClick(object source, NavBarItemEventArgs e)
        {
            try
            {
                string host = HttpContext.Current.Request.UrlReferrer.GetLeftPart(UriPartial.Authority) + Request.ApplicationPath;

                if (e.Item.Name == "EstadoCuenta")
                {
                    Session["ReportName"] = "EstadoCuenta";
                    Session["IdAsignacionEstadoCuenta"] = "";
                    Response.Redirect(host + "/Reportes/ReportViewer.aspx");
                }
                if (e.Item.Name == "RegistrarAsignacion")
                {
                    Session["RegistrarAsignacion"] = 0;
                    Response.Redirect(host + "/Asignaciones/RegistrarAsignacion.aspx");
                }
                if (e.Item.Name == "RegistrarPago")
                {
                    Session["IdAsignacionPago"] = "0";
                    Session["IdPago"]           = "0";
                    Response.Redirect(host + "/Pagos/RegistrarPago.aspx");
                }
            }
            catch (Exception Ex)
            {
                FG.Controlador_Error(Ex, Page.Response);
            }
        }
Esempio n. 4
0
 protected void ASPxNavBar1_ItemClick(object source, NavBarItemEventArgs e)
 {
 }
 protected void ASPxNavBar1_ItemClick(object source, NavBarItemEventArgs e)
 {
 }
 protected void SidePanelNavBar_ItemClick(object source, NavBarItemEventArgs e)
 {
 }