137 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			137 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.ChangeShiftsListWindow"
							 | 
						||
| 
								 | 
							
								             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">
							 | 
						||
| 
								 | 
							
								    <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:ShiftsStateConverter x:Key="ShiftsStateConverter"/>
							 | 
						||
| 
								 | 
							
								    </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="5*"/>
							 | 
						||
| 
								 | 
							
								            </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								            <DatePicker
							 | 
						||
| 
								 | 
							
								                Grid.Column="0"
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding StartDate, TargetNullValue=''}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="开始时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />
							 | 
						||
| 
								 | 
							
								            <DatePicker
							 | 
						||
| 
								 | 
							
								                Grid.Column="1"
							 | 
						||
| 
								 | 
							
								                SelectedDate="{Binding EndDate}"
							 | 
						||
| 
								 | 
							
								                Margin="6 0 0 0"
							 | 
						||
| 
								 | 
							
								                materialDesign:HintAssist.Hint="结束时间"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedDatePicker}"
							 | 
						||
| 
								 | 
							
								            />
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <StackPanel Grid.Column="3" Orientation="Horizontal" HorizontalAlignment="Right">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="导出" Command="{Binding Download}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon Kind="download" />
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="导出记录" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                    Margin="0 0 3 0"
							 | 
						||
| 
								 | 
							
								                    VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                    Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                    ToolTip="交接班" Command="{Binding ShiftsCommand}">
							 | 
						||
| 
								 | 
							
								                    <StackPanel Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                        <materialDesign:PackIcon Kind="CompareVertical" />
							 | 
						||
| 
								 | 
							
								                        <TextBlock Text="交接班" />
							 | 
						||
| 
								 | 
							
								                    </StackPanel>
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								                <Button
							 | 
						||
| 
								 | 
							
								                Margin="0 0 6 0"
							 | 
						||
| 
								 | 
							
								                VerticalAlignment="Center"
							 | 
						||
| 
								 | 
							
								                Style="{StaticResource MaterialDesignOutlinedLightButton}"
							 | 
						||
| 
								 | 
							
								                ToolTip="刷新" Command="{Binding Query}">
							 | 
						||
| 
								 | 
							
								                    <materialDesign:PackIcon
							 | 
						||
| 
								 | 
							
								                    Kind="Refresh" />
							 | 
						||
| 
								 | 
							
								                </Button>
							 | 
						||
| 
								 | 
							
								            </StackPanel>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								        <ListView Grid.Row="1" ItemsSource="{Binding HkcChangeShifts}" 
							 | 
						||
| 
								 | 
							
								                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="180"
							 | 
						||
| 
								 | 
							
								                        Header="日期"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding OptDate, StringFormat='yyyy-MM-dd HH:mm:ss'}" />
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="130"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding FromOperator}"
							 | 
						||
| 
								 | 
							
								                        Header="交班人发药人"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="130"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding FromRviewer}"
							 | 
						||
| 
								 | 
							
								                        Header="交班人审核人"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="130"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding ToOperator}"
							 | 
						||
| 
								 | 
							
								                        Header="接班人发药人"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="130"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding ToReviewer}"
							 | 
						||
| 
								 | 
							
								                        Header="接班人审核人"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="180"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding ToDate, StringFormat='yyyy-MM-dd HH:mm:ss'}"
							 | 
						||
| 
								 | 
							
								                        Header="接班日期"/>
							 | 
						||
| 
								 | 
							
								                    <GridViewColumn  Width="100"
							 | 
						||
| 
								 | 
							
								                        DisplayMemberBinding="{Binding State,Converter={StaticResource ShiftsStateConverter}}"
							 | 
						||
| 
								 | 
							
								                        Header="当班状态"/>
							 | 
						||
| 
								 | 
							
								                </GridView>
							 | 
						||
| 
								 | 
							
								            </ListView.View>
							 | 
						||
| 
								 | 
							
								        </ListView>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        <pagination:Pagination Grid.Row="2"
							 | 
						||
| 
								 | 
							
								                                   CurrentPage="{Binding PageNum}"
							 | 
						||
| 
								 | 
							
								                                   PageSize="{Binding PageSize}"
							 | 
						||
| 
								 | 
							
								                                   TotalPages="{Binding TotalCount}"
							 | 
						||
| 
								 | 
							
								                                   InfoTextIsEnabel="True"
							 | 
						||
| 
								 | 
							
								                                />
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |