289 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			XML
		
	
	
	
			
		
		
	
	
			289 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			XML
		
	
	
	
<UserControl x:Class="DM_Weight.Views.ChangeShiftsWindow"
 | 
						|
             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"
 | 
						|
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" 
 | 
						|
             mc:Ignorable="d" 
 | 
						|
             d:DesignHeight="450" d:DesignWidth="800">
 | 
						|
    <Grid>
 | 
						|
        <Grid.RowDefinitions >
 | 
						|
            <RowDefinition Height="8*"></RowDefinition>
 | 
						|
            <RowDefinition Height="2*"></RowDefinition>
 | 
						|
        </Grid.RowDefinitions>
 | 
						|
        <materialDesign:Card>
 | 
						|
            <Grid>
 | 
						|
                <Grid.ColumnDefinitions>
 | 
						|
                    <ColumnDefinition Width="5*"/>
 | 
						|
                    <ColumnDefinition Width="5*"/>
 | 
						|
                </Grid.ColumnDefinitions>
 | 
						|
                <Grid Grid.Column="0" Margin="5">
 | 
						|
                    <Grid.RowDefinitions >
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="2*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                    </Grid.RowDefinitions>
 | 
						|
                    <Grid.ColumnDefinitions>
 | 
						|
                        <ColumnDefinition/>
 | 
						|
                        <ColumnDefinition/>
 | 
						|
                    </Grid.ColumnDefinitions>
 | 
						|
                    <TextBlock Grid.ColumnSpan="2"
 | 
						|
                    Grid.Row="1"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="28"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="交班人">
 | 
						|
                    </TextBlock>
 | 
						|
                    <TextBlock
 | 
						|
                    Grid.Row="2"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="14"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="发药人">
 | 
						|
                    </TextBlock>
 | 
						|
                    <Grid Grid.Row="3" Margin="2" >
 | 
						|
                        <Grid.RowDefinitions >
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        </Grid.RowDefinitions>
 | 
						|
 | 
						|
                        <!--<Grid.ColumnDefinitions>
 | 
						|
                            <ColumnDefinition Width="*"/>
 | 
						|
                            <ColumnDefinition Width="4*"/>
 | 
						|
                            <ColumnDefinition Width="*"/>
 | 
						|
                        </Grid.ColumnDefinitions>-->
 | 
						|
                        <TextBox IsEnabled="False"
 | 
						|
                            Grid.Row="0"
 | 
						|
                            Grid.Column="1"
 | 
						|
                            x:Name="account"
 | 
						|
                            Text="{Binding JiaoFaUsername, UpdateSourceTrigger=PropertyChanged}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedTextBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            AcceptsReturn="False"
 | 
						|
                            TextWrapping="Wrap"
 | 
						|
                            materialDesign:HintAssist.Hint="账号" />
 | 
						|
                        <PasswordBox
 | 
						|
                            Grid.Row="1"
 | 
						|
                            Grid.Column="1"
 | 
						|
                            x:Name="PasswordBox"
 | 
						|
                            materialDesign:PasswordBoxAssist.Password="{Binding JiaoFaPassword, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            materialDesign:HintAssist.Hint="密码" />
 | 
						|
                    </Grid>
 | 
						|
                    <TextBlock 
 | 
						|
                    Grid.Row="2" Grid.Column="1"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="14"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="审核人"/>
 | 
						|
                    <Grid Grid.Row="3" Grid.Column="1" Margin="2"  >
 | 
						|
                        <Grid.RowDefinitions >
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                            <!--<RowDefinition Height="*"></RowDefinition>-->
 | 
						|
                        </Grid.RowDefinitions>
 | 
						|
 | 
						|
                        <!--<Grid.ColumnDefinitions>
 | 
						|
                            <ColumnDefinition Width="*"/>
 | 
						|
                            <ColumnDefinition Width="4*"/>
 | 
						|
                            <ColumnDefinition Width="*"/>
 | 
						|
                        </Grid.ColumnDefinitions>-->
 | 
						|
                        <TextBox IsEnabled="False"
 | 
						|
                            Grid.Row="0"
 | 
						|
                            Grid.Column="1"
 | 
						|
                            x:Name="account2"
 | 
						|
                            Text="{Binding JiaoShenUsername, UpdateSourceTrigger=PropertyChanged}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedTextBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            AcceptsReturn="False"
 | 
						|
                            TextWrapping="Wrap"
 | 
						|
                            materialDesign:HintAssist.Hint="账号" />
 | 
						|
                        <PasswordBox
 | 
						|
                            Grid.Row="1"
 | 
						|
                            Grid.Column="1"
 | 
						|
                            x:Name="PasswordBox2"
 | 
						|
                            materialDesign:PasswordBoxAssist.Password="{Binding JiaoShenPassword, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            materialDesign:HintAssist.Hint="密码" />                        
 | 
						|
                    </Grid>
 | 
						|
                    <StackPanel Grid.Row="4"
 | 
						|
                            Grid.ColumnSpan="2">
 | 
						|
                        <Grid>
 | 
						|
                            <Grid.ColumnDefinitions>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="2*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="2*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                            </Grid.ColumnDefinitions>
 | 
						|
                            <Button IsEnabled="{Binding JiaoBanOk}"
 | 
						|
                                    Grid.Column="1"
 | 
						|
                                    Style="{StaticResource MaterialDesignRaisedButton}"
 | 
						|
                                    materialDesign:ButtonAssist.CornerRadius="5"
 | 
						|
                                    Command="{ Binding JiaobanCommand }"
 | 
						|
                                    Background="#42a5f5" 
 | 
						|
                                    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 ClearOneCommand }" >
 | 
						|
                                <TextBlock Foreground="{DynamicResource MaterialDesignPaper}" Text="清空" />
 | 
						|
                            </Button>
 | 
						|
                        </Grid>
 | 
						|
                    </StackPanel>
 | 
						|
                </Grid>
 | 
						|
 | 
						|
                <Border BorderBrush="Gray"  BorderThickness="1"/>
 | 
						|
                <Grid Grid.Column="1" Margin="5">
 | 
						|
                    <Grid.RowDefinitions >
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="2*"></RowDefinition>
 | 
						|
                        <RowDefinition Height="*"></RowDefinition>
 | 
						|
                    </Grid.RowDefinitions>
 | 
						|
                    <Grid.ColumnDefinitions>
 | 
						|
                        <ColumnDefinition/>
 | 
						|
                        <ColumnDefinition/>
 | 
						|
                    </Grid.ColumnDefinitions>
 | 
						|
                    <TextBlock Grid.ColumnSpan="2"
 | 
						|
                    Grid.Row="1"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="28"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="接班人"/>
 | 
						|
                    <TextBlock
 | 
						|
                    Grid.Row="2"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="14"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="发药人">
 | 
						|
                    </TextBlock>
 | 
						|
                    <Grid Grid.Row="3" Margin="2" >
 | 
						|
                        <Grid.RowDefinitions >
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        </Grid.RowDefinitions>
 | 
						|
 | 
						|
                        <Grid.ColumnDefinitions>
 | 
						|
                            <!--<ColumnDefinition Width="*"/>
 | 
						|
                            <ColumnDefinition Width="4*"/>
 | 
						|
                            <ColumnDefinition Width="*"/>-->
 | 
						|
                        </Grid.ColumnDefinitions>
 | 
						|
                        <TextBox
 | 
						|
                            Grid.Row="0"
 | 
						|
                            Grid.Column="1"
 | 
						|
                            x:Name="accountShifts"
 | 
						|
                            Text="{Binding JieFaUsername, UpdateSourceTrigger=PropertyChanged}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedTextBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            AcceptsReturn="False"
 | 
						|
                            TextWrapping="Wrap"
 | 
						|
                            materialDesign:HintAssist.Hint="账号" />
 | 
						|
                        <PasswordBox
 | 
						|
                            Grid.Row="1"
 | 
						|
                            Grid.Column="0"
 | 
						|
                            x:Name="PasswordBoxShifts"
 | 
						|
                            materialDesign:PasswordBoxAssist.Password="{Binding JieFaPassword, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            materialDesign:HintAssist.Hint="密码" />
 | 
						|
                    </Grid>
 | 
						|
                    <TextBlock
 | 
						|
                    Grid.Row="2" Grid.Column="1"
 | 
						|
                    HorizontalAlignment="Center"
 | 
						|
                    VerticalAlignment="Center"
 | 
						|
                    FontSize="14"
 | 
						|
                    Foreground="#31ccec"
 | 
						|
                    FontWeight="Bold"
 | 
						|
                    Text="审核人"/>
 | 
						|
                    <Grid Grid.Row="3" Grid.Column="1" Margin="2" >
 | 
						|
                        <Grid.RowDefinitions >
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                            <RowDefinition Height="*"></RowDefinition>
 | 
						|
                        </Grid.RowDefinitions>
 | 
						|
 | 
						|
                        <Grid.ColumnDefinitions>
 | 
						|
                            <ColumnDefinition Width="*"/>
 | 
						|
                        </Grid.ColumnDefinitions>
 | 
						|
                        <TextBox
 | 
						|
                            Grid.Row="0"
 | 
						|
                            Grid.Column="0"
 | 
						|
                            x:Name="accountShifts2"
 | 
						|
                            Text="{Binding JieShenUsername, UpdateSourceTrigger=PropertyChanged}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedTextBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            AcceptsReturn="False"
 | 
						|
                            TextWrapping="Wrap"
 | 
						|
                            materialDesign:HintAssist.Hint="账号" />
 | 
						|
                        <PasswordBox
 | 
						|
                            Grid.Row="1"
 | 
						|
                            Grid.Column="0"
 | 
						|
                            x:Name="PasswordBoxShifts2"
 | 
						|
                            materialDesign:PasswordBoxAssist.Password="{Binding JieShenPassword, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
 | 
						|
                            Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
 | 
						|
                            VerticalAlignment="Top"
 | 
						|
                            materialDesign:HintAssist.Hint="密码" />
 | 
						|
                    </Grid>
 | 
						|
                    <StackPanel Grid.Row="4"  Grid.ColumnSpan="2">
 | 
						|
                        <Grid>
 | 
						|
                            <Grid.ColumnDefinitions>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="2*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="2*"></ColumnDefinition>
 | 
						|
                                <ColumnDefinition Width="*"></ColumnDefinition>
 | 
						|
                            </Grid.ColumnDefinitions>
 | 
						|
                            <Button
 | 
						|
                                    Grid.Column="1" IsEnabled="{Binding JieBanOk}"
 | 
						|
                                    Style="{StaticResource MaterialDesignRaisedButton}"
 | 
						|
                                    materialDesign:ButtonAssist.CornerRadius="5"
 | 
						|
                                    Command="{ Binding JiebanCommand }"
 | 
						|
                                    Background="#42a5f5"
 | 
						|
                                    BorderBrush="#42a5f5" Cursor="Hand"  IsDefault="True"  Content="确定" Height="32" VerticalAlignment="Top"/>
 | 
						|
                            <Button
 | 
						|
                                Grid.Column="3"
 | 
						|
                                Style="{StaticResource MaterialDesignRaisedLightButton}"
 | 
						|
                                Background="#7986cb"
 | 
						|
                                BorderBrush="#7986cb"
 | 
						|
                                materialDesign:ButtonAssist.CornerRadius="5" Cursor="Hand" IsCancel="true" 
 | 
						|
                                Command="{ Binding ClearTwoCommand }" >
 | 
						|
                                <TextBlock Foreground="{DynamicResource MaterialDesignPaper}" Text="清空" />
 | 
						|
                            </Button>
 | 
						|
                        </Grid>
 | 
						|
                    </StackPanel>
 | 
						|
 | 
						|
                </Grid>
 | 
						|
                <Border BorderBrush="Gray"  BorderThickness="1"/>
 | 
						|
            </Grid>
 | 
						|
        </materialDesign:Card>
 | 
						|
        <materialDesign:Card Grid.Row="1">
 | 
						|
            <Button
 | 
						|
                                    Grid.Column="0"
 | 
						|
                                    Style="{StaticResource MaterialDesignRaisedButton}"
 | 
						|
                                    materialDesign:ButtonAssist.CornerRadius="5"
 | 
						|
                                    Command="{ Binding ShiftsCommand }"
 | 
						|
                                    Background="#42a5f5"
 | 
						|
                                    BorderBrush="#42a5f5" Cursor="Hand"  IsDefault="True"  Content="确认交接"/>
 | 
						|
        </materialDesign:Card>
 | 
						|
    </Grid>
 | 
						|
</UserControl>
 |