2025-04-10 16:20:00 +08:00
|
|
|
<UserControl xmlns="https://github.com/avaloniaui"
|
|
|
|
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:suki="https://github.com/kikipoulet/SukiUI"
|
|
|
|
xmlns:views="clr-namespace:Seyounth.Hyosung.Ava.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:DataType="views:HomePage"
|
|
|
|
x:Class="Seyounth.Hyosung.Ava.Views.HomePage">
|
|
|
|
<suki:SukiStackPage>
|
|
|
|
<suki:SukiStackPage.Content>
|
|
|
|
<Grid x:Name="首页" RowDefinitions="Auto,*" ColumnDefinitions="*,*">
|
|
|
|
<suki:GlassCard>
|
|
|
|
<suki:GroupBox Header="入车设置">
|
|
|
|
<Grid RowDefinitions="*,*,*,*,*,*,*,*,*" ColumnDefinitions="*,*">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="产品类型" />
|
|
|
|
<ComboBox Grid.Row="0" Grid.Column="1"
|
|
|
|
SelectedValue="{Binding ViewModel.SelectedVariety, Mode=TwoWay}"
|
|
|
|
ItemsSource="{Binding ViewModel.Varieties}"
|
|
|
|
DisplayMemberBinding="{Binding Name}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Text="纱车类型" />
|
|
|
|
<ComboBox Grid.Row="1" Grid.Column="1"
|
|
|
|
SelectedIndex="{Binding ViewModel.SelectedYarnCarTypeIndex, Mode=TwoWay}"
|
|
|
|
ItemsSource="{Binding ViewModel.YarnCarTypes}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" Text="纱车正反面" />
|
|
|
|
<ComboBox Grid.Column="1" Grid.Row="2"
|
|
|
|
SelectedIndex="{Binding ViewModel.SelectedYarnCarSideTypeIndex, Mode=TwoWay}"
|
|
|
|
ItemsSource="{Binding ViewModel.YarnCarSideType}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" Text="当前控制号" />
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="3" Orientation="Horizontal">
|
|
|
|
<TextBox Width="300" Text="{Binding ViewModel.SelectedVariety.LastNo,Mode=TwoWay}" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<Button Margin="10,0,0,0" Classes="Outlined Accent" Content="修改"
|
|
|
|
Command="{Binding ViewModel.ChangeVarietyLastNoCommand }" />
|
2025-04-10 16:20:00 +08:00
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" Text="产品编码" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<TextBox IsEnabled="False" Grid.Column="1" Grid.Row="4"
|
2025-04-10 16:20:00 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Text="{Binding ViewModel.SelectedVariety.Code}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" Text="LOT" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<TextBox IsEnabled="False" Grid.Column="1" Grid.Row="5"
|
2025-04-10 16:20:00 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Text="{Binding ViewModel.SelectedVariety.Lot}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" Text="码垛层数" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<TextBox IsEnabled="False" Grid.Column="1" Grid.Row="6"
|
2025-04-10 16:20:00 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Text="{Binding ViewModel.SelectedVariety.StackingLayers}" />
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" Text="总数" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<TextBox IsEnabled="False" Grid.Column="1" Grid.Row="7"
|
2025-04-10 16:20:00 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Text="{Binding ViewModel.SelectedVariety.TotalCount}" />
|
2025-06-02 17:15:40 +08:00
|
|
|
<Button Grid.Row="8" Grid.Column="1" Content="切换"
|
|
|
|
Command="{Binding ViewModel.ChangeVarietyCommand }" Classes="Outlined" />
|
|
|
|
</Grid>
|
|
|
|
</suki:GroupBox>
|
|
|
|
</suki:GlassCard>
|
|
|
|
<suki:GlassCard Grid.Row="0" Grid.Column="1">
|
|
|
|
<suki:GroupBox Header="便捷设置">
|
|
|
|
<Grid RowDefinitions="*,*,*,*,*,*,*,*,*" ColumnDefinitions="*,*">
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Text="传送至ERP" />
|
|
|
|
<ToggleSwitch x:Name="IsSendToErp" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="0"
|
|
|
|
IsChecked="{Binding ViewModel.IsSendToErp}" />
|
2025-04-10 16:20:00 +08:00
|
|
|
</Grid>
|
|
|
|
</suki:GroupBox>
|
|
|
|
</suki:GlassCard>
|
|
|
|
</Grid>
|
|
|
|
</suki:SukiStackPage.Content>
|
|
|
|
</suki:SukiStackPage>
|
|
|
|
</UserControl>
|