1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <Window x:Class="TestViewer.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:stationProbe="clr-namespace:StationProbe"
- mc:Ignorable="d"
- Title="Exam Database TestViewer" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="48"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="282"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="32"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="32"/>
- </Grid.RowDefinitions>
- <ComboBox Grid.Row="0" x:Name="BatchTaskList" VerticalContentAlignment="Center"/>
- <ListBox Grid.Row="1" x:Name="ExamList" HorizontalContentAlignment="Stretch">
- <ListBox.ItemTemplate>
- <DataTemplate DataType="{x:Type stationProbe:Exam}">
- <Border Height="64" BorderBrush="Gray" Background="White" BorderThickness="1" CornerRadius="4">
- <StackPanel Margin="8">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="姓名: " FontWeight="Bold" Foreground="Black"/>
- <TextBlock Text="{Binding PatientName}" Foreground="Blue"/>
- </StackPanel>
- <TextBlock Text=" "/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="性别: " FontWeight="Bold" Foreground="Black"/>
- <TextBlock Text="{Binding PatientSex}" Foreground="Black"/>
- </StackPanel>
- <TextBlock Text=" "/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="年龄: " FontWeight="Bold" Foreground="Black"/>
- <TextBlock Text="{Binding PatientAge}" Foreground="Black"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="检查日期: " FontWeight="Bold" Foreground="Black"/>
- <TextBlock Text="{Binding ExamDate,StringFormat='{} {0:yyyy-MM-dd HH:mm:ss}'}" Foreground="Black"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="创建日期: " FontWeight="Bold" Foreground="Black"/>
- <TextBlock Text="{Binding CreateTime,StringFormat='{} {0:yyyy-MM-dd HH:mm:ss}'}" Foreground="Black"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <UniformGrid Grid.Row="2" Columns="3">
- <Button Content="<" Click="OnPreviousPageClick" HorizontalAlignment="Left" Width="48"/>
- <TextBlock x:Name="PageIndex" Text="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Button Content=">" Click="OnNextPageClick" HorizontalAlignment="Right" Width="48"/>
- </UniformGrid>
- </Grid>
- <ScrollViewer x:Name="ExamScrollView" Grid.Row="0" Grid.Column="1" >
- <WrapPanel x:Name="ExamContent" Orientation="Horizontal"/>
- </ScrollViewer>
- <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <TextBlock Margin="4" Text="部位:" VerticalAlignment="Center" Width="40" FontSize="16"/>
- <TextBox x:Name="PartKey" VerticalAlignment="Center" Width="128" FontSize="16"/>
- <TextBlock VerticalAlignment="Center" Margin="4" Text="结论:" Width="40" FontSize="16"/>
- <TextBox x:Name="ConclusionKey" VerticalAlignment="Center" Width="128" FontSize="16"/>
- <TextBlock VerticalAlignment="Center" Margin="4" Text="创建开始时间:" Width="100" FontSize="16"/>
- <DatePicker x:Name="CreateStart" VerticalAlignment="Center" Width="140" FontSize="16" VerticalContentAlignment="Center"/>
- <TextBlock VerticalAlignment="Center" Margin="4" Text="创建结束时间:" Width="100" FontSize="16"/>
- <DatePicker x:Name="CreateEnd" VerticalAlignment="Center" Width="140" FontSize="16" VerticalContentAlignment="Center"/>
- <Button Margin="4" VerticalAlignment="Center" Width="64" Content="查询" FontSize="14" Click="OnSearchClick"/>
- <Button Margin="4" VerticalAlignment="Center" Width="64" Content="导出" FontSize="14" Click="OnExportClick"/>
- </StackPanel>
- <Border Height="1" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Background="Gray"/>
- <Grid x:Name="LoadingMask" Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="2" Visibility="Collapsed">
- <Border Background="Gray" Opacity="0.5"/>
- <TextBlock Text="加载中..." FontSize="32" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Grid>
- </Grid>
- </Window>
|