AmountQueryView.xaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <UserControl x:Class="Muchinfo.MTPClient.Account.Views.AmountQuetyView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  7. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  8. Background="{DynamicResource MuchinfoBrush5}"
  9. DataContext="{Binding AmountQuery,
  10. Source={StaticResource Locator}}">
  11. <UserControl.Resources>
  12. <converters:BankInOutConverter x:Key="bankInOutConverter" />
  13. </UserControl.Resources>
  14. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_GetBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition />
  19. </Grid.RowDefinitions>
  20. <StackPanel Margin="0,4" Orientation="Horizontal">
  21. <!--<RadioButton VerticalAlignment="Center" Foreground="WhiteSmoke" Margin="10,5" IsChecked="True">当前</RadioButton>
  22. <RadioButton VerticalAlignment="Center" Foreground="WhiteSmoke" Margin="10,5">历史</RadioButton>
  23. <TextBlock Width="20"/>-->
  24. <TextBlock Margin="10,5"
  25. VerticalAlignment="Center"
  26. Foreground="{DynamicResource TextBlockForeground}"
  27. Text="{x:Static resource:Client_Resource.Content_Date}" />
  28. <DatePicker Width="120"
  29. HorizontalAlignment="Stretch"
  30. VerticalAlignment="Center"
  31. CalendarStyle="{DynamicResource CalendarStyle}"
  32. KeyUp="Title_OnKeyUp"
  33. SelectedDate="{Binding StartDateTime, Mode=TwoWay}"
  34. TabIndex="7" Margin="0,1" />
  35. <TextBlock Margin="5"
  36. VerticalAlignment="Center"
  37. Foreground="{DynamicResource TextBlockForeground}"
  38. Text="{x:Static resource:Client_Resource.Content_To}" />
  39. <DatePicker Width="120"
  40. HorizontalAlignment="Stretch"
  41. VerticalAlignment="Center"
  42. CalendarStyle="{DynamicResource CalendarStyle}"
  43. KeyUp="Title_OnKeyUp"
  44. SelectedDate="{Binding EndDateTime, Mode=TwoWay}"
  45. TabIndex="7" Margin="0,1" />
  46. <Button Width="70"
  47. Height="26"
  48. Margin="10,0"
  49. VerticalAlignment="Center"
  50. Command="{Binding QuetyCommand}"
  51. Content="{x:Static resource:Client_Resource.Button_Search}"
  52. IsEnabled="{Binding ButtonIsEnabled}"
  53. Style="{DynamicResource CommonButtonStyle}" />
  54. </StackPanel>
  55. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  56. ItemsSource="{Binding AmountQueryList}"
  57. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  58. ScrollViewer.VerticalScrollBarVisibility="Auto"
  59. SelectedIndex="-1"
  60. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  61. <DataGrid.Columns>
  62. <DataGridTextColumn Width="*"
  63. MinWidth="100"
  64. Binding="{Binding CreateTime,
  65. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  66. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  67. Header="{x:Static resource:Client_Resource.Content_Time}" />
  68. <!--
  69. <DataGridTextColumn Width="*"
  70. MinWidth="100"
  71. Binding="{Binding CreateTime,
  72. StringFormat=\{0:HH:mm:ss\}}"
  73. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  74. Header="{x:Static resource:Client_Resource.Content_Time}" />
  75. -->
  76. <DataGridTextColumn Width="*"
  77. MinWidth="50"
  78. Binding="{Binding DisplayOperateType}"
  79. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  80. Header="{x:Static resource:Client_Resource.Content_OutInType}" />
  81. <DataGridTextColumn Width="*"
  82. MinWidth="150"
  83. Binding="{Binding ExchTicket}"
  84. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  85. Header="{x:Static resource:Client_Resource.Content_ExchTicket}" />
  86. <DataGridTextColumn Width="*"
  87. MinWidth="80"
  88. Binding="{Binding Amount}"
  89. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  90. Header="{x:Static resource:Client_Resource.Content_Amount}" />
  91. <DataGridTextColumn Width="*"
  92. MinWidth="80"
  93. Binding="{Binding CusBankName}"
  94. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  95. Header="{x:Static resource:Client_Resource.Content_Bank}" />
  96. <DataGridTextColumn Width="*"
  97. MinWidth="80"
  98. Binding="{Binding ResultDisplay}"
  99. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  100. Header="{x:Static resource:Client_Resource.Content_State}" />
  101. <DataGridTextColumn Width="*"
  102. Binding="{Binding Remark}"
  103. ElementStyle="{DynamicResource DataGridTextColumnStyle}"
  104. Header="{x:Static resource:Client_Resource.Content_Remark}" />
  105. </DataGrid.Columns>
  106. <!--
  107. <DataGrid.ContextMenu>
  108. <ContextMenu>
  109. <MenuItem Command="{Binding RefreshCommand}" Style="{DynamicResource CommonMenuItem}" Header="刷新" />
  110. </ContextMenu>
  111. </DataGrid.ContextMenu>
  112. -->
  113. </dataGrid:MuchinfoDataGrid>
  114. </Grid>
  115. </xctk:BusyIndicator>
  116. </UserControl>