| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QueryDealPurchaseView"
- 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=Client.Infrastructure"
- 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"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:StringSubstringConverter x:Key="stringSubstringConverter" />
- <converters:StringVisableConver x:Key="stringVisableConver" />
- </UserControl.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush13}"
- Text="{x:Static resource:Client_Resource.Content_GoodsCode}" />
- <TextBox Width="120"
- Height="22"
- Text="{Binding GoodCode}"
- TextWrapping="Wrap" />
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding SelectCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding ResetCommand}"
- Content="{x:Static resource:Client_Resource.Button_Reset}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid Grid.Row="1"
- ItemsSource="{Binding SaleGoodsApplyList}"
- SelectedIndex="-1"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding GoodsCode}"
- ElementStyle="{DynamicResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_GoodsCode}" />
- <!--
- <DataGridTextColumn Width="*"
- MinWidth="120"
- Binding="{Binding GoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_GoodsName}" />
- -->
- <DataGridTemplateColumn MinWidth="120"
- MaxWidth="120"
- Header="{x:Static resource:Client_Resource.Content_GoodsName}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding GoodsName,
- Converter={StaticResource stringSubstringConverter}}">
- <TextBlock.ToolTip>
- <ToolTip Visibility="{Binding GoodsName, Converter={StaticResource stringVisableConver}}">
- <TextBlock Text="{Binding GoodsName}" />
- </ToolTip>
- </TextBlock.ToolTip>
- </TextBlock>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding AgreeUnitString}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="合约单位" />
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding OrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_ApplyOrderId}" />
- <DataGridTextColumn Width="*"
- MinWidth="150"
- Binding="{Binding SubscriptDate}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_SubscriptDate}" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding Qty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_ApplyQty}" />
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding SubscriptPrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="申购价格" />
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding SubscriptMoney}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="申购资金" />
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding SubscriptCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="申购手续费" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding DistributionNums}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DistributionNums}" />
- <DataGridTextColumn Width="*"
- MinWidth="120"
- Binding="{Binding DistributionsNo}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DistributionsNo}" />
- <!--
- <DataGridTextColumn MinWidth="100"
- Binding="{Binding WinTailNo,Converter={StaticResource stringSubstringConverter}}"
- ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
- Header="{x:Static resource:Client_Resource.Content_WinTailNo}"
- CellStyle="{StaticResource aa}"/>
- -->
- <DataGridTemplateColumn MinWidth="120"
- MaxWidth="120"
- Header="{x:Static resource:Client_Resource.Content_WinTailNo}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding WinTailNo,
- Converter={StaticResource stringSubstringConverter}}">
- <TextBlock.ToolTip>
- <ToolTip Visibility="{Binding WinTailNo, Converter={StaticResource stringVisableConver}}">
- <TextBlock Text="{Binding WinTailNo}" />
- </ToolTip>
- </TextBlock.ToolTip>
- </TextBlock>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding WinNums}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WinNums}" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding WinMoney}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WinMoney}" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding WinCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WinCharge}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelSaleCammand}"
- Header="撤单"
- IsEnabled="{Binding IsCancelSaleCammand}"
- Style="{DynamicResource CommonMenuItem}" />
- <MenuItem Command="{Binding CancelCammand}"
- Header="取消"
- IsEnabled="{Binding IsCancelCammand}"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|