268 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			268 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<!--抽屉取药界面-->
							 | 
						||
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.DrawerTakeDrugWindow"
							 | 
						||
| 
								 | 
							
								             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"
							 | 
						||
| 
								 | 
							
								             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
							 | 
						||
| 
								 | 
							
								             xmlns:convert="clr-namespace:DM_Weight.Converter"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <convert:DrawerSelectConverter x:Key="DrawerSelectConverter" />
							 | 
						||
| 
								 | 
							
								        <convert:StatusConverter x:Key="StatusConverter" />
							 | 
						||
| 
								 | 
							
								        <convert:InputQuantityConverter x:Key="InputQuantityConverter" />
							 | 
						||
| 
								 | 
							
								    </UserControl.Resources>
							 | 
						||
| 
								 | 
							
								    <Grid>
							 | 
						||
| 
								 | 
							
								        <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								            <ColumnDefinition Width="Auto" />
							 | 
						||
| 
								 | 
							
								            <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								        </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								        <Grid Margin="0" Grid.Column="0" Width="280" Height="570"  Visibility="{Binding Is8Drawer, Converter={StaticResource BooleanToVisibilityConverter}}">
							 | 
						||
| 
								 | 
							
								            <Grid.Background>
							 | 
						||
| 
								 | 
							
								                <ImageBrush ImageSource="/Images/box.png" />
							 | 
						||
| 
								 | 
							
								            </Grid.Background>
							 | 
						||
| 
								 | 
							
								            <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="200" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition />
							 | 
						||
| 
								 | 
							
								            </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <Grid Grid.Row="1">
							 | 
						||
| 
								 | 
							
								                <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <Grid.Resources>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignPaperLightButton}">
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Foreground" Value="#00a0ea" />
							 | 
						||
| 
								 | 
							
								                        <Setter Property="BorderBrush" Value="#00a0ea" />
							 | 
						||
| 
								 | 
							
								                        <Style.Triggers>
							 | 
						||
| 
								 | 
							
								                            <Trigger Property="IsMouseOver" Value="True">
							 | 
						||
| 
								 | 
							
								                                <Setter Property="Background" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                                <Setter Property="BorderBrush" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                            </Trigger>
							 | 
						||
| 
								 | 
							
								                            <DataTrigger Value="True">
							 | 
						||
| 
								 | 
							
								                                <DataTrigger.Binding>
							 | 
						||
| 
								 | 
							
								                                    <MultiBinding Converter="{StaticResource DrawerSelectConverter}">
							 | 
						||
| 
								 | 
							
								                                        <Binding RelativeSource="{ RelativeSource Mode=Self }" Path="Content" />
							 | 
						||
| 
								 | 
							
								                                        <Binding Path="DrawerNo" />
							 | 
						||
| 
								 | 
							
								                                    </MultiBinding>
							 | 
						||
| 
								 | 
							
								                                </DataTrigger.Binding>
							 | 
						||
| 
								 | 
							
								                                <Setter Property="Background" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                                <Setter Property="BorderBrush" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                            </DataTrigger>
							 | 
						||
| 
								 | 
							
								                        </Style.Triggers>
							 | 
						||
| 
								 | 
							
								                    </Style>
							 | 
						||
| 
								 | 
							
								                </Grid.Resources>
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="0" Width="210" Content="1" Command="{Binding UpdateDrawerNo}" CommandParameter="1" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="1" Width="210" Content="2" Command="{Binding UpdateDrawerNo}" CommandParameter="2" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="2" Width="210" Content="3" Command="{Binding UpdateDrawerNo}" CommandParameter="3" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="3" Width="210" Content="4" Command="{Binding UpdateDrawerNo}" CommandParameter="4" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="4" Width="210" Content="5" Command="{Binding UpdateDrawerNo}" CommandParameter="5" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="5" Width="210" Content="6" Command="{Binding UpdateDrawerNo}" CommandParameter="6" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="6" Width="210" Content="7" Command="{Binding UpdateDrawerNo}" CommandParameter="7" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="7" Width="210" Content="8" Command="{Binding UpdateDrawerNo}" CommandParameter="8" />
							 | 
						||
| 
								 | 
							
								                
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								        <Grid Margin="0" Grid.Column="0" Width="300" Height="570" Visibility="{Binding Is16Drawer, Converter={StaticResource BooleanToVisibilityConverter}}">
							 | 
						||
| 
								 | 
							
								            <Grid.Resources>
							 | 
						||
| 
								 | 
							
								                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignPaperLightButton}">
							 | 
						||
| 
								 | 
							
								                    <Setter Property="Foreground" Value="#00a0ea" />
							 | 
						||
| 
								 | 
							
								                    <Setter Property="BorderBrush" Value="#00a0ea" />
							 | 
						||
| 
								 | 
							
								                    <Style.Triggers>
							 | 
						||
| 
								 | 
							
								                        <Trigger Property="IsMouseOver" Value="True">
							 | 
						||
| 
								 | 
							
								                            <Setter Property="Background" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                            <Setter Property="BorderBrush" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                        </Trigger>
							 | 
						||
| 
								 | 
							
								                        <DataTrigger Value="True">
							 | 
						||
| 
								 | 
							
								                            <DataTrigger.Binding>
							 | 
						||
| 
								 | 
							
								                                <MultiBinding Converter="{StaticResource DrawerSelectConverter}">
							 | 
						||
| 
								 | 
							
								                                    <Binding RelativeSource="{ RelativeSource Mode=Self }" Path="Content" />
							 | 
						||
| 
								 | 
							
								                                    <Binding Path="DrawerNo" />
							 | 
						||
| 
								 | 
							
								                                </MultiBinding>
							 | 
						||
| 
								 | 
							
								                            </DataTrigger.Binding>
							 | 
						||
| 
								 | 
							
								                            <Setter Property="Background" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                            <Setter Property="BorderBrush" Value="#d1e7f5" />
							 | 
						||
| 
								 | 
							
								                        </DataTrigger>
							 | 
						||
| 
								 | 
							
								                    </Style.Triggers>
							 | 
						||
| 
								 | 
							
								                </Style>
							 | 
						||
| 
								 | 
							
								            </Grid.Resources>
							 | 
						||
| 
								 | 
							
								            <Grid.Background>
							 | 
						||
| 
								 | 
							
								                <ImageBrush ImageSource="/Images/box-16.jpg" />
							 | 
						||
| 
								 | 
							
								            </Grid.Background>
							 | 
						||
| 
								 | 
							
								            <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="200" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition />
							 | 
						||
| 
								 | 
							
								            </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <Grid Margin="10 0 0 0"  Visibility="{Binding Is17Drawer, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="0">
							 | 
						||
| 
								 | 
							
								                <Button  Width="110" Content="17" HorizontalAlignment="Left" Command="{Binding UpdateDrawerNo}" CommandParameter="17" />
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <Grid Grid.Row="1">
							 | 
						||
| 
								 | 
							
								                <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="0" Grid.Column="0" Width="120" Content="1" Command="{Binding UpdateDrawerNo}" CommandParameter="1" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="1" Grid.Column="0" Width="120" Content="2" Command="{Binding UpdateDrawerNo}" CommandParameter="2" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="2" Grid.Column="0" Width="120" Content="3" Command="{Binding UpdateDrawerNo}" CommandParameter="3" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="3" Grid.Column="0" Width="120" Content="4" Command="{Binding UpdateDrawerNo}" CommandParameter="4" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="4" Grid.Column="0" Width="120" Content="5" Command="{Binding UpdateDrawerNo}" CommandParameter="5" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="5" Grid.Column="0" Width="120" Content="6" Command="{Binding UpdateDrawerNo}" CommandParameter="6" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="6" Grid.Column="0" Width="120" Content="7" Command="{Binding UpdateDrawerNo}" CommandParameter="7" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="7" Grid.Column="0" Width="120" Content="8" Command="{Binding UpdateDrawerNo}" CommandParameter="8" />
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="0" Grid.Column="1" Width="120" Content="9" Command="{Binding UpdateDrawerNo}" CommandParameter="9" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="1" Grid.Column="1" Width="120" Content="10" Command="{Binding UpdateDrawerNo}" CommandParameter="10" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="2" Grid.Column="1" Width="120" Content="11" Command="{Binding UpdateDrawerNo}" CommandParameter="11" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="3" Grid.Column="1" Width="120" Content="12" Command="{Binding UpdateDrawerNo}" CommandParameter="12" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="4" Grid.Column="1" Width="120" Content="13" Command="{Binding UpdateDrawerNo}" CommandParameter="13" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="5" Grid.Column="1" Width="120" Content="14" Command="{Binding UpdateDrawerNo}" CommandParameter="14" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="6" Grid.Column="1" Width="120" Content="15" Command="{Binding UpdateDrawerNo}" CommandParameter="15" />
							 | 
						||
| 
								 | 
							
								                <Button Grid.Row="7" Grid.Column="1" Width="120" Content="16" Command="{Binding UpdateDrawerNo}" CommandParameter="16" />
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								        <Grid Grid.Column="1" Margin="6">
							 | 
						||
| 
								 | 
							
								            <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition />
							 | 
						||
| 
								 | 
							
								            </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right">
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Command="{Binding OpenDrawer}"
							 | 
						||
| 
								 | 
							
								                    Visibility="{Binding Status,Converter={StaticResource StatusConverter}, ConverterParameter=opearBtnVisible}"
							 | 
						||
| 
								 | 
							
								                    materialDesign:ButtonProgressAssist.IsIndicatorVisible="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=opearBtnLoading}"
							 | 
						||
| 
								 | 
							
								                    materialDesign:ButtonProgressAssist.IsIndeterminate="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=opearBtnLoading}"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    Content="取药" />
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Command="{Binding TakeFinish}"
							 | 
						||
| 
								 | 
							
								                    Visibility="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=CompleteBtn}"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    Content="完成" />
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 6 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Command="{Binding CancleTake}"
							 | 
						||
| 
								 | 
							
								                    Visibility="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=CancelBtn}"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    Content="取消" />
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								            <DataGrid
							 | 
						||
| 
								 | 
							
								                Padding="0 6 0 0"
							 | 
						||
| 
								 | 
							
								                Grid.Row="1"
							 | 
						||
| 
								 | 
							
								                materialDesign:DataGridAssist.ColumnHeaderPadding="15"
							 | 
						||
| 
								 | 
							
								                ItemsSource="{Binding ChannelStocks}"
							 | 
						||
| 
								 | 
							
								                materialDesign:DataGridAssist.EnableEditBoxAssist="False"
							 | 
						||
| 
								 | 
							
								                materialDesign:DataGridAssist.CellPadding="13"
							 | 
						||
| 
								 | 
							
								                SelectionUnit="Cell"
							 | 
						||
| 
								 | 
							
								                CanUserAddRows="False"
							 | 
						||
| 
								 | 
							
								                AutoGenerateColumns="False">
							 | 
						||
| 
								 | 
							
								                <DataGrid.Resources>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}">
							 | 
						||
| 
								 | 
							
								                        <Setter Property="HorizontalContentAlignment" Value="Center" />
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Background" Value="#31ccec" />
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Foreground" Value="white" />
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Height" Value="56" />
							 | 
						||
| 
								 | 
							
								                        <Setter Property="BorderBrush" Value="white"/>
							 | 
						||
| 
								 | 
							
								                        <Setter Property="BorderThickness" Value="0.6"/>
							 | 
						||
| 
								 | 
							
								                    </Style>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource MaterialDesignDataGridCell}">
							 | 
						||
| 
								 | 
							
								                        <Style.Triggers>
							 | 
						||
| 
								 | 
							
								                            <Trigger Property="IsReadOnly" Value="True">
							 | 
						||
| 
								 | 
							
								                                <Setter Property="BorderBrush" Value="Transparent" />
							 | 
						||
| 
								 | 
							
								                                <Setter Property="HorizontalAlignment" Value="Left" />
							 | 
						||
| 
								 | 
							
								                            </Trigger>
							 | 
						||
| 
								 | 
							
								                        </Style.Triggers>
							 | 
						||
| 
								 | 
							
								                    </Style>                    
							 | 
						||
| 
								 | 
							
								                </DataGrid.Resources>
							 | 
						||
| 
								 | 
							
								                <DataGrid.Columns>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding ColNo}"
							 | 
						||
| 
								 | 
							
								                        Header="库位"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="116"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding DrugInfo.DrugName}"
							 | 
						||
| 
								 | 
							
								                        Header="药品名称"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding DrugInfo.DrugSpec}"
							 | 
						||
| 
								 | 
							
								                        Header="规格"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding ManuNo}"
							 | 
						||
| 
								 | 
							
								                        Header="批次"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding EffDate}"
							 | 
						||
| 
								 | 
							
								                        Header="效期"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <DataGridTextColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Binding="{Binding Quantity}"
							 | 
						||
| 
								 | 
							
								                        Header="库存"
							 | 
						||
| 
								 | 
							
								                        IsReadOnly="True"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
							 | 
						||
| 
								 | 
							
								                    <!--<DataGridTextColumn
							 | 
						||
| 
								 | 
							
								                        Header="取出数量"
							 | 
						||
| 
								 | 
							
								                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}">
							 | 
						||
| 
								 | 
							
								                        <DataGridTextColumn.Binding>
							 | 
						||
| 
								 | 
							
								                            <Binding Path="TakeQuantity" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
							 | 
						||
| 
								 | 
							
								                                <Binding.ValidationRules>
							 | 
						||
| 
								 | 
							
								                                    <ExceptionValidationRule />
							 | 
						||
| 
								 | 
							
								                                </Binding.ValidationRules>
							 | 
						||
| 
								 | 
							
								                            </Binding>
							 | 
						||
| 
								 | 
							
								                        </DataGridTextColumn.Binding>
							 | 
						||
| 
								 | 
							
								                    </DataGridTextColumn>-->
							 | 
						||
| 
								 | 
							
								                    <DataGridTemplateColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        Header="取出数量">
							 | 
						||
| 
								 | 
							
								                        <DataGridTemplateColumn.CellTemplate>
							 | 
						||
| 
								 | 
							
								                            <DataTemplate>
							 | 
						||
| 
								 | 
							
								                                <TextBox  Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}" IsReadOnly="{Binding BoardType, Converter={StaticResource InputQuantityConverter}}">
							 | 
						||
| 
								 | 
							
								                                    <TextBox.Text>
							 | 
						||
| 
								 | 
							
								                                        <Binding Path="TakeQuantity" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
							 | 
						||
| 
								 | 
							
								                                            <Binding.ValidationRules>
							 | 
						||
| 
								 | 
							
								                                                <ExceptionValidationRule />
							 | 
						||
| 
								 | 
							
								                                            </Binding.ValidationRules>
							 | 
						||
| 
								 | 
							
								                                        </Binding>
							 | 
						||
| 
								 | 
							
								                                    </TextBox.Text>
							 | 
						||
| 
								 | 
							
								                                </TextBox>
							 | 
						||
| 
								 | 
							
								                            </DataTemplate>
							 | 
						||
| 
								 | 
							
								                        </DataGridTemplateColumn.CellTemplate>
							 | 
						||
| 
								 | 
							
								                    </DataGridTemplateColumn>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                </DataGrid.Columns>
							 | 
						||
| 
								 | 
							
								            </DataGrid>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |