Пример #1
0
        private void QueryPanelQueryConditionChanged(object sender, QueryConditionChangedEventArgs e)
        {
            _begigDate = e.BeginTime;
            _endDate = e.EndTime;
            _consumer = e.Consumer;
            _accountType = e.AccountType;
            _keyword = e.Keyword;
            _showAccessorial = e.ShowAccessorial;
            if(e.AccountCategory != _accountCategory)
            {
                _accountCategory = e.AccountCategory;
                RecordsPager.PageIndex = 0;
            }

            QueryRecords();
        }
Пример #2
0
        private void RiseQueryConditionChangedEvent()
        {
            if (QueryConditionChanged != null)
            {
                var consumerType = CmbAccountType.SelectedItem as AccountType;
                var args = new QueryConditionChangedEventArgs
                {
                    BeginTime = DpBeginDate.SelectedDate,
                    EndTime = DpEndDate.SelectedDate,
                    Consumer = CmbConsumeUser.SelectedItem as UserInfo,
                    AccountType = consumerType,
                    Keyword = _keyword,
                    AccountCategory = _accountCategory,
                    ShowAccessorial = CkbAccessorial.IsChecked == true
                };

                QueryConditionChanged(this, args);
            }
        }