年度变更建库软件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.
 
 

87 lines
8.1 KiB

<UserControl x:Class="Kingo.Plugin.General.View.UCJCTBTree"
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d" d:DesignHeight="850" d:DesignWidth="350">
<Grid>
<Grid.Resources>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding Nodes,Mode=TwoWay}">
<StackPanel Orientation="Horizontal" Height="28">
<Image Width="18" Source="{Binding Icon}" ToolTip="{Binding IconTooltip}" MouseLeftButtonUp="Image_MouseLeftButtonDown" Height="18" />
<TextBlock Name="txtBox" MaxWidth="200" Text="{Binding Name}" FontSize="13" VerticalAlignment="Center" Margin="2,0" ToolTip="{Binding Name}" TextTrimming="CharacterEllipsis"/>
<Image x:Name="btnRefresh" ToolTip="刷新列表" MouseLeftButtonUp="btnRefresh_MouseLeftButtonUp" Visibility="{Binding ParentButtonVisibility}" Source="/Kingo.Plugin.General;component/Resources/刷新.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="未完成" Visibility="{Binding WWCVisibility}" Source="/Kingo.Plugin.General;component/Resources/未完成.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="已完成" Visibility="{Binding WCVisibility}" Source="/Kingo.Plugin.General;component/Resources/已完成.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="已输出" Visibility="{Binding YDCVisibility}" Source="/Kingo.Plugin.General;component/Resources/已导出.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="已上传" Visibility="{Binding UploadVisibility}" Source="/Kingo.Plugin.General;component/Resources/上传.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="上传失败" Visibility="{Binding ErrorUploadVisibility}" Source="/Kingo.Plugin.General;component/Resources/上传失败.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="质检错误" x:Name="checkResult" Visibility="{Binding ErrorVisibility}" Source="/Kingo.Plugin.General;component/Resources/错误.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="返外业" Visibility="{Binding FWYVisibility}" Source="/Kingo.Plugin.General;component/Resources/返外业.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="Load..." x:Name="LoadWait" Visibility="{Binding LoadingVisibility}" Source="/Kingo.Plugin.General;component/Resources/loading.gif" Height="18" Width="18" Margin="3,0"/>
<Image x:Name="btnOpenPackage" ToolTip="打开任务包" MouseLeftButtonUp="BtnOpenPackage_MouseLeftButtonUp" Visibility="{Binding OpenPackageVisibility}" Source="/Kingo.Plugin.General;component/Resources/打开.png" Height="18" Width="18" Margin="3,0"/>
<Image x:Name="btnClosePackage" ToolTip="关闭任务包" MouseLeftButtonUp="BtnClosePackage_MouseLeftButtonUp" Visibility="{Binding ClosePackageVisibility}" Source="/Kingo.Plugin.General;component/Resources/关闭.png" Height="18" Width="18" Margin="3,0"/>
<Image ToolTip="已预审" Visibility="{Binding YYSVisibility}" Source="/Kingo.Plugin.General;component/Resources/已预审.png" Height="18" Width="18" Margin="3,0"/>
<StackPanel x:Name="CompletedAndUncompletedCountPanel" Orientation="Horizontal" VerticalAlignment="Center" Visibility="{Binding WCAndWWCNumVisibility}" ToolTip="任务包内未完成图斑个数/已完成图斑个数">
<TextBlock x:Name="UncompletedCountTextBlock" Text="{Binding UncompletedCount}" FontSize="13" VerticalAlignment="Center"/>
<TextBlock Text="/" VerticalAlignment="Center"/>
<TextBlock x:Name="CompletedCountTextBlock" Text="{Binding CompletedCount}" FontSize="13" VerticalAlignment="Center"/>
</StackPanel>
</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.RowDefinitions>
<RowDefinition Height="35" x:Name="firstRow"/>
<RowDefinition Height="35" x:Name="secondRow"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="筛选条件 :" x:Name="lbScreeningCondition" Grid.Column="0" FontSize="13" VerticalAlignment="Center" HorizontalAlignment="Left" Width="80" />
<dxe:ComboBoxEdit Grid.Column="1" x:Name="txtJCBHValue" Height="30" Margin="5,0" KeyUp="TxtJCBHValue_KeyUp" SelectedIndexChanged="BtnQuery_Click" LostFocus="TxtJCBHValue_LostFocus">
<dxe:ComboBoxEditItem Content="全部" IsSelected="True"/>
<dxe:ComboBoxEditItem Content="质检错误"/>
<dxe:ComboBoxEditItem Content="未完成"/>
<dxe:ComboBoxEditItem Content="已完成"/>
<dxe:ComboBoxEditItem Content="返外业"/>
<dxe:ComboBoxEditItem Content="星标图斑"/>
</dxe:ComboBoxEdit>
<Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="图斑标识码搜索任务包:" x:Name="lbSearchTB" FontSize="13" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBox Name="tbSearchTB" Text="" VerticalAlignment="Stretch" FontSize="13" Height="25" TextChanged="tbSearchTB_TextChanged" Grid.Column="1"/>
</Grid>
<TreeView Grid.Row="2" Grid.ColumnSpan="2" x:Name="tvPackges" HorizontalAlignment="Stretch" VirtualizingStackPanel.VirtualizationMode="Standard" VirtualizingStackPanel.IsVirtualizing="True" TreeViewItem.Expanded="TvPackges_Expanded" VerticalAlignment="Stretch" ItemsSource="{Binding}" ItemTemplate="{StaticResource ItemNode}" SelectedItemChanged="tvProperties_SelectedItemChanged">
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="Visibility" Value="{Binding TreeVisibility,Mode=TwoWay}"/>
<Setter Property="IsExpanded" Value="{Binding IsExpanded,Mode=TwoWay}"/>
<Setter Property="IsSelected" Value="{Binding Checked,Mode=TwoWay}"/>
<EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="tvTypes_PreviewMouseRightButtonDown"/>
<EventSetter Event="TreeViewItem.PreviewMouseLeftButtonDown" Handler="tvTypes_PreviewMouseLeftButtonDown"/>
<EventSetter Event="TreeViewItem.MouseDoubleClick" Handler="tvTypes_MouseDoubleClick"/>
<Setter Property="ContextMenu" Value="{Binding cMenu}"/>
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="DodgerBlue"></SolidColorBrush>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="White"></SolidColorBrush>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="DodgerBlue"></SolidColorBrush>
<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="White"></SolidColorBrush>
</Style.Resources>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
</Grid>
</UserControl>