管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-12-31 b5560a2a37bb5a406488d50170abc5309c2d4f5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Window x:Class="DataLoader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="480" Width="600"
        Loaded="Window_Loaded"
        Title="数据入库" WindowStartupLocation="CenterScreen">
    <Grid x:Name="gMain">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
 
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="70" />
            <ColumnDefinition Width="180" />
            <ColumnDefinition Width="70" />
            <ColumnDefinition Width="180" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
 
        <Label Grid.Row="0" Grid.Column="0" Content="用户ID:" VerticalAlignment="Center" HorizontalAlignment="Right" />
        <TextBox x:Name="tbUid" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Height="30" Width="180" FontSize="20"/>
        <Label Grid.Row="0" Grid.Column="2" Content="令牌:" VerticalAlignment="Center" HorizontalAlignment="Right" />
        <TextBox x:Name="tbToken" Grid.Row="0" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Left" Height="30" Width="180" FontSize="20"/>
        <Border Grid.Row="0" Grid.Column="4" BorderBrush="#136BAF" BorderThickness="1" Cursor="Hand" Width="60" Height="30">
            <TextBlock Text="登 录" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="Login_MouseLeftButtonDown"/>
        </Border>
 
        <Label Grid.Row="1" Grid.Column="0" Content="源目录:" VerticalAlignment="Center" HorizontalAlignment="Right" />
        <TextBox x:Name="tbSource" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Left" Height="30" Width="430" FontSize="20"/>
        <Border Grid.Row="1" Grid.Column="4" BorderBrush="#136BAF" BorderThickness="1" Cursor="Hand" Width="60" Height="30">
            <TextBlock Text="选 择" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="Source_MouseLeftButtonDown"/>
        </Border>
 
        <Label Grid.Row="2" Grid.Column="0" Content="入库目录:" VerticalAlignment="Center" HorizontalAlignment="Right" />
        <TextBox x:Name="tbTarget" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Left" Height="30" Width="430" FontSize="20"/>
        <Border Grid.Row="2" Grid.Column="4" BorderBrush="#136BAF" BorderThickness="1" Cursor="Hand" Width="60" Height="30">
            <TextBlock Text="选 择" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="Target_MouseLeftButtonDown"/>
        </Border>
 
        <ScrollViewer Grid.Row="3" Grid.RowSpan="3" Grid.Column="0" Grid.ColumnSpan="4" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="2">
            <ListView>
                <ListView.View>
                    <GridView>
                        <GridView.Columns>
                            <GridViewColumn Header="序号" Width="50" DisplayMemberBinding="{Binding ID}"></GridViewColumn>
                            <GridViewColumn Header="路径" Width="355" DisplayMemberBinding="{Binding FilePath}"></GridViewColumn>
                            <GridViewColumn Header="状态" Width="80" DisplayMemberBinding="{Binding Status}"></GridViewColumn>
                        </GridView.Columns>
                    </GridView>
                </ListView.View>
            </ListView>
        </ScrollViewer>
        <Border Grid.Row="3" Grid.Column="4" BorderBrush="#136BAF" BorderThickness="1" Cursor="Hand" Width="60" Height="30">
            <TextBlock Text="导 入" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="Import_MouseLeftButtonDown"/>
        </Border>
    </Grid>
</Window>