|
|
|
@ -6,11 +6,12 @@
|
|
|
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
|
|
|
xmlns:local="clr-namespace:Aucma.Core.Palletiz.Views"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="800"
|
|
|
|
|
d:DesignHeight="800" FontFamily="Microsoft YaHei"
|
|
|
|
|
d:DesignWidth="1000" >
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
@ -65,59 +66,6 @@
|
|
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type Slider}">
|
|
|
|
|
<Style.Resources>
|
|
|
|
|
<!-- 重写重复触发按钮的样式 -->
|
|
|
|
|
<Style x:Key="RepeatButtonStyle" TargetType="{x:Type RepeatButton}">
|
|
|
|
|
<Setter Property="Focusable" Value="false" />
|
|
|
|
|
<Setter Property="IsTabStop" Value="false" />
|
|
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
<Setter Property="Width" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</Style.Resources>
|
|
|
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
|
|
|
|
|
<Setter Property="SmallChange" Value="1" />
|
|
|
|
|
<!-- 重写Slider的模板 -->
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Slider}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBox Grid.RowSpan="2" Height="Auto" Margin="0" Padding="0" VerticalAlignment="Stretch"
|
|
|
|
|
VerticalContentAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Value}">
|
|
|
|
|
<!-- 给TextBox绑定上下命令 -->
|
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
|
<KeyBinding Gesture="Up" Command="{x:Static Slider.IncreaseSmall}" />
|
|
|
|
|
<KeyBinding Gesture="Down" Command="{x:Static Slider.DecreaseSmall}" />
|
|
|
|
|
<KeyBinding Gesture="PageUp" Command="{x:Static Slider.IncreaseLarge}" />
|
|
|
|
|
<KeyBinding Gesture="PageDown" Command="{x:Static Slider.DecreaseLarge}" />
|
|
|
|
|
</TextBox.InputBindings>
|
|
|
|
|
</TextBox>
|
|
|
|
|
<RepeatButton Grid.Row="0" Grid.Column="1" Command="{x:Static Slider.IncreaseSmall}"
|
|
|
|
|
Style="{StaticResource RepeatButtonStyle}">
|
|
|
|
|
<Path Data="M4,0 L0,4 8,4 Z" Fill="Black" />
|
|
|
|
|
</RepeatButton>
|
|
|
|
|
<RepeatButton Grid.Row="1" Grid.Column="1" Command="{x:Static Slider.DecreaseSmall}"
|
|
|
|
|
Style="{StaticResource RepeatButtonStyle}">
|
|
|
|
|
<Path Data="M0,0 L4,4 8,0 Z" Fill="Black" />
|
|
|
|
|
</RepeatButton>
|
|
|
|
|
<!-- 由于Slider的内部实现要求存在这些必要组件,所以必须保留,但是设置为隐藏即可 -->
|
|
|
|
|
<Border x:Name="TrackBackground" Visibility="Collapsed">
|
|
|
|
|
<Rectangle x:Name="PART_SelectionRange" Visibility="Collapsed" />
|
|
|
|
|
</Border>
|
|
|
|
|
<Thumb x:Name="Thumb" Visibility="Collapsed" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="{x:Type DatePickerTextBox}">
|
|
|
|
|
<Setter Property="Background" Value="#0288d1" />
|
|
|
|
|
</Style>
|
|
|
|
@ -129,7 +77,7 @@
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="微软雅黑"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Setter Property="BorderBrush" Value="#0288d1"/>
|
|
|
|
@ -158,55 +106,55 @@
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="0" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="当前工位" Foreground="White"/>
|
|
|
|
|
<TextBlock Text="当前工位" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="产品分垛" Foreground="White" FontWeight="Bold" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="产品分垛" Foreground="White" FontWeight="Bold" FontSize="30"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="1" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="产品条码" Foreground="White" />
|
|
|
|
|
<TextBlock Text="产品条码" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="产品型号" Foreground="White" />
|
|
|
|
|
<TextBlock Text="产品型号" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="1" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="订单数量" Foreground="White" />
|
|
|
|
|
<TextBlock Text="订单数量" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="1" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="提示信息" Foreground="White" />
|
|
|
|
|
<TextBlock Text="提示信息" Foreground="White" FontSize="20" />
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="2">
|
|
|
|
|
<TextBlock Text="312799000093D8U0050" Foreground="White" />
|
|
|
|
|
<TextBlock Text="312799000093D8U0050" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="2">
|
|
|
|
|
<TextBlock Text="SC-279,C,特许" Foreground="White" />
|
|
|
|
|
<TextBlock Text="SC-279,C,特许" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="2">
|
|
|
|
|
<TextBlock Text="76" Foreground="White" />
|
|
|
|
|
<TextBlock Text="76" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="3">
|
|
|
|
|
<TextBlock Text="获取信息成功3127991000093D8U0050 返回值 : Y.上传条码失败E,条码重复,上传条码失败E,条码重复上传" Foreground="White" />
|
|
|
|
|
<TextBlock Text="获取信息成功3127991000093D8U0050 返回值 : Y.上传条码失败E,条码重复,上传条码失败E,条码重复上传" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="3" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="扫描时间" Foreground="White" />
|
|
|
|
|
<TextBlock Text="扫描时间" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="3" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="订单编号" Foreground="White" />
|
|
|
|
|
<TextBlock Text="订单编号" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="3" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="订单已上传" Foreground="White" />
|
|
|
|
|
<TextBlock Text="订单已上传" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="4">
|
|
|
|
|
<TextBlock Text="2023-08-29 13:10:53" Foreground="White" />
|
|
|
|
|
<TextBlock Text="2023-08-29 13:10:53" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="4">
|
|
|
|
|
<TextBlock Text="000011203687" Foreground="White" />
|
|
|
|
|
<TextBlock Text="000011203687" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="4">
|
|
|
|
|
<TextBlock Text="48" Foreground="White" />
|
|
|
|
|
<TextBlock Text="48" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="5" Background="#1157b9">
|
|
|
|
|
<TextBlock Text="实际产量" Foreground="White" />
|
|
|
|
|
<TextBlock Text="实际产量" Foreground="White" FontSize="20"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Grid.Row="1" Grid.RowSpan="2" Grid.Column="5">
|
|
|
|
|
<TextBlock Text="255" Foreground="White" FontSize="40" FontWeight="Bold"/>
|
|
|
|
|