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

71 lines
5.5 KiB

6 months ago
<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.DTBJKLoadData.View.UCLoadDTBJKData"
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:kuiBtn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
mc:Ignorable="d"
Width="800" Height="550" Title="基础数据加载">
<Grid>
<dxlc:LayoutControl Orientation="Vertical">
<dxlc:LayoutGroup Orientation="Horizontal">
<dxlc:LayoutItem IsRequired="True" Label="选择基础数据:" LabelPosition="Left">
<dxe:ComboBoxEdit x:Name="cobDataBase" IsTextEditable="False" IsEnabled="True" Height="30">
</dxe:ComboBoxEdit>
</dxlc:LayoutItem>
<kuiBtn:KImgButton Content="选 择" Width="80" Height="30" CornerRadius="3" Foreground="White" Click="btnSelectedBaseData_Click" />
</dxlc:LayoutGroup>
<dxlc:LayoutGroup Orientation="Horizontal">
<dxlc:LayoutItem IsRequired="True" x:Name="TagFieldName" Label="表映射:" dxlc:LayoutControl.AllowHorizontalSizing="True" VerticalAlignment="Stretch" LabelPosition="Top">
<dxg:GridControl x:Name="dgTableMapping">
<dxg:GridControl.View>
<dxg:TableView Name="tvAttr" IsColumnMenuEnabled="False" RowMinHeight="30" AllowColumnFiltering="False" ShowTotalSummary="False" AllowSorting="False" AllowGrouping="False" MultiSelectMode="Row" ShowGroupPanel="False" AllowEditing="True" HorizontalContentAlignment="Left" VerticalScrollbarVisibility="Auto" />
</dxg:GridControl.View>
<dxg:GridControl.Columns>
<dxg:GridColumn Header="导入状态" Width="50" HorizontalHeaderContentAlignment="Center">
<dxg:GridColumn.HeaderTemplate>
<DataTemplate>
<dxe:CheckEdit IsEnabled="False" EditValueChanged="ChkSelectedAll_EditValueChanged" EditValue="true" HorizontalAlignment="Center" HorizontalContentAlignment="Center" IsChecked="True"/>
</DataTemplate>
</dxg:GridColumn.HeaderTemplate>
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<CheckBox x:Name="checkBox" IsChecked="True" IsEnabled="False" HorizontalAlignment="Center" VerticalAlignment="Center" Click="CheckBox_Click"/>
<Image x:Name="img" Visibility="Collapsed" Width="16" Height="16" />
</Grid>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="目标图层别名" FieldName="S_TableAliasName" Width="140" ReadOnly="True" />
<dxg:GridColumn Header="源图层路径" FieldName="S_TablePath" Width="*" 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_NewSelect" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Tag="{Binding RowData.Row.S_TableAliasName}" MouseLeftButtonDown="txt_NewSelectMouseLeftButtonDown" Cursor="Hand" Text="选择" Foreground="Blue" Margin="15,0,0,0"/>
</StackPanel>
</Grid>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutItem>
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
<kuiBtn:KImgButton x:Name="btnLoad" Content="加 载" Width="80" Height="30" CornerRadius="3" Margin="10,10" Foreground="White" Click="BtnLoad_Click" />
<kuiBtn:KImgButton x:Name="btnClose" Content="取 消" Width="80" Height="30" CornerRadius="3" Margin="10,10" Foreground="White" Click="btnClose_Click" />
</StackPanel>
</dxlc:LayoutItem>
</dxlc:LayoutControl>
</Grid>
</windows:BaseWindow>