QueryDealPurchaseView.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QueryDealPurchaseView"
  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. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <converters:StringSubstringConverter x:Key="stringSubstringConverter" />
  13. <converters:StringVisableConver x:Key="stringVisableConver" />
  14. </UserControl.Resources>
  15. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition />
  20. </Grid.RowDefinitions>
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock Margin="10,0"
  23. HorizontalAlignment="Center"
  24. VerticalAlignment="Center"
  25. Foreground="{DynamicResource MuchinfoBrush13}"
  26. Text="{x:Static resource:Client_Resource.Content_GoodsCode}" />
  27. <TextBox Width="120"
  28. Height="22"
  29. Text="{Binding GoodCode}"
  30. TextWrapping="Wrap" />
  31. <Button Width="70"
  32. Height="26"
  33. Margin="10,0"
  34. VerticalAlignment="Center"
  35. Command="{Binding SelectCommand}"
  36. Content="{x:Static resource:Client_Resource.Button_Search}"
  37. Style="{DynamicResource CommonButtonStyle}" />
  38. <Button Width="70"
  39. Height="26"
  40. Margin="10,0"
  41. VerticalAlignment="Center"
  42. Command="{Binding ResetCommand}"
  43. Content="{x:Static resource:Client_Resource.Button_Reset}"
  44. Style="{DynamicResource CommonButtonStyle}" />
  45. </StackPanel>
  46. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  47. ItemsSource="{Binding SaleGoodsApplyList}"
  48. SelectedIndex="-1"
  49. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  50. <DataGrid.Columns>
  51. <DataGridTextColumn Width="*"
  52. MinWidth="100"
  53. Binding="{Binding GoodsCode}"
  54. ElementStyle="{DynamicResource DataGridTextColumnStyle}"
  55. Header="{x:Static resource:Client_Resource.Content_GoodsCode}" />
  56. <!--
  57. <DataGridTextColumn Width="*"
  58. MinWidth="120"
  59. Binding="{Binding GoodsName}"
  60. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  61. Header="{x:Static resource:Client_Resource.Content_GoodsName}" />
  62. -->
  63. <DataGridTemplateColumn MinWidth="120"
  64. MaxWidth="120"
  65. Header="{x:Static resource:Client_Resource.Content_GoodsName}">
  66. <DataGridTemplateColumn.CellTemplate>
  67. <DataTemplate>
  68. <TextBlock HorizontalAlignment="Center"
  69. VerticalAlignment="Center"
  70. Text="{Binding GoodsName,
  71. Converter={StaticResource stringSubstringConverter}}">
  72. <TextBlock.ToolTip>
  73. <ToolTip Visibility="{Binding GoodsName, Converter={StaticResource stringVisableConver}}">
  74. <TextBlock Text="{Binding GoodsName}" />
  75. </ToolTip>
  76. </TextBlock.ToolTip>
  77. </TextBlock>
  78. </DataTemplate>
  79. </DataGridTemplateColumn.CellTemplate>
  80. </DataGridTemplateColumn>
  81. <DataGridTextColumn Width="*"
  82. MinWidth="100"
  83. Binding="{Binding AgreeUnitString}"
  84. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  85. Header="合约单位" />
  86. <DataGridTextColumn Width="*"
  87. MinWidth="100"
  88. Binding="{Binding OrderId}"
  89. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  90. Header="{x:Static resource:Client_Resource.Content_ApplyOrderId}" />
  91. <DataGridTextColumn Width="*"
  92. MinWidth="150"
  93. Binding="{Binding SubscriptDate}"
  94. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  95. Header="{x:Static resource:Client_Resource.Content_SubscriptDate}" />
  96. <DataGridTextColumn Width="*"
  97. MinWidth="80"
  98. Binding="{Binding Qty}"
  99. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  100. Header="{x:Static resource:Client_Resource.Content_ApplyQty}" />
  101. <DataGridTextColumn Width="*"
  102. MinWidth="100"
  103. Binding="{Binding SubscriptPrice}"
  104. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  105. Header="申购价格" />
  106. <DataGridTextColumn Width="*"
  107. MinWidth="100"
  108. Binding="{Binding SubscriptMoney}"
  109. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  110. Header="申购资金" />
  111. <DataGridTextColumn Width="*"
  112. MinWidth="100"
  113. Binding="{Binding SubscriptCharge}"
  114. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  115. Header="申购手续费" />
  116. <DataGridTextColumn Width="*"
  117. MinWidth="80"
  118. Binding="{Binding DistributionNums}"
  119. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  120. Header="{x:Static resource:Client_Resource.Content_DistributionNums}" />
  121. <DataGridTextColumn Width="*"
  122. MinWidth="120"
  123. Binding="{Binding DistributionsNo}"
  124. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  125. Header="{x:Static resource:Client_Resource.Content_DistributionsNo}" />
  126. <!--
  127. <DataGridTextColumn MinWidth="100"
  128. Binding="{Binding WinTailNo,Converter={StaticResource stringSubstringConverter}}"
  129. ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
  130. Header="{x:Static resource:Client_Resource.Content_WinTailNo}"
  131. CellStyle="{StaticResource aa}"/>
  132. -->
  133. <DataGridTemplateColumn MinWidth="120"
  134. MaxWidth="120"
  135. Header="{x:Static resource:Client_Resource.Content_WinTailNo}">
  136. <DataGridTemplateColumn.CellTemplate>
  137. <DataTemplate>
  138. <TextBlock HorizontalAlignment="Center"
  139. VerticalAlignment="Center"
  140. Text="{Binding WinTailNo,
  141. Converter={StaticResource stringSubstringConverter}}">
  142. <TextBlock.ToolTip>
  143. <ToolTip Visibility="{Binding WinTailNo, Converter={StaticResource stringVisableConver}}">
  144. <TextBlock Text="{Binding WinTailNo}" />
  145. </ToolTip>
  146. </TextBlock.ToolTip>
  147. </TextBlock>
  148. </DataTemplate>
  149. </DataGridTemplateColumn.CellTemplate>
  150. </DataGridTemplateColumn>
  151. <DataGridTextColumn Width="*"
  152. MinWidth="80"
  153. Binding="{Binding WinNums}"
  154. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  155. Header="{x:Static resource:Client_Resource.Content_WinNums}" />
  156. <DataGridTextColumn Width="*"
  157. MinWidth="80"
  158. Binding="{Binding WinMoney}"
  159. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  160. Header="{x:Static resource:Client_Resource.Content_WinMoney}" />
  161. <DataGridTextColumn Width="*"
  162. MinWidth="80"
  163. Binding="{Binding WinCharge}"
  164. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  165. Header="{x:Static resource:Client_Resource.Content_WinCharge}" />
  166. </DataGrid.Columns>
  167. <DataGrid.ContextMenu>
  168. <ContextMenu>
  169. <MenuItem Command="{Binding CancelSaleCammand}"
  170. Header="撤单"
  171. IsEnabled="{Binding IsCancelSaleCammand}"
  172. Style="{DynamicResource CommonMenuItem}" />
  173. <MenuItem Command="{Binding CancelCammand}"
  174. Header="取消"
  175. IsEnabled="{Binding IsCancelCammand}"
  176. Style="{DynamicResource CommonMenuItem}" />
  177. </ContextMenu>
  178. </DataGrid.ContextMenu>
  179. </dataGrid:MuchinfoDataGrid>
  180. </Grid>
  181. </xctk:BusyIndicator>
  182. </UserControl>