123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <UserControl x:Class="AIPractice.LabellerServer.WPF.StatisticView"
- 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="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" 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="100" Content="统计" Click="OnStatisticClick"/>
- <Button Margin="2" Style="{StaticResource btn-success}" Height="32" Width="100" Content="复制" Click="OnCopyClick"></Button>
- <Button Margin="2" Style="{StaticResource btn-warning}" Height="32" VerticalAlignment="Center" Width="100" Content="清除" Click="OnClearClick"/>
- </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="用户名"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <StackPanel Orientation="Horizontal" Margin="0,0,18,0" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Image Width="32" Height="32" VerticalAlignment="Center" Margin="2,2,6,2" Source="Resources/Images/Reviewer.png" ToolTip="审核员" Visibility="{Binding IsReviewer, Converter={x:Static local:BoolToVisibleConverter.Converter}}"></Image>
- <TextBlock Style="{StaticResource textblock-default}" FontWeight="Bold" VerticalAlignment="Center" FontSize="16" Text="{Binding Account}"/>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="提交数"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding CommittedCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="提交部位数"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding CommittedPartCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="分配数"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding TotalCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="剩余数"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding LeftCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="历史提交总数"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding TotalCommittedCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="已被审核"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" VerticalAlignment="Center" FontSize="16" Text="{Binding ReviewedCount}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="0.12*">
- <DataGridTemplateColumn.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="得分"/>
- <CheckBox VerticalAlignment="Center" Margin="2" IsChecked="True"/>
- </StackPanel>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Grid>
- <TextBlock Margin="0,0,18,0" Style="{StaticResource textblock-default}" Foreground="{Binding ScoreColor}" VerticalAlignment="Center" FontSize="16" Text="{Binding Score}" HorizontalAlignment="Center"/>
- </Grid>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- <TextBlock Style="{StaticResource textblock-default}" Grid.Row="2" Margin="4" x:Name="SystemStatistic" VerticalAlignment="Center" FontWeight="Bold" Foreground="#31708f" FontSize="14" Visibility="Collapsed"/>
- </Grid>
- </UserControl>
|