| | |
| | | xmlns:pw="https://opensource.panuon.com/wpf" |
| | | xmlns:pu="https://opensource.panuon.com/wpf-ui" |
| | | xmlns:local="clr-namespace:Plugin.TsExecution" |
| | | xmlns:cdp="clr-namespace:HMI.Core.DpUtil;assembly=HMI.Core" |
| | | mc:Ignorable="d" |
| | | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| | | Loaded="UserControl_Loaded" |
| | |
| | | x:Name="control" |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | | <UserControl.Resources> |
| | | <sys:Double x:Key="nanD">NaN</sys:Double> |
| | | <ResourceDictionary> |
| | | <ResourceDictionary.MergedDictionaries> |
| | | <ResourceDictionary Source="/HMI.UI;component/Style/PanuonListView.xaml"/> |
| | | <ResourceDictionary Source="/HMI.UI;component/Style/PanuonDataGrid.xaml"/> |
| | | </ResourceDictionary.MergedDictionaries> |
| | | <sys:Double x:Key="nanD">NaN</sys:Double> |
| | | |
| | | <Style TargetType="Label" x:Key="baseLabel"> |
| | | <Setter Property="HorizontalContentAlignment" Value="Left"/> |
| | | <Setter Property="VerticalContentAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="5"/> |
| | | <Setter Property="FontSize" Value="{Binding ActualWidth,ElementName=control, |
| | | <Style TargetType="Label" x:Key="baseLabel"> |
| | | <Setter Property="HorizontalContentAlignment" Value="Left"/> |
| | | <Setter Property="VerticalContentAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="5"/> |
| | | <Setter Property="FontSize" Value="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='20,1093,20'}"/> |
| | | </Style> |
| | | <Style TargetType="TextBlock" x:Key="baseText"> |
| | | <Setter Property="HorizontalAlignment" Value="Left"/> |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="0,0,2,0"/> |
| | | <Setter Property="FontSize" Value="{Binding ActualWidth,ElementName=control, |
| | | </Style> |
| | | <Style TargetType="TextBlock" x:Key="baseText"> |
| | | <Setter Property="HorizontalAlignment" Value="Left"/> |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="0,0,2,0"/> |
| | | <Setter Property="FontSize" Value="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='20,1093,20'}"/> |
| | | </Style> |
| | | <Brush x:Key="passedColor">#beed00</Brush> |
| | | </Style> |
| | | <Brush x:Key="passedColor">#beed00</Brush> |
| | | </ResourceDictionary> |
| | | </UserControl.Resources> |
| | | |
| | | <Grid> |
| | |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <!--<ListView Grid.Row="0" Style="{StaticResource DefaultListTable}" x:Name="table" |
| | | ItemsSource="{Binding Datasource}" |
| | | VirtualizingPanel.IsContainerVirtualizable="True" |
| | | VirtualizingPanel.IsVirtualizing="True" |
| | | VirtualizingPanel.VirtualizationMode="Recycling" |
| | | pu:ListViewHelper.ItemsHeight="{StaticResource nanD}" |
| | | pu:ListViewHelper.ColumnHeaderFontSize="{Binding ActualWidth, |
| | | ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='15,1093,15,22'}" |
| | | FontSize="{Binding ActualWidth, |
| | | ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='15,1093,15,20'}" |
| | | pu:ListViewHelper.ColumnHeaderHeight="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='30,1093,-1,45'}"> |
| | | <ListView.View> |
| | | <GridView AllowsColumnReorder="False"> |
| | | <GridViewColumn Width="60" Header="#"> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <TextBlock Text="{Binding Converter={StaticResource lvRowNumber}, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListViewItem,AncestorLevel=1}}"/> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | |
| | | <GridViewColumn Width="200"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.Name}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <DockPanel> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Name}"/> |
| | | </Border> |
| | | </DockPanel> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="100"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.Unit}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Grid HorizontalAlignment="Stretch" VerticalAlignment="Center"> |
| | | <Border Style="{StaticResource CellBorder}" MouseDown="TextBlock_MouseDown"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Unit}"/> |
| | | </Border> |
| | | </Grid> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.Value}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Value}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.LimitDown}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding LimitDown}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.LimitUp}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding LimitUp}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="180"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.ConsumeTime}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding ConsumeTime}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.Result}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Grid x:Name="border" Margin="0"> |
| | | <TextBlock x:Name="text" Margin="-1" Padding="0" VerticalAlignment="Center" Text="{Binding Result}"/> |
| | | </Grid> |
| | | <DataTemplate.Triggers> |
| | | <DataTrigger Binding="{Binding Result}" Value="Passed"> |
| | | <Setter TargetName="border" Property="Background" Value="{StaticResource passedColor}"/> |
| | | <Setter TargetName="text" Property="Foreground" Value="#000"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding Result}" Value="Failed"> |
| | | <Setter TargetName="border" Property="Background" Value="{StaticResource DangerColor}"/> |
| | | <Setter TargetName="text" Property="Foreground" Value="#000"/> |
| | | </DataTrigger> |
| | | </DataTemplate.Triggers> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | </GridView> |
| | | </ListView.View> |
| | | </ListView>--> |
| | | |
| | | <DataGrid Grid.Row="0" Style="{StaticResource DefaultDataGrid}" |
| | | Margin="5,0,5,5" |
| | | pu:DataGridHelper.ColumnHeaderFontSize="{Binding ActualWidth, |
| | |
| | | </DataGrid.Resources> |
| | | |
| | | <DataGrid.Columns> |
| | | <!--<DataGridTemplateColumn Header="#" CanUserResize="False"> |
| | | <DataGridTemplateColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <TextBlock Text="{Binding Converter={StaticResource rowNumber}, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow},AncestorLevel=1}}"/> |
| | | </DataTemplate> |
| | | </DataGridTemplateColumn.CellTemplate> |
| | | </DataGridTemplateColumn>--> |
| | | |
| | | <DataGridTextColumn Header="#" |
| | | ElementStyle="{StaticResource TableTextBlock}" |
| | | Binding="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" |
| | |
| | | ElementStyle="{StaticResource TableTextBlock}"> |
| | | <DataGridTextColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.LimitUp}"/> |
| | | </DataGridTextColumn.Header> |
| | | </DataGridTextColumn> |
| | | <DataGridTextColumn Width="180" Binding="{Binding ConsumeTime}" |
| | | ElementStyle="{StaticResource TableTextBlock}"> |
| | | <DataGridTextColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.ConsumeTime}"/> |
| | | </DataGridTextColumn.Header> |
| | | </DataGridTextColumn> |
| | | <DataGridTemplateColumn Width="120"> |
| | |
| | | <Label Padding="0" FontSize="12" VerticalContentAlignment="Center" Content="{Binding CurrentStep}"/> |
| | | |
| | | <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="0,0,5,0"> |
| | | <!--<Button FontSize="12" x:Name="scannerSetting" |
| | | Margin="0,0,10,0" Click="Button_Click" Content="扫码枪设置"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource LinkButton}"> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding IsAutoMode}" Value="True"> |
| | | <Setter Property="Visibility" Value="Collapsed"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button>--> |
| | | |
| | | <Label Padding="0" FontSize="12" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeCount}"/> |
| | |
| | | VerticalContentAlignment="Center" Content="{Binding ProbeWarn}"/> |
| | | </StackPanel> |
| | | |
| | | <Button FontSize="12" Style="{StaticResource LinkButton}" x:Name="clear" Margin="10,0,0,0" Click="Button_Click" |
| | | Content="{DynamicResource App.Clear}"/> |
| | | <Button FontSize="12" Style="{StaticResource LinkButton}" |
| | | cdp:PermissionHelper.RequiredPermission="Permission:ClearProbeCount" |
| | | x:Name="clear" Margin="10,0,0,0" Click="Button_Click" |
| | | Content="{DynamicResource App.Clear}" Cursor=""/> |
| | | </StackPanel> |
| | | |
| | | <Label x:Name="probeCountAlarm" Visibility="Collapsed" DockPanel.Dock="Left" Padding="30,0" FontSize="12" Foreground="Red" |
| | |
| | | </Grid> |
| | | |
| | | <Canvas Grid.Row="0" Grid.RowSpan="5" Visibility="Collapsed" |
| | | VirtualizingPanel.IsVirtualizing="False" |
| | | VirtualizingPanel.VirtualizationMode="Standard" |
| | | Background="#AAFFFFFF" x:Name="pausePanel" SizeChanged="pausePanel_Loaded"> |
| | | <Border BorderBrush="#000" Background="#FFF" BorderThickness="0.5" |
| | | CornerRadius="5" |
| | |
| | | |
| | | <TextBlock Margin="20,20,20,0" Grid.Row="1" |
| | | FontSize="40" |
| | | FontFamily="/Panuon.WPF.UI;component/Resources/Fonts/#PanuonIcon" |
| | | Foreground="#F9D01A" |
| | | Text="" |
| | | /> |
| | | FontFamily="/Panuon.WPF.UI;component/Resources/Fonts/#PanuonIcon" |
| | | Foreground="#F9D01A" Text=""/> |
| | | |
| | | <Label Margin="0,20,20,0" Grid.Row="1" Grid.Column="1" Content="{DynamicResource Ts.PauseMsg}"/> |
| | | <StackPanel Margin="10" Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
| | |
| | | </Border> |
| | | </Canvas> |
| | | |
| | | <!--<Canvas Grid.Row="0" Grid.RowSpan="5" Visibility="Collapsed" |
| | | Background="#AAFFFFFF" x:Name="scannerPanel" SizeChanged="pausePanel_Loaded"> |
| | | <Border BorderBrush="#000" Background="#FFF" BorderThickness="0.5" CornerRadius="5" x:Name="scannerVisualModal"> |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition /> |
| | | </Grid.ColumnDefinitions> |
| | | <Border Padding="10,5,0,5" Grid.ColumnSpan="2" Background="{StaticResource PrimaryColor}" |
| | | CornerRadius="5,5,0,0"> |
| | | <Label Padding="0" Margin="0" Foreground="#FFF" Content="请扫码"/> |
| | | </Border> |
| | | |
| | | <pu:FormGroup Margin="20,20,20,0" Grid.Row="1" Grid.ColumnSpan="2" |
| | | FontSize="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='20,1093,20'}" Orientation="Horizontal" Header="SNR"> |
| | | <TextBox Width="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='180,1093'}" |
| | | FontSize="{Binding ActualWidth,ElementName=control, |
| | | Converter={StaticResource fc}, ConverterParameter='15,1093,15'}" |
| | | x:Name="TbManualSnr" Style="{StaticResource EditorTextBoxStyle}"/> |
| | | </pu:FormGroup> |
| | | <StackPanel Margin="10" Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
| | | <Button Style="{StaticResource ModalButton}" |
| | | x:Name="scannerOkBtn" |
| | | Click="Button_Click" |
| | | Background="{DynamicResource PrimaryColor}" |
| | | Tag="OK" Content="{DynamicResource App.Continue}"/> |
| | | </StackPanel> |
| | | </Grid> |
| | | </Border> |
| | | </Canvas>--> |
| | | |
| | | |
| | | <!--<DockPanel Grid.Row="4"> |
| | | <StatusBar> |