| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryComplete"
- 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 DlyCompleteViewModel,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <!-- <RowDefinition Height="30" /> -->
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4" Orientation="Horizontal">
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_Date}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding StartTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <TextBlock Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_To}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding EndTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="70"
- Height="26"
- Margin="0,0"
- VerticalAlignment="Center"
- Command="{Binding ResetCommand}"
- Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
-
- <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding DeliveryCompleteModels}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- 交割单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderNumber}" />
- <!-- 申报单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding OrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderNumber}" />
- <!-- 对手 账号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding MatchAccountCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatch_Account}" />
- <!-- 交割商品名称 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryGoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
- <!-- 方向 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding BuyorsellDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Direction}"
- SortMemberPath="StrOpenDirection" />
- <!-- 交割数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderQty}" />
- <!-- 交割均价 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderPrice}" />
- <!-- 交割货款 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_DeliveryAmount}" />
- <!-- 手续费 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DeliveryCharge}" />
- <!-- 稅款 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Tax}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DeliveryTax}" />
- <!-- 成交时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding TradeTime,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DisplayCompleteDate}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- <!-- 分页控件 -->
- <!--
- <dataPager:MuchinfoPager Grid.Row="2"
- HorizontalAlignment="Right"
- Command="{Binding NextPageSearchCommand,
- Mode=TwoWay}"
- ItemCount="{Binding ItemCount,
- Mode=TwoWay}"
- PageSize="{Binding PageSize}"
- Style="{DynamicResource PagerStyle}"
- PageIndex="{Binding PageIndex,
- Mode=TwoWay}" />
- -->
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|