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

175 lines
15 KiB

<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.MakeTaskPackage.View.FrmMakeTaskPackage"
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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Kingo.Plugin.MakeTaskPackage.View"
mc:Ignorable="d" Title="举证任务制作"
xmlns:kui="clr-namespace:KUI;assembly=KUI"
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:cmd="clr-namespace:ReactiveUI;assembly=ReactiveUI"
Width="920" Height="600" Loaded="FrmMobileDataExport_Loaded">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="185*"/>
<ColumnDefinition Width="13*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="80"/>
<RowDefinition Height="40" />
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<GroupBox Header="数据" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5" Grid.ColumnSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="185*"/>
<ColumnDefinition Width="120"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="*"/>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="任务包类型:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
<RadioButton Content="外业调绘任务包" VerticalAlignment="Center" Name="rdoWYDHRWB" Click="RdoWYDHRWB_Click" IsChecked="True" />
<RadioButton Content="无人机任务包" VerticalAlignment="Center" Name="rdoWRJRWB" Click="RdoWRJRWB_Click" Margin="5,0,0,0" />
<TextBlock Text="举证任务导出条件:" Margin="25,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Right"/>
<ComboBox Height="30" x:Name="comRWDCZT" VerticalAlignment="Center" Width="120" Margin="5,0,0,0">
</ComboBox>
</StackPanel>
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="区域设置:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
<RadioButton Content="全部" VerticalAlignment="Center" Name="rdoAll" IsChecked="True" Click="rdoAll_Click" />
<RadioButton Content="自定义" Margin="5,0,0,0" VerticalAlignment="Center" Name="rdoCustom" IsEnabled="True" Click="RdoCustom_Click" Visibility="Visible"/>
<TextBlock Text="自定义范围:" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Right" Visibility="Visible"/>
<TextBox x:Name="txtExtentData" Height="30" Width="520" IsEnabled="False" Visibility="Visible"/>
<btn:KImgButton x:Name="btnSelectExtentData" Content="导入范围" Margin="10,0,0,0" Width="96" HorizontalAlignment="Left" Click="btnSelectExtentData_Click" IsEnabled="False" Visibility="Visible"/>
</StackPanel>
<dxg:TreeListControl Grid.Row="2" Grid.Column="0" x:Name="rwzzTreeList" Margin="0,10,0,0" >
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn FieldName="FileAliasName" Header="文件名" AllowSorting="True" Width="6*"/>
<dxg:TreeListColumn FieldName="Type" Header="类型" Width="150" AllowSorting="True" />
<dxg:TreeListColumn Header="进度" Width="100" ReadOnly="True" HorizontalHeaderContentAlignment="Center">
<dxg:TreeListColumn.CellTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Label x:Name="progressLabel" Content="{Binding RowData.Row.DataState}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<dxe:ProgressBarEdit x:Name="labProgress" Maximum="{Binding RowData.Row.FcCount}" EditValue="{Binding RowData.Row.CurrNum, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowBorder="False" IsPercent="True" ContentDisplayMode="Value">
<dxe:ProgressBarEdit.DisplayFormatString>
<sys:String>{0:p}</sys:String>
</dxe:ProgressBarEdit.DisplayFormatString>
</dxe:ProgressBarEdit>
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RowData.Row.ExcState,Mode=TwoWay}" Value="Loading">
<Setter TargetName="progressLabel" Property="Visibility" Value="Collapsed" />
<Setter TargetName="labProgress" Property="Visibility" Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding RowData.Row.ExcState,Mode=TwoWay}" Value="Waiting">
<Setter TargetName="progressLabel" Property="Visibility" Value="Visible" />
<Setter TargetName="labProgress" Property="Visibility" Value="Collapsed" />
</DataTrigger>
<DataTrigger Binding="{Binding RowData.Row.ExcState,Mode=TwoWay}" Value="NoImport">
<Setter TargetName="progressLabel" Property="Visibility" Value="Collapsed" />
<Setter TargetName="labProgress" Property="Visibility" Value="Collapsed" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</dxg:TreeListColumn.CellTemplate>
</dxg:TreeListColumn>
<dxg:TreeListColumn FieldName="Make" Header="制作" Width="6*" />
<dxg:TreeListColumn FieldName="IsCheck" Visible="False" Width="6*"/>
</dxg:TreeListControl.Columns>
<!--<dxg:TreeListControl.View>
<dxg:TreeListView x:Name="view" AutoExpandAllNodes="True" AllowEditing="False" AllowColumnFiltering="False"
ShowCheckboxes="True" CheckBoxFieldName="IsCheck" AllowRecursiveNodeChecking="True" FetchSublevelChildrenOnExpand="False"
ParentFieldName="PID" KeyFieldName="ID"/>
</dxg:TreeListControl.View>-->
<dxg:TreeListControl.View>
<dxg:TreeListView x:Name="jzrwView" AutoExpandAllNodes="True" AllowEditing="False" AllowColumnFiltering="False"
ShowCheckboxes="True" CheckBoxFieldName="IsCheck" AllowRecursiveNodeChecking="False" FetchSublevelChildrenOnExpand="False"
ParentFieldName="PID" KeyFieldName="ID" NodeCheckStateChanged="JzrwView_NodeCheckStateChanged"/>
</dxg:TreeListControl.View>
</dxg:TreeListControl>
<StackPanel Grid.Row="2" Grid.Column="1" Margin="0,10,0,5" Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Right" Grid.ColumnSpan="2" >
<btn:KImgButton x:Name="btnAddLayerGroup" Content="添加图层组" Margin="10,10,10,0" Height="30" Width="96" Click="btnAddLayerGroup_Click"/>
<btn:KImgButton x:Name="btnAddLayer" Content="添加图层" Margin="10,10,10,0" Height="30" Width="96" Click="btnAddLayer_Click"/>
<btn:KImgButton x:Name="btnDelLayer" Content="删除图层" Margin="10,10,10,0" Height="30" Width="96" Click="btnDelLayer_Click" />
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0">
<CheckBox Name="checkAll" Content="全选/反选" IsChecked="True" Click="checkAll_Click" />
<TextBlock Text="地名数据用于移动端对地图上地名进行搜索、定位 注意:地名数据模板字段不可随意更改" Margin="15,0,0,0" Foreground="#3366ff" />
</StackPanel>
<StackPanel Grid.Row="4" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0" >
<TextBlock Text="地名数据:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
<TextBox x:Name="txtPlaceNameData" Height="30" Width="600" />
<btn:KImgButton x:Name="btnSelectPlaceNameTemplate" Content="下载模板" Margin="10,0,0,0" Width="96" HorizontalAlignment="Left" Click="btnSelectPlaceNameTemplate_Click" />
<btn:KImgButton x:Name="btnSelectPlaceNameData" Content="浏览" Margin="10,0,0,0" Width="96" HorizontalAlignment="Left" Click="btnSelectPlaceNameData_Click" />
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Header="参数设置" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5" Grid.ColumnSpan="2" >
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Height="60">
<TextBlock Text="瓦片尺寸:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
<TextBox Width="80" Name="txtTilesize" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Text="512"></TextBox>
<TextBlock Text="切片级别:" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Right"/>
<TextBox Width="80" Name="txtSectionlevel" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Text="7"></TextBox>
<TextBlock Text="切片比例尺:" VerticalAlignment="Center" HorizontalAlignment="Right " Margin="10,0,0,0"/>
<TextBox Width="80" Name="txtMaxScale" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Text="50000" TextChanged="txtMaxScale_TextChanged"></TextBox>
<Label Content="—" Width="20" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Margin="5,0,0,0"></Label>
<ComboBox Height="30" x:Name="comMinScale" VerticalAlignment="Center" Width="80" Margin="5,0,0,0">
</ComboBox>
<TextBlock Text="线程数:" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Right" Visibility="Collapsed"/>
<TextBox Width="80" Name="txtThreadnum" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Text="6" Visibility="Collapsed"></TextBox>
<TextBlock Text="瓦片格式:" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Right" Visibility="Collapsed"/>
<ComboBox Height="23" Margin="0,0" Name="comTieletype" VerticalAlignment="Center" SelectedValuePath="Tag" Width="80" Visibility="Collapsed">
<ComboBoxItem Tag="PNG" IsSelected="True">PNG</ComboBoxItem>
<ComboBoxItem Tag="JPEG" >JPEG</ComboBoxItem>
</ComboBox>
<TextBlock Text="缓冲距离:" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Right" Visibility="Collapsed"/>
<TextBox Width="80" Name="txtBufferdistance" VerticalAlignment="Center" Height="30" HorizontalAlignment="Center" Text="100" Visibility="Collapsed"></TextBox>
<TextBlock Text="米" VerticalAlignment="Center" Margin="10,0,0,0" HorizontalAlignment="Left" Visibility="Collapsed"/>
<CheckBox Name="checkWebMercator" Content="影像切片坐标转换成墨卡托" IsChecked="False" Margin="10,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</GroupBox>
<GroupBox Header="配置文件" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5" Visibility="Collapsed" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<CheckBox Name="ckbLayerSetting" Content="图层配置" IsChecked="True" />
<CheckBox Name="ckbAnalysisSetting" Content="分析配置" Margin="20,0,0,0" IsChecked="False" />
<CheckBox Name="ckbComparativeAnalysisSetting" Content="对比分析配置" Margin="20,0,0,0" IsChecked="False" />
<CheckBox Name="ckblayerTemplet" Content="图层模板" Margin="20,0,0,0" IsChecked="True" Visibility="Collapsed" />
</StackPanel>
</GroupBox>
<StackPanel Grid.Row="2" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0" Grid.ColumnSpan="2" >
<TextBlock Text="导出选项:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="10,0,0,0"/>
<ComboBox Height="30" Name="cobOutputFileCfg" VerticalAlignment="Center" Width="150" Margin="5,0" DisplayMemberPath="AppName" SelectedValuePath="AppName" SelectionChanged="CobOutputFileCfg_SelectionChanged">
</ComboBox>
<TextBox x:Name="txtExportPath" Height="30" Width="555" />
<btn:KImgButton x:Name="btnSelectExportPath" Content="选 择" Margin="10,0,5,0" Width="96" Height="30" HorizontalAlignment="Left" Click="btnSelectExportPath_Click" />
</StackPanel>
<StackPanel Grid.Row="3" Margin="0,10,0,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.ColumnSpan="2" >
<btn:KImgButton x:Name="btnExport" Content="开始制作" Margin="0,5,10,0" Height="30" Width="96" Click="BtnExport_Click"/>
<btn:KImgButton x:Name="btnCancel" Content="取 消" Width="96" Height="30" Margin="0,5,20,0" Foreground="White" Click="btnCancel_Click" />
</StackPanel>
</Grid>
</windows:BaseWindow>