MainWindow.xaml 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <Window x:Class="TestViewer.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:stationProbe="clr-namespace:StationProbe"
  7. mc:Ignorable="d"
  8. Title="Exam Database TestViewer" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="48"/>
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="282"/>
  16. <ColumnDefinition Width="*"/>
  17. </Grid.ColumnDefinitions>
  18. <Grid Grid.Column="0">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="32"/>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="32"/>
  23. </Grid.RowDefinitions>
  24. <ComboBox Grid.Row="0" x:Name="BatchTaskList" VerticalContentAlignment="Center"/>
  25. <ListBox Grid.Row="1" x:Name="ExamList" HorizontalContentAlignment="Stretch">
  26. <ListBox.ItemTemplate>
  27. <DataTemplate DataType="{x:Type stationProbe:Exam}">
  28. <Border Height="64" BorderBrush="Gray" Background="White" BorderThickness="1" CornerRadius="4">
  29. <StackPanel Margin="8">
  30. <StackPanel Orientation="Horizontal">
  31. <StackPanel Orientation="Horizontal">
  32. <TextBlock Text="姓名: " FontWeight="Bold" Foreground="Black"/>
  33. <TextBlock Text="{Binding PatientName}" Foreground="Blue"/>
  34. </StackPanel>
  35. <TextBlock Text=" "/>
  36. <StackPanel Orientation="Horizontal">
  37. <TextBlock Text="性别: " FontWeight="Bold" Foreground="Black"/>
  38. <TextBlock Text="{Binding PatientSex}" Foreground="Black"/>
  39. </StackPanel>
  40. <TextBlock Text=" "/>
  41. <StackPanel Orientation="Horizontal">
  42. <TextBlock Text="年龄: " FontWeight="Bold" Foreground="Black"/>
  43. <TextBlock Text="{Binding PatientAge}" Foreground="Black"/>
  44. </StackPanel>
  45. </StackPanel>
  46. <StackPanel Orientation="Horizontal">
  47. <TextBlock Text="检查日期: " FontWeight="Bold" Foreground="Black"/>
  48. <TextBlock Text="{Binding ExamDate,StringFormat='{} {0:yyyy-MM-dd HH:mm:ss}'}" Foreground="Black"/>
  49. </StackPanel>
  50. <StackPanel Orientation="Horizontal">
  51. <TextBlock Text="创建日期: " FontWeight="Bold" Foreground="Black"/>
  52. <TextBlock Text="{Binding CreateTime,StringFormat='{} {0:yyyy-MM-dd HH:mm:ss}'}" Foreground="Black"/>
  53. </StackPanel>
  54. </StackPanel>
  55. </Border>
  56. </DataTemplate>
  57. </ListBox.ItemTemplate>
  58. </ListBox>
  59. <UniformGrid Grid.Row="2" Columns="3">
  60. <Button Content="&lt;" Click="OnPreviousPageClick" HorizontalAlignment="Left" Width="48"/>
  61. <TextBlock x:Name="PageIndex" Text="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  62. <Button Content=">" Click="OnNextPageClick" HorizontalAlignment="Right" Width="48"/>
  63. </UniformGrid>
  64. </Grid>
  65. <ScrollViewer x:Name="ExamScrollView" Grid.Row="0" Grid.Column="1" >
  66. <WrapPanel x:Name="ExamContent" Orientation="Horizontal"/>
  67. </ScrollViewer>
  68. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  69. <TextBlock Margin="4" Text="部位:" VerticalAlignment="Center" Width="40" FontSize="16"/>
  70. <TextBox x:Name="PartKey" VerticalAlignment="Center" Width="128" FontSize="16"/>
  71. <TextBlock VerticalAlignment="Center" Margin="4" Text="结论:" Width="40" FontSize="16"/>
  72. <TextBox x:Name="ConclusionKey" VerticalAlignment="Center" Width="128" FontSize="16"/>
  73. <TextBlock VerticalAlignment="Center" Margin="4" Text="创建开始时间:" Width="100" FontSize="16"/>
  74. <DatePicker x:Name="CreateStart" VerticalAlignment="Center" Width="140" FontSize="16" VerticalContentAlignment="Center"/>
  75. <TextBlock VerticalAlignment="Center" Margin="4" Text="创建结束时间:" Width="100" FontSize="16"/>
  76. <DatePicker x:Name="CreateEnd" VerticalAlignment="Center" Width="140" FontSize="16" VerticalContentAlignment="Center"/>
  77. <Button Margin="4" VerticalAlignment="Center" Width="64" Content="查询" FontSize="14" Click="OnSearchClick"/>
  78. <Button Margin="4" VerticalAlignment="Center" Width="64" Content="导出" FontSize="14" Click="OnExportClick"/>
  79. </StackPanel>
  80. <Border Height="1" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Background="Gray"/>
  81. <Grid x:Name="LoadingMask" Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="2" Visibility="Collapsed">
  82. <Border Background="Gray" Opacity="0.5"/>
  83. <TextBlock Text="加载中..." FontSize="32" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  84. </Grid>
  85. </Grid>
  86. </Window>