QueryPurchaseView.xaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QueryPurchaseView"
  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. mc:Ignorable="d">
  10. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition />
  15. </Grid.RowDefinitions>
  16. <StackPanel Orientation="Horizontal">
  17. <TextBlock Margin="10,0"
  18. HorizontalAlignment="Center"
  19. VerticalAlignment="Center"
  20. Foreground="{DynamicResource MuchinfoBrush13}"
  21. Text="商品代码" />
  22. <TextBox Width="120"
  23. Height="22"
  24. Text="{Binding GoodCode}"
  25. TextWrapping="Wrap" />
  26. <TextBlock Margin="10,0"
  27. HorizontalAlignment="Center"
  28. VerticalAlignment="Center"
  29. Foreground="{DynamicResource MuchinfoBrush13}"
  30. Text="状态" />
  31. <ComboBox Width="80"
  32. VerticalContentAlignment="Center"
  33. DisplayMemberPath="Value"
  34. ItemsSource="{Binding ClientProjectStatus}"
  35. SelectedValue="{Binding SelectProjectStatus,
  36. Mode=TwoWay}"
  37. SelectedValuePath="Key"
  38. Style="{DynamicResource SimpleComboBoxStyle}" />
  39. <TextBlock Margin="10,0"
  40. VerticalAlignment="Center"
  41. Foreground="{DynamicResource MuchinfoBrush13}"
  42. Text="委托时间" />
  43. <DatePicker Name="DatePicker1"
  44. Width="120"
  45. HorizontalAlignment="Stretch"
  46. VerticalAlignment="Center"
  47. CalendarStyle="{DynamicResource CalendarStyle}"
  48. IsEnabled="{Binding IsChecked,
  49. ElementName=RadioHistory}"
  50. SelectedDate="{Binding StartTime,
  51. Mode=TwoWay}"
  52. TabIndex="7" />
  53. <TextBlock Margin="5,0"
  54. VerticalAlignment="Center"
  55. Foreground="{DynamicResource MuchinfoBrush13}"
  56. Text="至" />
  57. <DatePicker Name="DatePicker2"
  58. Width="120"
  59. HorizontalAlignment="Stretch"
  60. VerticalAlignment="Center"
  61. CalendarStyle="{DynamicResource CalendarStyle}"
  62. IsEnabled="{Binding IsChecked,
  63. ElementName=RadioHistory}"
  64. SelectedDate="{Binding EndTime,
  65. Mode=TwoWay}"
  66. TabIndex="7" />
  67. <Button Width="70"
  68. Height="26"
  69. Margin="10,0"
  70. VerticalAlignment="Center"
  71. Command="{Binding SelectCommand}"
  72. Content="查询"
  73. Style="{DynamicResource CommonButtonStyle}" />
  74. <Button Width="70"
  75. Height="26"
  76. Margin="10,0"
  77. VerticalAlignment="Center"
  78. Command="{Binding ReSetCommand}"
  79. Content="重置"
  80. Style="{DynamicResource CommonButtonStyle}" />
  81. </StackPanel>
  82. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  83. ItemsSource="{Binding SaleGoodsList}"
  84. SelectedIndex="-1"
  85. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  86. <DataGrid.Columns>
  87. <DataGridTextColumn Width="*"
  88. MinWidth="100"
  89. Binding="{Binding GoodsCode}"
  90. ElementStyle="{DynamicResource DataGridTextColumnStyle}"
  91. Header="委托单号" />
  92. <DataGridTextColumn Width="*"
  93. MinWidth="120"
  94. Binding="{Binding GoodsName}"
  95. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  96. Header="委托时间" />
  97. <DataGridTextColumn Width="*"
  98. MinWidth="70"
  99. Binding="{Binding SalePrice}"
  100. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  101. Header="状态" />
  102. <DataGridTextColumn Width="*"
  103. MinWidth="100"
  104. Binding="{Binding Qty}"
  105. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  106. Header="商品代码" />
  107. <DataGridTextColumn Width="*"
  108. MinWidth="100"
  109. Binding="{Binding ApplyStartTime1}"
  110. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  111. Header="商品名称" />
  112. <DataGridTextColumn Width="*"
  113. MinWidth="80"
  114. Binding="{Binding ApplyEndTime2}"
  115. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  116. Header="方向" />
  117. <DataGridTextColumn Width="*"
  118. MinWidth="80"
  119. Binding="{Binding ApplyEndTime3}"
  120. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  121. Header="委托数量" />
  122. <DataGridTextColumn Width="*"
  123. MinWidth="80"
  124. Binding="{Binding ApplyEndTime4}"
  125. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  126. Header="委托价格" />
  127. <DataGridTextColumn Width="*"
  128. MinWidth="80"
  129. Binding="{Binding ApplyEndTime5}"
  130. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  131. Header="申购金额" />
  132. <DataGridTextColumn Width="*"
  133. MinWidth="80"
  134. Binding="{Binding ApplyEndTime6}"
  135. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  136. Header="申购手续费" />
  137. </DataGrid.Columns>
  138. </dataGrid:MuchinfoDataGrid>
  139. </Grid>
  140. </xctk:BusyIndicator>
  141. </UserControl>