XiangTan_DM/DM_Weight/Views/Dialog/ChangeShiftsDialog.xaml

164 lines
9.4 KiB
Plaintext
Raw Normal View History

2024-12-03 13:22:42 +08:00
<UserControl x:Class="DM_Weight.Views.Dialog.ChangeShiftsDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:DM_Weight.Views.Dialog"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:convert="clr-namespace:DM_Weight.Converter"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<convert:BoardTypeConverter x:Key="BoardTypeConverter" />
<convert:ForeColorConverter x:Key="ForeColorConverter"/>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Grid Background="#03a9f4" Grid.Row="0" Grid.ColumnSpan="2">
<TextBlock VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" Margin="16 0 16 0" Style="{StaticResource MaterialDesignHeadline5TextBlock}" Text="{Binding Title}" />
<Button
Style="{StaticResource MaterialDesignIconForegroundButton}"
Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
HorizontalAlignment="Right"
Command="{Binding BtnCloseCommand}"
ToolTip="关闭" Cursor="Hand"
>
<materialDesign:PackIcon Kind="Close" Width="34" Height="34" />
</Button>
</Grid>
<Grid Grid.Row="1">
<materialDesign:Card>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Margin="15,10,60,5" Text="验证方式1账号密码验证" Foreground="#31ccec" FontWeight="Bold" FontSize="14"/>
<TextBox Margin="15,5,15,5"
Grid.Row="1"
x:Name="account" Foreground="Gray"
Text="{Binding Username, UpdateSourceTrigger=PropertyChanged}"
Style="{StaticResource MaterialDesignOutlinedTextBox}"
VerticalAlignment="Top"
AcceptsReturn="False"
TextWrapping="Wrap"
materialDesign:HintAssist.Hint="账号" />
<PasswordBox Margin="15,5,15,5"
Grid.Row="2"
x:Name="PasswordBox" Foreground="Gray"
materialDesign:PasswordBoxAssist.Password="{Binding Password, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
VerticalAlignment="Top"
materialDesign:HintAssist.Hint="密码" />
<StackPanel Grid.Row="3"
Grid.Column="1">
<Grid Margin="2,2,2,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="3*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="3*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button
Grid.Column="1"
Style="{StaticResource MaterialDesignRaisedButton}"
materialDesign:ButtonAssist.CornerRadius="5"
Command="{ Binding LoginCommand }"
Background="#42a5f5" IsEnabled="{Binding JiaoBanOk}"
BorderBrush="#42a5f5" Cursor="Hand" IsDefault="True" Content="验证"/>
<Button
Grid.Column="3"
Style="{StaticResource MaterialDesignRaisedLightButton}"
Background="#7986cb"
BorderBrush="#7986cb"
materialDesign:ButtonAssist.CornerRadius="5" Cursor="Hand" IsCancel="true"
Command="{ Binding ClearCommand }" >
<TextBlock Foreground="{DynamicResource MaterialDesignPaper}" Text="清空" />
</Button>
</Grid>
</StackPanel>
</Grid>
</materialDesign:Card>
</Grid>
<Grid Grid.Row="1" Grid.Column="1" >
<materialDesign:Card>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Margin="15,10,15,0" Text="验证方式2屏幕外右侧指纹验证" Foreground="#31ccec" FontWeight="Bold" FontSize="14" />
<StackPanel Grid.Row="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Text="交班人 发药人:" Grid.Column="0" HorizontalAlignment="Right" Margin="0 15 0 5"
FontSize="14" Foreground="#31ccec" FontWeight="Bold"/>
<TextBlock Grid.Row="0" Grid.Column="1" Margin="5 15 0 5" Foreground="{Binding OperatorLogin,Converter={StaticResource ForeColorConverter}}"
FontSize="14"
FontWeight="Bold"
Text="{Binding Operator.Nickname, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Row="1" Text="审核人:" Grid.Column="0" HorizontalAlignment="Right" Margin="0 15 0 5"
FontSize="14" Foreground="#31ccec" FontWeight="Bold"/>
<TextBlock Grid.Column="1" Margin="5 15 0 5" Foreground="{Binding ReviewerLogin,Converter={StaticResource ForeColorConverter}}"
FontSize="14"
FontWeight="Bold"
Grid.Row="1" Text="{Binding Reviewer.Nickname, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Row="2" Text="接班人 发药人:" Grid.Column="0" HorizontalAlignment="Right" Margin="0 15 0 5"
FontSize="14" Foreground="#31ccec" FontWeight="Bold"/>
<TextBlock Grid.Column="2" Margin="5 15 0 5"
FontSize="14"
FontWeight="Bold" TextAlignment="Left" HorizontalAlignment="Left"
Foreground="#3ECFED"
Grid.Row="2" Text="{Binding JieOperator.Nickname, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Row="3" Text="审核人:" Grid.Column="0" HorizontalAlignment="Right" Margin="0 15 0 5"
FontSize="14" Foreground="#31ccec" FontWeight="Bold"/>
<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="5 15 0 5"
FontSize="14"
FontWeight="Bold"
Foreground="#3ECFED"
Grid.Row="3" Text="{Binding JieReviewer.Nickname, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</StackPanel>
</Grid>
</materialDesign:Card>
</Grid>
<materialDesign:Card Grid.Row="2" Grid.ColumnSpan="2" Margin="10">
<Button
Style="{StaticResource MaterialDesignRaisedButton}"
materialDesign:ButtonAssist.CornerRadius="5"
Command="{ Binding ShiftsCommand }"
Background="#42a5f5"
BorderBrush="#42a5f5" Cursor="Hand" IsDefault="True" Content="确认交接"/>
</materialDesign:Card>
</Grid>
</UserControl>