| | |
| | | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| | | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| | | Height="700" Width="900" Loaded="Window_Loaded" Closing="Window_Closing" |
| | | Title="数据入库 v1.5" WindowStartupLocation="CenterScreen"> |
| | | Title="数据入库 v1.72" WindowStartupLocation="CenterScreen"> |
| | | <Window.Resources> |
| | | <Style x:Key="btn" TargetType="Button"> |
| | | <Setter Property="Background" Value="#005699"/> |
| | |
| | | <RowDefinition Height="40"/> |
| | | <RowDefinition Height="40"/> |
| | | <RowDefinition Height="40"/> |
| | | <RowDefinition Height="40"/> |
| | | <RowDefinition Height="*"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | |
| | | |
| | | <Label Grid.Row="1" Grid.Column="0" Content="令牌:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <TextBox Grid.Row="1" Grid.Column="1" Style="{StaticResource tb}" IsReadOnly="True" x:Name="tbToken"/> |
| | | <Label Grid.Row="1" Grid.Column="2" Content="元数据类型:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <!--<TextBox Grid.Row="1" Grid.Column="3" Style="{StaticResource tb}" x:Name="tbAcqTim2e"/>--> |
| | | <!--<ComboBox Grid.Row="1" Grid.Column="3" IsReadOnly="True" DisplayMemberPath="Name" Style="{StaticResource ComboBoxStyle}" Width="320" Height="30" HorizontalAlignment="Left" x:Name="cbMetaType"></ComboBox>--> |
| | | <ComboBox Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left" VerticalContentAlignment="Center" Cursor="Hand" Background="White" SelectedIndex="0" Width="322" Height="38" BorderThickness="0" x:Name="cbMetaType"> |
| | | <ComboBoxItem>请选择</ComboBoxItem> |
| | | <ComboBoxItem>数字正射影像图</ComboBoxItem> |
| | | <ComboBoxItem>数字高程模型</ComboBoxItem> |
| | | <ComboBoxItem>单波段栅格数据</ComboBoxItem> |
| | | <ComboBoxItem>多光谱栅格数据</ComboBoxItem> |
| | | <ComboBoxItem>高光谱栅格数据</ComboBoxItem> |
| | | <ComboBoxItem>矢量数据</ComboBoxItem> |
| | | <ComboBoxItem>三维模型</ComboBoxItem> |
| | | </ComboBox> |
| | | <Label Grid.Row="1" Grid.Column="2" Content="采集时间:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <DatePicker Grid.Row="1" Grid.Column="3" Height="35" Width="320" HorizontalAlignment="Center" VerticalContentAlignment="Center" x:Name="dpAcqTime" FontSize="13"/> |
| | | |
| | | <Label Grid.Row="2" Grid.Column="0" Content="传感器类型:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource tb}" x:Name="tbSensorType"/> |
| | | <Label Grid.Row="2" Grid.Column="2" Content="采集时间:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <!--<TextBox Grid.Row="2" Grid.Column="3" Style="{StaticResource tb}" x:Name="tbAcqTime"/>--> |
| | | <DatePicker Grid.Row="2" Grid.Column="3" Height="35" Width="320" HorizontalAlignment="Center" VerticalContentAlignment="Center" x:Name="dpAcqTime" FontSize="13"/> |
| | | |
| | | <!--<TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource tb}" x:Name="tbSensorType"/>--> |
| | | <ComboBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" VerticalContentAlignment="Center" Cursor="Hand" Background="White" SelectedIndex="0" Width="322" Height="38" BorderThickness="0" x:Name="tbSensorType"> |
| | | <ComboBoxItem Tag="0">请选择</ComboBoxItem> |
| | | <ComboBoxItem Tag="1">嫦娥一号</ComboBoxItem> |
| | | <ComboBoxItem Tag="2">嫦娥二号</ComboBoxItem> |
| | | <ComboBoxItem Tag="3">科普教育</ComboBoxItem> |
| | | <ComboBoxItem Tag="4">克莱门汀</ComboBoxItem> |
| | | <ComboBoxItem Tag="5">月球探勘者</ComboBoxItem> |
| | | <ComboBoxItem Tag="6">月亮女神</ComboBoxItem> |
| | | <ComboBoxItem Tag="7">月球勘测轨道器</ComboBoxItem> |
| | | <ComboBoxItem Tag="8">圣杯号</ComboBoxItem> |
| | | </ComboBox> |
| | | <Label Grid.Row="2" Grid.Column="2" Content="元数据类型:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <!--<ComboBox Grid.Row="1" Grid.Column="3" IsReadOnly="True" DisplayMemberPath="Name" Style="{StaticResource ComboBoxStyle}" Width="320" Height="30" HorizontalAlignment="Left" x:Name="cbMetaType"></ComboBox>--> |
| | | <ComboBox Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left" VerticalContentAlignment="Center" Cursor="Hand" Background="White" SelectedIndex="0" Width="322" Height="38" BorderThickness="0" x:Name="cbMetaType"> |
| | | <ComboBoxItem Tag="0">请选择</ComboBoxItem> |
| | | <ComboBoxItem Tag="1">数字正射影像图</ComboBoxItem> |
| | | <ComboBoxItem Tag="2">数字高程模型</ComboBoxItem> |
| | | <ComboBoxItem Tag="3">单波段栅格数据</ComboBoxItem> |
| | | <ComboBoxItem Tag="4">多光谱栅格数据</ComboBoxItem> |
| | | <ComboBoxItem Tag="5">高光谱栅格数据</ComboBoxItem> |
| | | <ComboBoxItem Tag="6">矢量数据</ComboBoxItem> |
| | | <ComboBoxItem Tag="7">三维模型</ComboBoxItem> |
| | | </ComboBox> |
| | | |
| | | <Label Grid.Row="3" Grid.Column="0" Content="资源目录:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource tb}" IsReadOnly="True" x:Name="tbDir"/> |
| | |
| | | <Button Grid.Row="4" Grid.Column="4" Content="选 择" Style="{StaticResource btn}" Click="Source_MouseLeftButtonDown" x:Name="btnSource"/> |
| | | |
| | | <Label Grid.Row="5" Grid.Column="0" Content="入库目录:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | | <TextBox Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource tb}" x:Name="tbTarget"/> |
| | | <Button Grid.Row="5" Grid.Column="4" Content="选 择" Style="{StaticResource btn}" Click="Target_MouseLeftButtonDown" x:Name="btnTarget"/> |
| | | <TextBox Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource tb}" x:Name="tbTarget" IsReadOnly="False" /> |
| | | <Button Grid.Row="5" Grid.Column="4" Content="选 择" Style="{StaticResource btn}" Click="Target_MouseLeftButtonDown" x:Name="btnTarget" Visibility="Hidden" /> |
| | | |
| | | <ScrollViewer Grid.Row="6" Grid.RowSpan="3" Grid.Column="0" Grid.ColumnSpan="4" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="5 5 0 5"> |
| | | <ListView x:Name="lvView"> |
| | | <ListView.View> |
| | | <GridView> |
| | | <GridView.Columns> |
| | | <!--<GridViewColumn Header="序号" Width="50" DisplayMemberBinding="{Binding Path=ID, Mode=OneWay}"/>--> |
| | | <GridViewColumn Width="30"> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <CheckBox IsChecked="{Binding Path=Checked, Mode=TwoWay}" Tag="{Binding Path=ID, Mode=OneWay}" /> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Header="序号" Width="Auto"> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Header="路径" Width="Auto" DisplayMemberBinding="{Binding Path=FilePath, Mode=OneWay}"/> |
| | | <GridViewColumn Header="文件大小" Width="Auto" DisplayMemberBinding="{Binding Path=Sizes, Mode=OneWay}"/> |
| | | <GridViewColumn Header="运行状态" Width="120" DisplayMemberBinding="{Binding Path=Status, Mode=OneWay}"/> |
| | | </GridView.Columns> |
| | | </GridView> |
| | |
| | | </ScrollViewer> |
| | | |
| | | <Button x:Name="btnLoad" Grid.Row="6" Grid.Column="4" Content="加 载" Style="{StaticResource btn}" Click="Load_MouseLeftButtonDown"/> |
| | | <Button x:Name="btnImport" Grid.Row="7" Grid.Column="4" Content="导 入" Style="{StaticResource btn}" VerticalAlignment="Top" Click="Import_MouseLeftButtonDown"/> |
| | | <Button x:Name="btnDel" Grid.Row="7" Grid.Column="4" Content="删 除" Style="{StaticResource btn}" Click="Del_MouseLeftButtonDown"/> |
| | | <Button x:Name="btnImport" Grid.Row="8" Grid.Column="4" Content="导 入" Style="{StaticResource btn}" VerticalAlignment="Top" Click="Import_MouseLeftButtonDown"/> |
| | | </Grid> |
| | | </Window> |