| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <UserControl x:Class="Muchinfo.MTPClient.Account.Views.CompleteOrderView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Muchinfo.MTPClient.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Muchinfo.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Muchinfo.MTPClient.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- Background="{DynamicResource MuchinfoBrush5}"
- DataContext="{Binding CompleteOrders,
- Source={StaticResource Locator}}">
- <UserControl.Resources>
- <converters:DirectionConverter x:Key="DirectionConverter" />
- </UserControl.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Muchinfo_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4"
- Background="{DynamicResource MuchinfoBrush2}"
- Orientation="Horizontal">
- <RadioButton Margin="25,0,0,0"
- VerticalAlignment="Center"
- Content="{x:Static resource:Muchinfo_Resource.Content_Now}"
- Foreground="{DynamicResource MainForegroundBrush}"
- IsChecked="{Binding RadioNow}" />
- <RadioButton Name="RadioCustom"
- Margin="25,0,10,0"
- VerticalAlignment="Center"
- Content="{x:Static resource:Muchinfo_Resource.Content_History}"
- Foreground="{DynamicResource MainForegroundBrush}"
- IsChecked="{Binding RadioCustom}" />
- <!-- <TextBlock Margin="10,0" Foreground="{DynamicResource MuchinfoBrush13}" VerticalAlignment="Center" Text="日期" /> -->
- <DatePicker Name="DatePicker1"
- Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- IsEnabled="{Binding ElementName=RadioCustom,
- Path=IsChecked}"
- SelectedDate="{Binding StartDateTime,
- Mode=TwoWay}"
- TabIndex="7" />
- <TextBlock Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush13}"
- Text="{x:Static resource:Muchinfo_Resource.Content_To}" />
- <DatePicker Name="DatePicker2"
- Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- IsEnabled="{Binding ElementName=RadioCustom,
- Path=IsChecked}"
- SelectedDate="{Binding EndDateTime,
- Mode=TwoWay}"
- TabIndex="7" />
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- Content="{x:Static resource:Muchinfo_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid Grid.Row="1"
- ItemsSource="{Binding CompleteOrders}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="*"
- MinWidth="140"
- Binding="{Binding TradeID}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_OrderNumber}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding GoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_Goods}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding StrOpenDirection}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_StrOpenDirection}"
- SortMemberPath="StrOpenDirection" />
- <!--
- <DataGridTemplateColumn MinWidth="60"
- Header="买/卖"
- SortMemberPath="StrOpenDirection">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock HorizontalAlignment="Stretch"
- Text="{Binding StrOpenDirection}"
- TextAlignment="{Binding OpenDirection,
- Converter={StaticResource DirectionConverter},
- Mode=OneTime}" />
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- -->
- <DataGridTextColumn Width="*"
- MinWidth="50"
- Binding="{Binding OrderTypeDisc}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.recource_OrderType}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding Lot}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_Count}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding CompletePrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_CompletePrice}" />
- <DataGridTextColumn Width="*"
- MinWidth="130"
- Binding="{Binding DisplayCompleteDate}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_DisplayCompleteDate}" />
- <DataGridTextColumn Width="*"
- MinWidth="140"
- Binding="{Binding RelateOrderID}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_RelateOrderID}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding Charge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_Charge}" />
- <DataGridTextColumn Width="*"
- MinWidth="70"
- Binding="{Binding StorageCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_StorageCharge}"
- Visibility="Collapsed" />
- <!--
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding StrOrderTypeDirection}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_Remark}" />
- -->
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <!--
- <MenuItem Command="{Binding DeliveryCommand}"
- Header="交收申请"
- IsEnabled="false" />
- -->
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Muchinfo_Resource.MenuNamesRefresh}"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|