88 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			88 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.AccountWindowForDrug"
							 | 
						||
| 
								 | 
							
								             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/"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" 
							 | 
						||
| 
								 | 
							
								             d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignTextBox}">
							 | 
						||
| 
								 | 
							
								            <Setter Property="Margin" Value="0,8" />
							 | 
						||
| 
								 | 
							
								            <Setter Property="VerticalAlignment" Value="Center" />
							 | 
						||
| 
								 | 
							
								        </Style>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        <Style x:Key="FieldIcon" TargetType="materialDesign:PackIcon">
							 | 
						||
| 
								 | 
							
								            <Setter Property="DockPanel.Dock" Value="Right" />
							 | 
						||
| 
								 | 
							
								            <Setter Property="VerticalAlignment" Value="Center" />
							 | 
						||
| 
								 | 
							
								        </Style>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        <Style x:Key="FieldDockPanel" TargetType="DockPanel">
							 | 
						||
| 
								 | 
							
								            <Setter Property="Margin" Value="0,0,8,16" />
							 | 
						||
| 
								 | 
							
								            <Setter Property="VerticalAlignment" Value="Bottom" />
							 | 
						||
| 
								 | 
							
								        </Style>
							 | 
						||
| 
								 | 
							
								    </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="8*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="2*" />
							 | 
						||
| 
								 | 
							
								            </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								            <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left">
							 | 
						||
| 
								 | 
							
								                <DockPanel  Style="{StaticResource FieldDockPanel}">
							 | 
						||
| 
								 | 
							
								                    <TextBox Style="{StaticResource MaterialDesignOutlinedTextBox}" x:Name="startDataBox" materialDesign:HintAssist.Hint="开始时间"
							 | 
						||
| 
								 | 
							
								               Text="{Binding StartDate,StringFormat='yyyy-MM-dd HH:mm:ss'}"  Margin="6 0 0 0" >
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    </TextBox>
							 | 
						||
| 
								 | 
							
								                    <Button
							 | 
						||
| 
								 | 
							
								                        Style="{StaticResource MaterialDesignIconForegroundButton}" Command="{Binding SelectTimeAction}" CommandParameter="1" >
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon   Width="40"  Height="40" Kind="CalendarRange"  Style="{StaticResource FieldIcon}" Foreground="{Binding ElementName=startDataBox, Path=BorderBrush}"/>
							 | 
						||
| 
								 | 
							
								                    </Button>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                </DockPanel>
							 | 
						||
| 
								 | 
							
								                <DockPanel Style="{StaticResource FieldDockPanel}">
							 | 
						||
| 
								 | 
							
								                    <TextBox Style="{StaticResource MaterialDesignOutlinedTextBox}" x:Name="endDataBox"  materialDesign:HintAssist.Hint="结束时间"
							 | 
						||
| 
								 | 
							
								Text="{Binding EndDate,StringFormat='yyyy-MM-dd HH:mm:ss'}"  Margin="6 0 0 0" >
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    </TextBox>
							 | 
						||
| 
								 | 
							
								                    <Button
							 | 
						||
| 
								 | 
							
								         Style="{StaticResource MaterialDesignIconForegroundButton}" Command="{Binding SelectTimeAction}" CommandParameter="2" >
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon   Width="40"  Height="40" Kind="CalendarRange"  Style="{StaticResource FieldIcon}" Foreground="{Binding ElementName=endDataBox, Path=BorderBrush}"/>
							 | 
						||
| 
								 | 
							
								                    </Button>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                </DockPanel>
							 | 
						||
| 
								 | 
							
								            <ComboBox
							 | 
						||
| 
								 | 
							
								                 Margin="0 0 6 0" 
							 | 
						||
| 
								 | 
							
								                 materialDesign:HintAssist.Hint="药品名称/拼音码/药品编码"
							 | 
						||
| 
								 | 
							
								                 ItemsSource="{Binding DrugInfos}"
							 | 
						||
| 
								 | 
							
								                 SelectedItem="{Binding DrugInfo}"
							 | 
						||
| 
								 | 
							
								                 DisplayMemberPath="DrugName" IsEditable="True" IsTextSearchEnabled="False" KeyUp="ComboBox_KeyUp"
							 | 
						||
| 
								 | 
							
								             />
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								            <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                Margin="0 0 13 0"
							 | 
						||
| 
								 | 
							
								                 VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                 Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                 ToolTip="导出" Command="{Binding DownloadAccountBook}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon Kind="download" />
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="导出账册" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |