| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.DistributeBallotView"
- 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"
- DataContext="{Binding DistributeBallot,
- Source={StaticResource Locator}}"
- 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>
- <dataGrid:MuchinfoDataGrid Grid.Row="1"
- ItemsSource="{Binding ItemSource}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentDistributeBallotItem,Mode=TwoWay}"
- 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="Auto"
- MinWidth="150"
- Binding="{Binding OrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Report_Complete_Entrustid}" />
-
- <!--名称
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding GoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_GoodsName}" />-->
- <!-- 商品/代码 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- SortMemberPath="GoodsCode"
- Header="{x:Static resource:Client_Resource.Content_Goods_Code}">
- <DataGridTextColumn.Binding>
- <MultiBinding StringFormat="{}{0}/{1}">
- <Binding Path="GoodsName" />
- <Binding Path="GoodsCode" />
- </MultiBinding>
- </DataGridTextColumn.Binding>
- </DataGridTextColumn>
- <!--委托数量-->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding OrderQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Lot}" />
- <!--方向
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding DirectionDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_OpenDirection}" />-->
- <!--起始配号-->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding DistributestartNo}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DistributionsNo}" />
- <!--配号数量-->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding DistributeCount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DistributionNums}" />
-
- <!--中签尾号-->
- <DataGridTextColumn Width="Auto"
- MinWidth="150"
- Binding="{Binding WinTailNODisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WinTailNo}" />
- <!--中签数量-->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding publicissuetradeqtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WinNums}" />
- <!--委托时间-->
- <DataGridTextColumn Width="Auto"
- MinWidth="150"
- Binding="{Binding OrderTime,
- StringFormat='yyyy-MM-dd HH:mm:ss'}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DisplayOpentime}" />
- <!--摇号时间-->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding LotteryDateDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Sale_LotteryDate}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu >
- <MenuItem Command="{Binding SeeMoreDetailCommand}" Visibility="{Binding IsVisibility_CheckSeeMoreDetail}" Header="{x:Static resource:Client_Resource.Content_SeeMoreDetail}" />
- <MenuItem Command="{Binding RefreshCommand}" Header="{x:Static resource:Client_Resource.MenuNamesRefresh}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|