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.
128 lines
9.1 KiB
128 lines
9.1 KiB
<windows:BaseWindow x:Class="Kingo.Plugin.BGResultManager.View.FrmResultsExportForBG" |
|
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" |
|
mc:Ignorable="d" |
|
Height="620" Width="600" Title="一键变更成果导出" MinWidth="300" |
|
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils" |
|
ShowInTaskbar="False"> |
|
<Grid> |
|
<Grid Margin="8" Visibility="{Binding SelectTemplate}"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="50" /> |
|
<RowDefinition Height="40" /> |
|
<RowDefinition Height="180" /> |
|
<RowDefinition Height="*" /> |
|
<RowDefinition Height="20" /> |
|
<RowDefinition Height="40" /> |
|
</Grid.RowDefinitions> |
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center"> |
|
<Label Content="第一步:选择变更成果数据模板" FontSize="18"></Label> |
|
</StackPanel> |
|
<!--<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Grid.Row="1" Margin="5"> |
|
<Label Content="选择模板:" FontSize="14" VerticalContentAlignment="Center"/> |
|
<ComboBox Height="27" ItemsSource="{Binding TemplateList, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
|
SelectedIndex="{Binding CurrentTemplateIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
|
Width="407" Margin="5,0" /> |
|
<Button Content="删除模板" Width="80" Margin="0,0,5,0" Command="{Binding DeleteTemplateClick}" /> |
|
--><!--<Button Content="新建模板" Width="80" Command="{Binding CreateTemplateClick}" />--><!-- |
|
</StackPanel>--> |
|
<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> |
|
<TreeView x:Name="tvVCTEntity3" ItemsSource="{Binding LayerSource,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="3" Margin="5" > |
|
<TreeView.ItemTemplate> |
|
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}"> |
|
<!--<Label Content="{Binding Name}" />--> |
|
<CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" Content="{Binding Name}" Tag="{Binding }"/> |
|
</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="4"> |
|
<TextBlock Text="注:用户可自行根据本作业区县成果创建合适的模板" TextWrapping="Wrap" Width="580" Foreground="Red" Margin="5,0"></TextBlock> |
|
</StackPanel> |
|
<StackPanel Orientation="Horizontal" Grid.Row="5" HorizontalAlignment="Center" 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> |
|
|
|
<Grid x:Name="grid2" Visibility="{Binding IsResultsExport}"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="50" /> |
|
<RowDefinition /> |
|
<RowDefinition Height="50" /> |
|
<RowDefinition Height="50" /> |
|
<RowDefinition Height="50" /> |
|
<RowDefinition Height="20" /> |
|
</Grid.RowDefinitions> |
|
<Label Content="第二步:成果输出" Margin="15 0 0 0" VerticalContentAlignment="Center" FontSize="18"></Label> |
|
<TreeView Grid.Row="1" x:Name="tvCatalogTree" ItemsSource="{Binding Items, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
|
<TreeView.ItemTemplate> |
|
<HierarchicalDataTemplate ItemsSource="{Binding SubCatalog,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> |
|
<Grid Grid.Row="2" Visibility="{Binding NCData_Visibility}"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="75" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="75" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Grid.Column="0" Content="基础数据包:" VerticalContentAlignment="Center" /> |
|
<TextBox x:Name="txtNCData" IsReadOnly="True" Grid.Column="1" Height="30" Text="{Binding NCDataDir,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" /> |
|
<Button x:Name="btnSelectNCData" Grid.Column="2" Content="选 择" Height="30" Margin="5,0" Click="btnSelectNCData_Click" /> |
|
</Grid> |
|
<Grid Grid.Row="3"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="75" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="75" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Grid.Column="0" Content="保存目录:" VerticalContentAlignment="Center" /> |
|
<TextBox x:Name="txtOutDir" IsReadOnly="True" Grid.Column="1" Height="30" Text="{Binding OutDir,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" /> |
|
<Button x:Name="btnSelectDir" Grid.Column="2" Content="选 择" Height="30" Margin="5,0" Click="btnSelectDir_Click" /> |
|
</Grid> |
|
<StackPanel Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left"> |
|
<CheckBox Content="VCT包含坡度图" IsChecked="{Binding HasPDT}" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0" Visibility="{Binding PDT_Visibility}" ></CheckBox> |
|
<CheckBox Content="权属单位代码补0" IsChecked="{Binding IsBL}" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Visibility="{Binding BL_Visibility}"></CheckBox> |
|
<Label Name="lblBGYear" Content="变更年份:" Visibility="{Binding NCData_Visibility}"/> |
|
<dxe:SpinEdit Name="txtBGYear" Width="100" MinValue="2019" MaxValue="2029" |
|
EditValue="{Binding BGYear, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
|
IsFloatValue ="false" |
|
Visibility="{Binding NCData_Visibility}" IsTextEditable="False" IsReadOnly="False"/> |
|
</StackPanel> |
|
<StackPanel Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right"> |
|
<Button x:Name="btnExport" Content="确 定" Margin="10,0" Width="75" Height="30" Command="{Binding ExportClick}" /> |
|
<Button x:Name="btnCancel2" Content="取 消" Margin="10,0" Width="75" Height="30" Click="btnCancel_Click" /> |
|
</StackPanel> |
|
<StackPanel Orientation="Horizontal" Grid.Row="5"> |
|
<TextBlock Text="注:按照国家数据库提交规则,生成相应的增量成果数据包" TextWrapping="Wrap" Width="580" Foreground="Red" ></TextBlock> |
|
</StackPanel> |
|
</Grid> |
|
</Grid> |
|
</windows:BaseWindow>
|
|
|