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.
263 lines
18 KiB
XML
263 lines
18 KiB
XML
<Window x:Class="XGL.FormItem.FormChargingBoard"
|
|
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">
|
|
<!--<TabPanel Width="1920" Height=" 90" Background="#213269">
|
|
<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="特冰悬挂链demo" Canvas.Left="174" Canvas.Top="19" Height="55" Width="266" FontSize="30" Foreground="White" Margin="5,20,-5,-20"/>
|
|
<Label x:Name="LabDate" Content="" Canvas.Left="174" Canvas.Top="19" Height="55" FontSize="30" Foreground="White" Margin="897,20,-1042,-20"/>
|
|
<Label x:Name="LabTime" Content="" Canvas.Left="174" Canvas.Top="19" Height="55" FontSize="30" Foreground="White" Margin="1039,20,-1184,-20"/>
|
|
</TabPanel>-->
|
|
<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="410" Margin="0,105,0,-20" Background="#213269" HorizontalAlignment="Left" >
|
|
<Image Height="40" Width="40" Source="..\Resources\shengchanjihua.png" Margin="-1800,20,0,0" ></Image>
|
|
<Label Content="生产计划" Foreground="White" FontSize="20" Width="200" Margin="-1550,-35,0,0"> </Label>
|
|
<DataGrid Height="303" Margin="0,30,0,0" x:Name="DgLoadProduct" 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="200" 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 jhdh}" CanUserSort="False" FontSize="20" Header="计划单号" IsReadOnly="True" Width="300" ElementStyle="{StaticResource dgCell}">
|
|
|
|
</DataGridTextColumn>
|
|
<DataGridTextColumn Binding="{Binding wlbm}" CanUserSort="False" FontSize="20" Header="物料编码" IsReadOnly="True" Width="300" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding wlmc}" CanUserSort="False" FontSize="20" Header="物料名称" IsReadOnly="True" Width="400" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding jhrq}" CanUserSort="False" FontSize="20" Header="计划日期" IsReadOnly="True" Width="300" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding jhsl}" CanUserSort="False" FontSize="20" Foreground="Red" Header="计划数量" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding yslsl}" CanUserSort="False" FontSize="20" Foreground="Green" Header="已上料数量" IsReadOnly="True" Width="200" ElementStyle="{StaticResource dgCell}"/>
|
|
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="50"/>
|
|
<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="50"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="DataGridRowHeader">
|
|
<Setter Property="Background" Value="#213269"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="50"/>
|
|
<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="50"/>
|
|
<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 Width="1920" Height="540" Margin="0,540,0,-20" Background="#213269" >
|
|
<Image Height="40" Width="40" Source="..\Resources\kucun.png" Margin="-1800,20,0,0" ></Image>
|
|
<Label Content="内筒队列信息" Foreground="White" FontSize="20" Width="200" Margin="-1550,-35,0,0"></Label>
|
|
<DataGrid Height="463" Margin="0,10,0,0" x:Name="DgLoadHouse" 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="200" 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 kq}" CanUserSort="False" FontSize="20" Header="库区" IsReadOnly="True" Width="500" ElementStyle="{StaticResource dgCell}">
|
|
|
|
</DataGridTextColumn>
|
|
<DataGridTextColumn Binding="{Binding wlbm}" CanUserSort="False" FontSize="20" Header="物料编码" IsReadOnly="True" Width="420" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding wlbm}" CanUserSort="False" FontSize="20" Header="物料名称" IsReadOnly="True" Width="500" ElementStyle="{StaticResource dgCell}"/>
|
|
<DataGridTextColumn Binding="{Binding kcsl}" CanUserSort="False" FontSize="20" Foreground="Green" Header="库存数量" IsReadOnly="True" Width="300" 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>
|
|
<Button x:Name="btnExit" Content="" Canvas.Left="1840" Canvas.Top="14" Width="75" Style="{StaticResource btnCloseStyle}" Click="btnExit_Click"/>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</Window>
|