|
- <UserControl x:Class="BPASmartClient.ScreenLib.ScreenMorksControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.ScreenLib"
- xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
- xmlns:con="clr-namespace:BPA.CustomResource.UserControls;assembly=BPA.CustomResource"
- mc:Ignorable="d"
- d:DesignHeight="1080" d:DesignWidth="1920">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPA.CustomResource;component/Themes/ProlineStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
-
- <StackPanel Margin="0,10,0,0">
- <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="160" Width="450" Style="{DynamicResource fromNoTitle}" Tag="Start">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.IsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="停止">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备状态</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.WorkStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="待机">
- <Setter Property="Foreground" Value="Yellow"/>
- </Trigger>
- <Trigger Property="Text" Value="故障">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- <Trigger Property="Text" Value="停止">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">工作状态</TextBlock>
- </StackPanel>
- </Grid>
- </GroupBox>
- <GroupBox Margin="0,20,10,0" Height="780" Width="450" Header="待制作订单列表" Style="{DynamicResource from}" Tag="Start">
- <DataGrid Margin="0,10,0,0" ItemsSource="{Binding OrderMakeList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="60">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="订单号" FontSize="18" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding SortNum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="20" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="120">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="商品名称" FontSize="18" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding GoodName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="160">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="开始时间" FontSize="18" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding StartTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="80">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="状态" FontSize="18" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding MakeStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </StackPanel>
-
- <StackPanel Grid.Column="1" MouseLeftButtonDown="StackPanel_MouseLeftButtonDown" VerticalAlignment="Bottom" Margin="0,0,0,10">
- <GroupBox x:Name="guanggao" Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
- <Grid>
- <wv2:WebView2 Name="webView" />
- </Grid>
- </GroupBox>
- <Grid x:Name="diqiu" Height="600" Width="950" Margin="0,10,0,20" >
<Image Style="{DynamicResource imagezhu}"></Image>
<Image Style="{DynamicResource image中1}" Margin="0,400,0,0"></Image>
<GroupBox Margin="600,100,0,500" Header="{Binding ViewData.FailuresCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="累计故障数" Content="次" Width="100"/>
<GroupBox Margin="600,400,0,0" Header="0" Style="{DynamicResource GroupStyle圆形}" Tag="故障次数" Content="次" Width="160"/>
<GroupBox Margin="-500,100,0,0" Header="{Binding ViewData.MorkS_OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource GroupStyle圆形}" Tag="日总接待人数" Content="人" Width="160"/>
</Grid>
-
- <GroupBox Margin="0,0,0,0" Height="340" Width="950" Header="信息通知区域" Style="{DynamicResource from}">
- <DataGrid Margin="10,10,10,0" ItemsSource="{Binding ViewData.Alarm,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="250">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="信息时间" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Width="*">
- <DataGridTemplateColumn.Header>
- <TextBlock Text="详细描述" Foreground="White"/>
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#a70909" FontSize="16" HorizontalAlignment="Center"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </StackPanel>
-
- <StackPanel Grid.Column="2" Margin="0,10,0,0">
- <GroupBox Grid.Column="2" Margin="0,0,10,0" Height="160" HorizontalAlignment="Right" Width="450" Style="{DynamicResource fromNoTitle}" Tag="Start">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding ViewData.MorkS_OrderCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日订单数</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.RobotStatu,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="Lime"></Setter>
- <Style.Triggers>
- <Trigger Property="Text" Value="待机">
- <Setter Property="Foreground" Value="Yellow"/>
- </Trigger>
- <Trigger Property="Text" Value="故障">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- <Trigger Property="Text" Value="停止">
- <Setter Property="Foreground" Value="Red"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">机器人状态</TextBlock>
- </StackPanel>
- </Grid>
- </GroupBox>
- <GroupBox Margin="10,20,0,0" Height="780" Width="450" Header="设备当前状态" Style="{DynamicResource from}" Tag="Start">
- <StackPanel>
- <GroupBox Margin="0,10,0,0" Header="煮面炉状态监控"></GroupBox>
- <Grid Height="100" Margin="0,10,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[0]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉1号</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[1]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉2号</TextBlock>
- </StackPanel>
- </Grid>
- <Grid Height="100" Margin="0,10,0,0" >
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[2]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉3号</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[3]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉4号</TextBlock>
- </StackPanel>
- </Grid>
- <Grid Height="100" Margin="0,10,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[4]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉5号</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#FFD2C106"></Setter>
- <Setter Property="Text" Value="空闲"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_NoodleUpOrDown[5]}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="煮面"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">煮面炉6号</TextBlock>
- </StackPanel>
- </Grid>
-
- <GroupBox Margin="0,40,0,0" Header="其他状态检测"></GroupBox>
- <Grid Height="100" Margin="0,10,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#a70909"></Setter>
- <Setter Property="Text" Value="加热中"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.MorkS_Temp}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="100°C"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">温度状态</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#a70909"></Setter>
- <Setter Property="Text" Value="缺碗"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.MorkS_NoBowMeas1}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="充足"></Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding ViewData.MorkS_NoBowMeas1}" Value="false">
- <Setter Property="Foreground" Value="#a70909"/>
- <Setter Property="Text" Value="缺大碗"></Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding ViewData.MorkS_NoBowMeas2}" Value="false">
- <Setter Property="Foreground" Value="#a70909"/>
- <Setter Property="Text" Value="缺小碗"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">缺碗检测</TextBlock>
- </StackPanel>
-
- </Grid>
- <Grid Height="100" Margin="0,10,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
-
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding ViewData.MorkS_BinLocation,StringFormat={}{0} 号}"/>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">料仓位置</TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Center" FontSize="42" >
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Foreground" Value="#a70909"></Setter>
- <Setter Property="Text" Value="缺面"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ViewData.Morks_SiloMeasDown}" Value="true">
- <Setter Property="Foreground" Value="Lime"/>
- <Setter Property="Text" Value="充足"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">料仓物料检测</TextBlock>
- </StackPanel>
- </Grid>
- </StackPanel>
- </GroupBox>
- </StackPanel>
- </Grid>
- </UserControl>
|