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

66 lines
4.4 KiB

<windows:BaseWindow x:Class="Kingo.Plugin.BGResultManager.View.FrmBGDataImport"
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:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
mc:Ignorable="d"
Height="620" Width="560" Title="变更成果更新入库">
<Grid Margin="8" Visibility="{Binding SelectTemplate}">
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="30" />
<RowDefinition Height="150" />
<RowDefinition Height="30" />
<RowDefinition Height="*" />
<RowDefinition Height="40" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Grid.Row="0" Margin="5">
<Label Content="选择模板:" FontSize="14" VerticalContentAlignment="Center"/>
<ComboBox Height="27" ItemsSource="{Binding TemplateList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedIndex="{Binding CurrentTemplateIndex,UpdateSourceTrigger=PropertyChanged}" Width="453" Margin="5,0" />
<!--<Button Content="删除模板" Width="80" Margin="0,0,5,0" Command="{Binding DeleteTemplateClick}" />-->
<!--<Button Content="新建模板" Width="80" Command="{Binding CreateTemplateClick}" />-->
</StackPanel>
<Label Content="增量更新:" Grid.Row="1" VerticalContentAlignment="Bottom" Margin="5,0"/>
<TreeView x:Name="tvVCTEntity" ItemsSource="{Binding IncrementalUpdatingSource,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="2" Margin="5" >
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}">
<Label Content="{Binding Name}" />
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="True"></Setter>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<Label Content="整层更新:" Grid.Row="3" VerticalContentAlignment="Bottom" Margin="5,0" />
<TreeView x:Name="tvVCTEntity3" ItemsSource="{Binding LayerSource,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="4" Margin="5" >
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}">
<Label Content="{Binding Name}" />
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="True"></Setter>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<dxlc:LayoutGroup Orientation="Horizontal" Grid.Row="5" >
<dxlc:LayoutItem IsRequired="True" Label="调整后县级控制界线:" LabelPosition="Left">
<dxe:ButtonEdit x:Name="btnSelectedFWPath" AllowDefaultButton="False" EditValue="{Binding xjkzjxPath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" >
<dxe:ButtonInfo x:Name="btnSelectedFWData" Content="选择" Command="{Binding SelectedFWDataClick}" />
</dxe:ButtonEdit>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<StackPanel Orientation="Horizontal" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button Name="btnCreate" Height="26" Content="确 定" Width="75" Command="{Binding SelectedTemplateClick}" />
<Button Name="btnCancel" Height="26" Content="取 消" Width="75" Margin="15,0,0,0" Click="btnCancel_Click" />
</StackPanel>
</Grid>
</windows:BaseWindow>