| | |
| | | <Window x:Class="DataLoader.MainWindow" |
| | | 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" |
| | | Height="700" Width="900" Loaded="Window_Loaded" Closing="Window_Closing" |
| | | Title="数据入库 v1.5" WindowStartupLocation="CenterScreen"> |
| | | <Window.Resources> |
| | | <Style x:Key="btn" TargetType="Button"> |
| | |
| | | <Style x:Key="tb" TargetType="TextBox"> |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| | | <Setter Property="VerticalContentAlignment" Value="Center"/> |
| | | <Setter Property="Height" Value="30"/> |
| | | <Setter Property="FontSize" Value="20"/> |
| | | <Setter Property="FontSize" Value="16"/> |
| | | </Style> |
| | | |
| | | <!--Combox--> |
| | |
| | | <Setter Property="Height" Value="35"/> |
| | | <Setter Property="BorderThickness" Value="0"/> |
| | | </Style> |
| | | |
| | | <Style TargetType="DatePickerTextBox"> |
| | | <Setter Property="ItemsControl.Template"> |
| | | <Setter.Value> |
| | | <ControlTemplate> |
| | | <TextBox BorderThickness="0" Text="{Binding Path=SelectedDate, StringFormat='yyyy-MM-dd HH:mm:ss', RelativeSource={RelativeSource AncestorType=DatePicker}}" /> |
| | | </ControlTemplate> |
| | | </Setter.Value> |
| | | </Setter> |
| | | </Style> |
| | | </Window.Resources> |
| | | <Grid x:Name="gMain"> |
| | | <Grid.RowDefinitions> |
| | |
| | | <Button Grid.Row="0" Grid.Column="4" Content="登 录" Style="{StaticResource btn}" Click="Login_MouseLeftButtonDown"/> |
| | | |
| | | <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"/> |
| | | <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" Background="White" SelectedIndex="0" Width="322" Height="38" BorderThickness="0" x:Name="cbMetaType"> |
| | | <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> |
| | |
| | | <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"/> |
| | | <!--<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"/> |
| | | |
| | | |
| | | <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}" x:Name="tbDir"/> |
| | | <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource tb}" IsReadOnly="True" x:Name="tbDir"/> |
| | | <Button Grid.Row="3" Grid.Column="4" Content="选 择" Style="{StaticResource btn}" Click="Dir_MouseLeftButtonDown" x:Name="btnDir"/> |
| | | |
| | | <Label Grid.Row="4" Grid.Column="0" Content="数据目录:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
| | |
| | | </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> |