using Muchinfo.MTPClient.Infrastructure.Cache; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Muchinfo.MTPClient.Account.Views { /// /// QueryTaAmountLog.xaml 的交互逻辑 /// public partial class QueryTaAmountLog : UserControl { public QueryTaAmountLog() { InitializeComponent(); var AcountList = CacheManager.CacheTAAcountList.Select(x => x.FundsAccounts.AccountId.ToString()).ToList(); if (!(AcountList.Count > 1)) { this.LogDataGrid.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; } rbCurChecked.IsChecked = true; rbHisChecked.Checked += rbHisChecked_Checked; rbHisChecked.Unchecked += rbHisChecked_Unchecked; } private void Title_OnKeyUp(object sender, KeyEventArgs e) { //使用KeyUp,阻止键盘精灵弹出 e.Handled = true; } private void rbHisChecked_Checked(object sender, RoutedEventArgs e) { xamlDate.Visibility = Visibility.Visible; xamlDateTime.Visibility = Visibility.Visible; xamlDateEnd.Visibility = Visibility.Visible; xamlDateTo.Visibility = Visibility.Visible; } private void rbHisChecked_Unchecked(object sender, RoutedEventArgs e) { xamlDate.Visibility = Visibility.Hidden; xamlDateTime.Visibility = Visibility.Hidden; xamlDateEnd.Visibility = Visibility.Hidden; xamlDateTo.Visibility = Visibility.Hidden; } } }