|
- <UserControl
- x:Class="BPASmartClient.JXJFoodSmallStation.View.ManualFlowView"
- 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:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
- d:DesignHeight="1080"
- d:DesignWidth="1920"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <vm:ManualFlowViewModel />
-
- </UserControl.DataContext>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="100" />
- <RowDefinition Height="100" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <!--#region 表格标题栏设置-->
- <Grid>
- <StackPanel
- HorizontalAlignment="left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Name="test1"
- Width="200"
- Height="40"
- Margin="5"
- Panel.ZIndex="0"
- Command="{Binding Test1Command}"
- Content="AGV送托盘完成"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}"
- Visibility="{Binding VisibilityBtn1}" />
- <Button
- Name="test2"
- Width="200"
- Height="40"
- Margin="5"
- Panel.ZIndex="0"
- Command="{Binding Test2Command}"
- Content="粉料仓配料完成"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}"
- Visibility="{Binding VisibilityBtn2}" />
- <Button
- Name="test3"
- Width="200"
- Height="40"
- Margin="5"
- Panel.ZIndex="0"
- Command="{Binding Test3Command}"
- Content="AGV取托盘完成"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}"
- Visibility="{Binding VisibilityBtn3}" />
- <TextBlock
- Width="100"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7" />
- <!--<Button
- Width="200"
- Height="40"
- Margin="5"
- Panel.ZIndex="0"
- Command="{Binding Test5Command}"
- Content="粉料仓提升到位"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />-->
- <Button
- Width="200"
- Height="40"
- Margin="5"
- Command="{Binding BPAResetCommand}"
- Content="上位机初始化"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <StackPanel
- HorizontalAlignment="left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="200"
- Height="40"
- Margin="5,0,5,0"
- Panel.ZIndex="0"
- Command="{Binding SystemReset}"
- Content="PLC系统复位"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Width="200"
- Height="40"
- Margin="5,0,5,0"
- Panel.ZIndex="0"
- Command="{Binding CLearRecipeInfo}"
- Content="PLC配方清零"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </StackPanel>
-
-
- </Grid>
- <Grid Grid.Row="2">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel Grid.Column="1" Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="海科plc心跳:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Heartbeat}" />
- </StackPanel>
- </StackPanel>
- <WrapPanel Grid.Row="0">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="西门子 连接状态:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding SiemensIsConnect}" />
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="海科plc连接状态:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding HKPlcIsConnect}" />
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="风送plc连接状态:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding WindSendIsConnect}" />
- </WrapPanel>
- <WrapPanel Grid.Row="2">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="当前下发配方状态:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding OrderStatus}" />
- </WrapPanel>
- <WrapPanel Grid.Row="0" Grid.Column="2">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="柔性味魔方配料完成,延迟复位时间:" />
- <TextBox
- Width="150"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding time}" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="ms" />
- <Button
- Width="100"
- Height="40"
- Margin="5,0,5,0"
- Panel.ZIndex="0"
- Command="{Binding TimeSet}"
- Content="设置"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </WrapPanel>
- <WrapPanel
- Grid.Row="3"
- Grid.RowSpan="2"
- Grid.Column="0">
- <TextBlock
- Width="200"
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="当前配料状态:" />
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方1:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe1DosingStatus}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方2:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe2DosingStatus}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方3:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe3DosingStatus}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方4:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe4DosingStatus}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方5:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe5DosingStatus}" />
- </WrapPanel>
- </WrapPanel>
- <WrapPanel
- Grid.Row="3"
- Grid.RowSpan="2"
- Grid.Column="1">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配料情况:" />
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方1:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe1DosingComplete}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方2:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe2DosingComplete}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方3:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe3DosingComplete}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方4:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe4DosingComplete}" />
- </WrapPanel>
- <WrapPanel>
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方5:" />
- <TextBlock
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding Recipe5DosingComplete}" />
- </WrapPanel>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Grid.Column="2">
- <!--<ComboBox
- x:Name="cmbList"
- Width="70"
- VerticalAlignment="Center"
- BorderBrush="#FF074B92"
- BorderThickness="1"
- FontFamily="楷体"
- FontSize="14"
- Foreground="LightGray"
- IsEditable="False"
- MouseLeave="ComboBox_MouseLeave"
- Style="{StaticResource ComboBoxStyle}"
- Text="{Binding RawMaterialName}"/>-->
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="料仓号:" />
- <TextBox
- Width="50"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding StockbinDosingCompleNum}" />
- <Button
- Width="200"
- Height="40"
- Margin="5,0,5,0"
- Panel.ZIndex="0"
- Command="{Binding StockbinDosingComple}"
- Content="小料料仓配料完成"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Width="400"
- Height="40"
- Margin="10"
- HorizontalAlignment="Right"
- Panel.ZIndex="0"
- Command="{Binding StockbinDosingCompleClear}"
- Content="清除所有小料料仓配料完成信号"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </WrapPanel>
- <WrapPanel Grid.Row="2" Grid.Column="2">
- <TextBlock
- Margin="10,0,5,0"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="配方制作完成数目:" />
- <TextBlock
- Width="150"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="#FF2AB2E7"
- Text="{Binding RecipeDosingCompleNum}" />
- </WrapPanel>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|