349 lines
21 KiB
XML
349 lines
21 KiB
XML
<Page x:Class="Seyounth.Hyosung.Views.Pages.HomeViewPage"
|
|
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:Seyounth.Hyosung.Views.Pages"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="800" d:DesignWidth="1500"
|
|
d:DataContext="{d:DesignInstance local:HomeViewPage,
|
|
IsDesignTimeCreatable=True}">
|
|
|
|
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="16"
|
|
FontSize="22"
|
|
materialDesign:ElevationAssist.Elevation="Dp6"
|
|
Header="码垛工位1执行状态"
|
|
Style="{StaticResource MaterialDesignCardGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack1.TrayCode}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack1.VarietyCode}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack1.Layers}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack1.TotalCount}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack1.CurrentCount}"
|
|
VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
<GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息">
|
|
<ListView
|
|
ItemsSource="{Binding ViewModel.Stack1.Yarns}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding ScanCode }"
|
|
Header="序号" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding QrCode}"
|
|
Header="二维码" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding Lot}"
|
|
Header="Lot" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding StackTime}"
|
|
Header="码垛时间" />
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</GroupBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
Margin="16"
|
|
FontSize="22"
|
|
materialDesign:ElevationAssist.Elevation="Dp6"
|
|
Header="码垛工位2执行状态"
|
|
Style="{StaticResource MaterialDesignCardGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack2.TrayCode}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack2.VarietyCode}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack2.Layers}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack2.TotalCount}"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" />
|
|
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
|
|
Text="{Binding ViewModel.Stack2.CurrentCount}"
|
|
VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
<GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息">
|
|
<ListView
|
|
ItemsSource="{Binding ViewModel.Stack2.Yarns}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding ScanCode }"
|
|
Header="序号" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding QrCode}"
|
|
Header="二维码" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding Lot}"
|
|
Header="Lot" />
|
|
<GridViewColumn
|
|
DisplayMemberBinding="{Binding StackTime}"
|
|
Header="码垛时间" />
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</GroupBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<GroupBox
|
|
Width="500"
|
|
Margin="16"
|
|
FontSize="22"
|
|
materialDesign:ElevationAssist.Elevation="Dp6"
|
|
Header="上料区执行标准"
|
|
Style="{StaticResource MaterialDesignCardGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Text="品类:" />
|
|
<ComboBox x:Name="VarietyComboBox" Grid.Column="1" Margin="10" Grid.Row="0"
|
|
Foreground="White"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Right"
|
|
SelectionChanged="VarietyComboBox_OnSelectionChanged"
|
|
ItemsSource="{Binding ViewModel.Varieties}"
|
|
SelectedItem="{Binding ViewModel.SelectedVariety, Mode=TwoWay}"
|
|
DisplayMemberPath="Name" />
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="0" Text="纱车类型:" />
|
|
<ComboBox x:Name="YarnCarTypeComboBox" Grid.Column="1" Margin="10" Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Right"
|
|
Foreground="White"
|
|
ItemsSource="{Binding ViewModel.YarnCarTypes}" />
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="2" Grid.Column="0" Text="码垛层数:" />
|
|
<TextBox Grid.Column="1" Margin="10" Grid.Row="2" IsEnabled="False"
|
|
TextAlignment="Right"
|
|
Foreground="White"
|
|
Text="{Binding ViewModel.SelectedVariety.StackingLayers}" />
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="3" Grid.Column="0" Text="总数:" />
|
|
<TextBox Grid.Column="1" Margin="10" Grid.Row="3" IsEnabled="False"
|
|
TextAlignment="Right"
|
|
Foreground="White"
|
|
Text="{Binding ViewModel.SelectedVariety.TotalCount}" />
|
|
<TextBlock x:Name="ControlNoTextBlock" Grid.Row="4" Foreground="White" Grid.Column="0" Text="控制号: "
|
|
VerticalAlignment="Center" Margin="10" />
|
|
<Button x:Name="ChangeVarietyButton"
|
|
materialDesign:ButtonProgressAssist.IsIndeterminate="True"
|
|
Click="ChangeVarietyButton_OnClick"
|
|
Margin="20" Grid.Column="1" Grid.Row="4" FontSize="20" Content="切换">
|
|
</Button>
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Width="300"
|
|
Margin="16"
|
|
FontSize="22"
|
|
materialDesign:ElevationAssist.Elevation="Dp6"
|
|
Header="打包区执行标准"
|
|
Style="{StaticResource MaterialDesignCardGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Text="托盘号:" />
|
|
<TextBox TextAlignment="Right" Margin="10" Foreground="White" Grid.Row="0" Grid.Column="1"
|
|
IsEnabled="False" Text="{Binding ViewModel.PackLineOption.TrayCode}" />
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="0" Text="定位套:" />
|
|
<TextBox TextAlignment="Right" Margin="10" Foreground="White" Grid.Row="1" Grid.Column="1"
|
|
IsEnabled="False" Text="{Binding ViewModel.PackLineOption.HeadCount}" />
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Grid.Column="0" Text="顶盖:" />
|
|
<CheckBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center"
|
|
IsChecked="{Binding ViewModel.PackLineOption.IsTop}" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Grid.Column="2" Text="护角:" />
|
|
<CheckBox Grid.Row="0" Grid.Column="3" HorizontalAlignment="Center"
|
|
IsChecked="False" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="0" Text="套箱:" />
|
|
<CheckBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center"
|
|
IsChecked="{Binding ViewModel.PackLineOption.HasBox}" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="2" Text="打带:" />
|
|
<CheckBox Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center"
|
|
IsChecked="{Binding ViewModel.PackLineOption.IsPack}" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="2" Grid.Column="0" Text="缠膜:" />
|
|
<CheckBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center"
|
|
IsChecked="{Binding ViewModel.PackLineOption.IsFilm}" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="2" Grid.Column="2" Text="覆膜:" />
|
|
<CheckBox Grid.Row="2" Grid.Column="3" HorizontalAlignment="Center"
|
|
IsChecked="{Binding ViewModel.PackLineOption.IsLam}" />
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Width="500"
|
|
Margin="16"
|
|
FontSize="22"
|
|
materialDesign:ElevationAssist.Elevation="Dp6"
|
|
Header="贴标区执行状态"
|
|
Style="{StaticResource MaterialDesignCardGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Text="托盘号:" />
|
|
<TextBox TextAlignment="Right" Margin="10" Foreground="White" Grid.Row="0" Grid.Column="1"
|
|
IsEnabled="False" />
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Grid.Column="0" Text="主-贴标数:" />
|
|
<TextBox Foreground="White" IsEnabled="False" Margin="10" Grid.Row="0" Grid.Column="1" />
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="0" Text="主-前:" />
|
|
<CheckBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="2" Grid.Column="0" Text="主-左:" />
|
|
<CheckBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="3" Grid.Column="0" Text="主-后:" />
|
|
<CheckBox Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="4" Grid.Column="0" Text="主-右:" />
|
|
<CheckBox Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="0" Grid.Column="2" Text="副-贴标数:" />
|
|
<TextBox Foreground="White" IsEnabled="False" Margin="10" Grid.Row="0" Grid.Column="3" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="1" Grid.Column="2" Text="副-前:" />
|
|
<CheckBox Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="2" Grid.Column="2" Text="副-左:" />
|
|
<CheckBox Grid.Row="2" Grid.Column="3" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="3" Grid.Column="2" Text="副-后:" />
|
|
<CheckBox Grid.Row="3" Grid.Column="3" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10"
|
|
Foreground="White" Grid.Row="4" Grid.Column="2" Text="副-右:" />
|
|
<CheckBox Grid.Row="4" Grid.Column="3" HorizontalAlignment="Center" />
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Page> |