Beispiel #1
0
        protected void SearchButtonClick(object sender, MCS.Web.WebControls.SearchEventArgs e)
        {
            this.gridMain.PageIndex = 0;

            this.searchBinding.CollectData();

            Util.SaveSearchCondition(e, this.DeluxeSearch, ThisPageSearchResourceKey, this.searchBinding.Data);

            this.InnerRefreshList();
        }
        /// <summary>
        /// 搜索按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void SearchButtonClick(object sender, MCS.Web.WebControls.SearchEventArgs e)
        {
            this.ProcessDescInfoDeluxeGrid.PageIndex = 0;

            this.searchBinding.CollectData();

            var bindData = searchBinding.Data as PageAdvancedSearchCondition;

            Util.SaveSearchCondition(e, this.DeluxeSearch, ThisPageSearchResourceKey, this.searchBinding.Data);

            this.InnerRefreshList();
        }
Beispiel #3
0
        protected void SearchButtonClick(object sender, MCS.Web.WebControls.SearchEventArgs e)
        {
            this.CurrentGrid.PageIndex = 0;
            Util.UpdateSearchTip(this.DeluxeSearch);

            //this.AdvanceSearchEnabled = this.DeluxeSearch.IsAdvanceSearching;

            this.searchBinding.CollectData();

            Util.SaveSearchCondition(e, this.DeluxeSearch, ThisPageSearchResourceKey, this.searchBinding.Data);

            this.InnerRefreshList();
        }
Beispiel #4
0
        protected void SearchButtonClick(object sender, MCS.Web.WebControls.SearchEventArgs e)
        {
            this.CurrentGrid.PageIndex = 0;
            Util.UpdateSearchTip(this.DeluxeSearch);

            //this.AdvanceSearchEnabled = this.DeluxeSearch.IsAdvanceSearching;

            // 说明:基本处理逻辑
            // 声明一个属性,可以是私有的,SearchCondition { get return WebUtils.GetViewStateValue("", ()null) set WebUtils.SetViewStateValue("", value) };
            // PageLoad时,if SearchCondition == null SearchCondition = new ();
            // searchBinding.Data = SearchCondition;
            // 最后在SearchButtonClick中,直接CollectData();
            this.searchBinding.CollectData();

            Util.SaveSearchCondition(e, this.DeluxeSearch, ThisPageSearchResourceKey, this.searchBinding.Data);

            this.InnerRefreshList();
        }
Beispiel #5
0
        /// <summary>
        /// 搜索事件方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="eventArgs"></param>
        private void SearchButtonClick(object sender, EventArgs eventArgs)
        {
            if (this._inputBox != null)
            {
                if (SearchField.IsNotEmpty() && InputText.IsNotEmpty())
                {
                    ReplaceWhereItem(SearchField, InputText, SearchFieldTemplate, true);
                }
            }

            DealWithSearchField();

            var newArgs = new SearchEventArgs();

            if (this.HasAdvanced)
            {
                newArgs.IsSaveCondition = this._saveConditionCheckBox.Checked;
                newArgs.ConditionName   = this._conditionNameBox.Text;
            }

            OnSearching(sender, newArgs);
        }
Beispiel #6
0
        protected void BtnSearchClick(object sender, MCS.Web.WebControls.SearchEventArgs e)
        {
            DeluxeSearch1.HasCategory = true;
            if (DeluxeSearch1.IsAdvanceSearching)
            {
                DeluxeSearch1.ClearWhereSqlClauses();
            }
            supplierGrid.Condition         = DeluxeSearch1.GetCondition();//GetSqlString();//ConnectiveSqlClauses.ToSqlString(TSqlBuilder.Instance);
            supplierGrid.LastQueryRowCount = -1;
            relativeLinkGroupGrid.SelectedKeys.Clear();
            relativeLinkGroupGrid.PageIndex = 0;
            relativeLinkGroupGrid.DataBind();

            if (e.IsSaveCondition && !string.IsNullOrEmpty(e.ConditionName))
            {
                UserCustomSearchCondition condition = new UserCustomSearchCondition()
                {
                    ID             = Guid.NewGuid().ToString(),
                    UserID         = DeluxeSearch1.User.ID,
                    ResourceID     = "12c2e9c8-a6e1-4e48-a3d2-17537c750272",
                    ConditionName  = e.ConditionName,
                    ConditiontType = "test",
                    CreateTime     = DateTime.Now
                };

                bindingControl.Data = new SupplierSearch();
                bindingControl.CollectData();

                condition.ConditionContent = JSONSerializerExecute.Serialize(bindingControl.Data);

                UserCustomSearchConditionAdapter.Instance.Update(condition);
            }

            DeluxeSearch1.UserCustomSearchConditions = UserCustomSearchConditionAdapter.Instance.Load(c =>
            {
                c.AppendItem("RESOURCE_ID", "12c2e9c8-a6e1-4e48-a3d2-17537c750272");
                c.AppendItem("CONDITION_TYPE", "test");
            });
        }
		protected void SearchButtonClick(object sender, SearchEventArgs e)
		{
			this.gridViewTask.PageIndex = 0;
			this.searchBinding.CollectData();

			Util.SaveSearchCondition(e, this.search1, ThisPageSearchResourceKey, this.searchBinding.Data);
			this.InnerRefreshList();
		}
 protected virtual void OnSearching(object sender, SearchEventArgs eventArgs)
 {
     if (null != Searching)
         Searching(sender, eventArgs);
 }
        /// <summary>
        /// 搜索事件方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="eventArgs"></param>
        private void SearchButtonClick(object sender, EventArgs eventArgs)
        {
            if (this._inputBox != null)
            {
                if (SearchField.IsNotEmpty() && InputText.IsNotEmpty())
                    ReplaceWhereItem(SearchField, InputText, SearchFieldTemplate, true);
            }

            DealWithSearchField();

            var newArgs = new SearchEventArgs();

            if (this.HasAdvanced)
            {
                newArgs.IsSaveCondition = this._saveConditionCheckBox.Checked;
                newArgs.ConditionName = this._conditionNameBox.Text;
            }

            OnSearching(sender, newArgs);
        }
Beispiel #10
0
        /// <summary>
        /// 处理Repeater控件中的事件
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        private void RepeaterItemCommand(object source, RepeaterCommandEventArgs e)
        {
            var args = new SearchEventArgs(e.CommandName, e.CommandArgument);

            if (args.ConditionKey.IsNotEmpty() && null != args.ConditionValue)
            {
                ReplaceWhereItem(args.ConditionKey, args.ConditionValue, false);
            }

            DealWithSearchField();

            OnSearching(source, args);
        }