DepositPlanView.xaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.DepositPlanView"
  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. mc:Ignorable="d">
  9. <UserControl.Resources>
  10. <DataTemplate x:Key="OperationDataTemplate">
  11. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  12. <Button Width="80"
  13. Height="22"
  14. Margin="3"
  15. Command="{Binding Path=DataContext.DetailCommand,
  16. RelativeSource={RelativeSource Mode=FindAncestor,
  17. AncestorLevel=3,
  18. AncestorType={x:Type Grid}}}"
  19. Content="{x:Static resource:Client_Resource.Conent_Deposit_Apply}"
  20. IsEnabled="{Binding IsDepositApply}"
  21. Style="{DynamicResource ButtonWithBorderStyle}" />
  22. </StackPanel>
  23. </DataTemplate>
  24. </UserControl.Resources>
  25. <Grid>
  26. <dataGrid:MuchinfoDataGrid x:Name="DepositDataGrid"
  27. FontSize="{DynamicResource MuchinfoFontSize_M}"
  28. ItemsSource="{Binding DepositPlanList}"
  29. KeyUp="DepositDataGrid_OnKeyDown"
  30. MouseRightButtonDown="DepositDataGrid_OnMouseRightButtonDown"
  31. PreviewMouseWheel="DepositDataGrid_OnPreviewMouseWheel"
  32. ScrollViewer.HorizontalScrollBarVisibility="Hidden"
  33. ScrollViewer.VerticalScrollBarVisibility="Hidden"
  34. SelectedIndex="-1"
  35. SelectedItem="{Binding CurrentDataGridItem,
  36. Mode=TwoWay}"
  37. Style="{DynamicResource QuoteMuchinfoDataGridStyle}">
  38. <!--
  39. <DataGrid.Columns>
  40. <DataGridTextColumn Width="Auto"
  41. MinWidth="50"
  42. Binding="{Binding OrderNumber}"
  43. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  44. FontWeight="Bold">
  45. <DataGridTextColumn.Header>
  46. <StackPanel HorizontalAlignment="Stretch">
  47. <TextBlock HorizontalAlignment="Center"
  48. FontSize="{DynamicResource MuchinfoFontSize_M}"
  49. Text="{x:Static resource:Client_Resource.FinancingAndInvestmen_Id}" />
  50. </StackPanel>
  51. </DataGridTextColumn.Header>
  52. </DataGridTextColumn>
  53. <DataGridTextColumn Width="Auto"
  54. MinWidth="50"
  55. Binding="{Binding GoodsCode}"
  56. ElementStyle="{DynamicResource DataGridTextColumnStyleLeft}"
  57. FontWeight="Bold"
  58. Foreground="{DynamicResource GoodsCodeBrush}">
  59. <DataGridTextColumn.Header>
  60. <StackPanel HorizontalAlignment="Stretch">
  61. <TextBlock HorizontalAlignment="Center"
  62. FontSize="{DynamicResource MuchinfoFontSize_M}"
  63. Text="{x:Static resource:Client_Resource.Content_GoodsCode}" />
  64. </StackPanel>
  65. </DataGridTextColumn.Header>
  66. </DataGridTextColumn>
  67. <DataGridTemplateColumn Width="Auto"
  68. MinWidth="15"
  69. CellTemplate="{DynamicResource MySelectedFlagDataTemplate}">
  70. <DataGridTemplateColumn.Header>
  71. <StackPanel HorizontalAlignment="Stretch">
  72. <TextBlock HorizontalAlignment="Center" Text="" />
  73. </StackPanel>
  74. </DataGridTemplateColumn.Header>
  75. </DataGridTemplateColumn>
  76. <DataGridTextColumn Width="Auto"
  77. MinWidth="80"
  78. Binding="{Binding GoodsName}"
  79. ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
  80. Foreground="{DynamicResource NameDefaultBrush}">
  81. <DataGridTextColumn.Header>
  82. <StackPanel HorizontalAlignment="Stretch">
  83. <TextBlock HorizontalAlignment="Center"
  84. FontSize="{DynamicResource MuchinfoFontSize_M}"
  85. Text="{x:Static resource:Client_Resource.Content_GoodsName}" />
  86. </StackPanel>
  87. </DataGridTextColumn.Header>
  88. </DataGridTextColumn>
  89. <DataGridTextColumn Width="Auto"
  90. MinWidth="80"
  91. Binding="{Binding AgreeUnitDisplay}"
  92. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  93. <DataGridTextColumn.Header>
  94. <StackPanel HorizontalAlignment="Stretch">
  95. <TextBlock HorizontalAlignment="Center"
  96. FontSize="{DynamicResource MuchinfoFontSize_M}"
  97. Text="{x:Static resource:Client_Resource.Content_AgreeUnit}" />
  98. </StackPanel>
  99. </DataGridTextColumn.Header>
  100. </DataGridTextColumn>
  101. <DataGridTextColumn Width="Auto"
  102. MinWidth="80"
  103. Binding="{Binding SalePrice}"
  104. ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
  105. FontWeight="Bold"
  106. Foreground="{DynamicResource QuoteAscBrush}">
  107. <DataGridTextColumn.Header>
  108. <StackPanel HorizontalAlignment="Stretch">
  109. <TextBlock HorizontalAlignment="Right"
  110. FontSize="{DynamicResource MuchinfoFontSize_M}"
  111. Text="{x:Static resource:Client_Resource.Content_SalePrice}" />
  112. </StackPanel>
  113. </DataGridTextColumn.Header>
  114. </DataGridTextColumn>
  115. <DataGridTextColumn Width="Auto"
  116. MinWidth="120"
  117. Binding="{Binding ApplyStartTimeDisplay}"
  118. ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
  119. FontWeight="Bold">
  120. <DataGridTextColumn.Header>
  121. <StackPanel HorizontalAlignment="Stretch">
  122. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_ApplyStartTime}" />
  123. </StackPanel>
  124. </DataGridTextColumn.Header>
  125. </DataGridTextColumn>
  126. <DataGridTextColumn Width="Auto"
  127. MinWidth="120"
  128. Binding="{Binding ApplyEndTimeDisplay}"
  129. ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
  130. FontWeight="Bold">
  131. <DataGridTextColumn.Header>
  132. <StackPanel HorizontalAlignment="Stretch">
  133. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_ApplyEndTime}" />
  134. </StackPanel>
  135. </DataGridTextColumn.Header>
  136. </DataGridTextColumn>
  137. <DataGridTextColumn Width="Auto"
  138. MinWidth="80"
  139. Binding="{Binding RunStepsDisplay}"
  140. ElementStyle="{StaticResource DataGridTextColumnStyle}">
  141. <DataGridTextColumn.Header>
  142. <StackPanel HorizontalAlignment="Stretch">
  143. <TextBlock HorizontalAlignment="Center" Text="{x:Static resource:Client_Resource.Content_State}" />
  144. </StackPanel>
  145. </DataGridTextColumn.Header>
  146. </DataGridTextColumn>
  147. <DataGridTemplateColumn Width="Auto">
  148. <DataGridTemplateColumn.Header>
  149. <StackPanel HorizontalAlignment="Stretch">
  150. <TextBlock HorizontalAlignment="Center" Text="{x:Static resource:Client_Resource.Content_Operation}" />
  151. </StackPanel>
  152. </DataGridTemplateColumn.Header>
  153. <DataGridTemplateColumn.CellTemplate>
  154. <DataTemplate>
  155. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  156. <Button Width="52"
  157. Height="22"
  158. Margin="3"
  159. Command="{Binding Path=DataContext.DetailCommand,
  160. RelativeSource={RelativeSource Mode=FindAncestor,
  161. AncestorLevel=3,
  162. AncestorType={x:Type Grid}}}"
  163. Content="{x:Static resource:Client_Resource.Content_SaleApply}"
  164. IsEnabled="{Binding IsSale}"
  165. Style="{DynamicResource ButtonWithBorderStyle}" />
  166. </StackPanel>
  167. </DataTemplate>
  168. </DataGridTemplateColumn.CellTemplate>
  169. </DataGridTemplateColumn>
  170. </DataGrid.Columns>
  171. -->
  172. </dataGrid:MuchinfoDataGrid>
  173. </Grid>
  174. </UserControl>