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(); }
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(); }
internal static void SaveSearchCondition(MCS.Web.WebControls.SearchEventArgs e, MCS.Web.WebControls.DeluxeSearch control, string pageKey, object dataToSave) { if (e.IsSaveCondition && string.IsNullOrEmpty(e.ConditionName) == false) { UserCustomSearchCondition condition = Util.NewSearchCondition(pageKey, "Default", e.ConditionName); condition.ConditionContent = JSONSerializerExecute.Serialize(dataToSave); UserCustomSearchConditionAdapter.Instance.Update(condition); control.UserCustomSearchConditions = DbUtil.LoadSearchCondition(pageKey, "Default"); } }
protected void SearchButtonClick(object sender, MCS.Web.WebControls.SearchEventArgs e) { this.gridMain.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(); }