添加项目文件。

This commit is contained in:
Administrator
2026-06-29 14:46:32 +08:00
parent 9a9c508618
commit d9e0324b1d
175 changed files with 17983 additions and 0 deletions

View File

@@ -0,0 +1,203 @@
<Window x:Class="WPFWCSDemo.Views.ControllerView"
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:local="clr-namespace:WPFWCSDemo.Views"
xmlns:vm="clr-namespace:WPFWCSDemo.ViewModels"
d:DataContext="{d:DesignInstance Type=vm:ControllerViewModel}"
mc:Ignorable="d"
Title="ControllerView" Height="450" Width="800"
x:Name="DeviceController">
<Window.Resources>
<Style TargetType="Button" BasedOn="{StaticResource MaterialDesignRaisedButton}">
<Setter Property="Width" Value="110"/>
<Setter Property="Margin" Value="10 0"/>
</Style>
<Style TargetType="TextBlock" BasedOn="{StaticResource MaterialDesignBody1TextBlock}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="12"/>
</Style>
<Style TargetType="StackPanel" >
<Setter Property="Orientation" Value="Horizontal"/>
</Style>
<Style TargetType="TextBox" BasedOn="{StaticResource MaterialDesignTextBoxBase}">
<Setter Property="Width" Value="50"/>
</Style>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height=".9*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical">
<TextBlock Text="平台入口"/>
<StackPanel>
<Button Content="平台出库请求" Command="{Binding ConvPort2StockOutRequestCommand}"/>
<TextBlock Text="{Binding StrConvPort2StockOutRequest}"/>
</StackPanel>
<StackPanel>
<Button Content="2层入库请求" Command="{Binding ConvPort2StockInRequestCommand}"/>
<TextBlock Text="{Binding StrConvPort2StockInRequest}"/>
</StackPanel>
<StackPanel>
<Button Content="空闲" Command="{Binding ConvPort2FreeCommand}"/>
<TextBlock Text="{Binding StrConvPort2Free}"/>
</StackPanel>
<StackPanel>
<Button Content="自动" Command="{Binding ConvPort2ModeCommand}"/>
<TextBlock Text="{Binding StrConvPort2Mode}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding ConvPort2TaskNumberCommand}"/>
<TextBox Text="{Binding StrConvPort2TaskNumber}"/>
</StackPanel>
<StackPanel>
<Button Content="到位" Command="{Binding ConvPort2InPositionCommand}"/>
<TextBlock Text="{Binding StrConvPort2InPosition}"/>
</StackPanel>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical">
<TextBlock Text="1层入口"/>
<StackPanel>
<Button Content="1层出库请求" Command="{Binding ConvPort1StockOutRequestCommand}"/>
<TextBlock Text="{Binding StrConvPort1StockOutRequest}"/>
</StackPanel>
<StackPanel>
<Button Content="1层入库请求" Command="{Binding ConvPort1StockInRequestCommand}"/>
<TextBlock Text="{Binding StrConvPort1StockInRequest}"/>
</StackPanel>
<StackPanel>
<Button Content="空闲" Command="{Binding ConvPort1FreeCommand}"/>
<TextBlock Text="{Binding StrConvPort1Free}"/>
</StackPanel>
<StackPanel>
<Button Content="自动" Command="{Binding ConvPort1ModeCommand}"/>
<TextBlock Text="{Binding StrConvPort1Mode}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding ConvPort1TaskNumberCommand}"/>
<TextBox Text="{Binding StrConvPort1TaskNumber}"/>
</StackPanel>
<StackPanel>
<Button Content="到位" Command="{Binding ConvPort1InPositionCommand}"/>
<TextBlock Text="{Binding StrConvPort1InPosition}"/>
</StackPanel>
</StackPanel>
<!--提升机-->
<StackPanel Grid.Column="2" Orientation="Vertical">
<TextBlock Text="提升机"/>
<StackPanel>
<Button Content="允许下发" Command="{Binding LFTPermissionCommand}"/>
<TextBlock Text="{Binding StrLFTPermission}"/>
</StackPanel>
<StackPanel>
<Button Content="模式" Command="{Binding LFTModeCommand}"/>
<TextBlock Text="{Binding StrLFTMode}"/>
</StackPanel>
<StackPanel>
<Button Content="设备状态" Command="{Binding LFTStateCommand}"/>
<TextBlock Text="{Binding StrLFTState}"/>
</StackPanel>
<StackPanel>
<Button Content="载货状态" Command="{Binding LFTLoadCommand}"/>
<TextBlock Text="{Binding StrLFTLoad}"/>
</StackPanel>
<StackPanel>
<Button Content="阶段" Command="{Binding LFTPhaseCommand}"/>
<TextBlock Text="{Binding StrLFTPhase}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding LFTTaskNumberCommand}"/>
<TextBox Text="{Binding StrLFTTaskNumber}"/>
</StackPanel>
</StackPanel>
<!--RGV-->
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Vertical">
<TextBlock Text="RGV"/>
<StackPanel>
<Button Content="允许下发" Command="{Binding RGVPermissionCommand}"/>
<TextBlock Text="{Binding StrRGVPermission}"/>
</StackPanel>
<StackPanel>
<Button Content="状态" Command="{Binding RGVStateCommand}"/>
<TextBlock Text="{Binding StrRGVState}"/>
</StackPanel>
<StackPanel>
<Button Content="载货状态" Command="{Binding RGVLoadCommand}"/>
<TextBlock Text="{Binding StrRGVLoad}"/>
</StackPanel>
<StackPanel>
<Button Content="阶段" Command="{Binding RGVPhaseCommand}"/>
<TextBlock Text="{Binding StrRGVPhase}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding RGVTaskNumberCommand}"/>
<TextBox Text="{Binding StrRGVTaskNumber}"/>
</StackPanel>
</StackPanel>
<!--巷道口输送机-->
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Vertical">
<TextBlock Text="巷道口输送机"/>
<StackPanel>
<Button Content="空闲" Command="{Binding ConvRoad1FreeCommand}"/>
<TextBlock Text="{Binding StrConvRoad1Free}"/>
</StackPanel>
<StackPanel>
<Button Content="到位" Command="{Binding ConvRoad1InPositionCommand}"/>
<TextBlock Text="{Binding StrConvRoad1InPosition}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding ConvRoad1TaskNumberCommand}"/>
<TextBox Text="{Binding StrConvRoad1TaskNumber}"/>
</StackPanel>
</StackPanel>
<!--堆垛机-->
<StackPanel Grid.Row="1" Grid.Column="2" Orientation="Vertical">
<TextBlock Text="堆垛机"/>
<StackPanel>
<Button Content="允许下发" Command="{Binding StackerPermissionCommand}"/>
<TextBlock Text="{Binding StrStackerPermission}"/>
</StackPanel>
<StackPanel>
<Button Content="自动/待机/无货" Command="{Binding StackerStateCommand}"/>
<TextBlock Text="{Binding StrStackerState}"/>
</StackPanel>
<StackPanel>
<Button Content="阶段" Command="{Binding StackerPhaseCommand}"/>
<TextBlock Text="{Binding StrStackerPhase}"/>
</StackPanel>
<StackPanel>
<Button Content="任务号" Command="{Binding StackerTaskNumberCommand}"/>
<TextBox Text="{Binding StrStackerTaskNumber}"/>
</StackPanel>
</StackPanel>
<!--异常-->
<StackPanel Grid.Row="1" Grid.Column="3" Orientation="Vertical">
<TextBlock Text="异常处理"/>
<StackPanel>
<Button Content="入库有货"/>
<TextBlock Text=""/>
</StackPanel>
<StackPanel>
<Button Content="出库无货"/>
<TextBlock Text=""/>
</StackPanel>
<StackPanel>
<Button Content="重置"/>
</StackPanel>
<Button Content="Quit" Command="{Binding QuitCommand}"/>
</StackPanel>
</Grid>
</Window>