|
|
|
|
<windows:BaseWindow x:Class="Kingo.Plugin.BGResultManager.View.FrmCreateVCTTemplate"
|
|
|
|
|
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:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Height="620" Width="560" Title="创建变更成果模板">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid Grid.Column="1" >
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="40" />
|
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
|
<RowDefinition Height="150" />
|
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="20" />
|
|
|
|
|
<RowDefinition Height="40" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5">
|
|
|
|
|
<Label Content="模板名称:" VerticalAlignment="Center" />
|
|
|
|
|
<TextBox x:Name="txtTempName" Width="465" Height="27" />
|
|
|
|
|
<!--<CheckBox Name="chek_all" Content="全选" Margin="15 0 0 0" Click="chek_all_Click_1" IsChecked="True"/>-->
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Label Content="增量更新:" Grid.Row="1" VerticalContentAlignment="Bottom" Margin="5,0"/>
|
|
|
|
|
<TreeView x:Name="tvVCTEntity" ItemsSource="{Binding Source}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="2" Margin="5" >
|
|
|
|
|
<TreeView.ItemTemplate>
|
|
|
|
|
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}">
|
|
|
|
|
<!--单选改多选 王欢 2018-09-27 -->
|
|
|
|
|
<!--<CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" Content="{Binding Name}" Tag="{Binding }"/>-->
|
|
|
|
|
<Label Content="{Binding Name}" />
|
|
|
|
|
<!--<RadioButton IsChecked="{Binding IsChecked,Mode=TwoWay}" GroupName="{Binding GroupName}" Content="{Binding ShowName}" Tag="{Binding }" Checked="RadioButton_Checked" />-->
|
|
|
|
|
</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="tvVCTEntity2" ItemsSource="{Binding Source2}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="4" Margin="5" >
|
|
|
|
|
<TreeView.ItemTemplate>
|
|
|
|
|
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}">
|
|
|
|
|
<!--单选改多选 王欢 2018-09-27 -->
|
|
|
|
|
<CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" Content="{Binding Name}" Tag="{Binding }"/>
|
|
|
|
|
<!--<RadioButton IsChecked="{Binding IsChecked,Mode=TwoWay}" GroupName="{Binding GroupName}" Content="{Binding ShowName}" Tag="{Binding }" Checked="RadioButton_Checked" />-->
|
|
|
|
|
</HierarchicalDataTemplate>
|
|
|
|
|
</TreeView.ItemTemplate>
|
|
|
|
|
<TreeView.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
|
|
|
<Setter Property="IsExpanded" Value="True"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</TreeView.ItemContainerStyle>
|
|
|
|
|
</TreeView>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="5">
|
|
|
|
|
<TextBlock Text="注:用户可自行根据本作业区县成果创建合适的模板" Margin="10,0,0,0" TextWrapping="Wrap" Width="450" Foreground="Red" ></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
|
|
<Button Name="btnCreate" Height="26" Content="创建" Width="75" Click="btnCreate_Click" />
|
|
|
|
|
<Button Name="btnCancel" Height="26" Content="取消" Width="75" Margin="15,0,15,0" Click="btnCancel_Click" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<!--<userControl:Loading Name="ucLoading" Grid.ColumnSpan="2" Visibility="Collapsed"/>-->
|
|
|
|
|
</Grid>
|
|
|
|
|
</windows:BaseWindow>
|