117 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			117 lines
		
	
	
		
			6.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.Dialog.AddManunoDialog"
							 | 
						||
| 
								 | 
							
								             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:prism="http://prismlibrary.com/"
							 | 
						||
| 
								 | 
							
								             prism:ViewModelLocator.AutoWireViewModel="True"
							 | 
						||
| 
								 | 
							
								             xmlns:convert="clr-namespace:DM_Weight.Converter"
							 | 
						||
| 
								 | 
							
								             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" 
							 | 
						||
| 
								 | 
							
								             d:DesignHeight="450" d:DesignWidth="800">
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <convert:StatusConverter x:Key="StatusConverter" />
							 | 
						||
| 
								 | 
							
								        <Style x:Key="st" TargetType="GridViewColumnHeader">
							 | 
						||
| 
								 | 
							
								            <Style.Setters>
							 | 
						||
| 
								 | 
							
								                <Setter Property="Height">
							 | 
						||
| 
								 | 
							
								                    <Setter.Value>55</Setter.Value>
							 | 
						||
| 
								 | 
							
								                </Setter>
							 | 
						||
| 
								 | 
							
								                <Setter Property="Background">
							 | 
						||
| 
								 | 
							
								                    <Setter.Value>#31ccec</Setter.Value>
							 | 
						||
| 
								 | 
							
								                </Setter>
							 | 
						||
| 
								 | 
							
								                <Setter Property="Foreground">
							 | 
						||
| 
								 | 
							
								                    <Setter.Value>white</Setter.Value>
							 | 
						||
| 
								 | 
							
								                </Setter>
							 | 
						||
| 
								 | 
							
								            </Style.Setters>
							 | 
						||
| 
								 | 
							
								        </Style>
							 | 
						||
| 
								 | 
							
								    </UserControl.Resources>
							 | 
						||
| 
								 | 
							
								    <materialDesign:Card Padding="0">
							 | 
						||
| 
								 | 
							
								        <Grid>
							 | 
						||
| 
								 | 
							
								            <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								                <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								            </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <Grid Background="#03a9f4" Grid.Row="0">
							 | 
						||
| 
								 | 
							
								                <TextBlock VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" Margin="16 4 16 4" Style="{StaticResource MaterialDesignHeadline5TextBlock}" Text="{Binding Title}" />
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                        Style="{StaticResource MaterialDesignIconForegroundButton}"
							 | 
						||
| 
								 | 
							
								                        Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
							 | 
						||
| 
								 | 
							
								                        HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                        Command="{Binding BtnCloseCommand}"
							 | 
						||
| 
								 | 
							
								                        IsEnabled="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=CloseBtn}"
							 | 
						||
| 
								 | 
							
								                        ToolTip="关闭"
							 | 
						||
| 
								 | 
							
								                    >
							 | 
						||
| 
								 | 
							
								                    <materialDesign:PackIcon Kind="Close" Width="34" Height="34" />
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <ListView Padding="0 6 0 0"
							 | 
						||
| 
								 | 
							
								                Grid.Row="1" materialDesign:ListViewAssist.ListViewItemPadding="15"
							 | 
						||
| 
								 | 
							
								                ItemsSource="{Binding AddChannelStocks}" 
							 | 
						||
| 
								 | 
							
								                materialDesign:ListViewAssist.HeaderRowBackground="#31ccec">
							 | 
						||
| 
								 | 
							
								                <ListView.Resources>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
							 | 
						||
| 
								 | 
							
								                        <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"/>
							 | 
						||
| 
								 | 
							
								                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
							 | 
						||
| 
								 | 
							
								                    </Style>
							 | 
						||
| 
								 | 
							
								                </ListView.Resources>
							 | 
						||
| 
								 | 
							
								                <ListView.View>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <GridView ColumnHeaderContainerStyle="{StaticResource st}">
							 | 
						||
| 
								 | 
							
								                        <GridView.Columns>
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="50">
							 | 
						||
| 
								 | 
							
								                                <GridViewColumnHeader>
							 | 
						||
| 
								 | 
							
								                                    <CheckBox x:Name="allCheck" IsChecked="{Binding IsAllChecked,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
							 | 
						||
| 
								 | 
							
								                                </GridViewColumnHeader>
							 | 
						||
| 
								 | 
							
								                                <GridViewColumn.CellTemplate>
							 | 
						||
| 
								 | 
							
								                                    <DataTemplate>
							 | 
						||
| 
								 | 
							
								                                        <CheckBox x:Name="check_1" IsChecked="{Binding ItemIsChecked,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  />
							 | 
						||
| 
								 | 
							
								                                    </DataTemplate>
							 | 
						||
| 
								 | 
							
								                                </GridViewColumn.CellTemplate>
							 | 
						||
| 
								 | 
							
								                            </GridViewColumn>
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="80"
							 | 
						||
| 
								 | 
							
								                            Header="库位"
							 | 
						||
| 
								 | 
							
								                            DisplayMemberBinding="{Binding ColNo}"/>
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="180"
							 | 
						||
| 
								 | 
							
								                            Header="药品名称"
							 | 
						||
| 
								 | 
							
								                            DisplayMemberBinding="{Binding DrugName}" />
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="150"
							 | 
						||
| 
								 | 
							
								                            Header="规格"
							 | 
						||
| 
								 | 
							
								                            DisplayMemberBinding="{Binding DrugSpec}" />
							 | 
						||
| 
								 | 
							
								                            
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="150"  Header="批次" DisplayMemberBinding="{Binding ManuNo}" />
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                            <GridViewColumn Width="120"
							 | 
						||
| 
								 | 
							
								                            Header="效期"
							 | 
						||
| 
								 | 
							
								                            DisplayMemberBinding="{Binding EffDate}" />                          
							 | 
						||
| 
								 | 
							
								                        </GridView.Columns>
							 | 
						||
| 
								 | 
							
								                    </GridView>
							 | 
						||
| 
								 | 
							
								                </ListView.View>
							 | 
						||
| 
								 | 
							
								            </ListView>
							 | 
						||
| 
								 | 
							
								            <Grid Grid.Row="3">
							 | 
						||
| 
								 | 
							
								                <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center">
							 | 
						||
| 
								 | 
							
								                    <Button
							 | 
						||
| 
								 | 
							
								                            Margin="2"
							 | 
						||
| 
								 | 
							
								                            Visibility="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=CompleteBtn}"
							 | 
						||
| 
								 | 
							
								                            Style="{StaticResource MaterialDesignRaisedAccentButton}"
							 | 
						||
| 
								 | 
							
								                            Content="保存"
							 | 
						||
| 
								 | 
							
								                            Command="{Binding SaveCommand}"/>
							 | 
						||
| 
								 | 
							
								                </StackPanel>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								    </materialDesign:Card>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |