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.
82 lines
6.4 KiB
82 lines
6.4 KiB
<windows:BaseWindow |
|
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" |
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" |
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:kuiBtn="clr-namespace:KUI.Button;assembly=KUI" |
|
x:Class="Kingo.Plugin.DataLoad.Views.FrmDataImport" |
|
Height="510" Width="420"> |
|
<Grid x:Name="ImprotFeatureData"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition /> |
|
<RowDefinition Height="40" /> |
|
<RowDefinition Height="30" /> |
|
<RowDefinition Height="50" /> |
|
</Grid.RowDefinitions> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition/> |
|
<ColumnDefinition/> |
|
</Grid.ColumnDefinitions> |
|
<dxlc:LayoutControl Orientation="Vertical" Grid.ColumnSpan="2"> |
|
<dxlc:LayoutItem IsRequired="True" Label="导入数据:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<dxe:ButtonEdit x:Name="btnImportDataPath" Height="25" AllowDefaultButton="False"> |
|
<dxe:ButtonInfo x:Name="btnSelectedImportDataPath" Content="选择" Click="btnSelectedImportDataPath_Click" /> |
|
</dxe:ButtonEdit> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutItem IsRequired="True" Label="源坐标系:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<dxe:TextEdit x:Name="txtSourceSP" Grid.Column="1" Height="25" Margin="0,0,10,0" IsReadOnly="True" /> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutItem IsRequired="True" Label="目标图层:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<dxe:TextEdit x:Name="txtTargetLayer" Grid.Column="1" Height="25" Margin="0,0,10,0" IsReadOnly="True" /> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutItem IsRequired="True" Label="目标坐标系:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<dxe:TextEdit x:Name="txtTargetSP" Grid.Column="1" Height="25" Margin="0,0,10,0" IsReadOnly="True" /> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutItem x:Name="panelSJLY" Visibility="Collapsed" IsRequired="True" Label="图斑类型:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<StackPanel Orientation="Horizontal"> |
|
<RadioButton x:Name="rdZZBG" Content="自主变更图斑" IsChecked="True" IsEnabled="False" GroupName="SJLY" Click="RdGJJC_Click"/> |
|
<RadioButton x:Name="rdGJJC" Content="国家监测图斑" GroupName="SJLY" IsEnabled="False" Click="RdGJJC_Click" Margin="10,0"/> |
|
</StackPanel> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutItem IsRequired="True" Label="过滤条件:" LabelPosition="Left" LabelHorizontalAlignment="Right"> |
|
<dxe:ButtonEdit x:Name="btnSQLDataPath" Height="25" AllowDefaultButton="False"> |
|
<dxe:ButtonInfo x:Name="btnSelectedSQLDataPath" Content="SQL" Click="btnSelectedSQLDataPath_Click"/> |
|
</dxe:ButtonEdit> |
|
</dxlc:LayoutItem> |
|
<dxlc:LayoutGroup Orientation="Horizontal"> |
|
<dxlc:LayoutItem IsRequired="True" Label="字段映射:" VerticalAlignment="Stretch" LabelPosition="Top"> |
|
<dxg:GridControl x:Name="dgFieldMapping"> |
|
<dxg:GridControl.View> |
|
<dxg:TableView RowMinHeight="30" IsColumnMenuEnabled="False" ShowTotalSummary="False" AllowGrouping="False" MultiSelectMode="Row" ShowGroupPanel="False" AllowEditing="False" VerticalScrollbarVisibility="Auto" AllowFilterEditor="False" /> |
|
</dxg:GridControl.View> |
|
<dxg:GridControl.Columns> |
|
<dxg:GridColumn Header="源字段" FieldName="S_FieldName" Width="*" ReadOnly="True" /> |
|
<dxg:GridColumn x:Name="colSField" Header="目标字段" Width="*"> |
|
<dxg:GridColumn.CellTemplate> |
|
<DataTemplate> |
|
<ComboBox BorderThickness="0" ItemsSource="{Binding RowData.Row.FieldList}" IsEditable="False" SelectedValue="{Binding RowData.Row.T_FieldIndex}" DisplayMemberPath="DisplayName" SelectedValuePath="CODE" /> |
|
</DataTemplate> |
|
</dxg:GridColumn.CellTemplate> |
|
</dxg:GridColumn> |
|
</dxg:GridControl.Columns> |
|
</dxg:GridControl> |
|
</dxlc:LayoutItem> |
|
</dxlc:LayoutGroup> |
|
</dxlc:LayoutControl> |
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Grid.ColumnSpan="2"> |
|
<dxe:CheckEdit x:Name="cbReplace" IsChecked="True" Margin="10,0" Content="替换已有数据"/> |
|
<dxe:CheckEdit x:Name="cbTBLoadBGData" IsChecked="False" Margin="10,0" Content="同步加载到变更范围图层"/> |
|
<dxe:CheckEdit x:Name="cbTBLoadJCData" Visibility="Collapsed" IsChecked="False" Margin="10,0" ToolTip="变更范围图斑同步加载到监测图斑并挂接" Content="同步加载到监测图层"/> |
|
<dxe:CheckEdit x:Name="cbHitchBGData" IsChecked="False" ToolTip="源数据同步到变更范围图层并挂接监测图层" Margin="10,0" Content="挂接变更图斑"/> |
|
</StackPanel> |
|
<StackPanel x:Name="FunctionalAnnotation" Grid.Row="2" Orientation="Horizontal" Grid.ColumnSpan="2"> |
|
<TextBlock Text="注:将国家下发的监测图斑按照字段映射的方式加载到监测图斑层中,默认会自动同步到变更图斑层中" Margin="10,0" TextWrapping="Wrap" Width="395" Foreground="Red" ></TextBlock> |
|
</StackPanel> |
|
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" Grid.ColumnSpan="2"> |
|
<kuiBtn:KImgButton x:Name="btnOK" Content="确 定" Width="75" Height="30" CornerRadius="3" Margin="10,0" Foreground="White" Click="btnOK_Click" /> |
|
<kuiBtn:KImgButton x:Name="btnCanel" Content="关 闭" Width="75" Height="30" CornerRadius="3" Margin="10,0" Foreground="White" Click="btnCancel_Click" /> |
|
</StackPanel> |
|
</Grid> |
|
</windows:BaseWindow>
|
|
|