增加贴标区UI

This commit is contained in:
anerx 2025-03-17 03:46:55 +08:00
parent b2aac838c4
commit f494d17e40

View File

@ -20,122 +20,120 @@
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<materialDesign:Card VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="16" <GroupBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="16"
materialDesign:ElevationAssist.Elevation="Dp4"> FontSize="22"
materialDesign:ElevationAssist.Elevation="Dp6"
Header="码垛工位1执行状态"
Style="{StaticResource MaterialDesignCardGroupBox}">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<materialDesign:ColorZone>
<TextBlock Margin="10" Text="码垛工位1" VerticalAlignment="Center" HorizontalAlignment="Center"
FontSize="22" />
</materialDesign:ColorZone>
<StackPanel Grid.Row="1" Orientation="Horizontal"> <StackPanel Grid.Row="1" Orientation="Horizontal">
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack1.TrayCode}" Text="{Binding ViewModel.Stack1.TrayCode}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack1.VarietyCode}" Text="{Binding ViewModel.Stack1.VarietyCode}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack1.Layers}" Text="{Binding ViewModel.Stack1.Layers}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack1.TotalCount}" Text="{Binding ViewModel.Stack1.TotalCount}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack1.CurrentCount}" Text="{Binding ViewModel.Stack1.CurrentCount}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
</StackPanel> </StackPanel>
<GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息"> <GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息">
<ListView <ListView
ItemsSource="{Binding ViewModel.Stack1.Yarns}"> ItemsSource="{Binding ViewModel.Stack1.Yarns}">
<ListView.View> <ListView.View>
<GridView> <GridView>
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding }" DisplayMemberBinding="{Binding ScanCode }"
Header="序号" /> Header="序号" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding QrCode}" DisplayMemberBinding="{Binding QrCode}"
Header="二维码" /> Header="二维码" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding Lot}" DisplayMemberBinding="{Binding Lot}"
Header="Lot" /> Header="Lot" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding StackTime}" DisplayMemberBinding="{Binding StackTime}"
Header="码垛时间" /> Header="码垛时间" />
</GridView> </GridView>
</ListView.View> </ListView.View>
</ListView> </ListView>
</GroupBox> </GroupBox>
</Grid> </Grid>
</materialDesign:Card> </GroupBox>
<materialDesign:Card Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" <GroupBox Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
Margin="16" Margin="16"
materialDesign:ElevationAssist.Elevation="Dp4"> FontSize="22"
materialDesign:ElevationAssist.Elevation="Dp6"
Header="码垛工位2执行状态"
Style="{StaticResource MaterialDesignCardGroupBox}">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<materialDesign:ColorZone>
<TextBlock Margin="10" Text="码垛工位2" VerticalAlignment="Center" HorizontalAlignment="Center"
FontSize="22" />
</materialDesign:ColorZone>
<StackPanel Grid.Row="1" Orientation="Horizontal"> <StackPanel Grid.Row="1" Orientation="Horizontal">
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="托盘号:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack2.TrayCode}" Text="{Binding ViewModel.Stack2.TrayCode}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="品类编号:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack2.VarietyCode}" Text="{Binding ViewModel.Stack2.VarietyCode}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="码垛层数:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack2.Layers}" Text="{Binding ViewModel.Stack2.Layers}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="总数:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack2.TotalCount}" Text="{Binding ViewModel.Stack2.TotalCount}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" /> <TextBlock Foreground="White" Margin="10" FontSize="20" Text="当前:" />
<TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20" <TextBox Foreground="#76ff03" IsEnabled="False" FontSize="20"
Text="{Binding ViewModel.Stack2.CurrentCount}" Text="{Binding ViewModel.Stack2.CurrentCount}"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
</StackPanel> </StackPanel>
<GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息"> <GroupBox Margin="16" FontSize="20" Grid.Row="2" Header="纱信息">
<ListView <ListView
ItemsSource="{Binding ViewModel.Stack2.Yarns}"> ItemsSource="{Binding ViewModel.Stack2.Yarns}">
<ListView.View> <ListView.View>
<GridView> <GridView>
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding }" DisplayMemberBinding="{Binding ScanCode }"
Header="序号" /> Header="序号" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding QrCode}" DisplayMemberBinding="{Binding QrCode}"
Header="二维码" /> Header="二维码" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding Lot}" DisplayMemberBinding="{Binding Lot}"
Header="Lot" /> Header="Lot" />
<GridViewColumn <GridViewColumn
DisplayMemberBinding="{Binding StackTime}" DisplayMemberBinding="{Binding StackTime}"
Header="码垛时间" /> Header="码垛时间" />
</GridView> </GridView>
</ListView.View> </ListView.View>
</ListView> </ListView>
</GroupBox> </GroupBox>
</Grid> </Grid>
</materialDesign:Card> </GroupBox>
</Grid> </Grid>
<StackPanel Grid.Row="1" Orientation="Horizontal"> <StackPanel Grid.Row="1" Orientation="Horizontal">
<GroupBox <GroupBox
@ -282,10 +280,6 @@
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid> <Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
@ -294,16 +288,14 @@
Foreground="White" Grid.Row="0" Text="托盘号:" /> Foreground="White" Grid.Row="0" Text="托盘号:" />
<TextBox TextAlignment="Right" Margin="10" Foreground="White" Grid.Row="0" Grid.Column="1" <TextBox TextAlignment="Right" Margin="10" Foreground="White" Grid.Row="0" Grid.Column="1"
IsEnabled="False" /> IsEnabled="False" />
<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" />
</Grid> </Grid>
<Grid Grid.Row="1"> <Grid Grid.Row="1">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
@ -312,28 +304,43 @@
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock VerticalAlignment="Center" Margin="10" <TextBlock VerticalAlignment="Center" Margin="10"
Foreground="White" Grid.Row="0" Grid.Column="0" Text="顶盖:" /> Foreground="White" Grid.Row="0" Grid.Column="0" Text="主-贴标数:" />
<CheckBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" /> <TextBox Foreground="White" IsEnabled="False" Margin="10" Grid.Row="0" Grid.Column="1" />
<TextBlock VerticalAlignment="Center" Margin="10" <TextBlock VerticalAlignment="Center" Margin="10"
Foreground="White" Grid.Row="0" Grid.Column="2" Text="护角:" /> Foreground="White" Grid.Row="1" Grid.Column="0" Text="主-前:" />
<CheckBox Grid.Row="0" Grid.Column="3" HorizontalAlignment="Center" />
<TextBlock VerticalAlignment="Center" Margin="10"
Foreground="White" Grid.Row="1" Grid.Column="0" Text="套箱:" />
<CheckBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" /> <CheckBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" />
<TextBlock VerticalAlignment="Center" Margin="10" <TextBlock VerticalAlignment="Center" Margin="10"
Foreground="White" Grid.Row="1" Grid.Column="2" Text="打带:" /> Foreground="White" Grid.Row="2" Grid.Column="0" Text="主-左:" />
<CheckBox Grid.Row="1" Grid.Column="3" 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" /> <CheckBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" />
<TextBlock VerticalAlignment="Center" Margin="10" <TextBlock VerticalAlignment="Center" Margin="10"
Foreground="White" Grid.Row="2" Grid.Column="2" Text="覆膜:" /> 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" /> <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>
</Grid> </Grid>
</GroupBox> </GroupBox>