|
|
|
|
<Window x:Class="Khd.Core.Wpf.Form.FormBoardT"
|
|
|
|
|
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:Khd.Core.Wpf.myConverter"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
WindowStyle="None"
|
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
|
WindowState="Maximized"
|
|
|
|
|
Title="FormBoardT"
|
|
|
|
|
Loaded="FormBoard_Loaded"
|
|
|
|
|
Width="1920"
|
|
|
|
|
Height="1080"
|
|
|
|
|
>
|
|
|
|
|
<Window.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
|
<!--<hc:ThemeResources/>
|
|
|
|
|
<hc:Theme/>-->
|
|
|
|
|
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
|
|
|
|
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
|
|
|
|
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
<local:TypeDataConverter x:Key="taskTypeConverter"/>
|
|
|
|
|
<local:EquipConverter x:Key="EquipConverter"/>
|
|
|
|
|
<Style TargetType="{x:Type ComboBox}">
|
|
|
|
|
<Setter Property="Width" Value="120"></Setter>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type ComboBox}">
|
|
|
|
|
<Border BorderBrush="Gray" BorderThickness="1" CornerRadius="5" Background="White">
|
|
|
|
|
<Grid>
|
|
|
|
|
<!--下拉箭头-->
|
|
|
|
|
<ToggleButton ClickMode="Press" Focusable="False" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Margin="2" MinWidth="0" MinHeight="0" Width="Auto">
|
|
|
|
|
<ToggleButton.Style>
|
|
|
|
|
<Style TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<Setter Property="MinWidth" Value="0"/>
|
|
|
|
|
<Setter Property="MinHeight" Value="0"/>
|
|
|
|
|
<Setter Property="Width" Value="Auto"/>
|
|
|
|
|
<Setter Property="Height" Value="Auto"/>
|
|
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
|
|
<Setter Property="BorderBrush" Value="#00000000"/>
|
|
|
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<DockPanel Background="{TemplateBinding Background}" LastChildFill="False" SnapsToDevicePixels="True">
|
|
|
|
|
<Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" DockPanel.Dock="Right" >
|
|
|
|
|
<Path Data="M0,0L3.5,4 7,0z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
|
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</ToggleButton.Style>
|
|
|
|
|
</ToggleButton>
|
|
|
|
|
<!--项内容-->
|
|
|
|
|
<ContentPresenter IsHitTestVisible="False" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" VerticalAlignment="Center" Margin="3" />
|
|
|
|
|
<!--下拉显示面板HorizontalOffset:设置下拉面板的相对位置-->
|
|
|
|
|
<Popup HorizontalOffset="-1" Width="{TemplateBinding ActualWidth}"
|
|
|
|
|
IsOpen="{TemplateBinding IsDropDownOpen}" Focusable="False" PopupAnimation="Slide">
|
|
|
|
|
<Grid SnapsToDevicePixels="True" HorizontalAlignment="Stretch">
|
|
|
|
|
<Border BorderThickness="1,1,1,1" BorderBrush="Gray" CornerRadius="5">
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<SolidColorBrush Color="White" />
|
|
|
|
|
</Border.Background>
|
|
|
|
|
</Border>
|
|
|
|
|
<ScrollViewer SnapsToDevicePixels="True" HorizontalScrollBarVisibility="Hidden" >
|
|
|
|
|
<StackPanel IsItemsHost="True"/>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Popup>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="CheckBoxStyle" TargetType="{x:Type CheckBox}">
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="LayoutTransform">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ScaleTransform ScaleX="2.5" ScaleY="2.5" />
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="TabItem" x:Key="DefaultItem">
|
|
|
|
|
<Setter Property="Background" Value="#213269"/>
|
|
|
|
|
<!--设置背景色-->
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="TabItem">
|
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
|
|
<Border Background="{TemplateBinding Background}" BorderThickness="1" BorderBrush="#213269">
|
|
|
|
|
<ContentPresenter ContentSource="Header" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="CustomButtonStyle" TargetType="{x:Type Button}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Border
|
|
|
|
|
x:Name="border"
|
|
|
|
|
Background="#213269"
|
|
|
|
|
BorderBrush="#172557"
|
|
|
|
|
BorderThickness="0,0,0,3" />
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
<VisualState x:Name="MouseOver">
|
|
|
|
|
<Storyboard>
|
|
|
|
|
<ColorAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
|
|
|
|
|
<EasingColorKeyFrame KeyTime="0" Value="#213269" />
|
|
|
|
|
</ColorAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</VisualState>
|
|
|
|
|
<VisualState x:Name="Pressed" />
|
|
|
|
|
<VisualState x:Name="Disabled" />
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</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 x:Key="MenuItemStype" TargetType="MenuItem">
|
|
|
|
|
<Setter Property="Width" Value="150"/>
|
|
|
|
|
<Setter Property="Header" Value="75"/>
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- TextBox默认样式 -->
|
|
|
|
|
<Style x:Key="DefaultTextBox" TargetType="{x:Type TextBox}" />
|
|
|
|
|
<Style x:Key="dgCell" TargetType="TextBlock">
|
|
|
|
|
<Setter Property="TextAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DefaultButton" TargetType="{x:Type Button}">
|
|
|
|
|
<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 StartPoint="0,0" EndPoint="0,1">
|
|
|
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
|
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
|
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DefaultButtonSend" TargetType="{x:Type Button}">
|
|
|
|
|
<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="90,90,90,90">
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
|
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
|
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
|
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="EnableButtonSend" TargetType="{x:Type Button}">
|
|
|
|
|
<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="90,90,90,90">
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
|
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
|
|
|
<GradientStop Offset="0.2" Color="Gray" />
|
|
|
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 周义帆 20231008 一下代码添加-->
|
|
|
|
|
<!-- 清空按钮样式 -->
|
|
|
|
|
<Style x:Key="qingkongButton" TargetType ="{x:Type Button}" >
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="5">
|
|
|
|
|
<Border.Background>#1E90FF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
|
|
<Setter Property="FontSize" Value="14"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 警告按钮样式 -->
|
|
|
|
|
<Style x:Key="jinggaoButton" TargetType ="{x:Type Button}" >
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="5">
|
|
|
|
|
<Border.Background>#EE0000</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
|
|
<Setter Property="FontSize" Value="14"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!--TextBox样式-->
|
|
|
|
|
<Style x:Key="XingHaoBianMaYangShi" TargetType="{x:Type TextBox}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
|
|
<Border BorderThickness="1" BorderBrush="Gray" CornerRadius="8" Background="{TemplateBinding Background}">
|
|
|
|
|
<ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" BorderThickness="0" IsTabStop="False"></ScrollViewer>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!--Plc信息TextBox样式-->
|
|
|
|
|
<Style x:Key="tbxStyle" TargetType="{x:Type TextBox}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Border BorderThickness="2" BorderBrush="Gray" CornerRadius="4" Background="{TemplateBinding Background}">
|
|
|
|
|
<ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" Background="{x:Null}" BorderThickness="0" IsTabStop="False"></ScrollViewer>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 查询按钮样式 -->
|
|
|
|
|
<Style x:Key="chaxunButton" TargetType ="{x:Type Button}" >
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="5">
|
|
|
|
|
<Border.Background>#66CD00</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
|
|
<Setter Property="FontSize" Value="14"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 修改按钮样式 -->
|
|
|
|
|
<Style x:Key="xiugaiButton" TargetType ="{x:Type Button}" >
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="5">
|
|
|
|
|
<Border.Background>#DAA520</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
|
|
<Setter Property="FontSize" Value="14"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- 订单清空备份按钮样式 -->
|
|
|
|
|
<Style x:Key="ClearOrderButton" TargetType ="{x:Type Button}" >
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="5">
|
|
|
|
|
<Border.Background>#FF7F00</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Foreground" Value="White"></Setter>
|
|
|
|
|
<Setter Property="FontSize" Value="14"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
|
|
<Window.ContextMenu>
|
|
|
|
|
<ContextMenu>
|
|
|
|
|
<MenuItem Header="退出" Click="WindowClose_Click" Style="{StaticResource MenuItemStype}"/>
|
|
|
|
|
</ContextMenu>
|
|
|
|
|
</Window.ContextMenu>
|
|
|
|
|
|
|
|
|
|
<Grid Background="#172557">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="0.8*"/>
|
|
|
|
|
<RowDefinition Height="0.1*"/>
|
|
|
|
|
<RowDefinition Height="7*"/>
|
|
|
|
|
<RowDefinition Height="0.2*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="0.1*"/>
|
|
|
|
|
<ColumnDefinition Width="9*"/>
|
|
|
|
|
<ColumnDefinition Width="0.1*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid Grid.Row="2" Grid.Column="1">
|
|
|
|
|
<Viewbox Stretch=" fill" >
|
|
|
|
|
<Canvas Width="1880" Height="1080" >
|
|
|
|
|
<Grid Width="1880" Height="1080">
|
|
|
|
|
<TabControl Background="Transparent" BorderThickness="0" HorizontalAlignment="Center" VerticalContentAlignment="Center" SelectionChanged="TabControl_SelectionChanged" TabStripPlacement="Left" Width="1890" Margin="-10,0,0,0">
|
|
|
|
|
<TabItem Header="任务管理" Style="{StaticResource DefaultItem}" Background="#213269" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="essentialData"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
Canvas.Top="110"
|
|
|
|
|
Width="1714"
|
|
|
|
|
Height="1060"
|
|
|
|
|
Background="#213269" Margin="0,-15,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-1500,20,0,-100"
|
|
|
|
|
Text="设备编号 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle1" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-1150,-8,0,-100"></TextBox>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-800,20,0,-100"
|
|
|
|
|
Text="容器号 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle2" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-500,-8,0,-100"></TextBox>
|
|
|
|
|
<Button Content="搜索" Margin="-100,-8,0,-100" Foreground="White" Height="50" FontSize="25" Width="132" Click="btnGetTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="创建任务" Margin="200,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="AddTaskButton_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="删除任务" Visibility="Hidden" Margin="500,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="btnDelTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="开始任务" Margin="500,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="btnEditTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<!--<Button Content="手动完成" Margin="800,-8,0,-100" Foreground="White" Height="50" Width="132" Click="btnFinishTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 订单信息 -->
|
|
|
|
|
<Grid Width="1711" Height="1070" HorizontalAlignment="Left">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="10*"/>
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
<RowDefinition Height="88*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Background="#172557" Grid.Row="1" ></Grid>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<DataGrid
|
|
|
|
|
x:Name="LoadMaterial0"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn Width="130*" Header="选择">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<CheckBox x:Name="SelectBox" Click="CheckBox_Click"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}"
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
x:Name="orderControlData0"
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="200*"
|
|
|
|
|
Binding="{Binding serialNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="流水号"
|
|
|
|
|
IsReadOnly="True" Visibility="Hidden" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="250*"
|
|
|
|
|
Binding="{Binding equipmentNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="设备编号"
|
|
|
|
|
IsReadOnly="True" Visibility="Hidden"/>
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding containerNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="容器号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding taskType,Converter={StaticResource taskTypeConverter}}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="任务类型"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="200*"
|
|
|
|
|
Binding="{Binding taskStatus}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="任务状态"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding qty}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="数量"
|
|
|
|
|
IsReadOnly="True" Visibility="Hidden"/>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding startPointNo,Converter={StaticResource EquipConverter}}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="起始站点"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding endPointNo,Converter={StaticResource EquipConverter}}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="目的站点"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="230*"
|
|
|
|
|
Binding="{Binding fromFloorNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="起始楼层"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="230*"
|
|
|
|
|
Binding="{Binding floorNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="目的楼层"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="350*"
|
|
|
|
|
Binding="{Binding createTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="创建时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<!--<TabItem Header="入库确认" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal" >
|
|
|
|
|
<Button Content="搜素" Background="#346DFF" Foreground="White" Height="50" Width="150" Margin="10" Click="InSearchButton_Click"/>
|
|
|
|
|
<Button Content="确认入库" Background="#346DFF" Foreground="White" Height="50" Width="150" Margin="10" Click="ConfirmTaskButton_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DataGrid
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
x:Name="WcsTaskLogDataGrid"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left"
|
|
|
|
|
>
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn Width="130*" Header="选择">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<CheckBox x:Name="InSelectBox" Click="InCheckBox_Click"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding containerNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="容器号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding ud2}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="楼层"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding materialId}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</TabItem>-->
|
|
|
|
|
<TabItem Header="设备管理" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="materialBom"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
Canvas.Top="110"
|
|
|
|
|
Width="1714"
|
|
|
|
|
Height="1060"
|
|
|
|
|
Background="#213269" Margin="0,-15,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-1500,20,0,-100"
|
|
|
|
|
Text="设备编号 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle3" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-1150,-8,0,-100"></TextBox>
|
|
|
|
|
<Button Content="搜索" FontSize="25" Margin="-700,-8,0,-100" Foreground="White" Height="50" Width="132" Click="btnGetEquip_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<!-- 订单信息 -->
|
|
|
|
|
<Grid Width="1711" Height="1070" HorizontalAlignment="Left">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="10*"/>
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
<RowDefinition Height="88*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Background="#172557" Grid.Row="1"></Grid>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<DataGrid
|
|
|
|
|
x:Name="LoadMaterial3"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10" >
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
x:Name="orderControlData3"
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="200*"
|
|
|
|
|
Binding="{Binding equipNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="设备编号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding equipName}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="设备名称"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding serverIp}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="IP地址"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding equipStatus}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="设备状态"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding floorNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="所属楼层"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Label Content="Label"/>
|
|
|
|
|
<Label Content="Label"/>
|
|
|
|
|
<Label x:Name="_1111" Content="Label" Margin="1,0,1,0" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="#FFFBF5EC" Background="#FFECDADA"/>
|
|
|
|
|
<Label Content="Label"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="库存信息" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="orderControl"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
Canvas.Top="110"
|
|
|
|
|
Width="1714"
|
|
|
|
|
Height="1060"
|
|
|
|
|
Background="#213269" Margin="0,-15,0,0" >
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-1500,20,0,-100"
|
|
|
|
|
Text="物料编码 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle5" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-1150,-8,0,-100"></TextBox>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-800,20,0,-100"
|
|
|
|
|
Text="库位 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle6" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-550,-8,0,-100"></TextBox>
|
|
|
|
|
<TextBlock Width="125" Height="70" Margin="-100,20,0,-100" Text="仓库 :" FontSize="25" Foreground="White"/>
|
|
|
|
|
<Border></Border>
|
|
|
|
|
<ComboBox x:Name="WarehourseId" DisplayMemberPath="warehouseName" Height="50" Margin="140,0,0,-100" Width="200" FontSize="25" />
|
|
|
|
|
<Button Content="搜索" FontSize="25" Margin="600,-8,0,-100" Foreground="White" Height="50" Width="132" Click="btnGetStocK_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<!-- 订单信息 -->
|
|
|
|
|
<Grid Width="1711" Height="1070" HorizontalAlignment="Left">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="10*"/>
|
|
|
|
|
<RowDefinition Height="88*"/>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<DataGrid
|
|
|
|
|
x:Name="LoadMaterial1"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10" >
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
x:Name="orderControlData"
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="200*"
|
|
|
|
|
Binding="{Binding materialId}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料编码"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="200*"
|
|
|
|
|
Binding="{Binding instockBatch}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="批次号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding warehouseId}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="仓库"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding locationCode}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="库位"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding floorNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="楼层"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding totalAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="总数"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding occupyAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="占用数量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding frozenAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="冻结数量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="2" HorizontalAlignment="Center">
|
|
|
|
|
<hc:Pagination x:Name="Pagination1" MaxWidth="1500" MaxPageCount="1" Margin="0,0,0,15" PageUpdated="Pagination_PageUpdated" IsJumpEnabled="True" HorizontalAlignment="Center" Width="339" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<!--<TabItem Header="指令管理" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="UpperStart"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
Canvas.Top="110"
|
|
|
|
|
Width="1724"
|
|
|
|
|
Height="1060"
|
|
|
|
|
Background="#213269" Margin="0,0,0,16">
|
|
|
|
|
<StackPanel
|
|
|
|
|
Width="1750"
|
|
|
|
|
Height="918"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Focusable="False">
|
|
|
|
|
<StackPanel
|
|
|
|
|
Height="80"
|
|
|
|
|
Width="1724"
|
|
|
|
|
Margin="-16,0,10,10"
|
|
|
|
|
Background="#213269"
|
|
|
|
|
Orientation="Horizontal" Visibility="Visible">
|
|
|
|
|
<Label
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="50,0,10,0"
|
|
|
|
|
Content="设备编号 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="txtEquipNo" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
HorizontalContentAlignment="Left"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
FontSize="30"
|
|
|
|
|
Margin="-10,5,0,5"
|
|
|
|
|
/>
|
|
|
|
|
<Label
|
|
|
|
|
Foreground="White"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
VerticalAlignment="Stretch"
|
|
|
|
|
HorizontalContentAlignment="Center"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Content="容器编号 : "
|
|
|
|
|
Margin="20,0,0,0"/>
|
|
|
|
|
<Border></Border>
|
|
|
|
|
<TextBox
|
|
|
|
|
x:Name="txtContainNo"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Width="180"
|
|
|
|
|
Height="50"
|
|
|
|
|
FontSize="30"
|
|
|
|
|
HorizontalContentAlignment="Left"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
Margin="10,0,20,0"
|
|
|
|
|
></TextBox>
|
|
|
|
|
<Button Content="搜索" Margin="20,15,0,15" Foreground="White" Width="132" Click="btnGetWcsCmd_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="删除指令" Margin="20,15,0,15" Foreground="White" Width="132" Click="btnDelCmd_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="重发指令" Margin="20,15,0,15" Foreground="White" Width="132" Click="btnReSendCmd_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DataGrid
|
|
|
|
|
Margin="-25,0,0,0"
|
|
|
|
|
x:Name="LoadMaterial"
|
|
|
|
|
Width="1678"
|
|
|
|
|
Height="826"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16"
|
|
|
|
|
Visibility="Visible">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
x:Name="grid1"
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding equipmentNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="设备编号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="400*"
|
|
|
|
|
Binding="{Binding containerNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="容器编号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding cmdType}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="指令类型"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding qty}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="数量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding serialNo}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="流水号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding cmdStatus}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="指令状态"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding sendFlag}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="下发状态"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="220*"
|
|
|
|
|
Binding="{Binding createTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="创建时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="220*"
|
|
|
|
|
Binding="{Binding updateTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="修改时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>-->
|
|
|
|
|
<TabItem Header="人工叫料" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<Grid Height="1100" Width="1700">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
<RowDefinition Height="1041"/>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Margin="0,5,0,0">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Text="物料名称:" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBox x:Name="MaterialName" Width="200" Height="40" Margin="5,0,0,0" VerticalAlignment="Center"/>
|
|
|
|
|
<Button Content="搜索" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="100" Margin="20,0,0,0" Click="SelectButton_Click"/>
|
|
|
|
|
<Button Content="出空箱" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="100" Margin="20,0,0,0" Click="CallEmptyBtn_Click"/>
|
|
|
|
|
<Button Content="出选择料箱" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="200" Margin="20,0,0,0" Click="CallTrayBtn_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
<DataGrid Grid.Row="1" AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
CanUserAddRows="False"
|
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
|
CanUserResizeColumns="False"
|
|
|
|
|
CanUserResizeRows="False"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16"
|
|
|
|
|
Visibility="Visible" x:Name="PersonCallMaterial">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn Width="130*" Header="选择">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.Tag>
|
|
|
|
|
<Binding Path="IsSelected"/>
|
|
|
|
|
</Grid.Tag>
|
|
|
|
|
<CheckBox
|
|
|
|
|
IsChecked="{Binding Tag, RelativeSource={RelativeSource AncestorType=Grid}}"
|
|
|
|
|
Style="{StaticResource CheckBoxStyle}"
|
|
|
|
|
Click="CheckPersonBox_Click"
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
Width="100"
|
|
|
|
|
MinWidth="10"
|
|
|
|
|
Header=" 序号"
|
|
|
|
|
IsReadOnly="True">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Focusable="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding locationCode}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="库位号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding materialId}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料Id"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding materialName}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料名称"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding materialSpec}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料规格"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding palletInfoCode}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="料箱号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding instockDate}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="入库时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding totalAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="总数"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding frozenAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="冻结数量"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
<DataGrid.RowStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowStyle>
|
|
|
|
|
<DataGrid.RowHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.RowHeaderStyle>
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
|
|
|
<Setter Property="Background" Value="#172560" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="50" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#172540" />
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
<hc:Pagination x:Name="Pagination2" Grid.Row="2" MaxWidth="1500" MaxPageCount="1" Margin="0,0,0,15" PageUpdated="Pagination2_PageUpdated" IsJumpEnabled="True" HorizontalAlignment="Center" Width="339" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="扫描入库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<StackPanel x:Name="splMaterialCode" Height="1060" Width="1703" Background="#213269" Canvas.Left="175" Canvas.Top="110" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="1750">
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="20,5,0,0">
|
|
|
|
|
<!--<StackPanel Orientation="Horizontal" Margin="0" HorizontalAlignment="Left">
|
|
|
|
|
<Image
|
|
|
|
|
x:Name="img_plcmesssage1"
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="人工叫料" Foreground="White" FontSize="20" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Width="900" Margin="0,5,0,0">
|
|
|
|
|
<Grid Height="300">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="4*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="请选择物料名称:" Grid.Row="0" Grid.Column="0"/>
|
|
|
|
|
<TextBlock Text="物料规格:" Grid.Row="1" Grid.Column="0"/>
|
|
|
|
|
<ComboBox x:Name="MaterialName" DisplayMemberPath="MaterialName" SelectionChanged="MaterialName_SelectionChanged" Grid.Column="1" IsEditable="True" Grid.Row="0" Width="170" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
|
|
<ComboBox x:Name="MaterialSpec" DisplayMemberPath="MaterialSpec" Grid.Column="1" Grid.Row="1" Width="170" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>-->
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0">
|
|
|
|
|
<Image
|
|
|
|
|
x:Name="img_plcmesssage2"
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="物料扫描" Foreground="White" FontSize="25" Width="150" Height="40" Margin="10,10,80,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Width="1650" Height="1000">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="166.667"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="扫描料箱号:" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<TextBlock Text="扫描条码号:" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<TextBlock Text="入库数量:" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<hc:TextBox x:Name="txtInBox" hc:InfoElement.ShowClearButton="True" FontSize="50" LostFocus="txtInBox_TextChanged" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2"/>
|
|
|
|
|
<hc:TextBox x:Name="txtInBarCode" hc:InfoElement.ShowClearButton="True" FontSize="50" LostFocus="txtInBarCode_TextChanged" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2"/>
|
|
|
|
|
<hc:TextBox x:Name="txtInScan" FontSize="50" IsReadOnly="True" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="2" />
|
|
|
|
|
<Button Content="确认入库" Grid.Row="4" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="InRawBaseLocaltion_Click"/>
|
|
|
|
|
<Button Content="一键收料" Grid.Row="5" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="callPlc_Click"/>
|
|
|
|
|
<Button Content="执行CTU入库任务" Visibility="Hidden" Click="btnCtuInConfirmBox_Click" Grid.Row="5" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<!--<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Width="900" Height="500" Margin="0,5,0,0">
|
|
|
|
|
<StackPanel Margin="0,10,10,10">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="37"
|
|
|
|
|
Text="业务类型 :"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBlock x:Name="cbxType" Margin="0,20,400,0" Width="180" Height="50" Text="入库" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="36"
|
|
|
|
|
Text="料箱 :"
|
|
|
|
|
FontSize="25" Margin="0,30,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtBox" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="0,15,400,0" KeyDown="txtBox_KeyDown"/>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="39"
|
|
|
|
|
Text="条码:"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtBarCode" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="0,20,400,0" TextChanged="txtBarCode_KeyDown"/>
|
|
|
|
|
<Button Content="清除料箱条码" FontSize="25" Margin="400,-180,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="170" Click="clearRFID_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="清除条码" FontSize="25" Margin="400,-50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="170" Click="clearBarCode_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="42"
|
|
|
|
|
Text="已扫描数量:"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtScan" Style="{StaticResource XingHaoBianMaYangShi}" IsReadOnly="True"
|
|
|
|
|
Width="180" Height="50" Margin="0,10,400,0" IsEnabled="False" />
|
|
|
|
|
|
|
|
|
|
<Button Content="确认" FontSize="25" Margin="150,30,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="132" Click="btnConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="背负式小车捡料完成" FontSize="25" Margin="50,50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="300" Click="btnBearConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="执行小车入库任务" FontSize="25" Margin="500,-50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="300" Click="btnCtuInConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>-->
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="扫描出库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<StackPanel Height="1060" Width="1703" Background="#213269" Canvas.Left="175" Canvas.Top="110" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="1750">
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="20,5,0,0">
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0">
|
|
|
|
|
<Image
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="物料扫描" Foreground="White" FontSize="25" Width="150" Height="40" Margin="10,10,80,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Width="1650" Height="1000">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="166.667"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="待执行CTU任务数:" Visibility="Hidden" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="50"/>
|
|
|
|
|
<TextBlock x:Name="outTaskCount" Visibility="Hidden" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<Button Content="执行CTU出库任务" Visibility="Hidden" Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="ExecuteCtuTask_Click"/>
|
|
|
|
|
<TextBlock Text="扫描料箱号:" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<TextBlock Text="扫描条码号:" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<TextBlock Text="出库数量:" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<hc:TextBox hc:InfoElement.ShowClearButton="True" x:Name="txtOutBox" FontSize="50" LostFocus="txtOutBox_TextChanged" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2"/>
|
|
|
|
|
<hc:TextBox hc:InfoElement.ShowClearButton="True" x:Name="txtOutBarCode" FontSize="50" LostFocus="txtOutBarCode_TextChanged" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2"/>
|
|
|
|
|
<hc:TextBox x:Name="txtOutScan" IsReadOnly="True" FontSize="50" Width="500" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="2" />
|
|
|
|
|
<Button Content="确认出库" Grid.Row="4" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="OutRawBaseLocaltion_Click"/>
|
|
|
|
|
<Button Content="背负式小车捡料完成" Grid.Row="5" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="btnBearConfirmBox_Click"/>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
<!--<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Width="900" Height="500" Margin="0,5,0,0">
|
|
|
|
|
<StackPanel Margin="0,10,10,10">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="37"
|
|
|
|
|
Text="业务类型 :"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBlock x:Name="cbxType" Margin="0,20,400,0" Width="180" Height="50" Text="入库" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="36"
|
|
|
|
|
Text="料箱 :"
|
|
|
|
|
FontSize="25" Margin="0,30,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtBox" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="0,15,400,0" KeyDown="txtBox_KeyDown"/>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="39"
|
|
|
|
|
Text="条码:"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtBarCode" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="0,20,400,0" TextChanged="txtBarCode_KeyDown"/>
|
|
|
|
|
<Button Content="清除料箱条码" FontSize="25" Margin="400,-180,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="170" Click="clearRFID_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="清除条码" FontSize="25" Margin="400,-50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="170" Click="clearBarCode_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="152"
|
|
|
|
|
Height="42"
|
|
|
|
|
Text="已扫描数量:"
|
|
|
|
|
FontSize="25" Margin="0,20,750,-60"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<TextBox x:Name="txtScan" Style="{StaticResource XingHaoBianMaYangShi}" IsReadOnly="True"
|
|
|
|
|
Width="180" Height="50" Margin="0,10,400,0" IsEnabled="False" />
|
|
|
|
|
|
|
|
|
|
<Button Content="确认" FontSize="25" Margin="150,30,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="132" Click="btnConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="背负式小车捡料完成" FontSize="25" Margin="50,50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="300" Click="btnBearConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="执行小车入库任务" FontSize="25" Margin="500,-50,10,0" HorizontalAlignment="Left" Foreground="White" Height="50" Width="300" Click="btnCtuInConfirmBox_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>-->
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="PLC信息" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<StackPanel x:Name="splPlcMessage" Height="1060" Width="1729" Background="#213269" Canvas.Left="175" Canvas.Top="110" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="1750">
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="20,5,0,0">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0">
|
|
|
|
|
<Image
|
|
|
|
|
x:Name="img_plcmesssage"
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="PLC交互信息" Foreground="White" FontSize="20" Width="150" Height="40" Margin="10,10,80,0"/>
|
|
|
|
|
<Button Content="刷新" FontSize="25" Foreground="White" Height="50" Width="132" Click="btnRefreshPlc_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Width="700" Height="500" Margin="0,5,0,0">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="1.5*"/>
|
|
|
|
|
<ColumnDefinition Width="2*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="6" FontSize="40"/>
|
|
|
|
|
<TextBlock Text="RFID" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="到位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="去向" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="一楼接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID001" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="linesignal01" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="wcsrun01" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="二楼接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="3" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID002" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="3" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="linesignal02" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="3" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="wcsrun02" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="3" FontSize="25"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="三楼接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="4" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID003" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="4" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="linesignal03" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="4" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="wcsrun03" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="4" FontSize="25"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="四楼接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="5" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID004" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="5" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="linesignal04" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="5" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="wcsrun04" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="5" FontSize="25"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="五楼接驳位" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="6" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID005" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="6" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="linesignal05" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="6" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="wcsrun05" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="6" FontSize="25"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
<Border Background="#213269" BorderBrush="Silver" BorderThickness="2" CornerRadius="10" Width="700" Height="300" Margin="0,50,0,0">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="2*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="五楼U型线" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="3" FontSize="40"/>
|
|
|
|
|
<TextBlock Text="允许放" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="允许取" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock Text="RFID" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="isput" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="isarrive" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
<TextBlock x:Name="RFID5001" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" FontSize="25"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
</TabControl>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Canvas>
|
|
|
|
|
</Viewbox>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="0" Grid.ColumnSpan="2">
|
|
|
|
|
<StackPanel
|
|
|
|
|
Width="1915"
|
|
|
|
|
Height="auto"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Background="#213269"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<StackPanel Orientation ="Horizontal" Width="700">
|
|
|
|
|
<Image
|
|
|
|
|
Width="160"
|
|
|
|
|
Height="100"
|
|
|
|
|
Margin="0,0,0,0"
|
|
|
|
|
Source="../Resources/amma3.png" />
|
|
|
|
|
<Label
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
Width="400"
|
|
|
|
|
Height="55"
|
|
|
|
|
Margin="0"
|
|
|
|
|
Content="京源环保WCS"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
HorizontalContentAlignment="Center"
|
|
|
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="-100,0,0,0" Width="1100">
|
|
|
|
|
<Image
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="40"
|
|
|
|
|
Margin="240,0,0,0"
|
|
|
|
|
Source="..\Resources\riqi.png" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
x:Name="LabDate"
|
|
|
|
|
Height="55"
|
|
|
|
|
Margin="25,20,0,0"
|
|
|
|
|
FontSize="30"
|
|
|
|
|
Width="255"
|
|
|
|
|
Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<Image
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="40"
|
|
|
|
|
Margin="20,0,0,0"
|
|
|
|
|
Source="..\Resources\shijian.png" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
x:Name="LabTime"
|
|
|
|
|
Height="55"
|
|
|
|
|
Margin="20,20,0,0"
|
|
|
|
|
FontSize="30"
|
|
|
|
|
Width="170"
|
|
|
|
|
Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<Button Content="开打键盘" Background="#346DFF" Foreground="White" Width="150" Height="75" FontSize="25" Click="Button_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Window>
|