|
- <UserControl
- x:Class="BPASmartClient.JXJFoodBigStation.View.HardwareStatusView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.JXJFoodBigStation.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
- d:DesignHeight="1080"
- d:DesignWidth="1920"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:HardwareStatusViewModel />
- </UserControl.DataContext>
-
- <!--<Grid>
-
- <ListView
- Height="150"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding TopDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Columns="10" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Background="Transparent">
- <Grid Height="100">
- <pry:MotorBottle
- Height="100"
- CurrentValue="{Binding Weight}"
- IsRun="{Binding RunStatus}"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <UniformGrid Columns="10" Visibility="Collapsed">
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="66"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="40"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="88"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="25"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="97"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="10"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="60"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="96"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- </UniformGrid>
-
- <Grid x:Name="gr" Grid.Row="1">
-
- <pry:ConveyorBelt
- Grid.Row="1"
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="0,0,400,0"
- ConveyorBeltWidth="70"
- Direction="1"
- StrokeBrush="Red"
- StrokeDashArray="1.5 1.5"
- StrokeFillBrush="Red"
- StrokeThickness="2" />
- </Grid>
-
- <UniformGrid Grid.Row="2" Columns="10">
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="89"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="13"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="31"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="96"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="80"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="26"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="20"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="100"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- </UniformGrid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="0.5*" />
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- </Grid.RowDefinitions>
- </Grid>-->
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.5*" />
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- </Grid.RowDefinitions>
-
- <!--#region 顶部料仓-->
- <Grid Name="TopGrid">
- <ListView
- Height="{Binding ElementName=TopGrid, Path=ActualHeight}"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding TopDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <!--<WrapPanel Orientation="Horizontal" IsItemsHost="True"/>-->
- <UniformGrid
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Columns="8"
- Rows="1" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid Height="220">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding DeviceName}" />
-
- <StackPanel
- Grid.Row="1"
- Margin="0,25,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" kg" />
- </StackPanel>
-
-
- <StackPanel
- Grid.Row="1"
- Margin="0,70,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding DeviceNum}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" 号仓" />
- </StackPanel>
-
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
-
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- <!--#endregion-->
-
- <Grid x:Name="gr" Grid.Row="1" Margin="0,50,0,0">
- <pry:ConveyorBelt
- Grid.Row="1"
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="10,0,30,0"
- ConveyorBeltWidth="70"
- Direction="1"
- StrokeBrush="#00BEFA"
- StrokeDashArray="1.5 1.5"
- StrokeFillBrush="#00BEFA"
- StrokeThickness="2" />
- </Grid>
-
- <!--#region 底部料仓-->
- <Grid Grid.Row="2">
- <ListView
- VerticalAlignment="Top"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding BottomDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Columns="8"
- Rows="1" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid Height="220">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBlock
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding DeviceName}" />
-
- <StackPanel
- Grid.Row="1"
- Margin="0,25,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" kg" />
- </StackPanel>
-
-
- <StackPanel
- Grid.Row="1"
- Margin="0,70,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding DeviceNum}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" 号仓" />
- </StackPanel>
-
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
-
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- <!--#endregion-->
-
- </Grid>
- </UserControl>
|