|
|
@ -30,7 +30,7 @@
|
|
|
|
<ColumnDefinition Width="2*"/>
|
|
|
|
<ColumnDefinition Width="2*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
<TextBlock Text="生产控制系统" FontSize="50" Foreground="White" FontWeight="Bold"/>
|
|
|
|
<TextBlock Text="信明橡塑生产管理系统" FontSize="50" Foreground="White" FontWeight="Bold"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
@ -40,9 +40,9 @@
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Column="0" Text="白班" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/>
|
|
|
|
<TextBlock Grid.Column="0" Text="班组" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/>
|
|
|
|
<TextBlock Grid.Column="1" Text="|" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/>
|
|
|
|
<TextBlock Grid.Column="1" Text="|" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="SCADA" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,10,0"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="甲班" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,10,0"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
@ -61,106 +61,19 @@
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<Button Content="首 页" x:Name="Index" Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=Index}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="10,0,10,0"/>
|
|
|
|
<Button Content="工单执行" x:Name="Index" Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=Index}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="10,0,10,0"/>
|
|
|
|
<Button Content="代码生成" x:Name="Generate" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Generate}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="人员登录" x:Name="Generate" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Generate}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="键 盘" Command="{Binding OpenSystemKeyboardCommand}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="键 盘" Command="{Binding OpenSystemKeyboardCommand}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF11B514" BorderBrush="#FF11B514" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="最小化" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="最小化" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="退 出" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF0033" BorderBrush="#FF0033" Margin="0,0,10,0"/>
|
|
|
|
<Button Content="退 出" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF0033" BorderBrush="#FF0033" Margin="0,0,10,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
<!--多行状态显示-->
|
|
|
|
|
|
|
|
<!--<Grid>
|
|
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Margin="0,0,0,0" VerticalAlignment="Center">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1">
|
|
|
|
|
|
|
|
<TextBlock Text="连接状态" FontSize="15" Foreground="Black" Margin="2,0,10,0"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
|
|
|
<Ellipse Width="20" Height="20">
|
|
|
|
|
|
|
|
<Ellipse.Style>
|
|
|
|
|
|
|
|
<Style TargetType="Ellipse">
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="0">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Orange"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="1">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Green"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="2">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Red"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Ellipse.Style>
|
|
|
|
|
|
|
|
</Ellipse>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Margin="0,10,0,0" VerticalAlignment="Center">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1">
|
|
|
|
|
|
|
|
<TextBlock Text="连接状态" FontSize="15" Foreground="Black" Margin="2,0,10,0"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
|
|
|
<Ellipse Width="20" Height="20">
|
|
|
|
|
|
|
|
<Ellipse.Style>
|
|
|
|
|
|
|
|
<Style TargetType="Ellipse">
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="0">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Orange"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="1">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Green"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PresentColor}" Value="2">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Red"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Ellipse.Style>
|
|
|
|
|
|
|
|
</Ellipse>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--单行状态显示-->
|
|
|
|
<!--单行状态显示-->
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
@ -189,7 +102,7 @@
|
|
|
|
</Ellipse>
|
|
|
|
</Ellipse>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="箱壳扫码器" FontSize="15" Foreground="#FFFFFF" Margin="2,0,10,0"/>
|
|
|
|
<TextBlock Text="打卡机" FontSize="15" Foreground="#FFFFFF" Margin="2,0,10,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
@ -220,43 +133,11 @@
|
|
|
|
</Ellipse>
|
|
|
|
</Ellipse>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="内胆扫码器" FontSize="15" Foreground="#FFFFFF" Margin="2,0,10,0"/>
|
|
|
|
<TextBlock Text="扫码枪" FontSize="15" Foreground="#FFFFFF" Margin="2,0,10,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0">
|
|
|
|
|
|
|
|
<Ellipse Width="30" Height="30">
|
|
|
|
|
|
|
|
<Ellipse.Style>
|
|
|
|
|
|
|
|
<Style TargetType="Ellipse">
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PlcStatus}" Value="0">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Orange"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PlcStatus}" Value="1">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Green"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding PlcStatus}" Value="2">
|
|
|
|
|
|
|
|
<Setter Property="Shape.Fill" Value="Red"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Ellipse.Style>
|
|
|
|
|
|
|
|
</Ellipse>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
|
|
|
|
|
|
<TextBlock Text="PLC状态" FontSize="15" Foreground="#FFFFFF" Margin="2,0,10,0"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|