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.

268 lines
19 KiB
XML

<Window x:Class="XGL.FormItem.FormBlankingBoard"
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: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" >
<Image Source="../Resources/logo.png" Height="95" Width="160" Margin="0,0,0,0"></Image>
<Label Content="天津悬挂链下件看板" Canvas.Left="174" Canvas.Top="19" Height="55" Width="366" 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" Orientation="Horizontal" >
<StackPanel Height="900" Width="1111" Margin="40,34,0,34" 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="-470,90,400,10" Height="800" Width="1090" x:Name="DgLoadOrder" 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="60" 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 est}" CanUserSort="False" FontSize="20" Header="订单日期" IsReadOnly="True" Width="130" ElementStyle="{StaticResource dgCell}">
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding order_code}" CanUserSort="False" FontSize="20" Header="订单号" IsReadOnly="True" Width="160" ElementStyle="{StaticResource dgCell}">
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding prod_code}" CanUserSort="False" FontSize="20" Header="物料编码" IsReadOnly="True" Width="160" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding prod_desc}" CanUserSort="False" FontSize="20" Header="物料名称" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding quantity}" CanUserSort="False" FontSize="20" Header="订单数量" IsReadOnly="True" Width="90" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding upquantity}" CanUserSort="False" FontSize="20" Header="上件数量" IsReadOnly="True" Width="90" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding outwarehousequantity}" CanUserSort="False" FontSize="20" Header="出库数量" IsReadOnly="True" Width="90" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding downquantity}" CanUserSort="False" FontSize="20" Header="下件数量" IsReadOnly="True" Width="90" ElementStyle="{StaticResource dgCell}"/>
</DataGrid.Columns>
<DataGrid.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="Background" Value="#213269"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="40"/>
<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="40"/>
</Style>
</DataGrid.RowStyle>
<DataGrid.RowHeaderStyle>
<Style TargetType="DataGridRowHeader">
<Setter Property="Background" Value="#213269"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="40"/>
<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="40"/>
<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="720" Orientation="Horizontal" Margin="0,34">
<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="700" Margin="-470,90,0,10" 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="60" 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 car_no}" CanUserSort="False" FontSize="20" Header="小车号" IsReadOnly="True" Width="70" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding order_id}" CanUserSort="False" FontSize="20" Header="订单号" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}">
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding materiel_num}" CanUserSort="False" FontSize="20" Header="内筒数量" IsReadOnly="True" Width="90" ElementStyle="{StaticResource dgCell}"/>
<DataGridTextColumn Binding="{Binding create_time}" CanUserSort="False" FontSize="20" Header="出库时间" IsReadOnly="True" Width="260" ElementStyle="{StaticResource dgCell}"/>
</DataGrid.Columns>
<DataGrid.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="Background" Value="#213269"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="40"/>
<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="40"/>
</Style>
</DataGrid.RowStyle>
<DataGrid.RowHeaderStyle>
<Style TargetType="DataGridRowHeader">
<Setter Property="Background" Value="#213269"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Height" Value="40"/>
<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="40"/>
<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>