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

135 lines
10 KiB

6 months ago
<UserControl x:Class="Kingo.Plugin.YJJK.View.ViewDLTB_TQ"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v17.1"
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="235*"/>
<ColumnDefinition Width="459*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<GroupBox Header="图斑变更" Grid.Row="0" Margin="8" Grid.ColumnSpan="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition />
<ColumnDefinition Width="80"/>
</Grid.ColumnDefinitions>
<TextBlock VerticalAlignment="Center" Grid.Row="0" HorizontalAlignment="Right" Grid.Column="0" Text="变更范围图斑:"></TextBlock>
<ComboBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="0" Height="30" Margin="5,0" VerticalContentAlignment="Center" x:Name="combBGTB" SelectedIndex="0" IsEditable="False">
<!--<ComboBoxItem Content="变更图斑" Tag="DLTBBG" />-->
</ComboBox>
<!--<btn:KImgButton Height="30" Name="SelectBGTB" Click="SelectBGTB_Click" Grid.Column="2" Grid.Row="0" VerticalContentAlignment="Center" Content="选 择" />-->
<TextBlock VerticalAlignment="Center" Grid.Row="1" HorizontalAlignment="Right" Grid.Column="0" Text="基础地类图斑:"></TextBlock>
<ComboBox Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Height="30" Margin="5,0" VerticalContentAlignment="Center" x:Name="combJCDLTB" SelectedIndex="0" IsEditable="False">
<!--<ComboBoxItem Content="地类图斑" Tag="地类图斑" />-->
</ComboBox>
<StackPanel Grid.Row="2" Grid.ColumnSpan="3" Orientation="Horizontal">
<CheckBox x:Name="cbAllowGDPD" Content="耕地坡度自动赋值" VerticalContentAlignment="Center" Margin="10,0" IsChecked="False"/>
<CheckBox x:Name="cbAllowUnion" Content="同属性相邻图斑合并" VerticalContentAlignment="Center" IsChecked="True" />
<CheckBox x:Name="cbAutoCalcGDKCSX" Content="自动清除耕地扣除属性" VerticalContentAlignment="Center" Margin="10,0" IsChecked="True" />
<CheckBox x:Name="cbAutoSetGDLX" Content="自动赋值耕地类型" VerticalContentAlignment="Center" Margin="10,0" IsChecked="False" />
</StackPanel>
<!--<btn:KImgButton Height="30" Name="SelectDLTB" Click="SelectDLTB_Click" Grid.Column="2" Grid.Row="1" VerticalContentAlignment="Center" Content="选 择" />-->
</Grid>
</GroupBox>
<GroupBox Header="坐落变更" Grid.Row="1" Margin="8" Grid.ColumnSpan="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="80" />
</Grid.ColumnDefinitions>
<Label Content="范围图斑:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="0" Margin="5,0,0,0"/>
<TextBox x:Name="btnNewData" IsReadOnly="True" Grid.Column="1" Height="30" Margin="5,0"/>
<btn:KImgButton Height="30" x:Name="btnSelTB" Grid.Column="2" VerticalContentAlignment="Center" Content="选择范围" Click="BtnSelTB_Click" />
<btn:KImgButton Height="30" x:Name="btnSelExl" Grid.Column="3" VerticalContentAlignment="Center" Margin="5,0" Content="选择excel" Click="BtnOpenFile_Click" />
<dxg:GridControl x:Name="gvCtrl" HorizontalAlignment="Stretch" Margin="5" Grid.Row="1" Grid.ColumnSpan="4" AutoGenerateColumns="None" VerticalAlignment="Stretch">
<dxg:GridControl.View>
<dxg:TableView Name="tvAttr2" ShowTotalSummary="False" ShowSearchPanelMode="Never" MultiSelectMode="Row" ShowGroupPanel="False" AllowFilterEditor="False" AllowEditing="True" />
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="ID" Header="ID" Width="0" Visible="False"/>
<dxg:GridColumn FieldName="DataDicTionary" Header="DataDicTionary" Width="0" Visible="False"/>
<dxg:GridColumn FieldName="BGQDM" Header="变更前代码" Width="120" ReadOnly="True"/>
<dxg:GridColumn FieldName="BGQMC" Header="变更前名称" Width="120" ReadOnly="True"/>
<dxg:GridColumn FieldName="BGHDM" Header="变更后代码" Width="120" ReadOnly="True"/>
<!--<dxg:GridColumn FieldName="BGHDM" Header="变更后代码" Width="240" >
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<StackPanel>
-->
<!--<ComboBox BorderThickness="0"
ItemsSource="{Binding RowData.Row.Data}"
IsEditable="True"
DisplayMemberPath="DisplayName"
SelectedValuePath="CODE"
SelectionChanged="ComboBox_SelectionChanged"
Tag="{Binding RowData.Row}"
SelectedItem="{Binding RowData.Row.DataDicTionary}"
TextSearch.TextPath="DisplayName"
IsTextSearchEnabled="True"
PreviewTextInput="ComboBox_PreviewTextInput"
/>-->
<!--
<comboBox:AutoCompleteBox
ItemsSource="{Binding RowData.Row.Data}"
IsEditable="True"
Tag="{Binding RowData.Row.ID}"
Text="{Binding CODE, UpdateSourceTrigger=LostFocus}"
ValueMemberPath="CODE"
DisplayMemberPath="DisplayName"
Height="24"
SelectionChanged="ComboBox_SelectionChanged"
SelectedValue="{Binding RowData.Row.BGHDM}"
/>
</StackPanel>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>-->
<dxg:GridColumn FieldName="BGHMC" Header="变更后名称" Width="120" ReadOnly="True"/>
<dxg:GridColumn FieldName="IsQS" Header="是否仅权属变化" Width="120" ReadOnly="True"/>
<!--<dxg:GridColumn Header="操作" Width="60">
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock x:Name="txt_Delete" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Tag="{Binding RowData.Row.ID}" MouseLeftButtonDown="Txt_Delete_MouseLeftButtonDown" Cursor="Hand" Text="删除" Foreground="Blue" Margin="15,0,0,0"/>
</StackPanel>
</Grid>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>-->
</dxg:GridControl.Columns>
</dxg:GridControl>
<!--<StackPanel Grid.Row="1" Grid.Column="2">
<btn:KImgButton Height="30" x:Name="btnOpenFile" Margin="0,8" VerticalContentAlignment="Center" Content="打开文件" Click="BtnOpenFile_Click" />
<btn:KImgButton Height="30" x:Name="btnAddRow" Margin="0" VerticalContentAlignment="Center" Content="添 加" Click="Txt_Add_MouseLeftButtonDown" />
</StackPanel>-->
<TextBlock x:Name="txtTip" Margin="20,5,20,4" Grid.Row="2" Foreground="Red" Grid.ColumnSpan="2" TextWrapping="WrapWithOverflow" Text="注:此功能是针对仅坐落单位信息发生变更,其他属性及图形未发生变化的数据进行处理,如其他属性或图形发生变更,请提取变更图斑后进行图斑变更操作;如选择范围图斑进行坐落变更,则不再区分行政区与村级调查区;" VerticalAlignment="Center" />
</Grid>
</GroupBox>
</Grid>
</UserControl>