282 lines
12 KiB
XML
282 lines
12 KiB
XML
<Window x:Class="CordonelAssemblyLine.Leak"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:c="clr-namespace:CordonelAssemblyLine.Converter"
|
|
Title="Leak"
|
|
Height="450"
|
|
Width="800"
|
|
Background="Aqua"
|
|
Closing="Window_Closing">
|
|
<Window.Resources>
|
|
<c:MathConverter x:Key="myMathConverter"/>
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid Grid.Row="8">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15*"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="100*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="20*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="180" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="200" />
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Label x:Name="lblHeadline"
|
|
Content="HE-Schnüffeln"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
FontWeight="Bold"
|
|
FontSize="24"
|
|
Height="47"
|
|
VerticalAlignment="Top"
|
|
Margin="0,0,111,0"
|
|
Grid.RowSpan="2"
|
|
Grid.ColumnSpan="2" />
|
|
|
|
<Label x:Name="lblLeakrate"
|
|
Content="Grenz-Leckrate >"
|
|
HorizontalAlignment="Left"
|
|
Margin="2,0,0,0"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Height="26"
|
|
Width="123"
|
|
Grid.ColumnSpan="2" />
|
|
|
|
<TextBox x:Name="txtLeakrate"
|
|
Height="26"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding Result.LeakRate, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
HorizontalAlignment="Left"
|
|
Width="289"
|
|
Margin="3,0,0,0"
|
|
Grid.ColumnSpan="2" />
|
|
|
|
<TextBox x:Name="TxtPresurePcbId"
|
|
Height="26"
|
|
IsEnabled="False"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding CurrentPcbID, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
Width="150"
|
|
Margin="1,0,0,0"
|
|
Grid.RowSpan="2" />
|
|
|
|
<Label Content="PcbId"
|
|
HorizontalAlignment="Left"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Height="26"
|
|
Width="40"
|
|
Grid.RowSpan="2"/>
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="2,0,197,0">
|
|
<TextBlock Text="Rev: "/>
|
|
<Label Content="{Binding Result.Rev, UpdateSourceTrigger=PropertyChanged}"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Height="26"
|
|
Width="40"/>
|
|
</StackPanel>
|
|
|
|
<Label Content="Prüfdruck in bar"
|
|
HorizontalAlignment="Left"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Height="26"
|
|
Width="113"
|
|
Grid.RowSpan="2" />
|
|
|
|
<TextBox x:Name="txtPressure"
|
|
Height="26"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding Result.TestPressure, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
Width="150"
|
|
Margin="1,0,0,0"
|
|
Grid.RowSpan="2" />
|
|
|
|
<TextBox x:Name="txtTester"
|
|
Height="26"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding TesterName, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
Width="150"
|
|
Margin="1,0,0,0"
|
|
Grid.RowSpan="2" />
|
|
|
|
<Label Content="Prüfer"
|
|
HorizontalAlignment="Left"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Top"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Height="26"
|
|
Width="85"
|
|
Grid.RowSpan="2" />
|
|
|
|
<ListView x:Name="listViewTestPotins"
|
|
ItemsSource="{Binding Result.TestPoints, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Grid.RowSpan="4"
|
|
HorizontalAlignment="left"
|
|
Width="380"
|
|
Margin="12,10,0,0"
|
|
Grid.ColumnSpan="3" >
|
|
<ListView.View>
|
|
<GridView >
|
|
<GridViewColumn Header="Nr" >
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate >
|
|
<Label Content="{Binding Ident}" Height="22" FontWeight="Bold" FontSize="10" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Header="Wert" >
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox Margin="0"
|
|
ToolTip="{Binding ToolTipInput}"
|
|
Height="22"
|
|
Width="125"
|
|
FontWeight="Bold"
|
|
FontSize="13"
|
|
VerticalContentAlignment="Center"
|
|
Text="{Binding Input, Mode=TwoWay, Converter={StaticResource myMathConverter}}"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Right"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Stretch" >
|
|
</TextBox>
|
|
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="" >
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button Content="Für alle übernehmen"
|
|
Height="22"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
FontWeight="Bold"
|
|
FontSize="13"
|
|
Click="Button_Click" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
|
|
<Label Content="Bemerkung"
|
|
HorizontalAlignment="Left"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Top"
|
|
Height="26"
|
|
Width="113"
|
|
Grid.Column="0"
|
|
Grid.Row="4" />
|
|
|
|
<TextBox Text="{Binding Result.Remark, UpdateSourceTrigger=PropertyChanged}"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="11,10,8,7"
|
|
TextWrapping="Wrap"
|
|
AcceptsReturn="True"
|
|
AcceptsTab="True"
|
|
SpellCheck.IsEnabled="True"
|
|
SpellCheck.SpellingReform="PreAndPostreform"
|
|
Grid.Row="4"
|
|
Grid.Column="1" />
|
|
|
|
<Button Name="btnPresueOk"
|
|
Background="LightGreen"
|
|
Grid.ColumnSpan="2"
|
|
Content="Bestanden"
|
|
HorizontalAlignment="Left"
|
|
Height="35"
|
|
Margin="12,5,0,0"
|
|
Grid.Row="6"
|
|
VerticalAlignment="Top"
|
|
Width="280"
|
|
Click="BtnPresueOk_Click"
|
|
Grid.Column="2"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Button Name="btnPresueFailed"
|
|
Background="LightPink"
|
|
Grid.ColumnSpan="2"
|
|
Content="Nicht Bestanden"
|
|
HorizontalAlignment="Left"
|
|
Height="35"
|
|
Margin="9,5,0,0"
|
|
Grid.Row="6"
|
|
VerticalAlignment="Top"
|
|
Width="281"
|
|
Click="BtnPresueFailed_Click"
|
|
Grid.Column="0"
|
|
IsEnabled="{Binding InputIsEnabled, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock Name="tippBox"
|
|
Grid.Column="5"
|
|
HorizontalAlignment="Left"
|
|
Grid.Row="2"
|
|
Grid.RowSpan="3"
|
|
TextWrapping="Wrap"
|
|
VerticalAlignment="Top"
|
|
FontSize="10" />
|
|
|
|
<Label Content="Tipp:"
|
|
Grid.Column="5"
|
|
HorizontalAlignment="Left"
|
|
Grid.Row="1"
|
|
VerticalAlignment="Top"/>
|
|
|
|
<Button Name="btnLock"
|
|
Grid.ColumnSpan="6"
|
|
Content="{Binding LockedPressureMessage, UpdateSourceTrigger=PropertyChanged}"
|
|
Visibility="{Binding LockedPressure, UpdateSourceTrigger=PropertyChanged}"
|
|
Background="Yellow"
|
|
Click="BtnLock_Click"
|
|
HorizontalAlignment="Left"
|
|
Height="419"
|
|
Grid.RowSpan="7"
|
|
VerticalAlignment="Top"
|
|
Width="792"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|