|
|
|
<UserControl x:Class="Aucma.Core.BoxFoam.Views.IndexPageView"
|
|
|
|
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
|
|
|
|
mc:Ignorable="d" Background="#1152AC"
|
|
|
|
d:DesignHeight="1080" FontFamily="Microsoft YaHei"
|
|
|
|
d:DesignWidth="1920" >
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="FontSize" Value="18" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
<!--网格线颜色-->
|
|
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
<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="BorderBrush" Value="#dddddd" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!--单元格样式-->
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
<Setter Property="BorderBrush" Value="Gray" />
|
|
|
|
<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>
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
<Grid Margin="1 5 1 0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<!--扫描信息-->
|
|
|
|
<Border Grid.Row="0" Grid.Column="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="3,1,5,5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="#1157b9" Margin="1,1,3,5" >
|
|
|
|
<TextBlock Text="扫描信息" FontSize="20" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
</Border>
|
|
|
|
<!--扫描信息-->
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,3,5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="0.5*"/>
|
|
|
|
<ColumnDefinition Width="6*"/>
|
|
|
|
<ColumnDefinition Width="0.5*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Column="0" BorderThickness="0" Background="Transparent" CornerRadius="5" >
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border Grid.Column="1" BorderThickness="0" Background="Transparent" CornerRadius="5" Margin="0,10,0,0">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
<TextBlock Text="物料条码" FontSize="18" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 30 0"/>
|
|
|
|
<TextBox FontSize="18" Text="{Binding MaterialBarCode,Mode=TwoWay}" BorderBrush="White" Foreground="White" Width="200" IsReadOnly="True" Margin="0 0 10 0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
|
|
<TextBox FontSize="18" Text="{Binding BeginTime,Mode=TwoWay}" BorderBrush="White" Foreground="White" Width="200" IsReadOnly="True" Margin="10 0 0 0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
<TextBlock Text="物料编码" FontSize="18" Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 30 0"/>
|
|
|
|
<TextBox FontSize="18" Text="{Binding MaterialCode,Mode=TwoWay}" BorderBrush="White" Foreground="White" Width="420" IsReadOnly="True" Margin="0 0 0 0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
<TextBlock Text="物料名称" FontSize="18" Foreground="White" HorizontalAlignment="Left"/>
|
|
|
|
<TextBox FontSize="18" Text="{Binding MaterialName,Mode=TwoWay}" BorderBrush="White" Foreground="White" Width="420" IsReadOnly="True" Margin="30,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
<TextBlock Text="目的信息" FontSize="18" Foreground="White"/>
|
|
|
|
<TextBox FontSize="18" Text="{Binding Destination,Mode=TwoWay}" BorderBrush="White" Foreground="White" Width="420" IsReadOnly="True" Margin="30,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="4" Grid.RowSpan="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
|
<TextBlock Text="提示信息" FontSize="18" Foreground="White"/>
|
|
|
|
<TextBox FontSize="15" BorderBrush="White"
|
|
|
|
MinHeight="70" MaxHeight="100" MinWidth="420" IsReadOnly="True" Foreground="White"
|
|
|
|
VerticalAlignment="Top" Margin="30 0 0 0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
|
|
|
|
AcceptsReturn="True" Text="{Binding Prompt,Mode=TwoWay}"
|
|
|
|
IsEnabled="{Binding Path=IsChecked, ElementName=MaterialDesignOutlinedTextBoxEnabledComboBox}"
|
|
|
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
VerticalScrollBarVisibility="Auto" />
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<!--日志信息-->
|
|
|
|
<Border Grid.Row="0" Grid.Column="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="#1157b9" Margin="3,1,3,5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,1,5" >
|
|
|
|
<TextBlock Text="设备监控" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<!--设备监控-->
|
|
|
|
<Border x:Name="HeightHelperPanel" Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="25,1,5,5">
|
|
|
|
<ListBox MinHeight="60"
|
|
|
|
Height="{Binding Path=ActualHeight, ElementName=HeightHelperPanel}" x:Name="listBox" ItemsSource="{Binding LogInfoListBox}" FontSize="18" Foreground="White" Background="Transparent" BorderBrush="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<!--扫描记录-->
|
|
|
|
<Border Grid.Row="1" Grid.ColumnSpan="2" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="#1157b9" Margin="3,1,3,5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
|
|
|
<TextBlock Text="扫描记录" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<!--计划列表-->
|
|
|
|
<Border x:Name="ScanPanel" Grid.Row="1" Grid.Column="0" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding PlanInfoDataGrid}" Background="#00000000"
|
|
|
|
ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0" FontSize="20"
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
Foreground="White" >
|
|
|
|
<!--修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="编号" Width="auto" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding PlanCode}" Header="计划编号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialBarCode}" Header="物料条码" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="物料编码" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterialName}" Header="产品型号" Width="2*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
<DataGridTextColumn Binding="{Binding EnterSpace}" Header="入库货道" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding ExecDateTime ,StringFormat=\{0:MM-dd HH:mm\}}" Header="执行时间" Width="1.5*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding Status}" Header="状态" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding CompleteAmount}" Header="设备号" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>-->
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|