WinMain.xaml
7.41 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<Window x:Name="window" x:Class="HHWelding.WinMain"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HHWelding"
mc:Ignorable="d"
Title="焊接数据反馈" Height="450" Width="800" WindowStartupLocation="CenterScreen" Icon="\huaheng2.png" >
<Grid x:Name="grid" Margin="0,-20,0,0">
<TabControl Name="tabSystem" TabStripPlacement="Top" Margin="0,19,0,0">
<TabItem VerticalAlignment="Stretch" x:Name="tabItem" Header="管道总材料数据上传" >
<Grid x:Name="stackPanel" VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<!--<RowDefinition Height="auto"></RowDefinition>-->
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Right">
<!--<Button x:Name="Import" Width="auto" HorizontalAlignment="Right" Click="Import_Click" >手动导入数据</Button>-->
<Button x:Name="Shuju" Width="auto" HorizontalAlignment="Right" Click="Shuju_Click" >配置数据</Button>
<Button x:Name="Import2" Width="auto" HorizontalAlignment="Right" Click="Import_Click" >自动导入数据</Button>
<Button x:Name="DateReturn" Width="60" Click="DateReturn_Click" >数据回传</Button>
</WrapPanel>
<DataGrid x:Name="Datagrid1" Grid.Row="1" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Visible">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
<Setter Property="Background" Value="LightGray"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
<Setter Property="Background" Value="LightBlue"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="2">
<Setter Property="Background" Value="Orange"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>
<!--<TabItem Header="地址配置">
</TabItem>-->
<!--<TabItem Header="焊接焊口" >
<Grid x:Name="stackPanel2" VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
--><!--<RowDefinition Height="auto"></RowDefinition>--><!--
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Right">
<Button x:Name="Import2" Width="60" HorizontalAlignment="Right" Click="Import2_Click" >导入数据</Button>
<Button x:Name="DateReturn2" Width="60" Click="DateReturn2_Click" >数据回传</Button>
</WrapPanel>
<DataGrid x:Name="datagrid2" Grid.Row="1" HorizontalAlignment="Stretch">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
<Setter Property="Background" Value="LightGray"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
<Setter Property="Background" Value="LightBlue"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="2">
<Setter Property="Background" Value="Orange"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>
<TabItem Header="管段切割" >
<Grid x:Name="stackPanel3" VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
--><!--<RowDefinition Height="auto"></RowDefinition>--><!--
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0" HorizontalAlignment="Right">
<Button x:Name="Import3" Width="60" HorizontalAlignment="Right" Click="Import3_Click" >导入数据</Button>
<Button x:Name="DateReturn3" Width="60" Click="DateReturn3_Click" >数据回传</Button>
</WrapPanel>
<DataGrid x:Name="datagrid3" Grid.Row="1" HorizontalAlignment="Stretch">
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="Background" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
<Setter Property="Background" Value="LightGray"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
<Setter Property="Background" Value="LightBlue"/>
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="2">
<Setter Property="Background" Value="Orange"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
</DataGrid.Columns>
</DataGrid>
</Grid>
</TabItem>-->
</TabControl>
</Grid>
</Window>