135 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			135 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.SurgeryTakeWindow"
							 | 
						||
| 
								 | 
							
								             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:i="http://schemas.microsoft.com/xaml/behaviors"
							 | 
						||
| 
								 | 
							
								             xmlns:prism="http://prismlibrary.com/"
							 | 
						||
| 
								 | 
							
								             xmlns:convert="clr-namespace:DM_Weight.Converter"
							 | 
						||
| 
								 | 
							
								             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
							 | 
						||
| 
								 | 
							
								             xmlns:local="clr-namespace:DM_Weight.Views"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" >
							 | 
						||
| 
								 | 
							
								    <UserControl.Resources>
							 | 
						||
| 
								 | 
							
								        <convert:OrderStatusConverter x:Key="OrderStatusConverter" />
							 | 
						||
| 
								 | 
							
								        <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>
							 | 
						||
| 
								 | 
							
								    <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="2*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="2*" />
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="6*"/>
							 | 
						||
| 
								 | 
							
								            </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <TextBox
							 | 
						||
| 
								 | 
							
								                Grid.Column="0"
							 | 
						||
| 
								 | 
							
								                Text="{Binding SearchValue, UpdateSourceTrigger=PropertyChanged}"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="手术号"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.IsFloating="True"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
							 | 
						||
| 
								 | 
							
								            <DatePicker
							 | 
						||
| 
								 | 
							
								                Grid.Column="1"
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding ScheduleTime, StringFormat=yyyy-MM-dd, TargetNullValue='',UpdateSourceTrigger=PropertyChanged}"
							 | 
						||
| 
								 | 
							
								                SelectedDateFormat="Short"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="手术日期"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}" />
							 | 
						||
| 
								 | 
							
								            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="2">
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    Command="{Binding AddSurgeryCommand}"
							 | 
						||
| 
								 | 
							
								                    Content="录入手术" />
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    HorizontalAlignment="Right"
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 6 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Command="{Binding QueryCommand}"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="刷新" Cursor="Hand">
							 | 
						||
| 
								 | 
							
								                    <materialDesign:PackIcon
							 | 
						||
| 
								 | 
							
								                    Kind="Refresh" />
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								        <ListView
							 | 
						||
| 
								 | 
							
								            Grid.Row="1"  Grid.ColumnSpan="3"
							 | 
						||
| 
								 | 
							
								            ItemsSource="{Binding _SurgicalSchedule}"
							 | 
						||
| 
								 | 
							
								            SelectedItem="{Binding SelectedSurgicalSchedule}"
							 | 
						||
| 
								 | 
							
								            materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"> 
							 | 
						||
| 
								 | 
							
								            <i:Interaction.Triggers>
							 | 
						||
| 
								 | 
							
								                <i:EventTrigger EventName="SelectionChanged">
							 | 
						||
| 
								 | 
							
								                    <i:InvokeCommandAction Command="{Binding RowSelected}" />
							 | 
						||
| 
								 | 
							
								                </i:EventTrigger>
							 | 
						||
| 
								 | 
							
								            </i:Interaction.Triggers>
							 | 
						||
| 
								 | 
							
								            <ListView.ItemContainerStyle>
							 | 
						||
| 
								 | 
							
								                <Style TargetType="ListViewItem" BasedOn="{StaticResource MaterialDesignGridViewItem}">
							 | 
						||
| 
								 | 
							
								                    <Setter Property="ListView.Height" Value="50"/>
							 | 
						||
| 
								 | 
							
								                </Style>
							 | 
						||
| 
								 | 
							
								            </ListView.ItemContainerStyle>
							 | 
						||
| 
								 | 
							
								            <ListView.View>
							 | 
						||
| 
								 | 
							
								                <GridView ColumnHeaderContainerStyle="{StaticResource st}" >
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="80"
							 | 
						||
| 
								 | 
							
								                        Header="患者ID"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding PatientId}"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="100"
							 | 
						||
| 
								 | 
							
								                        Header="姓名"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding PName}" />
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="80"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding Sex}"
							 | 
						||
| 
								 | 
							
								                        Header="性别"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="80"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding Age}"
							 | 
						||
| 
								 | 
							
								                        Header="年龄"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="153"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding IdNumber}"
							 | 
						||
| 
								 | 
							
								                        Header="身份证"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="80"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding OperationId}"
							 | 
						||
| 
								 | 
							
								                        Header="手术号"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="153"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding OpRoomCode}"
							 | 
						||
| 
								 | 
							
								                        Header="手术间代码"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="153"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding OpRoomName}"
							 | 
						||
| 
								 | 
							
								                        Header="手术间名称"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn Width="153"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding ScheduleTime, StringFormat='yyyy-MM-dd HH:mm:ss'}"
							 | 
						||
| 
								 | 
							
								                        Header="手术时间"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="80"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding DmStatus, Converter={StaticResource OrderStatusConverter}}"
							 | 
						||
| 
								 | 
							
								                        Header="状态"/>
							 | 
						||
| 
								 | 
							
								                </GridView>
							 | 
						||
| 
								 | 
							
								            </ListView.View>
							 | 
						||
| 
								 | 
							
								        </ListView>
							 | 
						||
| 
								 | 
							
								        <pagination:Pagination Grid.Row="2" Grid.ColumnSpan="3"
							 | 
						||
| 
								 | 
							
								                                   CurrentPage="{Binding PageNum}"
							 | 
						||
| 
								 | 
							
								                                   PageSize="{Binding PageSize}"
							 | 
						||
| 
								 | 
							
								                                   TotalPages="{Binding TotalCount}"
							 | 
						||
| 
								 | 
							
								                                   InfoTextIsEnabel="True"
							 | 
						||
| 
								 | 
							
								                                />
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |