年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
8.3 KiB

6 months ago
<UserControl x:Class="Kingo.Plugin.DataCheck.View.V_DataCheck"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid x:Name="CheckingPanel" Visibility="Visible">
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition />
</Grid.RowDefinitions>
<Grid Background="AliceBlue">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90" />
<ColumnDefinition />
<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
<!--<Button x:Name="btnJCZT" Visibility="Visible" Grid.Column="0" Content="{Binding CheckState}" Height="65" Width="65" HorizontalAlignment="Center" Margin="10,0" VerticalAlignment="Center" Template="{DynamicResource ButtonControlTemplate1}" Cursor="Hand">
<Button.Resources>
<ControlTemplate x:Key="ButtonControlTemplate1" TargetType="{x:Type Button}">
<Grid>
<Ellipse x:Name="ButtonEllipse" Width="Auto" Height="Auto" StrokeThickness="2" Fill="White" Stroke="#FF58D664"></Ellipse>
<Canvas x:Name="cvs" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" HorizontalAlignment="Center" VerticalAlignment="Center" Width="32" Height="42">
<Ellipse x:Name="C0" Width="16" Height="5" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="#FF58D664" Opacity="1.0">
<Ellipse.RenderTransform>
<RotateTransform Angle="20" />
</Ellipse.RenderTransform>
</Ellipse>
<Canvas.RenderTransform>
<RotateTransform x:Name="SpinnerRotate" Angle="0" />
</Canvas.RenderTransform>
</Canvas>
<Label Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding CheckState}" Value="检查中">
<Setter Property="Visibility" Value="Visible" TargetName="cvs" />
<DataTrigger.EnterActions>
<StopStoryboard BeginStoryboardName="enterStory">
</StopStoryboard>
<BeginStoryboard x:Name="enterStory">
<Storyboard>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="cvs" Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)">
<EasingDoubleKeyFrame KeyTime="00:00:0.2" Value="60"/>
<EasingDoubleKeyFrame KeyTime="00:00:0.8" Value="300"/>
<EasingDoubleKeyFrame KeyTime="00:00:01" Value="360"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="cvs" Storyboard.TargetProperty="(UIElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="00:00:0.1" Value="100"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<StopStoryboard BeginStoryboardName="enterStory">
</StopStoryboard>
</DataTrigger.ExitActions>
</DataTrigger>
<DataTrigger Binding="{Binding CheckState}" Value="检查完成">
<Setter Property="Visibility" Value="Collapsed" TargetName="cvs" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Resources>
</Button>-->
<StackPanel Grid.Column="0" Grid.ColumnSpan="2" Margin="10,10" Visibility="Visible">
<Label x:Name="labCheckMsg" FontFamily="微软雅黑" FontSize="17" />
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="10,0">
<btn:KImgButton Content="开始检查" Width="80" Height="30" x:Name="btnSetCheckState" Click="BtnSetCheckState_Click" />
<btn:KImgButton Content="结果导出" Width="80" Height="30" x:Name="btnBatchImprot" Click="BtnBatchImprot_Click" Margin="20,0" />
<btn:KImgButton Content="批量修复" Width="80" Height="30" x:Name="btnBatchRepair" Click="BtnBatchRepair_Click" />
</StackPanel>
<Border Grid.ColumnSpan="3" BorderThickness="0,0,0,2" BorderBrush="#FFB4B4B2"></Border>
</Grid>
<Grid Grid.Row="1">
<Grid>
<Grid x:Name="gridTBList" Grid.RowSpan="2">
<Grid.Resources>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding}">
<StackPanel Orientation="Horizontal" Height="28" ContextMenu="{Binding cMenu}">
<TextBlock Name="txtBox" Text="{Binding CfgName}" FontSize="13" VerticalAlignment="Center" Margin="3,0,0,0">
</TextBlock>
</StackPanel>
<HierarchicalDataTemplate.Triggers>
<DataTrigger Binding="{Binding IsOpenEdit,Mode=TwoWay}" Value="true">
<Setter TargetName="txtBox" Property="Foreground" Value="Red" />
</DataTrigger>
</HierarchicalDataTemplate.Triggers>
</HierarchicalDataTemplate>
</Grid.Resources>
</Grid>
<Grid x:Name="gridLayerAttribute" Grid.Column="1" Grid.Row="1">
<dxg:TreeListControl x:Name="treeList" AutoGenerateColumns="None">
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn Header="错误信息" FieldName="ErrorDesc" Width="auto" AllowEditing="false"/>
</dxg:TreeListControl.Columns>
<dxg:TreeListControl.View>
<dxg:TreeListView x:Name="view" KeyFieldName="ID" ParentFieldName="PID" AutoWidth="True" AllowPerPixelScrolling="True" AutoExpandAllNodes="True"
IsTotalSummaryMenuEnabled="{Binding IsColumnMenuEnabled, RelativeSource={RelativeSource Self}}" AllowCascadeUpdate="{Binding AllowPerPixelScrolling, RelativeSource={RelativeSource Self}}"
ShowTotalSummary="True" AllowScrollAnimation="True"
RowDoubleClick="Dg_PreviewMouseDoubleClick"/>
</dxg:TreeListControl.View>
</dxg:TreeListControl>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>