|
|
|
|
@ -370,28 +370,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DataTemplate x:Key="LocationTemplate">
|
|
|
|
|
<Button Content="{Binding}" Click="LocationButton_Click" Height="50" Margin="0 0 5 10">
|
|
|
|
|
<Button Content="{Binding}" Click="LocationButton_Click" Height="50" Margin="0 0 2 2">
|
|
|
|
|
<Button.Style>
|
|
|
|
|
<Style TargetType="Button">
|
|
|
|
|
<!--有库存绿色#75F76D,无库存但是有空料箱#D78E28,无库存无料箱#4789AE,库位禁用有个小红点-->
|
|
|
|
|
<Setter Property="Background" Value="#75F76D"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding Status}" Value="OutOfStock">
|
|
|
|
|
<Setter Property="Background" Value="#4789AE"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
<DataTrigger Binding="{Binding Status}" Value="EmptyInStock">
|
|
|
|
|
<Setter Property="Background" Value="#D78E28"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Button.Style>
|
|
|
|
|
<Button.ContentTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock Text="{Binding Code}"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
RenderTransformOrigin="0.5, 0.5">
|
|
|
|
|
<TextBlock.RenderTransform>
|
|
|
|
|
<RotateTransform Angle="90"/>
|
|
|
|
|
</TextBlock.RenderTransform>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<Grid>
|
|
|
|
|
<!-- 主内容 -->
|
|
|
|
|
<TextBlock Text="{Binding Code}"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
RenderTransformOrigin="0.5, 0.5">
|
|
|
|
|
<TextBlock.RenderTransform>
|
|
|
|
|
<RotateTransform Angle="90"/>
|
|
|
|
|
</TextBlock.RenderTransform>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
<!-- 圆点 -->
|
|
|
|
|
<Ellipse Width="5" Height="5"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Margin="0,0,0,0"
|
|
|
|
|
Fill="Red" Visibility="{Binding isFreeze}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</Button.ContentTemplate>
|
|
|
|
|
</Button>
|
|
|
|
|
@ -1255,8 +1270,36 @@
|
|
|
|
|
<ComboBoxItem Content="南侧" Tag="1" />
|
|
|
|
|
<ComboBoxItem Content="北侧" Tag="2" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="600 0 0 0">
|
|
|
|
|
<Rectangle Width="50" Height="50" Fill="#75F76D" />
|
|
|
|
|
<TextBlock Text=" 有库存" FontSize="30"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="30 0 0 0">
|
|
|
|
|
<Rectangle Width="50" Height="50" Fill="#D78E28" />
|
|
|
|
|
<TextBlock Text=" 空料箱在库里" FontSize="30"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="30 0 0 0">
|
|
|
|
|
<Rectangle Width="50" Height="50" Fill="#4789AE" />
|
|
|
|
|
<TextBlock Text=" 空库位" FontSize="30"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="30 0 0 0">
|
|
|
|
|
<!-- 包含透明正方形和红点的 Canvas -->
|
|
|
|
|
<Canvas Width="50" Height="50" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
|
<!-- 透明的正方形 -->
|
|
|
|
|
<Rectangle Width="50" Height="50" Fill="Transparent" Stroke="Black" StrokeThickness="1"/>
|
|
|
|
|
<!-- 中间的红点 -->
|
|
|
|
|
<Ellipse Width="10" Height="10" Fill="Red"
|
|
|
|
|
Canvas.Left="20" Canvas.Top="20" />
|
|
|
|
|
</Canvas>
|
|
|
|
|
<TextBlock Text=" 库位锁定" FontSize="30"/>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
|
|
|
|
|