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.
157 lines
6.6 KiB
XML
157 lines
6.6 KiB
XML
<UserControl
|
|
x:Class="XGLFinishPro.Views.LanJu_User"
|
|
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:local="clr-namespace:XGLFinishPro.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" Loaded="UserControl_Loaded"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<Style TargetType="TextBox" >
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="Width" Value="280"/>
|
|
<Setter Property="Height" Value="50"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<Grid>
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Background="Transparent"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
VerticalScrollBarVisibility="Hidden"/>
|
|
<TextBlock x:Name="Watermark"
|
|
Text="请把光标定位到此处再刷卡..."
|
|
Foreground="Gray"
|
|
Margin="5,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Visibility="Collapsed"/>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Text" Value=""/>
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Watermark" Property="Visibility" Value="Visible"/>
|
|
</MultiTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
|
<Viewbox Stretch="Fill">
|
|
<Canvas
|
|
Width="1920"
|
|
Height="800"
|
|
Background="#F2F3F5">
|
|
<Grid
|
|
Width="1920"
|
|
Height="800"
|
|
Margin="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="80" />
|
|
<RowDefinition Height="626" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
<Label
|
|
Grid.Row="0"
|
|
Width="175"
|
|
Height="37"
|
|
Margin="25,20,0,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center">
|
|
<TextBlock
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
Text=" 员工打卡:" />
|
|
</Label>
|
|
<TextBox Name="txtOnWorkUserID" KeyDown="txtOnWorkUserID_KeyDown"/>
|
|
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="525,0,0,0">
|
|
<Label
|
|
Grid.Row="0"
|
|
Width="175"
|
|
Height="37"
|
|
Margin="25,20,0,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center">
|
|
<TextBlock
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
Text=" 工号打卡:" />
|
|
</Label>
|
|
<TextBox Name="txtOnWorkUsername" KeyDown="txtOnWorkUsername_KeyDown" TextChanged="txtOnWorkUsername_TextChanged"/>
|
|
<Border Margin="30,17,0,17" Width="288" BorderThickness="1" BorderBrush="Gray" >
|
|
<Label Name="dakaname" FontSize="30" />
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<!--<Button
|
|
Grid.Row="0"
|
|
Width="90"
|
|
Height="44"
|
|
Margin="0,25,25,25"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Background="#2B7EE6">
|
|
<TextBlock
|
|
FontSize="20"
|
|
Foreground="White"
|
|
Text="返回" />
|
|
</Button>-->
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Width="800"
|
|
Height="80"
|
|
Margin="25,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<!--<Button
|
|
Width="196"
|
|
Height="69"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Background="White"
|
|
Click="Now_Click">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Text="当前人员" />
|
|
</Button>-->
|
|
<Button
|
|
Width="196"
|
|
Height="69"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Background="White"
|
|
Click="Record_Click">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Text="打卡记录" />
|
|
</Button>
|
|
</StackPanel>
|
|
<ContentControl
|
|
x:Name="Window3"
|
|
Grid.Row="2"
|
|
Width="1920"
|
|
Height="626" />
|
|
</Grid>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</UserControl>
|