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

57 lines
3.8 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"
x:Class="Kingo.Plugin.General.ViewYCLJK.FrmDataImport"
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="False" 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>