| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryEntructOrderView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:dataPager="clr-namespace:Muchinfo.DataPager;assembly=Client.DataPager"
- 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 DeliveryEntruct,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:DeliveryOrderStatusToStringConverter x:Key="deliveryOrderStatusToStringConverter" />
- <converters:DeliveryOrderStatusToBooleanConverter x:Key="deliveryOrderStatusToBooleanConverter" />
- </UserControl.Resources>
- <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>
- <Button Grid.Row="0"
- Width="100"
- Height="26"
- Margin="10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{Binding DeliveryCommand}"
- Content="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryApplyPlus}"
- Style="{DynamicResource CommonButtonStyle}" />
- <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding AllOrders}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryOrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderNumber}" />
- <!-- 发起方式
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding SponsorDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ApplyType}" />-->
- <!-- 交易商品名称 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding GOODSNAME}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_TradeGoods}" />
- <!-- 交割商品名称 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryGoodsNameDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />-->
- <!-- 买卖 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding StrDirection}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Direction}"
- SortMemberPath="StrOpenDirection" />
- <!-- 申报价格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderPriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderPrice}" />
- <!-- 申报手数 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderQty}" />
- <!-- 交割数量 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding AgreeUintQtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderQty}" />-->
- <!-- 成交手数 = orderQty-cancelQty -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DealQtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_DealQtyDisplay}" />
- <!-- 成交交割数量 =成交手数/兑换系数*交割合约单位 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DealDeliveryQtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_DealDeliveryQtyDisplay}" />-->
- <!-- 申报类型
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderTypeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ApplyType}" />-->
- <!-- 关联交易商品 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding RGOODSNAMEDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_RGOODSNAME}" />-->
- <!-- 关联商品价格 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding relOrderPriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_relOrderPrice}" />-->
- <!--
- 配对成功数量NEW
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding OrderQtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_MatchedSuccessQty}" />
- -->
- <!--
- 配对失败数量NEW
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding MatchFailureQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_MatchedFailureQty}" />
- -->
- <!-- 申报来源NEW
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderFromDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ApplySource}" />-->
- <!-- 可配对时间NEW -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding MatchTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_CanMatchedTime}" />
- -->
- <!-- 交易货款 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderAmountDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ORDERAMOUNT}" />-->
- <!-- 关联交易货款 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding relOrderAmountDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_relOrderAmount}" />-->
- <!-- 差价款 详细中显示
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding PriceMoveAmountDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PriceMoveAmount}" />-->
- <!-- 手续费 详细中显示
- <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 FreezeTaxDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_FreezeTax}" />-->
- <!-- 冻结资金 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding FreezeAmountDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_FreezonAmount}" />
- <!-- 申报时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding OrderTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderTime}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding AuditRemarkDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_AuditRemark}" />
- <!-- 交割状态NEW -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderStatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Status}" />
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.Header>
- <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Height="20"
- Command="{Binding Path=DeliveryEntruct.CancelOrMatchCommand,
- Source={StaticResource Locator}}"
- Content="{Binding OrderStatus,
- Converter={StaticResource deliveryOrderStatusToStringConverter}}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding CanCanceled}" />
- <!-- 查看详细 -->
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=DeliveryEntruct.SeeMoreDetailCommand,
- Source={StaticResource Locator}}"
- CommandParameter="{Binding Path=SelectedItem,
- ElementName=DeliveryDataGrid}"
- Content="{x:Static resource:Client_Resource.Content_SeeMoreDetail}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelCammand}"
- Header="{x:Static resource:Client_Resource.Button_Cancellation}"
- Style="{DynamicResource CommonMenuItem}" />
- <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>
|