DeliveryComplete.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryComplete"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  9. DataContext="{Binding DlyCompleteViewModel,
  10. Source={StaticResource Locator}}"
  11. mc:Ignorable="d">
  12. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition />
  17. <!-- <RowDefinition Height="30" /> -->
  18. </Grid.RowDefinitions>
  19. <StackPanel Margin="0,4" Orientation="Horizontal">
  20. <TextBlock Margin="10,0"
  21. VerticalAlignment="Center"
  22. Foreground="{DynamicResource TextBlockForeground}"
  23. Text="{x:Static resource:Client_Resource.Content_Date}" />
  24. <DatePicker Width="120"
  25. HorizontalAlignment="Stretch"
  26. VerticalAlignment="Center"
  27. CalendarStyle="{DynamicResource CalendarStyle}"
  28. SelectedDate="{Binding StartTime,
  29. Mode=TwoWay}"
  30. TabIndex="7">
  31. <DatePicker.Resources>
  32. <Style TargetType="DatePickerTextBox">
  33. <Setter Property="IsReadOnly" Value="True" />
  34. <Setter Property="IsEnabled" Value="False" />
  35. </Style>
  36. </DatePicker.Resources>
  37. </DatePicker>
  38. <TextBlock Margin="5,0"
  39. VerticalAlignment="Center"
  40. Foreground="{DynamicResource TextBlockForeground}"
  41. Text="{x:Static resource:Client_Resource.Content_To}" />
  42. <DatePicker Width="120"
  43. HorizontalAlignment="Stretch"
  44. VerticalAlignment="Center"
  45. CalendarStyle="{DynamicResource CalendarStyle}"
  46. SelectedDate="{Binding EndTime,
  47. Mode=TwoWay}"
  48. TabIndex="7">
  49. <DatePicker.Resources>
  50. <Style TargetType="DatePickerTextBox">
  51. <Setter Property="IsReadOnly" Value="True" />
  52. <Setter Property="IsEnabled" Value="False" />
  53. </Style>
  54. </DatePicker.Resources>
  55. </DatePicker>
  56. <Button Width="70"
  57. Height="26"
  58. Margin="10,0"
  59. VerticalAlignment="Center"
  60. Command="{Binding RefreshCommand}"
  61. Content="{x:Static resource:Client_Resource.Button_Search}"
  62. Style="{DynamicResource CommonButtonStyle}" />
  63. <Button Width="70"
  64. Height="26"
  65. Margin="0,0"
  66. VerticalAlignment="Center"
  67. Command="{Binding ResetCommand}"
  68. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  69. Style="{DynamicResource CommonButtonStyle}" />
  70. </StackPanel>
  71. <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
  72. Grid.Row="1"
  73. ItemsSource="{Binding DeliveryCompleteModels}"
  74. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  75. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  76. <DataGrid.Columns>
  77. <!-- 交割单号 -->
  78. <DataGridTextColumn Width="Auto"
  79. MinWidth="140"
  80. Binding="{Binding DeliveryId}"
  81. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  82. Header="{x:Static resource:Client_Resource.Delivery_holderNumber}" />
  83. <!-- 申报单号 -->
  84. <DataGridTextColumn Width="Auto"
  85. MinWidth="140"
  86. Binding="{Binding OrderId}"
  87. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  88. Header="{x:Static resource:Client_Resource.Delivery_OrderNumber}" />
  89. <!-- 对手 账号 -->
  90. <DataGridTextColumn Width="Auto"
  91. MinWidth="100"
  92. Binding="{Binding MatchAccountCode}"
  93. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  94. Header="{x:Static resource:Client_Resource.DeliveryMatch_Account}" />
  95. <!-- 交割商品名称 -->
  96. <DataGridTextColumn Width="Auto"
  97. MinWidth="100"
  98. Binding="{Binding DeliveryGoodsName}"
  99. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  100. Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
  101. <!-- 方向 -->
  102. <DataGridTextColumn Width="Auto"
  103. MinWidth="80"
  104. Binding="{Binding BuyorsellDisplay}"
  105. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  106. Header="{x:Static resource:Client_Resource.Moduel_Direction}"
  107. SortMemberPath="StrOpenDirection" />
  108. <!-- 交割数量 -->
  109. <DataGridTextColumn Width="Auto"
  110. MinWidth="100"
  111. Binding="{Binding DeliveryQty}"
  112. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  113. Header="{x:Static resource:Client_Resource.Delivery_holderQty}" />
  114. <!-- 交割均价 -->
  115. <DataGridTextColumn Width="Auto"
  116. MinWidth="100"
  117. Binding="{Binding DeliveryPrice}"
  118. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  119. Header="{x:Static resource:Client_Resource.Delivery_holderPrice}" />
  120. <!-- 交割货款 -->
  121. <DataGridTextColumn Width="Auto"
  122. MinWidth="100"
  123. Binding="{Binding DeliveryAmount}"
  124. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  125. Header="{x:Static resource:Client_Resource.Delivery_DeliveryAmount}" />
  126. <!-- 手续费 -->
  127. <DataGridTextColumn Width="Auto"
  128. MinWidth="100"
  129. Binding="{Binding DeliveryCharge}"
  130. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  131. Header="{x:Static resource:Client_Resource.Content_DeliveryCharge}" />
  132. <!-- 稅款 -->
  133. <DataGridTextColumn Width="Auto"
  134. MinWidth="100"
  135. Binding="{Binding Tax}"
  136. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  137. Header="{x:Static resource:Client_Resource.Content_DeliveryTax}" />
  138. <!-- 成交时间 -->
  139. <DataGridTextColumn Width="Auto"
  140. MinWidth="120"
  141. Binding="{Binding TradeTime,
  142. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  143. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  144. Header="{x:Static resource:Client_Resource.Content_DisplayCompleteDate}" />
  145. </DataGrid.Columns>
  146. <DataGrid.ContextMenu>
  147. <ContextMenu>
  148. <MenuItem Command="{Binding RefreshCommand}"
  149. Header="{x:Static resource:Client_Resource.Button_Refresh}"
  150. IsEnabled="True"
  151. Style="{DynamicResource CommonMenuItem}" />
  152. </ContextMenu>
  153. </DataGrid.ContextMenu>
  154. </dataGrid:MuchinfoDataGrid>
  155. <!-- 分页控件 -->
  156. <!--
  157. <dataPager:MuchinfoPager Grid.Row="2"
  158. HorizontalAlignment="Right"
  159. Command="{Binding NextPageSearchCommand,
  160. Mode=TwoWay}"
  161. ItemCount="{Binding ItemCount,
  162. Mode=TwoWay}"
  163. PageSize="{Binding PageSize}"
  164. Style="{DynamicResource PagerStyle}"
  165. PageIndex="{Binding PageIndex,
  166. Mode=TwoWay}" />
  167. -->
  168. </Grid>
  169. </xctk:BusyIndicator>
  170. </UserControl>