112 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			112 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.AccountWindow"
							 | 
						||
| 
								 | 
							
								             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">
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <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="9*" />
							 | 
						||
| 
								 | 
							
								                <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>
							 | 
						||
| 
								 | 
							
								                <!--<DatePicker
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding StartDate, TargetNullValue=''}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="开始时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />
							 | 
						||
| 
								 | 
							
								                <DatePicker 
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding EndDate}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="结束时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />-->
							 | 
						||
| 
								 | 
							
								                <!--<ComboBox
							 | 
						||
| 
								 | 
							
								                    Margin="12 20 0 0"
							 | 
						||
| 
								 | 
							
								                    Grid.Column="2"
							 | 
						||
| 
								 | 
							
								                    materialDesign:HintAssist.Hint="麻醉师"
							 | 
						||
| 
								 | 
							
								                    IsEditable="True"
							 | 
						||
| 
								 | 
							
								                    ItemsSource="{Binding DrugInfos}"
							 | 
						||
| 
								 | 
							
								                    SelectedItem="{Binding DrugInfo}"
							 | 
						||
| 
								 | 
							
								                    DisplayMemberPath="DrugName"
							 | 
						||
| 
								 | 
							
								                />-->
							 | 
						||
| 
								 | 
							
								                <ComboBox Width="130"
							 | 
						||
| 
								 | 
							
								                    Margin="16 0 6 0"
							 | 
						||
| 
								 | 
							
								                    Grid.Column="2"
							 | 
						||
| 
								 | 
							
								                    materialDesign:HintAssist.Hint="麻醉医师姓名"
							 | 
						||
| 
								 | 
							
								                    ItemsSource="{Binding UserInfos}"
							 | 
						||
| 
								 | 
							
								                    SelectedItem="{Binding User}"
							 | 
						||
| 
								 | 
							
								                    DisplayMemberPath="Nickname" IsEditable="True" IsTextSearchEnabled="False"/>
							 | 
						||
| 
								 | 
							
								                <ComboBox Width="130"
							 | 
						||
| 
								 | 
							
								                    Margin="16 0 6 0"
							 | 
						||
| 
								 | 
							
								                    Grid.Column="2"
							 | 
						||
| 
								 | 
							
								                    materialDesign:HintAssist.Hint="手术间"
							 | 
						||
| 
								 | 
							
								                    ItemsSource="{Binding Boxs}"
							 | 
						||
| 
								 | 
							
								                    SelectedItem="{Binding Box}"
							 | 
						||
| 
								 | 
							
								                  IsEditable="True" IsTextSearchEnabled="False"/>
							 | 
						||
| 
								 | 
							
								            </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>
							 |