|
|
|
@ -4,8 +4,15 @@
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:SlnMesnac.WPF.Page"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
mc:Ignorable="d" FontFamily="Microsoft YaHei"
|
|
|
|
|
xmlns:local1="clr-namespace:SlnMesnac.WPF.Converter.AgvAndTask"
|
|
|
|
|
d:DesignHeight="750" d:DesignWidth="1920" Background="Transparent">
|
|
|
|
|
<Control.Resources>
|
|
|
|
|
<local1:TaskStatusConverter x:Key="TaskStatusConverter"/>
|
|
|
|
|
<local1:AgvNameConverter x:Key="AgvNameConverter"/>
|
|
|
|
|
<!-- 确保类名大小写正确 -->
|
|
|
|
|
</Control.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid Margin="5,5">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
@ -25,26 +32,26 @@
|
|
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0,0,0,0" CornerRadius="0" Background="Transparent" Margin="1,6,5,5" >
|
|
|
|
|
<TextBlock Text="AGV实时状态" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="AGV实时状态" FontSize="35" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!--计划列表-->
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding PalletTaskDataGrid}" Background="Transparent"
|
|
|
|
|
FontSize="15" ColumnHeaderHeight="35"
|
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,10,5,5">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding WcsAgvStatusDataGrid}" Background="Transparent"
|
|
|
|
|
FontSize="20" ColumnHeaderHeight="75"
|
|
|
|
|
RowHeight="61" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="2" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
Foreground="#FFFFFF" >
|
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding AgvName}" Header="AGV名称" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Online}" Header="在线状态" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding AgvName}" Header="AGV名称信息" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Online}" Header="在线状态" Width="*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Battery}" Header="电量" Width="*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Speed}" Header="速度" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Speed}" Header="速度" Width="*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding PosX}" Header="X轴坐标" Width="*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding PosY}" Header="Y轴坐标" Width="*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Timestamp}" Header="更新时间" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Timestamp,StringFormat=\{0:yyyy-MM-dd HH:mm:ss \}}" Header="更新时间" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
@ -59,26 +66,28 @@
|
|
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0,0,0,0" CornerRadius="0" Background="Transparent" Margin="1,6,5,5" >
|
|
|
|
|
<TextBlock Text="AGV任务列表" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="AGV任务列表" FontSize="35" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!--计划列表-->
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding BarCodeTaskDataGrid}" Background="Transparent"
|
|
|
|
|
FontSize="15" ColumnHeaderHeight="35"
|
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding WcsTaskDataGrid}" Background="Transparent"
|
|
|
|
|
FontSize="20" ColumnHeaderHeight="75"
|
|
|
|
|
RowHeight="61" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="2" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
Foreground="#FFFFFF" >
|
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ObjId}" Header="序号" Width="1*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding BarCode}" Header="条码" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding PlanCode}" Header="计划编号" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料编号" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding RecordTime ,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="记录时间" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding ObjId}" Header="序号" Width="1*" IsReadOnly="True"/>-->
|
|
|
|
|
<DataGridTextColumn Binding="{Binding NextPointId,Converter={StaticResource AgvNameConverter} }" Header="agv名称信息" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TaskType}" Header="任务类型" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TaskStatus, Converter={StaticResource TaskStatusConverter}}" Header="任务状态" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CurrPointNo}" Header="起始站点" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding EndPointNo}" Header="目的站点" Width="3*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CreateTime ,StringFormat=\{0:yyyy-MM-dd HH:mm:ss \}}" Header="创建时间" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding RealEndTime ,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="完成时间" Width="1*" IsReadOnly="True"/>-->
|
|
|
|
|
<DataGridTemplateColumn Header="操作" Width="2*">
|
|
|
|
|
<!--<DataGridTemplateColumn Header="操作" Width="2*">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
@ -88,7 +97,7 @@ Foreground="#FFFFFF" >
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
</DataGridTemplateColumn>-->
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Border>
|
|
|
|
|