146 lines
		
	
	
		
			7.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			146 lines
		
	
	
		
			7.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.Dialog.CollectDrugDialog"
							 | 
						||
| 
								 | 
							
								              xmlns:pagination="clr-namespace:DM_Weight.Components.pagination"
							 | 
						||
| 
								 | 
							
								              xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" 
							 | 
						||
| 
								 | 
							
								             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"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" 
							 | 
						||
| 
								 | 
							
								             xmlns:prism="http://prismlibrary.com/">
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <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" />
							 | 
						||
| 
								 | 
							
								            </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}"
							 | 
						||
| 
								 | 
							
								                        ToolTip="关闭"
							 | 
						||
| 
								 | 
							
								                    >
							 | 
						||
| 
								 | 
							
								                    <materialDesign:PackIcon Kind="Close" Width="34" Height="34" />
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								            <Grid Grid.Row="1" x:Name="Border" Margin="0 10 10 0">
							 | 
						||
| 
								 | 
							
								                <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                    <RowDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								                <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                    <ColumnDefinition />
							 | 
						||
| 
								 | 
							
								                </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                <Grid.Resources>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource MaterialDesignSubtitle1TextBlock}">
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Padding" Value="6" />
							 | 
						||
| 
								 | 
							
								                    </Style>
							 | 
						||
| 
								 | 
							
								                </Grid.Resources>
							 | 
						||
| 
								 | 
							
								                <TextBlock
							 | 
						||
| 
								 | 
							
								                                        HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                                        Grid.Row="0"
							 | 
						||
| 
								 | 
							
								                                        Grid.Column="0"
							 | 
						||
| 
								 | 
							
								                                        Text="请领数量:" />
							 | 
						||
| 
								 | 
							
								                <StackPanel
							 | 
						||
| 
								 | 
							
								                                        Grid.Row="0"
							 | 
						||
| 
								 | 
							
								                                        Grid.Column="1"
							 | 
						||
| 
								 | 
							
								                                        HorizontalAlignment="Left"
							 | 
						||
| 
								 | 
							
								                                        Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                    <TextBlock Text="{Binding QuantityCount}" />
							 | 
						||
| 
								 | 
							
								                </StackPanel>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <TextBlock
							 | 
						||
| 
								 | 
							
								                                        HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                                        Grid.Row="0"
							 | 
						||
| 
								 | 
							
								                                        Grid.Column="2"
							 | 
						||
| 
								 | 
							
								                                        Text="交处方张数:" />
							 | 
						||
| 
								 | 
							
								                <TextBlock
							 | 
						||
| 
								 | 
							
								                                        HorizontalAlignment="Left"
							 | 
						||
| 
								 | 
							
								                                        Grid.Row="0"
							 | 
						||
| 
								 | 
							
								                                        Grid.Column="3"
							 | 
						||
| 
								 | 
							
								                                        Text="{Binding OrderCount}" />
							 | 
						||
| 
								 | 
							
								                <TextBlock
							 | 
						||
| 
								 | 
							
								                                        HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                                        Grid.Row="0"
							 | 
						||
| 
								 | 
							
								                                        Grid.Column="4"
							 | 
						||
| 
								 | 
							
								                                        Text="请领药库:" />
							 | 
						||
| 
								 | 
							
								                <ComboBox Grid.Column="5"  Width="80" Height="50" FontFamily="微软雅黑"
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 0 5"  HorizontalAlignment="Left"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedComboBox}"
							 | 
						||
| 
								 | 
							
								                    SelectedItem="{Binding SelectedItem}"
							 | 
						||
| 
								 | 
							
								                    DisplayMemberPath="Name"
							 | 
						||
| 
								 | 
							
								                    ItemsSource="{Binding Selects}"/>
							 | 
						||
| 
								 | 
							
								                <Button Width="130" Height="50"
							 | 
						||
| 
								 | 
							
								                        Margin="6 0 6 3" Grid.Row="0" Grid.Column="6"
							 | 
						||
| 
								 | 
							
								                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                        ToolTip="确认并生成"
							 | 
						||
| 
								 | 
							
								                        Content="确认并生成"
							 | 
						||
| 
								 | 
							
								                        Command="{Binding CreateApply}" />
							 | 
						||
| 
								 | 
							
								            </Grid>
							 | 
						||
| 
								 | 
							
								            <ListView
							 | 
						||
| 
								 | 
							
								            Grid.Row="2"
							 | 
						||
| 
								 | 
							
								            ItemsSource="{Binding CollectDrugList}" 
							 | 
						||
| 
								 | 
							
								            materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"
							 | 
						||
| 
								 | 
							
								            materialDesign:DataGridAssist.ColumnHeaderPadding="10"
							 | 
						||
| 
								 | 
							
								            materialDesign:ListViewAssist.ListViewItemPadding="13">
							 | 
						||
| 
								 | 
							
								                <ListView.Resources>
							 | 
						||
| 
								 | 
							
								                    <Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
							 | 
						||
| 
								 | 
							
								                        <Setter Property="Foreground" Value="White" />
							 | 
						||
| 
								 | 
							
								                    </Style>
							 | 
						||
| 
								 | 
							
								                </ListView.Resources>
							 | 
						||
| 
								 | 
							
								                <ListView.View>
							 | 
						||
| 
								 | 
							
								                    <GridView ColumnHeaderContainerStyle="{StaticResource st}">
							 | 
						||
| 
								 | 
							
								                        <GridViewColumn Width="200"
							 | 
						||
| 
								 | 
							
								                        Header="药品名称"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding DrugName}"/>
							 | 
						||
| 
								 | 
							
								                        <GridViewColumn Width="100"
							 | 
						||
| 
								 | 
							
								                        Header="规格"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding DrugSpec}" />
							 | 
						||
| 
								 | 
							
								                        <GridViewColumn Width="280"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding Manufactory}"
							 | 
						||
| 
								 | 
							
								                        Header="厂家"/>
							 | 
						||
| 
								 | 
							
								                        <GridViewColumn Width="80"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding Quantity}"
							 | 
						||
| 
								 | 
							
								                        Header="数量"/>
							 | 
						||
| 
								 | 
							
								                        <!--<GridViewColumn  Width="200"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding OrderNo}"
							 | 
						||
| 
								 | 
							
								                        Header="处方号"/>-->
							 | 
						||
| 
								 | 
							
								                    </GridView>
							 | 
						||
| 
								 | 
							
								                </ListView.View>
							 | 
						||
| 
								 | 
							
								            </ListView>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <!--<pagination:Pagination Grid.Row="3"
							 | 
						||
| 
								 | 
							
								                                   CurrentPage="{Binding PageNum}"
							 | 
						||
| 
								 | 
							
								                                   PageSize="{Binding PageSize}"
							 | 
						||
| 
								 | 
							
								                                   TotalPages="{Binding TotalCount}"
							 | 
						||
| 
								 | 
							
								                                   InfoTextIsEnabel="True"
							 | 
						||
| 
								 | 
							
								                                />-->
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    </materialDesign:Card>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |