| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QuerySaleGoodsView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- DataContext="{Binding QuerySaleGoods,
- Source={StaticResource Locator}}"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <DataTemplate x:Key="OperationDataTemplate">
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Width="52"
- Height="22"
- Margin="3"
- Command="{Binding Path=DataContext.DetailCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- Content="{x:Static resource:Client_Resource.Content_SaleApply}"
- IsEnabled="{Binding IsSale}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- </StackPanel>
- </DataTemplate>
- </UserControl.Resources>
- <Grid>
- <dataGrid:MuchinfoDataGrid x:Name="SaleDataGrid"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- FrozenColumnCount="4"
- ItemsSource="{Binding SaleGoodsList}"
- KeyUp="SaleDataGrid_OnKeyDown"
- MouseRightButtonDown="SaleDataGrid_OnMouseRightButtonDown"
- PreviewMouseWheel="SaleDataGrid_OnPreviewMouseWheel"
- ScrollViewer.HorizontalScrollBarVisibility="Hidden"
- ScrollViewer.VerticalScrollBarVisibility="Hidden"
- SelectedIndex="-1"
- SelectedItem="{Binding CurrentDataGridItem,
- Mode=TwoWay}"
- Style="{DynamicResource QuoteMuchinfoDataGridStyle}">
- <!--
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding OrderNumber}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- FontWeight="Bold">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.FinancingAndInvestmen_Id}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
-
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding GoodsCode}"
- ElementStyle="{DynamicResource DataGridTextColumnStyleLeft}"
- FontWeight="Bold"
- Foreground="{DynamicResource GoodsCodeBrush}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_GoodsCode}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <DataGridTemplateColumn Width="Auto"
- MinWidth="15"
- CellTemplate="{DynamicResource MySelectedFlagDataTemplate}">
- <DataGridTemplateColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center" Text="" />
- </StackPanel>
- </DataGridTemplateColumn.Header>
- </DataGridTemplateColumn>
-
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding GoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
- Foreground="{DynamicResource NameDefaultBrush}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_GoodsName}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding AgreeUnitDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_AgreeUnit}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding SalePrice}"
- ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
- FontWeight="Bold"
- Foreground="{DynamicResource QuoteAscBrush}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- Text="{x:Static resource:Client_Resource.Content_SalePrice}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding ApplyStartTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
- FontWeight="Bold">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_ApplyStartTime}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
-
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding ApplyEndTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyleRight}"
- FontWeight="Bold">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_ApplyEndTime}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
-
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding RunStepsDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}">
- <DataGridTextColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center" Text="{x:Static resource:Client_Resource.Content_State}" />
- </StackPanel>
- </DataGridTextColumn.Header>
- </DataGridTextColumn>
-
- <DataGridTemplateColumn Width="Auto">
- <DataGridTemplateColumn.Header>
- <StackPanel HorizontalAlignment="Stretch">
- <TextBlock HorizontalAlignment="Center" Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </StackPanel>
- </DataGridTemplateColumn.Header>
-
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Width="52"
- Height="22"
- Margin="3"
- Command="{Binding Path=DataContext.DetailCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- Content="{x:Static resource:Client_Resource.Content_SaleApply}"
- IsEnabled="{Binding IsSale}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- -->
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </UserControl>
|