123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <UserControl x:Class="AIPractice.LabellerServer.WPF.ReportView"
- 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:AIPractice.LabellerServer.WPF"
- xmlns:viewModels="clr-namespace:AIPractice.LabellerServer.ViewModels"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="1280">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="90"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0">
- <StackPanel Margin="2" Orientation="Horizontal" VerticalAlignment="Center">
- <TextBlock Style="{StaticResource textblock-default}" Margin="2" Text="开始时间: " VerticalAlignment="Center"/>
- <DatePicker Height="36" VerticalAlignment="Center" x:Name="StartDate" Width="140" FontSize="16" Margin="2"/>
- <TextBlock Style="{StaticResource textblock-default}" Margin="6,2,2,2" Text="结束时间: " VerticalAlignment="Center"/>
- <DatePicker Height="36" VerticalAlignment="Center" x:Name="EndDate" Width="140" FontSize="16" Margin="2"/>
- <TextBlock Style="{StaticResource textblock-default}" Margin="6,2,2,2" Text="选择出报告的人员: " VerticalAlignment="Center"/>
- <local:MultiSelector x:Name="AccountSelector" Margin="2,2,4,2" Height="36" Width="220" SelectUnSelectAll="OnSelectUnSelectAllAccounts" Refreshed="OnAccountsOnRefreshed">
- <local:MultiSelector.ItemTemplate>
- <DataTemplate DataType="{x:Type viewModels:AccountViewModel}">
- <CheckBox Margin="8,2,2,2" VerticalAlignment="Center" IsChecked="{Binding IsSelected}" Content="{Binding FriendlyName}"/>
- </DataTemplate>
- </local:MultiSelector.ItemTemplate>
- </local:MultiSelector>
- <Button Margin="12,2,2,2" Style="{StaticResource btn-primary}" Height="32" VerticalAlignment="Center" Width="125" Content="统计审核数据" Click="OnCalcReviewedClick"/>
- <Button Margin="2" Style="{StaticResource btn-warning}" Height="32" VerticalAlignment="Center" Width="125" Content="清除" Click="OnClearClick"/>
- </StackPanel>
- <StackPanel Margin="2" Orientation="Horizontal">
- <Button Margin="2" Style="{StaticResource btn-success}" Height="32" Width="200" Content="导出总不合格报告" Click="OnExportTotalBadReportClick"></Button>
- <Button Margin="2" Style="{StaticResource btn-info}" Height="32" Width="200" Content="发送不合格报告给每个用户" Click="OnSendBadReportsClick"></Button>
- <TextBlock Style="{StaticResource textblock-default}" Margin="2" Text="SMTP服务器: " VerticalAlignment="Center"/>
- <TextBox Height="32" VerticalAlignment="Center" x:Name="SmtpServer" Width="180" Margin="2,2,8,2"/>
- <TextBlock Style="{StaticResource textblock-default}" Margin="2" Text="用户名: " VerticalAlignment="Center"/>
- <TextBox Height="32" VerticalAlignment="Center" x:Name="SmtpAccount" Width="180" Margin="2,2,8,2"/>
- <TextBlock Style="{StaticResource textblock-default}" Margin="2" Text="密码: " VerticalAlignment="Center"/>
- <PasswordBox Height="32" VerticalAlignment="Center" x:Name="SmtpPassword" Width="180" Margin="2,2,8,2"/>
- </StackPanel>
- <Border Margin="0,2,0,2" Height="1" BorderThickness="1" BorderBrush="Gray"></Border>
- </StackPanel>
-
- <DataGrid x:Name="Result" IsReadOnly="True" Grid.Row="1" AutoGenerateColumns="False" SelectionMode="Single" SelectionUnit="FullRow" RowHeight="56" ColumnHeaderHeight="48">
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="0.16*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="用户名"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock Style="{StaticResource textblock-default}" FontWeight="Bold" VerticalAlignment="Center" FontSize="16" Text="{Binding Name}"/>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="最佳"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding Best}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="合格"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding Ok}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="不合格"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding Bad}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="总计"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding Total}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="错误率"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding BadLv}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </UserControl>
|