示例#1
0
        /// <summary>
        /// 点击确认时回调此方法
        /// </summary>
        /// <returns></returns>
        private void OnClickConfirm()
        {
            if (IsShow)
            {
                IsShow = false;

                if (Table != null && (FilterAction?.GetFilterConditions().Any() ?? false))
                {
                    Table.Filters[FieldKey] = FilterAction;
                    Table.OnFilterAsync?.Invoke();
                }
            }
        }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 internal async Task OnFilterAsync()
 {
     if (Table != null)
     {
         if (FilterAction.GetFilterConditions().Any())
         {
             Table.Filters[FieldKey] = FilterAction;
         }
         else
         {
             Table.Filters.Remove(FieldKey);
         }
         await Table.OnFilterAsync();
     }
 }
示例#3
0
        /// <summary>
        /// 点击确认时回调此方法
        /// </summary>
        /// <returns></returns>
        private async Task OnClickConfirm()
        {
            if (IsShow)
            {
                IsShow = false;

                if (Table != null && (FilterAction?.GetFilterConditions().Any() ?? false))
                {
                    Table.Filters[FieldKey] = FilterAction;
                    if (Table.OnFilterAsync != null)
                    {
                        await Table.OnFilterAsync();
                    }
                }
            }
        }