| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <UserControl x:Class="Muchinfo.MTPClient.Account.Views.QueryTaAmountLog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- DataContext="{Binding TaAmountLog,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <!-- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_GetBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}"> -->
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4"
- Orientation="Horizontal"
- Visibility="Collapsed">
- <RadioButton Name="rbCurChecked"
- Margin="10,5"
- VerticalAlignment="Center"
- Foreground="WhiteSmoke"
- IsChecked="true">
- 当前
- </RadioButton>
- <RadioButton Name="rbHisChecked"
- Margin="10,5"
- VerticalAlignment="Center"
- Foreground="WhiteSmoke"
- IsChecked="{Binding IsQueryHistory,
- Mode=TwoWay}">
- 历史
- </RadioButton>
- <TextBlock Width="20" />
- <TextBlock Name="xamlDate"
- Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_ExchangeDate}"
- Visibility="Hidden" />
- <DatePicker Name="xamlDateTime"
- Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- KeyUp="Title_OnKeyUp"
- SelectedDate="{Binding StartDateTime,
- Mode=TwoWay}"
- TabIndex="7"
- Visibility="Hidden" />
- <TextBlock Name="xamlDateTo"
- Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_To}"
- Visibility="Hidden" />
- <DatePicker Name="xamlDateEnd"
- Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- KeyUp="Title_OnKeyUp"
- SelectedDate="{Binding EndDateTime,
- Mode=TwoWay}"
- TabIndex="7"
- Visibility="Hidden" />
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding QueryCommand}"
- CommandParameter="{Binding Path=IsChecked,
- ElementName=rbHisChecked}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- IsEnabled="{Binding ButtonIsEnabled}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid x:Name="LogDataGrid"
- Grid.Row="1"
- ColumnHeaderStyle="{DynamicResource AccountDataGridColumnHeaderStyleStretch}"
- ItemsSource="{Binding AmountLogList}"
- ScrollViewer.HorizontalScrollBarVisibility="Hidden"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedIndex="-1"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- 流水号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding AmountTicket}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_ExchTicket}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <!-- 操作类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OperateTypeName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_OutInType}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <!-- 关联单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding RelationOrderIDDisplay}"
- ElementStyle="{DynamicResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_HoldIDs}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <!-- 商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Moduel_Goods}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- <DataGridTextColumn.Binding>
- <MultiBinding StringFormat="{}{1}/{0}">
- <Binding Path="GoodsName" />
- <Binding Path="GoodsCode" />
- </MultiBinding>
- </DataGridTextColumn.Binding>
- </DataGridTextColumn>
- <!-- 期初余额 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BalanceDisplay}"
- ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
- <DataGridTextColumn.Header>
- <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Report_NetWorth}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- -->
- <!-- 资金变动 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding AmountDisplay}"
- ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
- <DataGridTextColumn.Header>
- <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Amount_Change}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <!-- 变动后金额 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding CurrentBalanceDisplay}"
- ElementStyle="{DynamicResource DataGridTextColumnStyleRight}">
- <DataGridTextColumn.Header>
- <StackPanel Margin="5,0" HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Report_CurrentBalances}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <!-- 时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OperateTime,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_Time}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- </DataGrid.Columns>
- <!--
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}" Style="{DynamicResource CommonMenuItem}" Header="刷新" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- -->
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- <!-- </xctk:BusyIndicator> -->
- </UserControl>
|