You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
265 lines
20 KiB
Plaintext
265 lines
20 KiB
Plaintext
8 months ago
|
<UserControl x:Class="SlnMesnac.WPF.Page.IndexControl"
|
||
|
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:SlnMesnac.WPF.Page"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="450" d:DesignWidth="800" Background="Transparent">
|
||
|
|
||
|
<UserControl.Resources>
|
||
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
<Setter Property="FontSize" Value="20"/>
|
||
|
</Style>
|
||
|
<Style TargetType="DataGrid">
|
||
|
<!--网格线颜色-->
|
||
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
||
|
<Setter Property="Background" Value="#1152AC" />
|
||
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
||
|
<Setter Property="HorizontalGridLinesBrush">
|
||
|
<Setter.Value>
|
||
|
<SolidColorBrush Color="#4285DE"/>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
<Setter Property="VerticalGridLinesBrush">
|
||
|
<Setter.Value>
|
||
|
<SolidColorBrush Color="#1152AC"/>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<!--列头标题栏样式-->
|
||
|
<Style TargetType="DataGridColumnHeader">
|
||
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
||
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
||
|
<Setter Property="Foreground" Value="Black"/>-->
|
||
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
||
|
<Setter Property="Height" Value="40"/>
|
||
|
<Setter Property="FontSize" Value="18"/>
|
||
|
<Setter Property="Background" Value="#4285DE"/>
|
||
|
<Setter Property="Foreground" Value="White"/>
|
||
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
||
|
</Style>
|
||
|
|
||
|
<!--单元格样式-->
|
||
|
<Style TargetType="DataGridCell">
|
||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||
|
<Setter Property="BorderThickness" Value="0" />
|
||
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
||
|
<Setter Property="Height" Value="40"/>
|
||
|
<Setter Property="FontSize" Value="18"/>
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||
|
<Grid Background="{TemplateBinding Background}" >
|
||
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
<Style.Triggers>
|
||
|
<Trigger Property="IsSelected" Value="True">
|
||
|
<Setter Property="Background" Value="#4285DE"/>
|
||
|
<Setter Property="Foreground" Value="White"/>
|
||
|
</Trigger>
|
||
|
<DataTrigger Binding="{Binding ExecuteStatus}" Value="2">
|
||
|
<Setter Property="Background" Value="Green" />
|
||
|
</DataTrigger>
|
||
|
</Style.Triggers>
|
||
|
</Style>
|
||
|
</UserControl.Resources>
|
||
|
|
||
|
<Grid Margin="1,1">
|
||
|
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="1*"/>
|
||
|
<RowDefinition Height="1*"/>
|
||
|
<RowDefinition Height="10*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderBrush="Blue" BorderThickness="2" Margin="0,5,0,5"></Border>
|
||
|
<Border Grid.Row="1" BorderBrush="Blue" BorderThickness="2" Margin="0,5,0,5"></Border>
|
||
|
<Border Grid.Row="2" BorderBrush="Blue" BorderThickness="0" Margin="0,5,0,5">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="3*"/>
|
||
|
<ColumnDefinition Width="7*"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Border Grid.Column="0" x:Name="areaA_outerBorder" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,5,0" >
|
||
|
<Border.Effect>
|
||
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
||
|
</Border.Effect>
|
||
|
<ItemsControl Grid.Column="0" ItemsSource="{Binding AreaA_SpaceInfo}" VerticalAlignment="Bottom" HorizontalAlignment="Center">
|
||
|
<ItemsControl.ItemsPanel>
|
||
|
<ItemsPanelTemplate>
|
||
|
<WrapPanel Orientation="Vertical"></WrapPanel>
|
||
|
</ItemsPanelTemplate>
|
||
|
</ItemsControl.ItemsPanel>
|
||
|
<ItemsControl.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<ContentControl x:Name="ctrl" Width="{Binding ActualWidth, ElementName=areaA_outerBorder}" Margin="5,5">
|
||
|
<ContentControl.Style>
|
||
|
<Style TargetType="ContentControl">
|
||
|
<Setter Property="Height" Value="40" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate>
|
||
|
<Border Background="#4D96E0" >
|
||
|
<!--<Label Content="{Binding SpaceName}" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>-->
|
||
|
<Button Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding ObjId}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
|
||
|
<TextBlock Text="{Binding MaterialType}" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||
|
|
||
|
</Button>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
<Style.Triggers>
|
||
|
<DataTrigger Binding="{Binding SpaceType}" Value="2">
|
||
|
<Setter Property="Height" Value="70" />
|
||
|
</DataTrigger>
|
||
|
</Style.Triggers>
|
||
|
</Style>
|
||
|
</ContentControl.Style>
|
||
|
</ContentControl>
|
||
|
</DataTemplate>
|
||
|
</ItemsControl.ItemTemplate>
|
||
|
</ItemsControl>
|
||
|
</Border>
|
||
|
<Border Grid.Column="1" BorderBrush="Blue" BorderThickness="0" Margin="5,0,0,0">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="6*"/>
|
||
|
<RowDefinition Height="4*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderBrush="Blue" BorderThickness="0" Margin="0,0,0,5">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="1*"/>
|
||
|
<RowDefinition Height="5*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderBrush="#1254AB" BorderThickness="0" Margin="0,0,0,5">
|
||
|
|
||
|
<!--<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<StackPanel Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
<Label Content="A区扫码成功" FontSize="20" Foreground="Green"/>
|
||
|
</StackPanel>
|
||
|
<StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
<Label Content="B区扫码失败" FontSize="20" Foreground="Red" />
|
||
|
</StackPanel>
|
||
|
<Border Grid.Column="2" >
|
||
|
<Button Content="异常入库" FontSize="16" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF9900" BorderBrush="#FF9900" />
|
||
|
</Border>
|
||
|
</Grid>-->
|
||
|
<StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,0,0,0">
|
||
|
<Button Content="异常入库" FontSize="18" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Style="{StaticResource BUTTON_AGREE}" Width="150" Height="40" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
|
||
|
<Button Content="货道设置" FontSize="18" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Style="{StaticResource BUTTON_AGREE}" Width="150" Height="40" Background="#5283D7" BorderBrush="#5283D7" Margin="0,0,10,0"/>
|
||
|
<Button Content="{Binding InStoreAmount}" FontSize="18" CommandParameter="{Binding Name,ElementName=Exit}" Style="{StaticResource BUTTON_AGREE}" Width="150" Height="40" Background="Transparent" Margin="0,0,10,0"/>
|
||
|
</StackPanel>
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" BorderBrush="Blue" BorderThickness="0" Margin="0,0,0,0">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="6*"/>
|
||
|
<ColumnDefinition Width="4*"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<DataGrid Grid.Column="0" Name="DG" ItemsSource="{Binding InstoreTask}" Background="Transparent"
|
||
|
FontSize="20" ColumnHeaderHeight="35"
|
||
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
||
|
Foreground="#FFFFFF" >
|
||
|
<!--resourceStyle 399行修改选中字体颜色-->
|
||
|
<DataGrid.Columns>
|
||
|
<DataGridTextColumn Binding="{Binding taskCode}" Header="序号" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编码" Width="2*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="2*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding spaceCode}" Header="入库货道" Width="1*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:MM月dd日 HH:mm\}}" Header="扫描时间" Width="2*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
|
||
|
</DataGrid.Columns>
|
||
|
</DataGrid>
|
||
|
<!--日志信息-->
|
||
|
<Border Grid.Column="1" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,0,0,0">
|
||
|
<Border.Effect>
|
||
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
||
|
</Border.Effect>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="1*"/>
|
||
|
<RowDefinition Height="9*"/>
|
||
|
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0,0,0,0" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
||
|
<TextBlock Text="系统监控" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||
|
</Border>
|
||
|
|
||
|
<!--日志信息-->
|
||
|
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
||
|
<ListBox x:Name="listBox" ItemsSource="{Binding LogInfoListBox}" FontSize="15" Foreground="#FFFFFF" Background="Transparent" BorderBrush="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
<!--<Border Grid.Row="1" BorderBrush="Blue" BorderThickness="2" Margin="0,5,0,0"></Border>-->
|
||
|
<Border Grid.Row="1" x:Name="areaB_outerBorder" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="0,0,0,0" >
|
||
|
<Border.Effect>
|
||
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
||
|
</Border.Effect>
|
||
|
<ItemsControl Grid.Column="0" ItemsSource="{Binding AreaB_SpaceInfo}" VerticalAlignment="Center" HorizontalAlignment="Right">
|
||
|
<ItemsControl.ItemsPanel>
|
||
|
<ItemsPanelTemplate>
|
||
|
<WrapPanel Orientation="Vertical"></WrapPanel>
|
||
|
</ItemsPanelTemplate>
|
||
|
</ItemsControl.ItemsPanel>
|
||
|
<ItemsControl.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<ContentControl x:Name="ctrl" Height="{Binding ActualHeight, ElementName=areaB_outerBorder}" Margin="5,5">
|
||
|
<ContentControl.Style>
|
||
|
<Style TargetType="ContentControl">
|
||
|
<Setter Property="Width" Value="40" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate>
|
||
|
<StackPanel Background="#4D96E0" Height="{Binding ActualHeight, ElementName=areaB_outerBorder}" Orientation="Vertical">
|
||
|
<!--<Label Content="{Binding SpaceName}" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>-->
|
||
|
<Button Height="{Binding ActualHeight, ElementName=areaB_outerBorder}" Command="{Binding DataContext.UpdateInStoreFlagCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" CommandParameter="{Binding ObjId}" Style="{StaticResource BUTTON_AGREE}" BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
|
||
|
<TextBlock Text="{Binding MaterialType}" Foreground="White" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="Wrap"/>
|
||
|
|
||
|
|
||
|
</Button>
|
||
|
</StackPanel>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
<Style.Triggers>
|
||
|
<DataTrigger Binding="{Binding SpaceType}" Value="2">
|
||
|
<Setter Property="Width" Value="70" />
|
||
|
</DataTrigger>
|
||
|
</Style.Triggers>
|
||
|
</Style>
|
||
|
</ContentControl.Style>
|
||
|
</ContentControl>
|
||
|
</DataTemplate>
|
||
|
</ItemsControl.ItemTemplate>
|
||
|
</ItemsControl>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</UserControl>
|