change-盘库未完成版本
parent
fb4d45335b
commit
0e2078537d
@ -0,0 +1,149 @@
|
||||
<Window x:Class="Khd.Core.Wpf.WindowPage.InventoryMaterialWindow"
|
||||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Khd.Core.Wpf.WindowPage"
|
||||
mc:Ignorable="d"
|
||||
Title="选择盘库型号" Height="600" Width="1500" WindowStartupLocation="CenterScreen" Background="#172557">
|
||||
|
||||
<Window.Resources>
|
||||
|
||||
<ResourceDictionary>
|
||||
|
||||
<Style x:Key="dgCell" TargetType="TextBlock" BasedOn="{x:Null}">
|
||||
<Setter Property="TextAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!--<hc:ThemeResources/>
|
||||
<hc:Theme/>-->
|
||||
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="8*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
||||
<TextBox x:Name="SearchTxt" Width="200" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" />
|
||||
<Button x:Name="SearchButton" Foreground="White" Background="Blue" Content="搜 索" FontSize="20" Margin="20 0 25 0" Height="50" Width="100" Click="SearchButton_Click"/>
|
||||
|
||||
<TextBlock Text="选中物料" Foreground="White" FontSize="25" Margin="0 0 25 0" VerticalAlignment="Center"/>
|
||||
<TextBox x:Name="SelectMaterialId" Width="50" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" />
|
||||
<TextBox x:Name="SelectMaterialName" Width="200" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" />
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<DataGrid SelectionChanged="StockDataGrid_SelectionChanged"
|
||||
Style="{StaticResource DataGridStyle}"
|
||||
Grid.Row="2" AlternationCount="2"
|
||||
AutoGenerateColumns="False"
|
||||
MinRowHeight="50"
|
||||
Background="#172557"
|
||||
CanUserAddRows="False"
|
||||
GridLinesVisibility="None"
|
||||
CanUserReorderColumns="False"
|
||||
CanUserResizeColumns="False"
|
||||
CanUserResizeRows="False"
|
||||
Focusable="False"
|
||||
Height="auto"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
RowHeaderWidth="0"
|
||||
SelectionMode="Single" FontSize="16"
|
||||
Visibility="Visible"
|
||||
VerticalAlignment="Top"
|
||||
x:Name="StockDataGrid">
|
||||
<DataGrid.Columns>
|
||||
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="200*"
|
||||
Binding="{Binding materialId}"
|
||||
CanUserSort="False"
|
||||
ElementStyle="{StaticResource dgCell}"
|
||||
FontSize="20"
|
||||
Header="物料ID"
|
||||
IsReadOnly="True" />
|
||||
<DataGridTextColumn
|
||||
Width="200*"
|
||||
Binding="{Binding materialCode}"
|
||||
CanUserSort="False"
|
||||
ElementStyle="{StaticResource dgCell}"
|
||||
FontSize="20"
|
||||
Header="物料编码"
|
||||
IsReadOnly="True" />
|
||||
<DataGridTemplateColumn
|
||||
Width="280*"
|
||||
CanUserSort="False"
|
||||
Header="物料名称"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialName}" ToolTip="{Binding materialNameSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn
|
||||
Width="300*"
|
||||
CanUserSort="False"
|
||||
Header="物料规格"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialSpec}" ToolTip="{Binding materialSpecSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
|
||||
</DataGrid.CellStyle>
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="{x:Type DataGridRow}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
<DataGrid.RowHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridRowHeader}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
</DataGrid.RowHeaderStyle>
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="Background" Value="#172560" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="Margin" Value="0,0,0,0" />
|
||||
<Setter Property="BorderThickness" Value="5" />
|
||||
<Setter Property="BorderBrush" Value="#172540" />
|
||||
<Setter Property="FontSize" Value="30" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Window>
|
||||
Loading…
Reference in New Issue