You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
5.0 KiB
XML
87 lines
5.0 KiB
XML
<Window x:Class="XGLFinishPro.Views.PersonView"
|
|
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:XGLFinishPro.Views"
|
|
mc:Ignorable="d"
|
|
WindowStyle="None"
|
|
WindowStartupLocation="CenterScreen"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
ResizeMode="NoResize"
|
|
Loaded="Window_Loaded"
|
|
Height="450" Width="800">
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<hc:ThemeResources />
|
|
<hc:Theme />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style x:Key="DataGridStyle" TargetType="DataGrid">
|
|
<Setter Property="Background" Value="Transparent"></Setter>
|
|
<Setter Property="HorizontalAlignment" Value="Center"></Setter>
|
|
<Setter Property="VerticalAlignment" Value="Center"></Setter>
|
|
<Setter Property="FontSize" Value="20"></Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal" Margin="10" VerticalAlignment="Center">
|
|
<TextBlock Text="姓名:" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
|
<TextBox x:Name="RealName" VerticalAlignment="Center" Width="150"/>
|
|
<TextBlock Text="类型:" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
|
<ComboBox x:Name="UserType" VerticalAlignment="Center" Width="150" hc:InfoElement.ShowClearButton="True">
|
|
<ComboBoxItem Content="辅助人员"/>
|
|
<ComboBoxItem Content="管理人员"/>
|
|
<ComboBoxItem Content="其他"/>
|
|
</ComboBox>
|
|
<Button x:Name="QueryBtn" Style="{StaticResource ButtonPrimary}" Background="#2B7EE6" Foreground="White" Content="查询" Click="QueryBtn_Click"/>
|
|
<Button x:Name="AddBtn" Style="{StaticResource ButtonPrimary}" Background="#2B7EE6" Foreground="White" Content="计件信息填写" Margin="10,0,0,0" Click="AddBtn_Click"/>
|
|
<Button Style="{StaticResource ButtonPrimary}" Background="#2B7EE6" Foreground="White" Content="关闭" Margin="10,0,0,0" Click="Button_Click"/>
|
|
</StackPanel>
|
|
<DataGrid
|
|
Style="{StaticResource DataGridStyle}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
|
x:Name="MainGrid" Grid.Row="1" hc:DataGridAttach.CanUnselectAllWithBlankArea="True"
|
|
CanUserAddRows="False"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
CanUserResizeRows="False"
|
|
HeadersVisibility="All" AutoGenerateColumns="False">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Binding="{Binding user_id}" Header="编码" Width="*"/>
|
|
<DataGridTextColumn Binding="{Binding nick_name}" Header="名称" Width="*"/>
|
|
<DataGridTextColumn Binding="{Binding post}" Header="岗位" Width="*"/>
|
|
<DataGridTextColumn Binding="{Binding user_m_type}" Header="人员类型" Width="*"/>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<!--<Setter Property="Margin" Value="5"/>-->
|
|
</Style>
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
</Style>
|
|
</DataGrid.RowHeaderStyle>
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
</DataGrid>
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
|
|
<Button x:Name="LastPage" Style="{StaticResource ButtonPrimary}" IsEnabled="False" Background="#2B7EE6" Foreground="White" Content="上一页" Click="LastPage_Click"/>
|
|
<Button x:Name="NextPage" Style="{StaticResource ButtonPrimary}" Background="#2B7EE6" Foreground="White" Content="下一页" Margin="50,0,0,0" Click="NextPage_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|