749 lines
56 KiB
XML
749 lines
56 KiB
XML
<UserControl x:Class="SWS.CAD.Views.SignalManagementViews.DialogSignalManagement"
|
|
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:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.SignalManagementViews"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:viewbase ="clr-namespace:SWS.CAD.Views.CustomControl"
|
|
xmlns:cvt ="clr-namespace:SWS.CAD.Helper.Converter"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<prism:Dialog.WindowStyle>
|
|
<Style TargetType="Window">
|
|
<Setter Property="Width" Value="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Width}"/>
|
|
<Setter Property="Height" Value="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Height}"/>
|
|
|
|
<Setter Property="WindowState" Value="Normal"/>
|
|
<Setter Property="WindowStyle" Value="None"/>
|
|
<Setter Property="ResizeMode" Value="NoResize"/>
|
|
</Style>
|
|
</prism:Dialog.WindowStyle>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<!--转换器-->
|
|
<cvt:RadGridViewRowToBoolConverter x:Key="RowToBoolCvt"/>
|
|
<viewbase:CollectionToStringConverter x:Key="CollectionToStringConverter"/>
|
|
|
|
<!--模版样式-->
|
|
<DataTemplate x:Key="CellTemplate1">
|
|
<TextBlock Text="{Binding WHCPUs,Converter={StaticResource CollectionToStringConverter}}"/>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="CellEditTemplate1">
|
|
<viewbase:MultiSelectSearchComboBox
|
|
x:Name="MultiSelectSearchComboBox1"
|
|
Width="auto"
|
|
Height="auto"
|
|
Delimiter="|"
|
|
DisplayMemberPath="DataItemName"
|
|
IsSelectAllActive="True"
|
|
ItemsSource="{Binding DataContext.WHCPUs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
SelectedItems="{Binding WHCPUs}"
|
|
SelectedValuePath="DataItemCode" >
|
|
</viewbase:MultiSelectSearchComboBox>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="CellTemplate2">
|
|
<TextBlock Text="{Binding ECRCPUs,Converter={StaticResource CollectionToStringConverter}}"/>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="CellEditTemplate2">
|
|
<viewbase:MultiSelectSearchComboBox
|
|
x:Name="MultiSelectSearchComboBox1"
|
|
Width="auto"
|
|
Height="auto"
|
|
Delimiter="|"
|
|
DisplayMemberPath="DataItemName"
|
|
IsSelectAllActive="True"
|
|
ItemsSource="{Binding DataContext.ECRCPUs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
SelectedItems="{Binding ECRCPUs}"
|
|
SelectedValuePath="DataItemCode" >
|
|
</viewbase:MultiSelectSearchComboBox>
|
|
</DataTemplate>
|
|
|
|
|
|
<DataTemplate x:Key="CellTemplate3">
|
|
<TextBlock Text="{Binding ShipOfficeCPUs,Converter={StaticResource CollectionToStringConverter}}"/>
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="CellEditTemplate3">
|
|
<viewbase:MultiSelectSearchComboBox
|
|
x:Name="MultiSelectSearchComboBox1"
|
|
Width="auto"
|
|
Height="auto"
|
|
Delimiter="|"
|
|
DisplayMemberPath="DataItemName"
|
|
IsSelectAllActive="True"
|
|
ItemsSource="{Binding DataContext.ShipOfficeCPUs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
SelectedItems="{Binding ShipOfficeCPUs}"
|
|
SelectedValuePath="DataItemCode" >
|
|
</viewbase:MultiSelectSearchComboBox>
|
|
</DataTemplate>
|
|
|
|
<Style x:Key="buttoustyle1" TargetType="telerik:RadButton">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Content, ElementName=myButton}" Value="显示全部">
|
|
<Setter Property="IsEnabled" Value="False"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 定义展开按钮样式 -->
|
|
<Style x:Key="ExpandButtonStyle" TargetType="ToggleButton">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<Border Background="Transparent">
|
|
<!-- 自定义箭头图标 -->
|
|
<Path x:Name="ExpandPath"
|
|
Data="M 0 2 L 4 6 L 0 10 Z"
|
|
Fill="{TemplateBinding Foreground}"
|
|
Stretch="Uniform"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<!-- 展开时旋转箭头(可选) -->
|
|
<Setter TargetName="ExpandPath" Property="LayoutTransform">
|
|
<Setter.Value>
|
|
<RotateTransform Angle="90"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ToDeleteStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="#db9fa9" />
|
|
</Style>
|
|
<Style x:Key="NewStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="#fc7c2c" />
|
|
</Style>
|
|
<Style x:Key="UsedStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="#49ac64" />
|
|
</Style>
|
|
<Style x:Key="ConfirmedStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="DarkGray" />
|
|
</Style>
|
|
<Style x:Key="ReopenStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="#1c3df5" />
|
|
</Style>
|
|
<Style x:Key="deletedStatusStyle"
|
|
TargetType="telerik:GridViewRow">
|
|
<Setter Property="Foreground" Value="DarkGray" />
|
|
</Style>
|
|
<cvt:StatusToColourConverter x:Key="converter"/>
|
|
<viewbase:ConditionalStyleSelector x:Key="selector" ConditionConverter="{StaticResource converter}">
|
|
<viewbase:ConditionalStyleSelector.Rules>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource ToDeleteStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>ToDelete</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource NewStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>New</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource UsedStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>Used</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource ConfirmedStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>Confirmed</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource ReopenStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>Reopen</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
<viewbase:ConditionalStyleRule Style="{StaticResource deletedStatusStyle}">
|
|
<viewbase:ConditionalStyleRule.Value>
|
|
<sys:String>deleted</sys:String>
|
|
</viewbase:ConditionalStyleRule.Value>
|
|
</viewbase:ConditionalStyleRule>
|
|
</viewbase:ConditionalStyleSelector.Rules>
|
|
</viewbase:ConditionalStyleSelector>
|
|
|
|
<Style x:Key="CityNumStyle" TargetType="DataGridColumnHeader">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid x:Name="Root">
|
|
<!--<Rectangle x:Name="BackgroundGradient" Fill="#eee" Stretch="Fill" Grid.ColumnSpan="2" />-->
|
|
<ContentPresenter Content="区号" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="CityNameStyle" TargetType="DataGridColumnHeader">
|
|
<Setter Property="Foreground" Value="#222" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="SeparatorBrush" Value="#CCC" />
|
|
<Setter Property="Padding" Value="8" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid x:Name="Root">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<!--<Rectangle x:Name="BackgroundRectangle" Fill="#eee" Stretch="Fill" Grid.ColumnSpan="2" />-->
|
|
<Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="1" />
|
|
<RowDefinition Height="20" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="1" />
|
|
<ColumnDefinition Width="100" />
|
|
</Grid.ColumnDefinitions>
|
|
<!--设置标题名称-->
|
|
<ContentPresenter Content="省份城市" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="3" />
|
|
<!--设置间隔线-->
|
|
<Rectangle Fill="#ccc" VerticalAlignment="Stretch" Height="1" Visibility="Visible" Grid.Row="1" Grid.ColumnSpan="3" />
|
|
<ContentPresenter Content="省名" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
<Rectangle Fill="#ccc" VerticalAlignment="Stretch" Width="1" Visibility="Visible" Grid.Row="2" Grid.Column="1" />
|
|
<ContentPresenter Content="城市" Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
</Grid>
|
|
<Rectangle x:Name="VerticalSeparator" Fill="#ccc" VerticalAlignment="Stretch" Width="1" Visibility="Visible" Grid.Row="1" Grid.Column="1" />
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
|
|
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="CityStyle" TargetType="DataGridColumnHeader">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid x:Name="Root">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition>
|
|
</ColumnDefinition>
|
|
<ColumnDefinition Width="Auto">
|
|
</ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid
|
|
Grid.Column="0"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30">
|
|
</RowDefinition>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="30">
|
|
</RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100">
|
|
</ColumnDefinition>
|
|
<ColumnDefinition Width="Auto">
|
|
</ColumnDefinition>
|
|
<ColumnDefinition Width="100">
|
|
</ColumnDefinition>
|
|
<ColumnDefinition Width="Auto">
|
|
</ColumnDefinition>
|
|
<ColumnDefinition Width="100">
|
|
</ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="5"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="户籍信息">
|
|
</ContentPresenter>
|
|
<Rectangle
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="5"
|
|
VerticalAlignment="Stretch" Height="1"
|
|
Fill="Black"
|
|
Visibility="Visible">
|
|
</Rectangle>
|
|
<ContentPresenter
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="省">
|
|
</ContentPresenter>
|
|
<Rectangle
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="1"
|
|
VerticalAlignment="Stretch"
|
|
Fill="#ccc"
|
|
Visibility="Visible">
|
|
</Rectangle>
|
|
<ContentPresenter
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="市">
|
|
</ContentPresenter>
|
|
<Rectangle
|
|
Grid.Row="2"
|
|
Grid.Column="3"
|
|
Width="1"
|
|
VerticalAlignment="Stretch"
|
|
Fill="#ccc"
|
|
Visibility="Visible">
|
|
</Rectangle>
|
|
<ContentPresenter
|
|
Grid.Row="2"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="县">
|
|
</ContentPresenter>
|
|
</Grid>
|
|
<Rectangle
|
|
Grid.Column="1"
|
|
Width="1"
|
|
VerticalAlignment="Stretch"
|
|
Fill="#ccc"
|
|
Visibility="Visible">
|
|
</Rectangle>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
|
|
|
|
</UserControl.Resources>
|
|
<telerik:RadBusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="800"/>
|
|
</Grid.RowDefinitions>
|
|
<viewbase:customWindowTitleBar />
|
|
<Grid Grid.Row="1" Background="#5d6b99">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="1*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Margin="5,0,0,0" Style="{StaticResource sysLabel}" Text="{Binding pojectName}" />
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
<TextBlock Width="200" Style="{StaticResource sysLabel}" Text="{Binding count}" />
|
|
<viewbase:IconButton Content="保存"
|
|
IconData="M13,3 L3,3 L3,21 L21,21 L21,11 M15,3 L15,8 L21,8 M7,13 L11,17 L17,7"
|
|
IconPlacement="Left"
|
|
IconSize="16"
|
|
Margin="5"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="保存"/>
|
|
<viewbase:IconButton Content="退出"
|
|
IconData="M12,3 L12,9 M12,21 L12,15 M15,18 L21,12 L15,6 M9,6 L3,12 L9,18"
|
|
IconPlacement="Left"
|
|
IconSize="16"
|
|
Margin="5"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="退出"/>
|
|
<viewbase:IconButton Content="通知信息"
|
|
IconData="M12 2C8 2 6 5 6 9L4 18H20L18 9C18 5 16 2 12 2M12 22C10.9 22 10 21.1 10 20H14C14 21.1 13.1 22 12 22Z
|
|
M12 5C15 5 16 7 16 9L17 16H7L8 9C8 7 9 5 12 5
|
|
M12 12L12 14 M12 8L12 10"
|
|
IconPlacement="Left"
|
|
IconSize="16"
|
|
Margin="5"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="通知信息"/>
|
|
<viewbase:IconButton Content="历史记录"
|
|
IconData="M12,3 L12,9 M12,21 L12,15 M15,18 L21,12 L15,6 M9,6 L3,12 L9,18"
|
|
IconPlacement="Left"
|
|
IconSize="16"
|
|
Margin="5"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="历史记录"/>
|
|
<viewbase:IconButton Content="{Binding ButtonContent}" x:Name="myButton"
|
|
IconData="M5 6L6 20H18L19 6 M3 6H21 M8 6L9 3H15L16 6"
|
|
IconPlacement="Left"
|
|
IconSize="16"
|
|
Margin="5"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="回收站">
|
|
</viewbase:IconButton>
|
|
<StackPanel Margin="5" Orientation="Horizontal">
|
|
<TextBox Grid.Row="7" Width="120" Text="{Binding SearchText}" VerticalContentAlignment="Center" />
|
|
<viewbase:IconButton Content=""
|
|
IconData="M9.5,3 C13.09,3 16,5.91 16,9.5 C16,11.11 15.41,12.59 14.44,13.73 L14.71,14 L20.5,19.79 L19.79,20.5 L14,14.71 L13.73,14.44 C12.59,15.41 11.11,16 9.5,16 C5.91,16 3,13.09 3,9.5 C3,5.91 5.91,3 9.5,3 M9.5,5 C7,5 5,7 5,9.5 C5,12 7,14 9.5,14 C12,14 14,12 14,9.5 C14,7 12,5 9.5,5"
|
|
IconSize="16"
|
|
Foreground="Black"
|
|
Command="{Binding HeadButtonCmd}" CommandParameter="搜索框">
|
|
|
|
</viewbase:IconButton>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
<Grid Grid.Row="2" Background="#5d6b99">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1100"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<!--test-->
|
|
|
|
<telerik:RadTreeListView Name="RadGridView1"
|
|
Grid.Row="2"
|
|
telerik:StyleManager.Theme="Office_Blue"
|
|
AutoGenerateColumns="False" IsFilteringAllowed="False"
|
|
IsReadOnly="False" RowIndicatorVisibility="Collapsed"
|
|
ItemsSource="{Binding smInfosView,Mode=TwoWay}"
|
|
SelectedItem="{Binding SelectedSmInfo}"
|
|
SelectionMode="Single"
|
|
LeftFrozenColumnCount="4"
|
|
ShowGroupPanel="False"
|
|
RowStyleSelector="{StaticResource selector}"
|
|
IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"
|
|
IsExpandableBinding="{Binding IsExpandable}"
|
|
HierarchyColumnIndex="1"
|
|
HierarchyIndent="0"
|
|
EnableColumnGroupsVirtualization="True"
|
|
EnableRowVirtualization="True"
|
|
EnableColumnVirtualization="True"
|
|
HierarchyExpandButtonStyle="{StaticResource ExpandButtonStyle}"
|
|
>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="CellEditEnded">
|
|
<i:InvokeCommandAction Command="{Binding EditEndCmd}"
|
|
CommandParameter="{Binding EventArgs}"/>
|
|
</i:EventTrigger>
|
|
<i:EventTrigger EventName="RowLoaded">
|
|
<i:InvokeCommandAction Command="{Binding RowLoadedCmd}"
|
|
CommandParameter="{Binding EventArgs}"/>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
<telerik:RadTreeListView.ColumnGroups>
|
|
<telerik:GridViewColumnGroup Name="Range" Header="Range" />
|
|
<telerik:GridViewColumnGroup Name="Alarm" Header="Alarm" />
|
|
<telerik:GridViewColumnGroup Name="SENSOR" Header="SENSOR" />
|
|
<telerik:GridViewColumnGroup Name="GRP." Header="GRP." />
|
|
<telerik:GridViewColumnGroup Name="AMS" Header="AMS" />
|
|
<telerik:GridViewColumnGroup Name="VDR" Header="VDR" />
|
|
<telerik:GridViewColumnGroup Name="W/H" Header="W/H" />
|
|
<telerik:GridViewColumnGroup Name="ECR" Header="ECR" />
|
|
<telerik:GridViewColumnGroup Name="SHIP OFFICE" Header="SHIP OFFICE" />
|
|
</telerik:RadTreeListView.ColumnGroups>
|
|
<!-- 层级结构定义 -->
|
|
<telerik:RadTreeListView.ChildTableDefinitions>
|
|
<telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildSignals}" />
|
|
</telerik:RadTreeListView.ChildTableDefinitions>
|
|
|
|
|
|
|
|
<telerik:RadTreeListView.Columns>
|
|
<!-- 展开行详情列“+”
|
|
<telerik:GridViewToggleRowDetailsColumn Header=""/>
|
|
-->
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding serialNumber}" Header="序号"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=序号}">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Background" Value="#5d6b99" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding type}" Header="类型"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=类型}">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Background" Value="#5d6b99" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Group_Name}" Header="CH.NO"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CH.NO}">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Background" Value="#FF297ACE" />
|
|
<Setter Property="Background" Value="#5d6b99" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Group_Desc_EN}" Width="200"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=英文描述}"
|
|
Header="英文描述" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Group_Desc}" Width="120"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=中文描述}"
|
|
Header="中文描述" />
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding BelongingMajor}" Header="归属专业"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=归属专业}"
|
|
ItemsSource="{Binding DataContext.BelongingMajors,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding GroupOther}" Header="组别"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=组别}"
|
|
ItemsSource="{Binding DataContext.GroupOthers,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
DisplayMemberPath="DataItemName"
|
|
SelectedValueMemberPath="DataItemName"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Signal_SeqNo}" Header="编码"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=编码}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Code}" Header="Code"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=Code}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding InOrOut}" Header="IO类型"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=IO类型}"
|
|
ItemsSource="{Binding DataContext.InOrOuts,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding IO_Type}" Header="信号类型"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=信号类型}"
|
|
ItemsSource="{Binding DataContext.IO_Types,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Range_Min}" Header="Min" ColumnGroupName="Range"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=Min}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Range_Max}" Header="Max" ColumnGroupName="Range"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=Max}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Unit}" Header="单位"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=单位}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_LL}" Header="L.L" ColumnGroupName="Alarm"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=L.L}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_L}" Header="L" ColumnGroupName="Alarm"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=L}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_H}" Header="H" ColumnGroupName="Alarm"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=H}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_HH}" Header="H.H" ColumnGroupName="Alarm"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=H.H}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SENSOR_CODE}" Header="CODE" ColumnGroupName="SENSOR"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CODE}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CommunicationPoint}" Header="通讯"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=通讯}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SeriousType}" Header="SeriousType"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=SeriousType}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding AL_GRP}" Header="AL." ColumnGroupName="GRP."
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=AL.}"
|
|
ItemsSource="{Binding DataContext.AL_GRPs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding BL_GRP}" Header="BL." ColumnGroupName="GRP."
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=BL.}"
|
|
ItemsSource="{Binding DataContext.BL_GRPs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Time_Delay}" Header="TimeDelay" ColumnGroupName="AMS"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=TimeDelay}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Supplier}" Header="供应商"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=供应商}"
|
|
ItemsSource="{Binding DataContext.Suppliers,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
DisplayMemberPath="DataItemName"
|
|
SelectedValueMemberPath="DataItemName"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding EquipName}" Header="设备名"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=设备名}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding VDR_Record}" Header="Record" ColumnGroupName="VDR"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=Record}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding WHConsole}" Header="CONSOLE" ColumnGroupName="W/H"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CONSOLE_W/H}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding WHCPUs}" Header="CPU" ColumnGroupName="W/H"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CPU_W/H}"
|
|
CellTemplate="{StaticResource CellTemplate1}"
|
|
CellEditTemplate="{StaticResource CellEditTemplate1}"
|
|
/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding ECRConsole}" Header="CONSOLE" ColumnGroupName="ECR"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CONSOLE_ECR}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ECRCPU}" Header="CPU" ColumnGroupName="ECR"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CPU_ECR}"
|
|
CellTemplate="{StaticResource CellTemplate2}"
|
|
CellEditTemplate="{StaticResource CellEditTemplate2}"
|
|
ItemsSource="{Binding DataContext.ECRCPUs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding ShipOfficeConsole}" Header="CONSOLE" ColumnGroupName="SHIP OFFICE"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CONSOLE_SHIPOFFICE}"/>
|
|
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ShipOfficeCPU}" Header="CPU" ColumnGroupName="SHIP OFFICE"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=CPU_SHIPOFFICE}"
|
|
CellTemplate="{StaticResource CellTemplate3}"
|
|
CellEditTemplate="{StaticResource CellEditTemplate3}"
|
|
ItemsSource="{Binding DataContext.ShipOfficeCPUs,RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SLD}" Header="SLD"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=SLD}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SHD}" Header="SHD"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=SHD}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SafetyDelay}" Header="安保延迟"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=安保延迟}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding AutoCtrl}" Header="自动控制"
|
|
IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=自动控制}"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding AssociatedCableInfo}" Header="关联的电缆信息" IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=关联的电缆信息}">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Foreground" Value="#c0c0c0" />
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding AssociatedChannelInfo}" Header="关联的通道信息" IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=关联的通道信息}">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Foreground" Value="#c0c0c0" />
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
</telerik:GridViewDataColumn>
|
|
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Remarks}" Header="备注" IsReadOnlyBinding="{Binding Converter={StaticResource RowToBoolCvt},RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}},ConverterParameter=备注}"/>
|
|
</telerik:RadTreeListView.Columns>
|
|
|
|
|
|
|
|
<!-- 定义行详情模板
|
|
|
|
<telerik:RadTreeListView.RowDetailsTemplate>
|
|
<DataTemplate>
|
|
<StackPanel>
|
|
<TextBlock Text="111"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</telerik:RadTreeListView.RowDetailsTemplate>
|
|
-->
|
|
</telerik:RadTreeListView>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="1" Margin="5">
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right"
|
|
Content="新增信号"
|
|
Style="{StaticResource buttoustyle1}"
|
|
Command="{Binding ButtonCmd}" CommandParameter="新增信号"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right"
|
|
Content="新增虚拟点"
|
|
Style="{StaticResource buttoustyle1}"
|
|
Command="{Binding ButtonCmd}" CommandParameter="新增虚拟点" />
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Command="{Binding ButtonCmd}" CommandParameter="信号转虚拟点">
|
|
<telerik:RadButton.Style>
|
|
<Style TargetType="telerik:RadButton">
|
|
<!-- 默认文本 -->
|
|
<Setter Property="Content" Value="虚拟转信号"/>
|
|
<Setter Property="IsEnabled" Value="False"/>
|
|
|
|
<!-- 当选中项的Content为信号时 -->
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SelectedItem.type, ElementName=RadGridView1}" Value="信号">
|
|
<Setter Property="Content" Value="信号转虚拟点"/>
|
|
<Setter Property="IsEnabled" Value="True"/>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding SelectedItem.type, ElementName=RadGridView1}" Value="虚拟点">
|
|
<Setter Property="Content" Value="虚拟点转信号"/>
|
|
<Setter Property="IsEnabled" Value="True"/>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Content, ElementName=myButton}" Value="显示全部">
|
|
<Setter Property="IsEnabled" Value="False"/>
|
|
</DataTrigger>
|
|
|
|
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding SelectedItem.type, ElementName=RadGridView1}" Value="信号" />
|
|
<Condition Binding="{Binding SelectedItem.IsExpandable, ElementName=RadGridView1}" Value="True" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter Property="IsEnabled" Value="False"/>
|
|
</MultiDataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</telerik:RadButton.Style>
|
|
|
|
</telerik:RadButton>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="删除"
|
|
Command="{Binding ButtonCmd}" CommandParameter="删除"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="撤销删除"
|
|
Command="{Binding ButtonCmd}" CommandParameter="撤销删除"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="彻底删除"
|
|
Command="{Binding ButtonCmd}" CommandParameter="彻底删除"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="还原信号"
|
|
Command="{Binding ButtonCmd}" CommandParameter="还原信号">
|
|
<telerik:RadButton.Style>
|
|
<Style TargetType="telerik:RadButton">
|
|
<Setter Property="IsEnabled" Value="False"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Content, ElementName=myButton}" Value="显示全部">
|
|
<Setter Property="IsEnabled" Value="True"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</telerik:RadButton.Style>
|
|
</telerik:RadButton>
|
|
<telerik:RadButton Width="100" Margin="0 20 0 5" HorizontalAlignment="Right" Content="审核"
|
|
Command="{Binding ButtonCmd}" CommandParameter="审核"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="重新打开"
|
|
Command="{Binding ButtonCmd}" CommandParameter="重新打开"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 60 0 5" HorizontalAlignment="Right" Content="关联通道"
|
|
Visibility="{Binding IsChannelButtonVisibility}" Command="{Binding ButtonCmd}" CommandParameter="关联通道"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="关联母线"
|
|
Visibility="{Binding IsButtonVisibility}" Command="{Binding ButtonCmd}" CommandParameter="关联母线"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="关联信号"
|
|
IsEnabled="False"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<telerik:RadButton Width="100" Margin="0 0 0 5" HorizontalAlignment="Right" Content="查关联信号"
|
|
IsEnabled="False"
|
|
Style="{StaticResource buttoustyle1}"/>
|
|
<GroupBox Margin="5,120,5,5" VerticalAlignment="Bottom" Header="显示状态">
|
|
<StackPanel>
|
|
<telerik:RadButton Foreground="#db9fa9" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="待删除" Command="{Binding StatusButtonCmd}" CommandParameter="ToDelete" />
|
|
<telerik:RadButton Foreground="#fc7c2c" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="新增" Command="{Binding StatusButtonCmd}" CommandParameter="New"/>
|
|
<telerik:RadButton Foreground="#49ac64" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="已关联" Command="{Binding StatusButtonCmd}" CommandParameter="Used" />
|
|
<telerik:RadButton Foreground="#565656" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="已审核" Command="{Binding StatusButtonCmd}" CommandParameter="Confirmed"/>
|
|
<telerik:RadButton Foreground="#1c3df5" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="重新打开" Command="{Binding StatusButtonCmd}" CommandParameter="Reopen"/>
|
|
<telerik:RadButton Foreground="#232323" Width="80" Margin="0 0 0 5" HorizontalAlignment="Center" Content="全部" Command="{Binding StatusButtonCmd}" CommandParameter="All"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<!--
|
|
<viewbase:MultiSelectSearchComboBox
|
|
Width="auto"
|
|
Height="auto"
|
|
Delimiter="|"
|
|
DisplayMemberPath="DataItemName"
|
|
IsSelectAllActive="True"
|
|
ItemsSource="{Binding ItemsSource,ElementName=MultiSelectSearchComboBox1}"
|
|
SelectedItems="{Binding WHCPUs, RelativeSource={RelativeSource AncestorType=telerik:RadTreeListView}}"
|
|
SelectedValuePath="DataItemCode" >
|
|
</viewbase:MultiSelectSearchComboBox>
|
|
-->
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</telerik:RadBusyIndicator>
|
|
</UserControl>
|