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.
183 lines
11 KiB
XML
183 lines
11 KiB
XML
<Window x:Class="SlnMesnac.WPF.Views.HandOverWin"
|
|
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:SlnMesnac.WPF.Views"
|
|
WindowStartupLocation="CenterOwner" Background="Transparent" ResizeMode="NoResize" FontWeight="ExtraLight"
|
|
mc:Ignorable="d"
|
|
Title="HandOverWin" Height="450" Width="800">
|
|
<WindowChrome.WindowChrome>
|
|
<WindowChrome GlassFrameThickness="-1"/>
|
|
</WindowChrome.WindowChrome>
|
|
<Window.Resources>
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="FontSize" Value="20"/>
|
|
</Style>
|
|
|
|
<Style TargetType="DataGrid">
|
|
<!--网格线颜色-->
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!--列头标题栏样式-->
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
|
<Setter Property="Foreground" Value="Black"/>-->
|
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="15"/>
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Style>
|
|
|
|
<!--单元格样式-->
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<!--<Setter Property="Foreground" Value="#dddddd"/>-->
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="2*"/>
|
|
<RowDefinition Height="6*"/>
|
|
<RowDefinition Height="2*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0">
|
|
<TextBlock Text="计划数量" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Column="1" Height="50" Width="150" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" HorizontalAlignment="Left">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<TextBlock Text="{Binding PlanAmountText}" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Column="2">
|
|
<TextBlock Text="完成数量" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Column="3" Height="50" Width="150" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" HorizontalAlignment="Left">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<TextBlock Text="{Binding CompleteAmountText}" FontSize="20" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="1" BorderBrush="#1254AB" BorderThickness="2">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="5*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0">
|
|
<TextBlock Text="当前班组长先打卡,下一班组长后打卡" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="25,0,0,0"/>
|
|
</Border>
|
|
<Border Grid.Row="1">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="1.6*"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="1.6*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0">
|
|
<TextBlock Text="员工ID" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="1" Height="50" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,40,0">
|
|
<TextBlock Text="{Binding StaffIdText}" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="2">
|
|
<TextBlock Text="员工名称" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="3" Height="50" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,40,0">
|
|
<TextBlock Text="{Binding StaffNameText}" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="0">
|
|
<TextBlock Text="员工类型" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="1" Height="50" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,40,0">
|
|
<TextBlock Text="{Binding StaffTypeText}" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="2">
|
|
<TextBlock Text="班组编号" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="3" Height="50" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,40,0">
|
|
<TextBlock Text="{Binding TeamCodeText}" FontSize="20" FontWeight="Bold" Foreground="#1254AB" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="2">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" Height="50" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="20,0,20,0">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<TextBlock Text="{Binding HintText}" FontSize="20" Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Column="1"/>
|
|
<Border Grid.Column="2">
|
|
<Button Content="确认交班" x:Name="ProductionReport" Command="{Binding HandoverCommand}" CommandParameter="{Binding Name,ElementName=Select}" Style="{StaticResource BUTTON_AGREE}" FontSize="20" FontWeight="Bold" Background="#FFDC870B" BorderBrush="#FFDC870B" Margin="40,14,40,14" Click="ProductionReport_Click"/>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|