AmountQuetyView.xaml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <UserControl x:Class="Muchinfo.MTPClient.Bank.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. <Grid>
  21. <StackPanel Margin="0,4" Orientation="Horizontal">
  22. <TextBlock Margin="10,0"
  23. VerticalAlignment="Center"
  24. Foreground="{DynamicResource TextBlockForeground}"
  25. Text="{x:Static resource:Client_Resource.Content_Date}" />
  26. <DatePicker Width="120"
  27. HorizontalAlignment="Stretch"
  28. VerticalAlignment="Center"
  29. CalendarStyle="{DynamicResource CalendarStyle}"
  30. KeyUp="Title_OnKeyUp"
  31. SelectedDate="{Binding StartDateTime,
  32. Mode=TwoWay}"
  33. TabIndex="7" />
  34. <TextBlock Margin="5,0"
  35. VerticalAlignment="Center"
  36. Foreground="{DynamicResource TextBlockForeground}"
  37. Text="{x:Static resource:Client_Resource.Content_To}" />
  38. <DatePicker Width="120"
  39. HorizontalAlignment="Stretch"
  40. VerticalAlignment="Center"
  41. CalendarStyle="{DynamicResource CalendarStyle}"
  42. KeyUp="Title_OnKeyUp"
  43. SelectedDate="{Binding EndDateTime,
  44. Mode=TwoWay}"
  45. TabIndex="7" />
  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. <StackPanel Margin="0,4"
  56. HorizontalAlignment="Right"
  57. Orientation="Horizontal">
  58. <Button Width="70"
  59. Height="26"
  60. Margin="10,0"
  61. HorizontalAlignment="Right"
  62. Command="{Binding OutCommand}"
  63. Content="出金"
  64. IsEnabled="{Binding ButtonIsEnabled}"
  65. Style="{DynamicResource CommonButtonStyle}" />
  66. <Button Width="70"
  67. Height="26"
  68. Margin="10,0"
  69. HorizontalAlignment="Right"
  70. Command="{Binding InCommand}"
  71. Content="入金"
  72. IsEnabled="{Binding ButtonIsEnabled}"
  73. Style="{DynamicResource CommonButtonStyle}" />
  74. </StackPanel>
  75. </Grid>
  76. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  77. ItemsSource="{Binding AmountQueryList}"
  78. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  79. ScrollViewer.VerticalScrollBarVisibility="Auto"
  80. SelectedIndex="-1"
  81. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  82. <DataGrid.Columns>
  83. <DataGridTextColumn Width="*"
  84. MinWidth="100"
  85. Binding="{Binding CreateTime,
  86. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  87. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  88. Header="{x:Static resource:Client_Resource.Content_Time}" />
  89. <!--
  90. <DataGridTextColumn Width="*"
  91. MinWidth="100"
  92. Binding="{Binding CreateTime,
  93. StringFormat=\{0:HH:mm:ss\}}"
  94. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  95. Header="{x:Static resource:Client_Resource.Content_Time}" />
  96. -->
  97. <DataGridTextColumn Width="*"
  98. MinWidth="50"
  99. Binding="{Binding DisplayOperateType}"
  100. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  101. Header="{x:Static resource:Client_Resource.Content_OutInType}" />
  102. <DataGridTextColumn Width="*"
  103. MinWidth="150"
  104. Binding="{Binding ExchTicket}"
  105. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  106. Header="{x:Static resource:Client_Resource.Content_ExchTicket}" />
  107. <DataGridTextColumn Width="*"
  108. MinWidth="80"
  109. Binding="{Binding Amount}"
  110. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  111. Header="{x:Static resource:Client_Resource.Content_Amount}" />
  112. <DataGridTextColumn Width="*"
  113. MinWidth="80"
  114. Binding="{Binding CusBankName}"
  115. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  116. Header="{x:Static resource:Client_Resource.Content_Bank}" />
  117. <DataGridTextColumn Width="*"
  118. MinWidth="80"
  119. Binding="{Binding ResultDisplay}"
  120. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  121. Header="{x:Static resource:Client_Resource.Content_State}" />
  122. <DataGridTextColumn Width="*"
  123. Binding="{Binding Remark}"
  124. ElementStyle="{DynamicResource DataGridTextColumnStyle}"
  125. Header="{x:Static resource:Client_Resource.Content_Remark}" />
  126. </DataGrid.Columns>
  127. <!--
  128. <DataGrid.ContextMenu>
  129. <ContextMenu>
  130. <MenuItem Command="{Binding RefreshCommand}" Style="{DynamicResource CommonMenuItem}" Header="刷新" />
  131. </ContextMenu>
  132. </DataGrid.ContextMenu>
  133. -->
  134. </dataGrid:MuchinfoDataGrid>
  135. </Grid>
  136. </xctk:BusyIndicator>
  137. </UserControl>