QueryTaAmountLog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <UserControl x:Class="Muchinfo.MTPClient.Account.Views.QueryTaAmountLog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  9. DataContext="{Binding TaAmountLog,
  10. Source={StaticResource Locator}}"
  11. mc:Ignorable="d">
  12. <!-- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_GetBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}"> -->
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition />
  17. </Grid.RowDefinitions>
  18. <StackPanel Margin="0,4"
  19. Orientation="Horizontal"
  20. Visibility="Collapsed">
  21. <RadioButton Name="rbCurChecked"
  22. Margin="10,5"
  23. VerticalAlignment="Center"
  24. Foreground="WhiteSmoke"
  25. IsChecked="true">
  26. 当前
  27. </RadioButton>
  28. <RadioButton Name="rbHisChecked"
  29. Margin="10,5"
  30. VerticalAlignment="Center"
  31. Foreground="WhiteSmoke"
  32. IsChecked="{Binding IsQueryHistory,
  33. Mode=TwoWay}">
  34. 历史
  35. </RadioButton>
  36. <TextBlock Width="20" />
  37. <TextBlock Name="xamlDate"
  38. Margin="10,0"
  39. VerticalAlignment="Center"
  40. Foreground="{DynamicResource TextBlockForeground}"
  41. Text="{x:Static resource:Client_Resource.Content_ExchangeDate}"
  42. Visibility="Hidden" />
  43. <DatePicker Name="xamlDateTime"
  44. Width="120"
  45. HorizontalAlignment="Stretch"
  46. VerticalAlignment="Center"
  47. CalendarStyle="{DynamicResource CalendarStyle}"
  48. KeyUp="Title_OnKeyUp"
  49. SelectedDate="{Binding StartDateTime,
  50. Mode=TwoWay}"
  51. TabIndex="7"
  52. Visibility="Hidden" />
  53. <TextBlock Name="xamlDateTo"
  54. Margin="5,0"
  55. VerticalAlignment="Center"
  56. Foreground="{DynamicResource TextBlockForeground}"
  57. Text="{x:Static resource:Client_Resource.Content_To}"
  58. Visibility="Hidden" />
  59. <DatePicker Name="xamlDateEnd"
  60. Width="120"
  61. HorizontalAlignment="Stretch"
  62. VerticalAlignment="Center"
  63. CalendarStyle="{DynamicResource CalendarStyle}"
  64. KeyUp="Title_OnKeyUp"
  65. SelectedDate="{Binding EndDateTime,
  66. Mode=TwoWay}"
  67. TabIndex="7"
  68. Visibility="Hidden" />
  69. <Button Width="70"
  70. Height="26"
  71. Margin="10,0"
  72. VerticalAlignment="Center"
  73. Command="{Binding QueryCommand}"
  74. CommandParameter="{Binding Path=IsChecked,
  75. ElementName=rbHisChecked}"
  76. Content="{x:Static resource:Client_Resource.Button_Search}"
  77. IsEnabled="{Binding ButtonIsEnabled}"
  78. Style="{DynamicResource CommonButtonStyle}" />
  79. </StackPanel>
  80. <dataGrid:MuchinfoDataGrid x:Name="LogDataGrid"
  81. Grid.Row="1"
  82. ColumnHeaderStyle="{DynamicResource AccountDataGridColumnHeaderStyleStretch}"
  83. ItemsSource="{Binding AmountLogList}"
  84. ScrollViewer.HorizontalScrollBarVisibility="Hidden"
  85. ScrollViewer.VerticalScrollBarVisibility="Auto"
  86. SelectedIndex="-1"
  87. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  88. <DataGrid.Columns>
  89. <!-- 流水号 -->
  90. <DataGridTextColumn Width="Auto"
  91. MinWidth="100"
  92. Binding="{Binding AmountTicket}"
  93. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  94. <DataGridTextColumn.Header>
  95. <StackPanel HorizontalAlignment="Stretch">
  96. <TextBlock HorizontalAlignment="Center"
  97. FontSize="{DynamicResource MuchinfoFontSize_M}"
  98. Text="{x:Static resource:Client_Resource.Content_ExchTicket}" />
  99. </StackPanel>
  100. </DataGridTextColumn.Header>
  101. </DataGridTextColumn>
  102. <!-- 操作类型 -->
  103. <DataGridTextColumn Width="Auto"
  104. MinWidth="100"
  105. Binding="{Binding OperateTypeName}"
  106. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  107. <DataGridTextColumn.Header>
  108. <StackPanel HorizontalAlignment="Stretch">
  109. <TextBlock HorizontalAlignment="Center"
  110. FontSize="{DynamicResource MuchinfoFontSize_M}"
  111. Text="{x:Static resource:Client_Resource.Content_OutInType}" />
  112. </StackPanel>
  113. </DataGridTextColumn.Header>
  114. </DataGridTextColumn>
  115. <!-- 关联单号 -->
  116. <DataGridTextColumn Width="Auto"
  117. MinWidth="100"
  118. Binding="{Binding RelationOrderIDDisplay}"
  119. ElementStyle="{DynamicResource DataGridTextColumnStyle}">
  120. <DataGridTextColumn.Header>
  121. <StackPanel HorizontalAlignment="Stretch">
  122. <TextBlock HorizontalAlignment="Center"
  123. FontSize="{DynamicResource MuchinfoFontSize_M}"
  124. Text="{x:Static resource:Client_Resource.Content_HoldIDs}" />
  125. </StackPanel>
  126. </DataGridTextColumn.Header>
  127. </DataGridTextColumn>
  128. <!-- 商品 -->
  129. <DataGridTextColumn Width="Auto"
  130. MinWidth="100"
  131. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  132. <DataGridTextColumn.Header>
  133. <StackPanel HorizontalAlignment="Stretch">
  134. <TextBlock HorizontalAlignment="Center"
  135. FontSize="{DynamicResource MuchinfoFontSize_M}"
  136. Text="{x:Static resource:Client_Resource.Moduel_Goods}" />
  137. </StackPanel>
  138. </DataGridTextColumn.Header>
  139. <DataGridTextColumn.Binding>
  140. <MultiBinding StringFormat="{}{1}/{0}">
  141. <Binding Path="GoodsName" />
  142. <Binding Path="GoodsCode" />
  143. </MultiBinding>
  144. </DataGridTextColumn.Binding>
  145. </DataGridTextColumn>
  146. <!-- 期初余额 -->
  147. <!--
  148. <DataGridTextColumn Width="Auto"
  149. MinWidth="100"
  150. Binding="{Binding BalanceDisplay}"
  151. ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
  152. <DataGridTextColumn.Header>
  153. <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
  154. <TextBlock HorizontalAlignment="Right"
  155. FontSize="{DynamicResource MuchinfoFontSize_M}"
  156. Text="{x:Static resource:Client_Resource.Report_NetWorth}" />
  157. </StackPanel>
  158. </DataGridTextColumn.Header>
  159. </DataGridTextColumn>
  160. -->
  161. <!-- 资金变动 -->
  162. <DataGridTextColumn Width="Auto"
  163. MinWidth="100"
  164. Binding="{Binding AmountDisplay}"
  165. ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
  166. <DataGridTextColumn.Header>
  167. <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
  168. <TextBlock HorizontalAlignment="Right"
  169. FontSize="{DynamicResource MuchinfoFontSize_M}"
  170. Text="{x:Static resource:Client_Resource.Amount_Change}" />
  171. </StackPanel>
  172. </DataGridTextColumn.Header>
  173. </DataGridTextColumn>
  174. <!-- 变动后金额 -->
  175. <DataGridTextColumn Width="Auto"
  176. MinWidth="100"
  177. Binding="{Binding CurrentBalanceDisplay}"
  178. ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
  179. <DataGridTextColumn.Header>
  180. <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
  181. <TextBlock HorizontalAlignment="Right"
  182. FontSize="{DynamicResource MuchinfoFontSize_M}"
  183. Text="{x:Static resource:Client_Resource.Report_CurrentBalances}" />
  184. </StackPanel>
  185. </DataGridTextColumn.Header>
  186. </DataGridTextColumn>
  187. <!-- 时间 -->
  188. <DataGridTextColumn Width="Auto"
  189. MinWidth="100"
  190. Binding="{Binding OperateTime,
  191. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  192. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  193. <DataGridTextColumn.Header>
  194. <StackPanel HorizontalAlignment="Stretch">
  195. <TextBlock HorizontalAlignment="Center"
  196. FontSize="{DynamicResource MuchinfoFontSize_M}"
  197. Text="{x:Static resource:Client_Resource.Content_Time}" />
  198. </StackPanel>
  199. </DataGridTextColumn.Header>
  200. </DataGridTextColumn>
  201. </DataGrid.Columns>
  202. <!--
  203. <DataGrid.ContextMenu>
  204. <ContextMenu>
  205. <MenuItem Command="{Binding RefreshCommand}" Style="{DynamicResource CommonMenuItem}" Header="刷新" />
  206. </ContextMenu>
  207. </DataGrid.ContextMenu>
  208. -->
  209. </dataGrid:MuchinfoDataGrid>
  210. </Grid>
  211. <!-- </xctk:BusyIndicator> -->
  212. </UserControl>