107 lines
6.4 KiB
Plaintext
107 lines
6.4 KiB
Plaintext
![]() |
<UserControl x:Class="SWS.WPF.Views.DialogAssociatedSignal"
|
||
|
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:SWS.WPF.Views"
|
||
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||
|
xmlns:cvt="clr-namespace:SWS.Commons.Helper.Converter;assembly=SWS.Commons"
|
||
|
xmlns:CustomControl="clr-namespace:SWS.CustomControl;assembly=SWS.CustomControl"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="450" d:DesignWidth="800">
|
||
|
<prism:Dialog.WindowStyle>
|
||
|
<Style TargetType="Window">
|
||
|
<!--最大化-->
|
||
|
<Setter Property="Width" Value="1000" />
|
||
|
<Setter Property="Height" Value="800" />
|
||
|
|
||
|
<Setter Property="SizeToContent" Value="WidthAndHeight" />
|
||
|
|
||
|
<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.WPF;component/Style/CustomStyles.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
</ResourceDictionary>
|
||
|
</UserControl.Resources>
|
||
|
<telerik:RadBusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}">
|
||
|
<StackPanel>
|
||
|
<CustomControl:customWindowTitleBar x:Name="titleBar" />
|
||
|
<TextBlock Margin="10,0" Text="{Binding Info}" />
|
||
|
<telerik:RadGridView x:Name="RadGridView1" SelectionMode="Single" Width="500" Height="530"
|
||
|
AutoGenerateColumns="False" IsFilteringAllowed="False" Background="#a0a0a0"
|
||
|
IsReadOnly="True" RowIndicatorVisibility="Collapsed"
|
||
|
ShowGroupPanel="False" telerik:StyleManager.Theme="Office_Blue"
|
||
|
ItemsSource="{Binding MySignals}" SelectedItem="{Binding SelectedSignal, Mode=TwoWay}">
|
||
|
<telerik:RadGridView.Columns>
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Group_Name}"
|
||
|
Header="CH.NO"
|
||
|
IsFilterable="False"/>
|
||
|
<telerik:GridViewDataColumn Width="120"
|
||
|
DataMemberBinding="{Binding Group_Desc_EN}"
|
||
|
Header="英文描述"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn Width="120"
|
||
|
DataMemberBinding="{Binding Group_Desc}"
|
||
|
Header="中文描述"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding IO_Type}"
|
||
|
Header="信号类型"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_LL}"
|
||
|
Header="L.L"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_L}"
|
||
|
Header="L"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_H}"
|
||
|
Header="H"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Alarm_HH}"
|
||
|
Header="H.H"
|
||
|
IsFilterable="False" />
|
||
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SENSOR_CODE}"
|
||
|
Header="CODE"
|
||
|
IsFilterable="False"
|
||
|
Width="*"/>
|
||
|
</telerik:RadGridView.Columns>
|
||
|
</telerik:RadGridView>
|
||
|
<Border Grid.Row="2"
|
||
|
Height="30"
|
||
|
Background="{StaticResource ColorPrimary}">
|
||
|
<DockPanel >
|
||
|
<StackPanel DockPanel.Dock="Left">
|
||
|
<telerik:RadButton Margin="5"
|
||
|
HorizontalAlignment="Left"
|
||
|
Command="{Binding CancelAssociationCmd}"
|
||
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
||
|
Content="取消关联"
|
||
|
Visibility="{Binding IsVisibility}"
|
||
|
Style="{StaticResource sysBtn4}" />
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||
|
<telerik:RadButton Margin="5"
|
||
|
Command="{Binding OKCommand}"
|
||
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
||
|
Content="确定"
|
||
|
Style="{StaticResource sysBtn}" />
|
||
|
<telerik:RadButton Margin="5"
|
||
|
Command="{Binding CloseCommand}"
|
||
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
||
|
Content="取消"
|
||
|
Style="{StaticResource sysBtn2}" />
|
||
|
</StackPanel>
|
||
|
|
||
|
</DockPanel>
|
||
|
</Border>
|
||
|
</StackPanel>
|
||
|
</telerik:RadBusyIndicator>
|
||
|
</UserControl>
|