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.
59 lines
4.0 KiB
59 lines
4.0 KiB
<windows:BaseWindow |
|
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils" |
|
x:Class="Kingo.Plugin.General.ViewDTBJK.UCBGDataImport" |
|
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: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" |
|
mc:Ignorable="d" Title="变更范围导入" Height="500" Width="420"> |
|
<Grid> |
|
<Grid.RowDefinitions> |
|
<RowDefinition /> |
|
<RowDefinition Height="50" /> |
|
</Grid.RowDefinitions> |
|
<dxlc:LayoutControl Orientation="Vertical"> |
|
<dxlc:LayoutItem IsRequired="True" Label="导入数据:" LabelPosition="Left"> |
|
<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"> |
|
<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"> |
|
<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" ShowTotalSummary="False" AllowGrouping="False" MultiSelectMode="Row" ShowGroupPanel="False" AllowEditing="True" VerticalScrollbarVisibility="Auto" /> |
|
</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:LayoutItem> |
|
<dxe:CheckEdit x:Name="cbReplace" IsChecked="True" Content="勾选替换变更范围数据,反之追加变更范围数据" /> |
|
</dxlc:LayoutItem> |
|
</dxlc:LayoutControl> |
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center"> |
|
<dxe:SpinButton x:Name="btnOK" Content="确 定" Margin="10,0" Height="30" Width="75" Click="btnOK_Click" /> |
|
<dxe:SpinButton x:Name="btnCancel" Content="取 消" Margin="10,0" Height="30" Width="75" Click="btnCancel_Click" /> |
|
</StackPanel> |
|
</Grid> |
|
</windows:BaseWindow>
|
|
|