118 lines
4.6 KiB
XML
118 lines
4.6 KiB
XML
<UserControl
|
|
x:Class="SWS.CAD.Views.DialogParallelCable"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
Width="400"
|
|
Height="340"
|
|
Background="White">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml" />
|
|
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<local:customWindowTitleBar />
|
|
<Grid Grid.Row="1" Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="30" />
|
|
<RowDefinition Height="30" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="0.3*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Style="{StaticResource sysLabel}" Text="电缆位号列表" />
|
|
<telerik:RadGridView
|
|
Grid.Row="1"
|
|
Grid.RowSpan="5"
|
|
MaxHeight="190"
|
|
telerik:StyleManager.Theme="Office_Blue"
|
|
AutoGenerateColumns="False"
|
|
IsFilteringAllowed="False"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding listTagNumber, Mode=TwoWay}"
|
|
RowIndicatorVisibility="Collapsed"
|
|
SelectedItem="{Binding selectTag}"
|
|
SelectionMode="Single"
|
|
ShowGroupPanel="False">
|
|
<telerik:RadGridView.Columns>
|
|
<telerik:GridViewDataColumn
|
|
Width="50"
|
|
DataMemberBinding="{Binding Key}"
|
|
Header="序号"
|
|
IsFilteringDeferred="True"
|
|
IsVisible="True" />
|
|
<telerik:GridViewDataColumn
|
|
Width="*"
|
|
DataMemberBinding="{Binding Value}"
|
|
Header="位号"
|
|
IsFilteringDeferred="True" />
|
|
</telerik:RadGridView.Columns>
|
|
</telerik:RadGridView>
|
|
<telerik:RadButton
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="5"
|
|
Command="{Binding OKCommand}"
|
|
Content="保存"
|
|
Style="{StaticResource sysBtn6}" />
|
|
<telerik:RadButton
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="5"
|
|
Command="{Binding CloseCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="取消"
|
|
Style="{StaticResource sysBtn7}" />
|
|
<telerik:RadButton
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Margin="5"
|
|
Background="ForestGreen"
|
|
Command="{Binding Command_Add}"
|
|
Content="新增"
|
|
Style="{StaticResource sysBtn6}" />
|
|
<telerik:RadButton
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
Margin="5"
|
|
Background="PaleVioletRed"
|
|
Command="{Binding Command_Delete}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="删除"
|
|
Style="{StaticResource sysBtn7}" />
|
|
<TextBlock
|
|
Grid.Row="6"
|
|
Style="{StaticResource sysLabel}"
|
|
Text="平行电缆位号" />
|
|
<TextBox
|
|
Grid.Row="7"
|
|
VerticalContentAlignment="Center"
|
|
Text="{Binding StrParallelCable}" />
|
|
<telerik:RadButton
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Margin="5,0,5,0"
|
|
Command="{Binding Command_Build}"
|
|
Content="生成"
|
|
Style="{StaticResource sysBtn6}" />
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|