Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(SearchControlName))
                {
                    ApplicationCommon.CheckUserPreferenceCategoryExists(SearchControlName, "Search Control Name");
                }
                else
                {
                    throw new Exception("Search control is not named");
                }
                var autoSearchOn = ApplicationCommon.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.AutoSearchOn, SearchControlName);

                if (autoSearchOn)
                {
                    drpSearchConditionSystemEntityType.AutoPostBack = true;
                }
                else
                {
                    drpSearchConditionSystemEntityType.AutoPostBack = false;
                }

                var systemEntityTypeData = Framework.Components.Core.SystemEntityType.GetList(SessionVariables.AuditId);
                LoadDropDown(systemEntityTypeData, drpSearchConditionSystemEntityType, Framework.Components.Core.SystemEntityType.DataColumns.EntityName, Framework.Components.Core.SystemEntityType.DataColumns.SystemEntityTypeId);
            }
        }