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

220 lines
16 KiB

<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.BoundaryReadjust.View.UCRegionAdjust"
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:kuiBtn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:comboBox="clr-namespace:KUI.ComboBox;assembly=KUI"
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v17.1"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d" Title="区划调整" Width="1000" Height="610"
d:DesignHeight="610" d:DesignWidth="1000">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*" MaxHeight="160"/>
<RowDefinition Height="40"/>
<RowDefinition Height="0"/>
<RowDefinition Height="*"/>
<RowDefinition Height="5"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Grid.ColumnSpan="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="120" />
</Grid.ColumnDefinitions>
<Label Content=" 县级界限:" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="0"/>
<TextBox x:Name="btnSetXJKZJX" Tag="XJKZJX" Text="县级控制界线图层" VerticalContentAlignment="Center" IsEnabled="False" Grid.Column="1" Height="27" />
<kuiBtn:KImgButton x:Name="btnGetBGRange" Content="提取范围" Width="90" Height="27" Grid.Column="2" Click="BtnGetBGRange_Click" Margin="5,0"/>
</Grid>
<Grid Grid.Row="1" Grid.ColumnSpan="3">
<dxlc:LayoutGroup Orientation="Horizontal">
<dxlc:LayoutItem IsRequired="True" Label=" 范围图斑:" Margin="5,0" dxlc:LayoutControl.AllowHorizontalSizing="True" VerticalAlignment="Stretch" LabelPosition="Top">
<dxg:GridControl AutoPopulateColumns="False" Name="dgInto" AutoGeneratedColumns="DgInto_AutoGeneratedColumns">
<dxg:GridControl.View>
<dxg:TableView Name="tvAttr2" ShowTotalSummary="False" AutoWidth="True" ShowFilterPanelMode="Never" AllowPerPixelScrolling="False" ShowFixRowButton="Never" ShowFixedTotalSummary="False"
ShowSearchPanelMode="Never" AllowGrouping="False" MultiSelectMode="Row" AllowBestFit="False" ShowGroupPanel="False" ShowAutoFilterRow="False" AllowFilterEditor="False" />
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="IsValid" Header="选中" VisibleIndex="0" Width="50" AllowEditing="False" AllowSorting="False" >
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<CheckBox Tag="{Binding Data.DLTBOid,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Click="CheckBoxClick">
</CheckBox>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="OID" FieldName="DLTBOid" Width="60" ReadOnly="True" />
<dxg:GridColumn Header="行政区代码" FieldName="XZQDM" Width="60" ReadOnly="True" />
<dxg:GridColumn Header="行政区名称" FieldName="XZQMC" Width="60" ReadOnly="True" />
<dxg:GridColumn Header="划出/灭失" FieldName="IsOut" Width="60" IsEnabled="False" ReadOnly="True"/>
<dxg:GridColumn Header="划入/新增" FieldName="IsAdd" Width="60" IsEnabled="False" ReadOnly="True"/>
<dxg:GridColumn Header="变更状态" FieldName="BGZT" Width="60" IsEnabled="False" />
<dxg:GridColumn Header="状态选择" Width="50" AllowEditing="False" ReadOnly="True">
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<ComboBox x:Name="SetTBZT" Tag="{Binding Data.DLTBOid,Mode=TwoWay}" SelectionChanged="SetTBZT_SelectionChanged">
<ComboBoxItem>划出</ComboBoxItem>
<ComboBoxItem>划入</ComboBoxItem>
<ComboBoxItem>新增</ComboBoxItem>
<ComboBoxItem>灭失</ComboBoxItem>
</ComboBox>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
</Grid>
<Grid Grid.Row="1" Grid.Column="5">
<dxlc:LayoutItem IsRequired="True" Label="控制面积信息:" Grid.Row="0" MaxWidth="300" VerticalAlignment="Top" LabelPosition="Top">
<StackPanel>
<dxlc:LayoutItem Label="调整前陆地面积:">
<TextBox x:Name="txtTZQLDMJ" Text="0" Height="22" Margin="0,3" Grid.Column="1"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="调整后陆地面积:">
<TextBox x:Name="txtTZHLDMJ" Text="0" Height="22" Margin="0,3" Grid.Column="5"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="调整前海岛面积:">
<TextBox x:Name="txtTZQHDMJ" Text="0" Height="22" Margin="0,3" Grid.Column="3"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="调整后海岛面积:">
<TextBox x:Name="txtTZHHDMJ" Text="0" Height="22" Margin="0,3" Grid.Column="7"/>
</dxlc:LayoutItem>
</StackPanel>
</dxlc:LayoutItem>
</Grid>
<Grid Grid.Row="2" Grid.ColumnSpan="4">
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="90" />
</Grid.ColumnDefinitions>
<Label Content=" 新增/划入图斑:" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Row="0"/>
<TextBox x:Name="btnNewData" Grid.Column="1" Height="27" IsReadOnly="True"/>
<kuiBtn:KImgButton x:Name="btnAddData" Content="选择数据" Width="90" Height="27" Grid.Column="2" Click="BtnSelData_Click" Margin="5,0"/>
<kuiBtn:KImgButton x:Name="btn" Content="入库" Width="80" Height="27" Grid.Column="3" Click="BtnAddData_Click" Margin="5,0"/>
</Grid>
<Grid Grid.Row="3" Grid.ColumnSpan="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Content=" 调整前陆地控制面积:" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" Grid.Column="0"/>
<Label Content=" 调整前海岛控制面积:" VerticalAlignment="Center" Grid.Column="2"/>
<Label Content=" 调整后陆地控制面积:" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="4"/>
<Label Content=" 调整后海岛控制面积:" VerticalAlignment="Center" Grid.Column="6"/>
</Grid>
<Grid Grid.Row="4" Grid.ColumnSpan="3">
<dxlc:LayoutGroup Orientation="Horizontal" >
<dxlc:LayoutItem IsRequired="True" Label=" 地类图斑划入过程图斑:" Margin="5,0" dxlc:LayoutControl.AllowHorizontalSizing="True" VerticalAlignment="Stretch" LabelPosition="Top">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<dxlc:LayoutItem Label="显示方式:" Margin="10,5">
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="ckbXZQTZLXByGroup" IsChecked="True" Content="按调整类型分组显示" Margin="5,0" VerticalContentAlignment="Center" Click="ckbXZQTZLXByGroup_Click"/>
<CheckBox x:Name="ckbBGQZLDWDMByGroup" Content="按变更前坐落分组显示" Margin="5,0" VerticalContentAlignment="Center" Click="CheckBox_Click"/>
<CheckBox x:Name="ckbBGHZLDWDMByGroup" Content="按变更后坐落分组显示" Margin="5,0" VerticalContentAlignment="Center" Click="CheckBox_Click"/>
</StackPanel>
</dxlc:LayoutItem>
<dxg:GridControl Grid.Row="1" AutoPopulateColumns="False" Name="dgInto2" AutoGenerateColumns="AddNew" AutoGeneratedColumns="DgInto_AutoGeneratedColumns">
<dxg:GridControl.View>
<dxg:TableView Name="tvAttr22" ShowTotalSummary="False" ShowFilterPanelMode="Never" AllowPerPixelScrolling="False" ShowFixRowButton="Never" ShowFixedTotalSummary="False"
ShowSearchPanelMode="Never" AllowGrouping="False" MultiSelectMode="Row" AllowBestFit="False" ShowGroupPanel="False" ShowAutoFilterRow="False" AllowFilterEditor="False" />
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="IsValid" Header="选中" VisibleIndex="0" AllowEditing="False" AllowSorting="False" >
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding Data.IsValid,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center">
</CheckBox>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl>
</Grid>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
</Grid>
<Grid Grid.Row="4" Grid.Column="5">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="0"/>
</Grid.RowDefinitions>
<dxlc:LayoutItem IsRequired="True" Label="坐落/权属批量赋值:" Grid.Row="0" MaxWidth="300" VerticalAlignment="Top" LabelPosition="Top">
<StackPanel Margin="5,5">
<dxlc:LayoutItem Label="矢 量 数 据 :" LabelPosition="Left" Height="27" Margin="0,5" LabelHorizontalAlignment="Left">
<dxe:ButtonEdit x:Name="btnPath" AllowDefaultButton="False" Margin="0,0,5,0" IsReadOnly="True">
<dxe:ButtonInfo x:Name="btnSLPath" Content="选择" Click="btnSLPath_Click" />
</dxe:ButtonEdit>
</dxlc:LayoutItem>
<Label Height="27" Margin="0,5" FontWeight="DemiBold" Foreground="Red" Content="选择的矢量数据需包含ZLDWDM,ZLDWMC字段"></Label>
<dxlc:LayoutItem Label="变更前坐落:" Margin="0,5" >
<!--<ComboBox Height="25" x:Name="BGQZL"/>-->
<comboBox:AutoCompleteBox x:Name="BGQZL" Height="25" Text="{Binding CODE, UpdateSourceTrigger=LostFocus}" ValueMemberPath="CODE" DisplayMemberPath="DisplayName" Grid.Column="1" Margin="2,0"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="变更后坐落:" Margin="0,5">
<!--<ComboBox Height="25" x:Name="BGHZL"/>-->
<comboBox:AutoCompleteBox x:Name="BGHZL" Height="25" Text="{Binding CODE, UpdateSourceTrigger=LostFocus}" ValueMemberPath="CODE" DisplayMemberPath="DisplayName" Grid.Column="1" Margin="2,0"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="" Margin="0,5">
<StackPanel>
<RadioButton x:Name="QSBB" IsChecked="True" Content="权属不变" GroupName="QSBH"/>
<RadioButton x:Name="QSByZL" Content="权属随坐落变化" GroupName="QSBH"/>
<RadioButton x:Name="QSByZLExitFRD" Content="权属随坐落变化(飞入地除外)" GroupName="QSBH"/>
</StackPanel>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="">
<kuiBtn:KImgButton x:Name="btnSetZL" Content="赋 值" Click="BtnSetZL_Click" Height="27" FontSize="12" Grid.Column="3" Margin="0,5"/>
</dxlc:LayoutItem>
<dxlc:LayoutItem Label="">
<kuiBtn:KImgButton x:Name="btnSetDataToBGTB" Content="统赋后数据入变更库" Click="IntoTBDataToDLTBBG" Height="27" FontSize="12" Grid.Column="3" Margin="0,5"/>
</dxlc:LayoutItem>
</StackPanel>
</dxlc:LayoutItem>
<dxlc:LayoutItem IsRequired="True" Label="坐落/权属统赋:" Grid.Row="1" MaxWidth="230" VerticalAlignment="Top" LabelPosition="Top">
<StackPanel>
<dxe:ComboBoxEdit x:Name="cobZLDW" AllowDefaultButton="False" IsTextEditable="False" Margin="5,8" FontWeight="Bold" >
<dxe:ComboBoxEdit.Buttons>
<dxe:ButtonInfo x:Name="SetZLDW" Content="坐落统赋" Click="SetZLDW_Click"/>
</dxe:ComboBoxEdit.Buttons>
</dxe:ComboBoxEdit>
<dxe:ComboBoxEdit x:Name="cobQSDWLX" AllowDefaultButton="False" IsTextEditable="False" Margin="5,8" FontWeight="Bold" >
<dxe:ComboBoxEdit.Buttons>
<dxe:ButtonInfo x:Name="SetQSDW" Content="权属统赋" Click="SetQSDW_Click"/>
</dxe:ComboBoxEdit.Buttons>
<dxe:ComboBoxEditItem Content="随坐落变化"/>
<dxe:ComboBoxEditItem Content="随坐落变化(飞入地除外)"/>
</dxe:ComboBoxEdit>
</StackPanel>
</dxlc:LayoutItem>
</Grid>
</Grid>
</windows:BaseWindow>