DistributeBallotView.xaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.DistributeBallotView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  9. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  10. DataContext="{Binding DistributeBallot,
  11. Source={StaticResource Locator}}"
  12. mc:Ignorable="d">
  13. <UserControl.Resources>
  14. <converters:StringSubstringConverter x:Key="stringSubstringConverter" />
  15. <converters:StringVisableConver x:Key="stringVisableConver" />
  16. </UserControl.Resources>
  17. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition />
  22. </Grid.RowDefinitions>
  23. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  24. ItemsSource="{Binding ItemSource}"
  25. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  26. ScrollViewer.VerticalScrollBarVisibility="Auto"
  27. SelectedItem="{Binding CurrentDistributeBallotItem,Mode=TwoWay}"
  28. SelectedIndex="-1"
  29. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  30. <DataGrid.Columns>
  31. <!--
  32. <DataGridTextColumn Width="*"
  33. MinWidth="100"
  34. Binding="{Binding GoodsCode}"
  35. ElementStyle="{DynamicResource DataGridTextColumnStyle}"
  36. Header="{x:Static resource:Client_Resource.Content_GoodsCode}" />
  37. -->
  38. <!--委托单号-->
  39. <DataGridTextColumn Width="Auto"
  40. MinWidth="150"
  41. Binding="{Binding OrderId}"
  42. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  43. Header="{x:Static resource:Client_Resource.Report_Complete_Entrustid}" />
  44. <!--名称
  45. <DataGridTextColumn Width="Auto"
  46. MinWidth="120"
  47. Binding="{Binding GoodsName}"
  48. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  49. Header="{x:Static resource:Client_Resource.Content_GoodsName}" />-->
  50. <!-- 商品/代码 -->
  51. <DataGridTextColumn Width="Auto"
  52. MinWidth="140"
  53. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  54. SortMemberPath="GoodsCode"
  55. Header="{x:Static resource:Client_Resource.Content_Goods_Code}">
  56. <DataGridTextColumn.Binding>
  57. <MultiBinding StringFormat="{}{0}/{1}">
  58. <Binding Path="GoodsName" />
  59. <Binding Path="GoodsCode" />
  60. </MultiBinding>
  61. </DataGridTextColumn.Binding>
  62. </DataGridTextColumn>
  63. <!--委托数量-->
  64. <DataGridTextColumn Width="Auto"
  65. MinWidth="80"
  66. Binding="{Binding OrderQty}"
  67. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  68. Header="{x:Static resource:Client_Resource.Content_Lot}" />
  69. <!--方向
  70. <DataGridTextColumn Width="Auto"
  71. MinWidth="80"
  72. Binding="{Binding DirectionDisplay}"
  73. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  74. Header="{x:Static resource:Client_Resource.Content_OpenDirection}" />-->
  75. <!--起始配号-->
  76. <DataGridTextColumn Width="Auto"
  77. MinWidth="120"
  78. Binding="{Binding DistributestartNo}"
  79. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  80. Header="{x:Static resource:Client_Resource.Content_DistributionsNo}" />
  81. <!--配号数量-->
  82. <DataGridTextColumn Width="Auto"
  83. MinWidth="80"
  84. Binding="{Binding DistributeCount}"
  85. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  86. Header="{x:Static resource:Client_Resource.Content_DistributionNums}" />
  87. <!--中签尾号-->
  88. <DataGridTextColumn Width="Auto"
  89. MinWidth="150"
  90. Binding="{Binding WinTailNODisplay}"
  91. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  92. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  93. Header="{x:Static resource:Client_Resource.Content_WinTailNo}" />
  94. <!--中签数量-->
  95. <DataGridTextColumn Width="Auto"
  96. MinWidth="80"
  97. Binding="{Binding publicissuetradeqtyDisplay}"
  98. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  99. Header="{x:Static resource:Client_Resource.Content_WinNums}" />
  100. <!--委托时间-->
  101. <DataGridTextColumn Width="Auto"
  102. MinWidth="150"
  103. Binding="{Binding OrderTime,
  104. StringFormat='yyyy-MM-dd HH:mm:ss'}"
  105. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  106. Header="{x:Static resource:Client_Resource.Content_DisplayOpentime}" />
  107. <!--摇号时间-->
  108. <DataGridTextColumn Width="Auto"
  109. MinWidth="80"
  110. Binding="{Binding LotteryDateDisplay}"
  111. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  112. Header="{x:Static resource:Client_Resource.Sale_LotteryDate}" />
  113. </DataGrid.Columns>
  114. <DataGrid.ContextMenu>
  115. <ContextMenu >
  116. <MenuItem Command="{Binding SeeMoreDetailCommand}" Visibility="{Binding IsVisibility_CheckSeeMoreDetail}" Header="{x:Static resource:Client_Resource.Content_SeeMoreDetail}" />
  117. <MenuItem Command="{Binding RefreshCommand}" Header="{x:Static resource:Client_Resource.MenuNamesRefresh}" />
  118. </ContextMenu>
  119. </DataGrid.ContextMenu>
  120. </dataGrid:MuchinfoDataGrid>
  121. </Grid>
  122. </xctk:BusyIndicator>
  123. </UserControl>