ExportView.xaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <UserControl x:Class="AIPractice.LabellerServer.WPF.ExportView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:AIPractice.LabellerServer.WPF"
  7. xmlns:viewModels="clr-namespace:AIPractice.LabellerServer.ViewModels"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="480"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="48"/>
  17. <RowDefinition Height="48"/>
  18. <RowDefinition Height="48"/>
  19. <RowDefinition Height="48"/>
  20. <RowDefinition Height="48"/>
  21. <RowDefinition Height="*"/>
  22. </Grid.RowDefinitions>
  23. <StackPanel Margin="4" Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
  24. <TextBlock Style="{StaticResource textblock-default}" Margin="4" VerticalAlignment="Center" Text="导出目录: "/>
  25. <TextBox IsReadOnly="True" Width="380" x:Name="ExportDir" Margin="2" Style="{DynamicResource input-group-btn right}" Tag="选择" Button.Click="OnSelectDirDirClick"/>
  26. </StackPanel>
  27. <StackPanel Margin="4" Grid.Row="1" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
  28. <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" Margin="4" Text="导出标签: "></TextBlock>
  29. <local:SingleSelector VerticalAlignment="Center" x:Name="ExportDesc" Margin="2" Width="180" SelectionChanged="OnDescSelectionChanged" Refreshed="OnExportDescRefreshed"></local:SingleSelector>
  30. <!--<ComboBox VerticalAlignment="Center" x:Name="ExportDesc" Margin="2" Width="100" SelectionChanged="OnDescSelectionChanged"/>-->
  31. <!--<Button Style="{StaticResource btn-info}" Content="刷新" Width="80" Height="32" Click="OnDescRefreshClick"/>-->
  32. <TextBlock Style="{StaticResource textblock-default}" Width="220" Margin="4,0,0,0" VerticalAlignment="Center" Text="如不选择部位,则导出所有部位" TextWrapping="Wrap"></TextBlock>
  33. </StackPanel>
  34. <StackPanel Margin="4" Grid.Row="2" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
  35. <TextBlock Style="{StaticResource textblock-default}" Margin="4,8" VerticalAlignment="Center" Text="选择导出图像的执行人员: " />
  36. <local:MultiSelector x:Name="AccountSelector" Margin="2,2,4,2" Height="36" Width="220" SelectUnSelectAll="OnSelectUnSelectAllAccounts" Refreshed="OnAccountsRefreshed">
  37. <local:MultiSelector.ItemTemplate>
  38. <DataTemplate DataType="{x:Type viewModels:AccountViewModel}">
  39. <CheckBox Margin="8,2,2,2" VerticalAlignment="Center" IsChecked="{Binding IsSelected}" Content="{Binding FriendlyName}"/>
  40. </DataTemplate>
  41. </local:MultiSelector.ItemTemplate>
  42. </local:MultiSelector>
  43. </StackPanel>
  44. <Label Grid.Row="3" Grid.Column="0" Style="{StaticResource text-success}" x:Name="ExportInfo" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="4"/>
  45. <Button Margin="2,2,20,2" Grid.Row="3" Grid.Column="0" Style="{StaticResource btn-primary}" Content="导出" Width="80" Height="32" VerticalAlignment="Center" HorizontalAlignment="Right" Click="OnExportClick"/>
  46. <ProgressBar x:Name="PB" Style="{StaticResource progress-bar-success}" Grid.Row="5" Grid.ColumnSpan="2" Grid.Column="0" Height="28" Maximum="100" Minimum="0" VerticalAlignment="Bottom"/>
  47. </Grid>
  48. </UserControl>