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.
302 lines
20 KiB
XML
302 lines
20 KiB
XML
<Window x:Class="XGL.FormItem.FormOutBoxBoard"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
|
|
xmlns:local="clr-namespace:XGL.FormItem"
|
|
xmlns:local1="clr-namespace:XGL.UControl"
|
|
mc:Ignorable="d"
|
|
Loaded="FormBoard_Loaded"
|
|
Title="FormBoard" Height="1080" Width="1920" WindowStyle="None" WindowStartupLocation="CenterScreen" WindowState="Maximized" >
|
|
<Window.Resources>
|
|
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml"></ResourceDictionary>
|
|
<ResourceDictionary Source="/CSS/SearchTextClass.xaml"></ResourceDictionary>
|
|
<ResourceDictionary Source="/CSS/DataGridClass.xaml"></ResourceDictionary>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border Name="Border" Background="#213269" BorderBrush="#172557" BorderThickness="3,0,20,3" >
|
|
<ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="12,2,12,2"/>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="CustomButtonStyle" TargetType="{x:Type Button}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualState x:Name="Normal"/>
|
|
<VisualState x:Name="MouseOver">
|
|
<Storyboard>
|
|
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border">
|
|
<EasingColorKeyFrame KeyTime="0" Value="#213269"/>
|
|
</ColorAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Pressed"/>
|
|
<VisualState x:Name="Disabled"/>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
<Border x:Name="border" BorderBrush="#172557" Background="#213269" BorderThickness="0,0,0,3"/>
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True"/>
|
|
<Trigger Property="IsDefaulted" Value="True"/>
|
|
<Trigger Property="IsMouseOver" Value="True"/>
|
|
<Trigger Property="IsPressed" Value="True"/>
|
|
<Trigger Property="IsEnabled" Value="False"/>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!--<Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBox">
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1,1,1,1" />
|
|
|
|
</Style>-->
|
|
<!--TextBox默认样式-->
|
|
<Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBox">
|
|
|
|
</Style>
|
|
<Style x:Key="dgCell" TargetType="TextBlock">
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
<Style TargetType="{x:Type Button}" x:Key="DefaultButton">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
<Setter Property="FontSize" Value="20"/>
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="30,30,30,30">
|
|
<Border.Background>
|
|
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
|
|
<GradientStop Color="#2c78fa" Offset="0.0" />
|
|
<GradientStop Color="#2c78fa" Offset="0.2" />
|
|
<GradientStop Color="#2c78fa" Offset="0.0" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Viewbox Stretch='Fill'>
|
|
<Canvas Width='1920' Height='1080' Background="#172557">
|
|
<StackPanel Width="1920" Height=" 90" Background="#213269" HorizontalAlignment="Left" Orientation="Horizontal" >
|
|
<Label Content="Logo" Height="55" Width="170" FontSize="30" Foreground="White" Canvas.Left="26" Canvas.Top="19" RenderTransformOrigin="0.497,0.242" Margin="34,-20,-34,-20"/>
|
|
<Label Content="特冰下件" Canvas.Left="174" Canvas.Top="19" Height="55" Width="266" FontSize="30" Foreground="White" Margin="5,-20,-5,-20"/>
|
|
<Image Source="..\Resources\riqi.png" Height="40" Width="40" Margin="500,-20,-1042,-20" ></Image>
|
|
<Label x:Name="LabDate" Content="" Canvas.Left="174" Canvas.Top="19" Height="55" FontSize="30" Foreground="White" Margin="800,-20,-1042,-20"/>
|
|
<Image Source="..\Resources\shijian.png" Height="40" Width="40" Margin="1100,-20,-1042,-20" ></Image>
|
|
<Label x:Name="LabTime" Content="" Canvas.Left="174" Canvas.Top="19" Height="55" FontSize="30" Foreground="White" Margin="1050,-20,-1184,-20"/>
|
|
</StackPanel>
|
|
<StackPanel Width="1920" Height="968" Margin="0,105,0,-20" Background="#213269" HorizontalAlignment="Left" >
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Label Content="箱体条码" FontSize="20" Foreground="White" Width="100" Margin="0,20,0,0"></Label>
|
|
<TextBox x:Name="tBoxBarCode" FontSize="37" Foreground="White" Width="490" Margin="0,10,0,10" KeyDown="BarCode_KeyDown" input:InputMethod.IsInputMethodEnabled="False" >
|
|
|
|
<!--<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="30,30,30,30">
|
|
</Border>-->
|
|
<TextBox.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="8"/>
|
|
<Setter Property="BorderBrush" Value="#c1d0dc"/>
|
|
</Style>
|
|
<VisualBrush x:Key="HintText" TileMode="None" Opacity="0.5" Stretch="None" AlignmentX="Left">
|
|
<VisualBrush.Visual>
|
|
<TextBlock FontStyle="Normal" Text="请输入箱体条码" Foreground="White" FontSize="20"/>
|
|
</VisualBrush.Visual>
|
|
</VisualBrush>
|
|
</TextBox.Resources>
|
|
|
|
<TextBox.Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="Text" Value="{x:Null}">
|
|
<Setter Property="Background" Value="{StaticResource HintText}"/>
|
|
</Trigger>
|
|
<Trigger Property="Text" Value="">
|
|
<Setter Property="Background" Value="{StaticResource HintText}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
|
|
|
|
</Style>
|
|
</TextBox.Style>
|
|
</TextBox>
|
|
<Label x:Name="laberrorlog" Content="" Height="40" HorizontalAlignment="Left" Width="550" FontSize="20px" Foreground="Red" Margin="50,0,0,0" ></Label>
|
|
</StackPanel>
|
|
<StackPanel Height="900" Width="1900" Margin="1,0,0,0" Orientation="Horizontal">
|
|
<Image Source="..\Resources\xiangti.png" Height="40" Width="40" Margin="40,-800,400,0"></Image>
|
|
<Label Content="箱体队列" Foreground="White" FontSize="20" Width="200" Height="40" Margin="-580,-800,0,0"></Label>
|
|
<DataGrid Margin="-480,80,400,0" Height="800" Width="1890" x:Name="DgLoadBox" AutoGenerateColumns="False" IsReadOnly="True" CanUserResizeColumns="False" CanUserResizeRows="False" SelectionMode="Single" CanUserReorderColumns="False" AlternationCount="2" RowHeaderWidth="0" CanUserAddRows="False" Background="#172557" LoadingRow="dgData_LoadingRow">
|
|
|
|
|
|
<DataGrid.Columns>
|
|
<DataGridTemplateColumn Header=" 序号" Width="100" MinWidth="10" IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Center" FontSize="20" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
<!--<DataGridTextColumn Binding="{Binding DispIndex}" CanUserSort="False" FontSize="20" Header="序号" IsReadOnly="True" Width="300"/>-->
|
|
<DataGridTextColumn Binding="{Binding BarCode}" CanUserSort="False" FontSize="20" Header="条码" IsReadOnly="True" Width="400" ElementStyle="{StaticResource dgCell}">
|
|
|
|
</DataGridTextColumn>
|
|
<DataGridTextColumn Binding="{Binding MaterielCode}" CanUserSort="False" FontSize="20" Header="物料编码" IsReadOnly="True" Width="300" ElementStyle="{StaticResource dgCell}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding MaterielName}" CanUserSort="False" FontSize="20" Header="物料名称" IsReadOnly="True" Width="500" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding CarNo}" CanUserSort="False" FontSize="20" Header="小车号" IsReadOnly="True" Width="250" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding CreateTime}" CanUserSort="False" FontSize="20" Header="时间" IsReadOnly="True" Width="320" ElementStyle="{StaticResource dgCell}"/>
|
|
|
|
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
</Style>
|
|
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="DataGridRow">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="DataGridRowHeader">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
</Style>
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#172557"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="#172557" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
</DataGrid>
|
|
|
|
</StackPanel>
|
|
|
|
<!--<StackPanel Height="900" Width="920" Orientation="Horizontal">
|
|
<Image Source="..\Resources\menti.png" Height="40" Width="40" Margin="40,-800,400,0"></Image>
|
|
<Label Content="门体输送队列" FontSize="20" Width="200" Foreground="White" Margin="-580,30,0,0" ></Label>
|
|
|
|
<DataGrid Height="800" Width="900" Margin="-470,80,0,0" x:Name="DgLoadDoor" AutoGenerateColumns="False" IsReadOnly="True" CanUserResizeColumns="False" CanUserResizeRows="False" SelectionMode="Single" CanUserReorderColumns="False" AlternationCount="2" RowHeaderWidth="0" CanUserAddRows="False" Background="#172557" LoadingRow="dgData_LoadingRow">
|
|
|
|
<DataGrid.Columns>
|
|
<DataGridTemplateColumn Header=" 序号" Width="100" MinWidth="10" IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Center" FontSize="20" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
--><!--<DataGridTextColumn Binding="{Binding DispIndex}" CanUserSort="False" FontSize="20" Header="序号" IsReadOnly="True" Width="300"/>--><!--
|
|
<DataGridTextColumn Binding="{Binding wlmc}" CanUserSort="False" FontSize="20" Header="小车号" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding jhdh}" CanUserSort="False" FontSize="20" Header="箱体编码" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}">
|
|
|
|
</DataGridTextColumn>
|
|
<DataGridTextColumn Binding="{Binding wlbm}" CanUserSort="False" FontSize="20" Header="物料名称" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding wlbm}" CanUserSort="False" FontSize="20" Header="扫描时间" IsReadOnly="True" Width="190" ElementStyle="{StaticResource dgCell}"/>
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
</Style>
|
|
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="DataGridRow">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="DataGridRowHeader">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
</Style>
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#172557"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="80"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="#172557" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
</DataGrid>
|
|
</StackPanel>-->
|
|
</StackPanel>
|
|
|
|
<Button x:Name="btnExit" Content="" Canvas.Left="1840" Canvas.Top="14" Width="75" Style="{StaticResource btnCloseStyle}" Click="btnExit_Click"/>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</Window>
|