示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    FillFeatureComboBox();
                }

                //Navigator
                if (Session["DataConfigurator"] == null)
                {
                    DataTable NavigatorTree = VSWebBL.SecurityBL.MenusBL.Ins.MenuTree("Configurator");
                    Session["DataConfigurator"] = NavigatorTree;
                    NavigatorTree            = VSWebBL.SecurityBL.MenusBL.Ins.MenuTree("Dashboard");
                    Session["DataDashboard"] = NavigatorTree;
                }

                ConfiguratorMenus.DataSource = (DataTable)Session["DataConfigurator"];
                ConfiguratorMenus.DataBind();

                DashboardMenus.DataSource = (DataTable)Session["DataDashboard"];
                DashboardMenus.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
            finally { }
        }
示例#2
0
        protected void FeaturesComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            string selValue;

            selValue = FeaturesComboBox.SelectedItem.Text;
            DataTable ConfigDt  = VSWebBL.SecurityBL.MenusBL.Ins.SelectedMenuTree(selValue, "Configurator");
            DataTable DashBrdDT = VSWebBL.SecurityBL.MenusBL.Ins.SelectedMenuTree(selValue, "Dashboard");

            ConfiguratorMenus.UnselectAll();
            DashboardMenus.UnselectAll();
            SelectTree(ConfiguratorMenus, ConfigDt);
            SelectTree(DashboardMenus, DashBrdDT);
        }