100 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			100 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.SpecialAccountWindow"
							 | 
						||
| 
								 | 
							
								             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:pagination="clr-namespace:DM_Weight.Components.pagination"
							 | 
						||
| 
								 | 
							
								             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
							 | 
						||
| 
								 | 
							
								             xmlns:prism="http://prismlibrary.com/"
							 | 
						||
| 
								 | 
							
								             xmlns:convert="clr-namespace:DM_Weight.Converter"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" 
							 | 
						||
| 
								 | 
							
								             d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
							 | 
						||
| 
								 | 
							
								    <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>
							 | 
						||
| 
								 | 
							
								        <convert:MachineTypeConverter x:Key="MachineTypeConverter"/>
							 | 
						||
| 
								 | 
							
								    </UserControl.Resources>
							 | 
						||
| 
								 | 
							
								    <Grid>
							 | 
						||
| 
								 | 
							
								        <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								            <RowDefinition />
							 | 
						||
| 
								 | 
							
								            <RowDefinition Height="Auto" />
							 | 
						||
| 
								 | 
							
								        </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								        <Grid Margin="0 6 0 6" Grid.Row="0">
							 | 
						||
| 
								 | 
							
								            <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="1.5*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="1.5*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="2*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="2*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="5*"/>
							 | 
						||
| 
								 | 
							
								            </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								            <DatePicker Visibility="Collapsed"
							 | 
						||
| 
								 | 
							
								                Grid.Column="0"
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding StartDate, TargetNullValue=''}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="开始时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />
							 | 
						||
| 
								 | 
							
								            <DatePicker
							 | 
						||
| 
								 | 
							
								                Grid.Column="0"
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding EndDate}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="查询时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />
							 | 
						||
| 
								 | 
							
								            <ComboBox Visibility="Collapsed"
							 | 
						||
| 
								 | 
							
								                    Margin="6 0 6 0"
							 | 
						||
| 
								 | 
							
								                    Grid.Column="1"
							 | 
						||
| 
								 | 
							
								                    materialDesign:HintAssist.Hint="药品名称/拼音码/药品编码"
							 | 
						||
| 
								 | 
							
								                    ItemsSource="{Binding DrugInfos}"
							 | 
						||
| 
								 | 
							
								                    SelectedItem="{Binding DrugInfo}"
							 | 
						||
| 
								 | 
							
								                    DisplayMemberPath="DrugName" IsEditable="True" IsTextSearchEnabled="False" KeyUp="ComboBox_KeyUp"
							 | 
						||
| 
								 | 
							
								                />
							 | 
						||
| 
								 | 
							
								            <StackPanel Grid.Column="4" Orientation="Horizontal" HorizontalAlignment="Right">
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="导出" Command="{Binding DayAccountBook}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="生成日结存" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="导出" Command="{Binding DownloadAccountBook}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon Kind="download" />
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="导出账册1" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="导出" Command="{Binding DownloadAccountBook2}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon Kind="download" />
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="导出账册2" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |