Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var sbm = Master.SubMenuObject;

            if (!IsPostBack)
            {
                SetUpDropDownFCMode();
                oSearchFilter.SearchControl.Title = "Search Box";
                sbm.Title = "Sub Menu";
            }

            VisibilityManagerCore.Setup(ManageControlVisibility, SettingCategory);

            oSearchFilter.SearchControl.SetupSearch();

            GetData();

            //TabSetUp();

            FormatListControl(true);

            //lnkGridStyle.Text = "Classic";

            //Log4Net.LogInfo("ReleaseNotes Page Load","PageLoad",100);
            oSearchFilter.SearchControl.OnSearch += oSearchFilter_OnSearch;
            //Log4Net.LogInfo("End ReleaseNotes Page Load", "PageLoad", 100);
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var sbm = Master.SubMenuObject;

            if (!IsPostBack)
            {
                GetCurrentUserEmailAddress();
                oSearchFilter.SearchControl.Title = "Search Box";
                sbm.Title = "Sub Menu";
                oGroupList.SettingCategory = SettingCategory + "ListControl";
            }

            oSearchFilter.SearchControl.SetupSearch();

            VisibilityManagerCore.Setup(ManageControlVisibility, SettingCategory);

            oGroupList.Setup("", "", "", "", "Schedule", String.Empty, "ScheduleId",
                             true, GetData, GetColumns, oGroupList.SettingCategory, String.Empty, oSearchFilter.SearchControl, true);

            if (!IsPostBack)
            {
                oGroupList.ShowData(false, true);
            }

            oSearchFilter.SearchControl.OnSearch += oSearchFilter_OnSearch;
        }
Esempio n. 3
0
        // add dynamic controls ...
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            // inital load of page
            if (!IsPostBack)
            {
                SubMenuCore.Title = "Sub Menu";

                SettingCategory = PrimaryEntityKey + "DefaultView";

                SearchFilterCore.Title           = "Search Box";
                SearchFilterCore.SettingCategory = SettingCategory + "SearchControl";

                if (!IsDynamicSearchControl)
                {
                    SearchFilterCore.SetupSearch();
                }

                GroupListCore.SettingCategory = SettingCategory + "ListControl";

                MasterPageCore.Setup(PrimaryEntityKey);
            }

            // due to dynamic build we must re-establish child controls
            if (IsDynamicSearchControl)
            {
                SearchFilterCore.SetupSearch();
            }

            VisibilityManagerCore.Setup(ManageControlVisibility, SettingCategory);

            // will we loose pagiation capablitiy  ? // yes if we set it to false, we loose the pagination completely
            var blnReloadData = false;

            // TODO: upon intial load get data
            if (!IsPostBack)
            {
                var i = 0;

                // TODO: based on user perfernce coded ... however, for now
                blnReloadData = true;
            }

            //GroupListCore.Setup
            //(
            //		SearchFilterCore.GroupBy
            //	,   SearchFilterCore.GroupByDirection
            //	,	SearchFilterCore.SubGroupBy
            //	,   SearchFilterCore.DoesSubGroupByDirectionExist
            //	,	PrimaryEntityKey
            //	,	String.Empty
            //	,	PrimaryEntityIdColumn
            //	,	true
            //	,	GetData
            //	,	GetEntityColumns
            //	,	PrimaryEntityKey
            //	,	String.Empty
            //	,	SearchFilterCore
            //	,	blnReloadData
            //);

            // bind OnSearch
            SearchFilterCore.OnSearch += oSearchFilter_OnSearch;
        }