|
|
|
|
<UserControl x:Class="Kingo.Plugin.SystemSetting.View.ViewSystemSetting.ViewWYInfoSetting"
|
|
|
|
|
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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
|
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
|
|
|
xmlns:kui="clr-namespace:KUI;assembly=KUI"
|
|
|
|
|
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
<Grid Background="White">
|
|
|
|
|
<GroupBox Header="外业信息" HorizontalAlignment="Stretch" Margin="8" VerticalAlignment="Stretch">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Label Content="图层配置:" Grid.ColumnSpan="2" VerticalContentAlignment="Center" />
|
|
|
|
|
<!--<kui:PagingDataGrid x:Name="dgCtrl" Grid.Row="1" Grid.Column="0" IsShowPaging="False" AutoGenerateColumns="False"
|
|
|
|
|
CanUserSortColumns="False"
|
|
|
|
|
CanUserResizeColumns="True" CanUserResizeRows="False"
|
|
|
|
|
CanUserReorderColumns="False" CanUserAddRows="False" SelectionChanged="DgCtrl_SelectionChanged"
|
|
|
|
|
>
|
|
|
|
|
<kui:PagingDataGrid.Columns>
|
|
|
|
|
<DataGridCheckBoxColumn Header="是否查看照片" Width="110" Binding="{Binding IsCheck}" IsReadOnly="False"/>
|
|
|
|
|
<DataGridTextColumn Header="图层名" Width="110" Binding="{Binding LayerName}" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Header="图层别名" Width="110" Binding="{Binding LayerAliasName}" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Header="关联方式" Width="100" Binding="{Binding RelevantModel}" IsReadOnly="True" />
|
|
|
|
|
<DataGridTemplateColumn Header="属性字段/面积占比" Width="150" IsReadOnly="False" >
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
<TextBlock x:Name="txtField" Text="{Binding AttributeField, Mode=TwoWay}" HorizontalAlignment="Center" >
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<StackPanel Orientation="Horizontal" x:Name="panelBL" HorizontalAlignment="Center" >
|
|
|
|
|
<TextBlock x:Name="txtBL" Text="{Binding AreaScale, Mode=TwoWay}" >
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<TextBlock Text="%" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<DataTemplate.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding RelevantModel,Mode=TwoWay}" Value="属性">
|
|
|
|
|
<Setter TargetName="txtField" Property="Visibility" Value="Visible" />
|
|
|
|
|
<Setter TargetName="panelBL" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding RelevantModel,Mode=TwoWay}" Value="图形">
|
|
|
|
|
<Setter TargetName="txtField" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Setter TargetName="panelBL" Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</DataTemplate.Triggers>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
</kui:PagingDataGrid.Columns>
|
|
|
|
|
</kui:PagingDataGrid>-->
|
|
|
|
|
<dxg:GridControl x:Name="dgCtrl" Grid.Row="1" Grid.Column="0" AutoGenerateColumns="None" Margin="5" EnableSmartColumnsGeneration="True" SelectedItemChanged="dgCtrl_SelectedItemChanged">
|
|
|
|
|
<dxg:GridControl.View>
|
|
|
|
|
<dxg:TableView AllowEditing="False" IsColumnMenuEnabled="False" AllowGrouping="False" AllowColumnMoving="False" AllowColumnFiltering="False" AllowResizing="True" AllowSorting="False" ShowGroupPanel="False"/>
|
|
|
|
|
</dxg:GridControl.View>
|
|
|
|
|
<dxg:GridColumn FieldName="IsCheck" Header="是否查看照片" Width="110" AllowSorting="False" AllowMoving="False" AllowEditing="True" HorizontalHeaderContentAlignment="Center" >
|
|
|
|
|
<dxg:GridColumn.EditSettings>
|
|
|
|
|
<dxe:CheckEditSettings/>
|
|
|
|
|
</dxg:GridColumn.EditSettings>
|
|
|
|
|
</dxg:GridColumn>
|
|
|
|
|
<dxg:GridColumn FieldName="LayerName" Header="图层名" Width="110" HorizontalHeaderContentAlignment="Center" />
|
|
|
|
|
<dxg:GridColumn FieldName="LayerAliasName" Header="图层别名" Width="110" HorizontalHeaderContentAlignment="Center" />
|
|
|
|
|
<dxg:GridColumn FieldName="RelevantModel" Header="关联方式" Width="110" HorizontalHeaderContentAlignment="Center" />
|
|
|
|
|
<dxg:GridColumn Header="属性字段/面积占比" Width="120" HorizontalHeaderContentAlignment="Center" >
|
|
|
|
|
<dxg:GridColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
<TextBlock x:Name="txtField" Text="{Binding RowData.Row.AttributeField, Mode=TwoWay}" HorizontalAlignment="Center" >
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<StackPanel Orientation="Horizontal" x:Name="panelBL" HorizontalAlignment="Center" >
|
|
|
|
|
<TextBlock x:Name="txtBL" Text="{Binding RowData.Row.AreaScale, Mode=TwoWay}" >
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<TextBlock Text="%"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<DataTemplate.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding RowData.Row.RelevantModel,Mode=TwoWay}" Value="属性">
|
|
|
|
|
<Setter TargetName="txtField" Property="Visibility" Value="Visible" />
|
|
|
|
|
<Setter TargetName="panelBL" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding RowData.Row.RelevantModel,Mode=TwoWay}" Value="图形">
|
|
|
|
|
<Setter TargetName="txtField" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Setter TargetName="panelBL" Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</DataTemplate.Triggers>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</dxg:GridColumn.CellTemplate>
|
|
|
|
|
</dxg:GridColumn>
|
|
|
|
|
</dxg:GridControl>
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1" >
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
|
<RowDefinition Height="50"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<btn:KImgButton x:Name="btnAdd" Grid.Row="0" Content="添 加" Width="80" Height="32" CornerRadius="3" Margin="5,10,0,0" Foreground="White" Click="btnAdd_Click" />
|
|
|
|
|
<btn:KImgButton x:Name="btnUpdate" Grid.Row="1" Content="修 改" Width="80" Height="32" CornerRadius="3" Margin="5,10,0,0" Foreground="White" Click="btnUpdate_Click" />
|
|
|
|
|
</Grid>
|
|
|
|
|
<CheckBox Grid.Row="2" Name="checkAll" Content="全选/反选" IsChecked="False" Click="CheckAll_Click" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|