| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- <UserControl x:Class="Muchinfo.MTPClient.Account.Views.PrePostDetailView"
- 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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- 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 PrePostDetail,
- Source={StaticResource Locator}}"
- d:DesignHeight="300"
- d:DesignWidth="300"
- mc:Ignorable="d">
- <ScrollViewer x:Name="OutScrollViewer"
- HorizontalScrollBarVisibility="Auto"
- VerticalScrollBarVisibility="Auto">
- <StackPanel>
- <Expander IsExpanded="{Binding BidIsExpander}"
- Style="{DynamicResource AccountExpanderStyle}"
- Visibility="{Binding MarketTypes,
- Converter={StaticResource MarketVisibilityConventer},
- ConverterParameter=1}">
- <Expander.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="竞价预埋单" />
- <TextBlock>
- <Run Text=" (" />
- <Run Text="{Binding DicOrderCount[1]}" />
- <Run Text=")" />
- </TextBlock>
- </StackPanel>
- </Expander.Header>
- <dataGrid:MuchinfoDataGrid x:Name="BidDataGrid"
- ItemsSource="{Binding OrderSource[1],
- Mode=OneWay}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentLimitOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseEnter">
- <i:InvokeCommandAction Command="{Binding DataGridMouseEnter}" CommandParameter="{Binding SelectedItem, ElementName=BidDataGrid}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <DataGrid.Columns>
- <!-- 预埋单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding PreOrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_PreOrderId}" />
- <!-- 商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding goodsname}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_goodsname}" />
- <!--
- 杠杆
- <DataGridTextColumn Width="Auto" MinWidth="130" Binding="{Binding DisplayCloseDate}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_CloseDate}" />
- -->
- <!-- 方向 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BuyOrSellStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_BuyOrSell}" />
- <!-- 订单类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BuildTypeStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_BuildType}" />
- <!--
- 市价/限价
- <DataGridTextColumn Width="Auto" MinWidth="100" Binding="{Binding Lot}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Count}" />
- -->
- <!-- 触发价格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding TriggerPriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_TriggerPrice}" />
- <!-- 委托价格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding orderpriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_orderprice}" />
- <!-- 止盈价格 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding SpPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_SpPrice}" />
- -->
- <!-- 止损价格 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding SlPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_SlPrice}" />
- -->
- <!-- 委托数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding orderqty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_orderqty}" />
- <!-- 有效类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding ValidTypeStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_ValidType}" />
- <!-- 委托时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding ClientOrderTime,
- StringFormat='yyyy-MM-dd HH:mm:ss'}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_ClientOrderTime}" />
- <!-- 预埋状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderStatusStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_OrderStatus}" />
- <!-- 备注 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_Remark}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelHoldingCammand}"
- 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>
- </Expander>
- <Expander IsExpanded="{Binding OTCBidIsExpander}"
- Style="{DynamicResource AccountExpanderStyle}"
- Visibility="{Binding MarketTypes,
- Converter={StaticResource MarketVisibilityConventer},
- ConverterParameter=3}">
- <Expander.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="混合预埋单" />
- <TextBlock>
- <Run Text=" (" />
- <Run Text="{Binding DicOrderCount[3]}" />
- <Run Text=")" />
- </TextBlock>
- </StackPanel>
- </Expander.Header>
- <dataGrid:MuchinfoDataGrid x:Name="otcbidDataGrid"
- ItemsSource="{Binding OrderSource[3],
- Mode=OneWay}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentLimitOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseEnter">
- <i:InvokeCommandAction Command="{Binding DataGridMouseEnter}" CommandParameter="{Binding SelectedItem, ElementName=otcbidDataGrid}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <DataGrid.Columns>
- <!-- 预埋单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding PreOrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_PreOrderId}" />
- <!-- 商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding goodsname}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_goodsname}" />
- <!--
- 杠杆
- <DataGridTextColumn Width="Auto" MinWidth="130" Binding="{Binding DisplayCloseDate}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_CloseDate}" />
- -->
- <!-- 方向 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BuyOrSellStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_BuyOrSell}" />
- <!-- 订单类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BuildTypeStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_BuildType}" />
- <!--
- 市价/限价
- <DataGridTextColumn Width="Auto" MinWidth="100" Binding="{Binding Lot}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Count}" />
- -->
- <!-- 触发价格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding TriggerPriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_TriggerPrice}" />
- <!-- 委托价格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Bid_OrderpriceDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_orderprice}" />
- <!-- 止盈价格 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding SpPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_SpPrice}" />
- -->
- <!-- 止损价格 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding SlPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_SlPrice}" />
- -->
- <!-- 委托数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding orderqty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_orderqty}" />
- <!-- 有效类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding ValidTypeStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_ValidType}" />
- <!-- 委托时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding ClientOrderTime,
- StringFormat='yyyy-MM-dd HH:mm:ss'}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_ClientOrderTime}" />
- <!-- 预埋状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderStatusStr}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_OrderStatus}" />
- <!-- 备注 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PrePostDetailView_Remark}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelHoldingCammand}"
- 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>
- </Expander>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|