You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2813 lines
223 KiB
XML
2813 lines
223 KiB
XML
<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"/>
|
|
<local:AgvTaskStatusConverter x:Key="AgvTaskStatusConverter"/>
|
|
|
|
|
|
<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" BasedOn="{x:Null}">
|
|
<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 x:Name="TabControl" Background="Transparent" BorderThickness="0" HorizontalAlignment="Center" VerticalContentAlignment="Center" SelectionChanged="TabControl_SelectionChanged" TabStripPlacement="Left" Width="1890" Margin="-10,0,0,0">
|
|
<TabItem Visibility="Collapsed" x:Name="FirstItem"></TabItem>
|
|
<TabItem x:Name="TaskManager" Header="任务管理" Style="{StaticResource DefaultItem}" Background="#213269" Foreground="White" FontSize="25" Width="160" Height="100" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2,0,0,0" >
|
|
<StackPanel
|
|
x:Name="essentialData"
|
|
Orientation="Vertical"
|
|
Background="#213269">
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
|
<TextBlock
|
|
Margin="5"
|
|
Width="125"
|
|
VerticalAlignment="Center"
|
|
Text="设备编号 :"
|
|
FontSize="25"
|
|
Foreground="White"
|
|
/>
|
|
<Border
|
|
></Border>
|
|
<TextBox x:Name="lba_ThrifTtitle1" Margin="5" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
Width="180" Height="50" ></TextBox>
|
|
<TextBlock
|
|
Width="125"
|
|
Text="容器号 :"
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontSize="25"
|
|
Foreground="White"
|
|
/>
|
|
<Border
|
|
></Border>
|
|
<TextBox x:Name="lba_ThrifTtitle2" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
Width="180" Height="50" Margin="5" ></TextBox>
|
|
<TextBlock Text="设备:" VerticalAlignment="Center"/>
|
|
<ComboBox x:Name="EquipListSelectDy" DisplayMemberPath="equipName" Width="200" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
|
|
<Button Content="搜索" Foreground="White" Height="50" Margin="5" 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="创建任务" FontSize="25" Margin="5" 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="删除任务" 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="5" 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>-->
|
|
</StackPanel>
|
|
|
|
<!-- 订单信息 -->
|
|
<Grid Width="1711" Margin="0,10,0,0" 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"
|
|
Height="1000"
|
|
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">
|
|
<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="300*"
|
|
Binding="{Binding ., Converter={StaticResource AgvTaskStatusConverter}}"
|
|
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 currPointNo,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" />
|
|
<DataGridTemplateColumn
|
|
Visibility="Collapsed"
|
|
Width="150"
|
|
MinWidth="10"
|
|
Header=" 操作"
|
|
IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="任务完成" Visibility="{Binding isShow}" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="100" Height="75" Click="taskCompeleted_Click"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</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="100" 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="设备管理" Visibility="Collapsed" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="100" 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 x:Name="LocationManager" Header="库存信息" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="100" VerticalAlignment="Top" HorizontalAlignment="Center" >
|
|
<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="100" 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 x:Name="WasterManager" Header="废料区管理" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" Margin="5">
|
|
<Grid Height="1100" Width="1700">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="2*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="White" BorderThickness="2" Height="320" CornerRadius="10" Margin="10">
|
|
<Grid Grid.Column="0" Grid.Row="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="2*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="废料区任务下发" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="75"/>
|
|
<Grid Grid.Row="1" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="请求空托盘" Grid.Column="0" Grid.Row="0" FontSize="50" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<Button Content="执行" Foreground="White" Background="#346DFF" Width="150" Height="75" Grid.Column="1" Grid.Row="0" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Click="btnSendEmptyTray_Click"/>
|
|
<TextBlock Text="出托盘到周转区" Grid.Column="2" Grid.Row="0" FontSize="50" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<Button Content="执行" Foreground="White" Background="#346DFF" Width="150" Height="75" Grid.Column="3" Grid.Row="0" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Click="btnSendTrayToTurnover_Click"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="0" Grid.Row="1" BorderBrush="White" BorderThickness="2" Height="650" CornerRadius="10" Margin="10">
|
|
<DataGrid
|
|
AlternationCount="2"
|
|
AutoGenerateColumns="False"
|
|
Background="#172557"
|
|
CanUserAddRows="False"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
CanUserResizeRows="False"
|
|
Focusable="False"
|
|
HeadersVisibility="Column"
|
|
IsReadOnly="True"
|
|
RowHeaderWidth="0"
|
|
SelectionMode="Single"
|
|
x:Name="EmptyEquip"
|
|
LoadingRow="dgData_LoadingRow"
|
|
MinRowHeight="50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<DataGrid.Columns>
|
|
<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 equipNo}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="库位"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding equipName}"
|
|
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 ud3}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="类型"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding emptyCount}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="托盘数量"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding containerNo}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="托盘号"
|
|
IsReadOnly="True" />
|
|
<DataGridTemplateColumn
|
|
Width="300"
|
|
MinWidth="10"
|
|
Header=" 操作"
|
|
IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<!--<Button Content="清除" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="125" Height="75" Click="clearLocation_Click"/>-->
|
|
<Button Content="出库" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="125" Height="75" Click="outLocation_Click"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="60"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="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>
|
|
</Border>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem x:Name="CallPersonManager" Header="人工叫料" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" Margin="5">
|
|
<Grid Height="1100" Width="1700">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<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
|
|
Style="{StaticResource DataGridStyle}"
|
|
Grid.Row="1" AlternationCount="2"
|
|
AutoGenerateColumns="False"
|
|
MinRowHeight="50"
|
|
Background="#172557"
|
|
CanUserAddRows="False"
|
|
GridLinesVisibility="None"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
CanUserResizeRows="False"
|
|
Focusable="False"
|
|
Height="auto"
|
|
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 palletInfoCode}"
|
|
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" />
|
|
<DataGridTemplateColumn
|
|
Width="350*"
|
|
CanUserSort="False"
|
|
Header="物料名称"
|
|
IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding materialName}" ToolTip="{Binding materialNameSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn
|
|
Width="350*"
|
|
CanUserSort="False"
|
|
Header="物料规格"
|
|
IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding materialSpec}" ToolTip="{Binding materialSpecSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn
|
|
Width="130*"
|
|
CanUserSort="False"
|
|
Header="总数"
|
|
IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding totalAmount}" ToolTip="{Binding totalAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn
|
|
Width="130*"
|
|
CanUserSort="False"
|
|
Header="冻结数量"
|
|
IsReadOnly="True" >
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding frozenAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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" />
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="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 x:Name="InventoryManager" Header="盘库任务" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" Margin="5">
|
|
<Grid Height="1100" Width="1700">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="搜索" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="100" Margin="20,0,0,0" Click="SelectInventoryButton_Click"/>
|
|
<Button Content="添加盘库任务" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="200" Margin="20,0,0,0" Click="SelectInventoryButton_Click"/>
|
|
<Button Content="库存盘点" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="150" Margin="20,0,0,0" Click="InventoryTaskButton_Click"/>
|
|
</StackPanel>
|
|
<DataGrid
|
|
Style="{StaticResource DataGridStyle}"
|
|
Grid.Row="1" AlternationCount="2"
|
|
AutoGenerateColumns="False"
|
|
MinRowHeight="50"
|
|
Background="#172557"
|
|
CanUserAddRows="False"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
GridLinesVisibility="None"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
CanUserResizeRows="False"
|
|
Focusable="False"
|
|
Height="auto"
|
|
HeadersVisibility="Column"
|
|
IsReadOnly="True"
|
|
LoadingRow="dgData_LoadingRow"
|
|
RowHeaderWidth="0"
|
|
SelectionMode="Single" FontSize="16"
|
|
Visibility="Visible"
|
|
x:Name="InventoryMaterial">
|
|
<DataGrid.Columns>
|
|
<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 LocationAmount}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="库位数"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding InventoryingAmount}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="正在盘库数量"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding InventoriedAmount}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="已盘库数量"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding CheckStatus}"
|
|
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 BeginTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="开始时间"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="220*"
|
|
Binding="{Binding EndTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="结束时间"
|
|
IsReadOnly="True" />
|
|
<DataGridTemplateColumn
|
|
Width="300"
|
|
MinWidth="10"
|
|
Header=" 操作"
|
|
IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="开始盘点" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="125" Height="75" Click="StartInventory"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="60"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="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="Pagination3" Grid.Row="2" MaxWidth="1500" MaxPageCount="1" Margin="0,0,0,15" PageUpdated="Pagination3_PageUpdated" IsJumpEnabled="True" HorizontalAlignment="Center" Width="339" />
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem x:Name="ScanInManager" Header="扫描入库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" 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">
|
|
<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="扫描入库" FontSize="50" Grid.ColumnSpan="6" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<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" TextChanged="txtInBox_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<Button Click="barClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,130,0" Grid.Column="5" Grid.Row="2">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
<Button Click="boxClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,130,0" Grid.Column="5" Grid.Row="1">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
<hc:TextBox x:Name="txtInBarCode" hc:InfoElement.ShowClearButton="True" FontSize="50" LostFocus="txtInBarCode_TextChanged" TextChanged="txtInBarCode_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<hc:TextBox x:Name="txtInScan" FontSize="50" IsReadOnly="True" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3" />
|
|
<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"/>
|
|
<TextBlock Grid.Row="6" Text="提示信息:" HorizontalAlignment="Center" Grid.Column="1" Grid.ColumnSpan="1" Width="250" Height="100" FontSize="50" Foreground="White" />
|
|
<TextBlock x:Name="MsgText" Grid.Row="6" FontSize="40" Grid.ColumnSpan="5" Width="800" Height="60" Foreground="White" HorizontalAlignment="Right" />
|
|
<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>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem Visibility="Collapsed" x:Name="ScanReturnManager" Header="扫描退库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" 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">
|
|
<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="152*"/>
|
|
<RowDefinition Height="152*"/>
|
|
<RowDefinition Height="152*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="152*"/>
|
|
<RowDefinition Height="152*"/>
|
|
<RowDefinition Height="75*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="扫描退库" Foreground="White" FontSize="50" Grid.ColumnSpan="6" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<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="txtReturnBox" hc:InfoElement.ShowClearButton="True" FontSize="50" LostFocus="txtInBox_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<Button Click="barClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,130,0" Grid.Column="5" Grid.Row="2">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
<Button Click="boxClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,130,0" Grid.Column="5" Grid.Row="1">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
<hc:TextBox x:Name="txtReturnBarCode" hc:InfoElement.ShowClearButton="True" FontSize="50" LostFocus="txtInBarCode_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<hc:TextBox x:Name="txtReturnScan" FontSize="50" IsReadOnly="True" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3" />
|
|
<Button Content="确认退库" Grid.Row="4" Grid.ColumnSpan="6" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="ReturnRawBaseLocaltion_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>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem x:Name="ScanOutManager" Header="扫描出库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="100" 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">
|
|
<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="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="White" BorderThickness="2" Grid.ColumnSpan="2" Grid.Column="4" Grid.RowSpan="2" Margin="20">
|
|
<StackPanel Orientation="Vertical" >
|
|
<TextBlock x:Name="OutOrder" Background="Transparent" Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Center"/>
|
|
<TextBlock x:Name="thisOutEndStation" Background="Transparent" Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,20,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border BorderBrush="White" BorderThickness="2" Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="5" Grid.RowSpan="2" Margin="20">
|
|
<DataGrid Background="Transparent"
|
|
CanUserAddRows="False"
|
|
AutoGenerateColumns="False"
|
|
CanUserSortColumns="False"
|
|
CanUserDeleteRows="False"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
x:Name="OutTaskNumber" >
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn
|
|
Header="物料名称"
|
|
Binding="{Binding materiaName}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="3*"
|
|
/>
|
|
<DataGridTextColumn
|
|
Header="物料描述"
|
|
Binding="{Binding materialSpec}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="5*"
|
|
/>
|
|
<DataGridTextColumn
|
|
Header="销售订单"
|
|
Binding="{Binding saleOrderId}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="2*"
|
|
/>
|
|
<DataGridTextColumn
|
|
Header="箱体携带数量"
|
|
Binding="{Binding thisOutAmount}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="2*"
|
|
/>
|
|
<DataGridTextColumn
|
|
Header="申请数量"
|
|
Binding="{Binding outstockAmount}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="2*"
|
|
/>
|
|
|
|
<DataGridTextColumn
|
|
Header="已出数量"
|
|
Binding="{Binding realOutstockAmount}"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
Width="2*"
|
|
/>
|
|
<DataGridTextColumn
|
|
Header="是否出完"
|
|
Binding="{Binding isSendOver}"
|
|
Width="2*"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
/>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
</Style>
|
|
</DataGrid.RowHeaderStyle>
|
|
<DataGrid.ColumnHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="BorderThickness" Value="5" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
<Setter Property="FontSize" Value="30" />
|
|
</Style>
|
|
</DataGrid.ColumnHeaderStyle>
|
|
</DataGrid>
|
|
</Border>
|
|
<TextBlock Text="扫描出库" Grid.RowSpan="2" Foreground="White" FontSize="50" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="6"/>
|
|
<TextBlock Text="待执行CTU任务数:" Visibility="Hidden" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="50"/>
|
|
<TextBlock x:Name="outTaskCount" Visibility="Hidden" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
<Button Content="执行CTU出库任务" Visibility="Hidden" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="ExecuteCtuTask_Click"/>
|
|
|
|
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="6">
|
|
<TextBlock Text="扫描料箱号:" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
<Grid>
|
|
<hc:TextBox hc:InfoElement.ShowClearButton="True" x:Name="txtOutBox" FontSize="50" LostFocus="txtOutBox_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<Button Click="boxOutClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,0,0" Grid.Column="5" Grid.Row="2">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
</Grid>
|
|
<Button Content="选择出库" Background="#346DFF" Grid.ColumnSpan="6" Grid.Row="1" Foreground="White" FontSize="50" Margin="20,0,0,0" Height="100" Width="250" Click="SelectOutBtn_Click"/>
|
|
<Button Content="继续出库" Background="#346DFF" Grid.ColumnSpan="6" Grid.Row="1" Foreground="White" FontSize="50" Margin="20,0,0,0" Height="100" Width="250" Click="ContineOutBtn_Click"/>
|
|
</StackPanel>
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="3" Grid.ColumnSpan="6">
|
|
<TextBlock Text="扫描条码号:" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
<Grid>
|
|
<hc:TextBox hc:InfoElement.ShowClearButton="True" x:Name="txtOutBarCode" FontSize="50" LostFocus="txtOutBarCode_TextChanged" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3"/>
|
|
<Button Click="barOutClear_Click" HorizontalAlignment="Right" Height="100" Panel.ZIndex="1" Width="100" Margin="0,0,0,0" Grid.Column="5" Grid.Row="3">
|
|
<Image Source="..\Resources\cancel.png"/>
|
|
</Button>
|
|
</Grid>
|
|
<Button Content="确认出库" Grid.Column="4" Grid.Row="5" Grid.ColumnSpan="2" Width="400" Height="100" Margin="100,0,0,0" FontSize="35" Background="#346DFF" Foreground="White" Click="OutRawBaseLocaltion_Click"/>
|
|
</StackPanel>
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="4" Grid.ColumnSpan="6">
|
|
<TextBlock Text="出库数量:" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
<Grid>
|
|
<hc:TextBox x:Name="txtOutScan" Margin="80,0,0,0" IsReadOnly="True" FontSize="50" Width="700" HorizontalAlignment="Left" VerticalAlignment="Center" Height="130" Grid.Row="4" Grid.Column="3" Grid.ColumnSpan="3" />
|
|
</Grid>
|
|
<Button Content="背负式小车捡料完成" Grid.Column="4" Grid.Row="6" Grid.ColumnSpan="2" Width="400" Height="100" Margin="100,0,0,0" FontSize="35" Background="#346DFF" Foreground="White" Click="btnBearConfirmBox_Click"/>
|
|
|
|
</StackPanel>
|
|
</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 x:Name="FirstFloorManager" Header="一楼接驳位" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="100" Margin="5">
|
|
<Grid Height="1100" Width="1700">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="White" BorderThickness="2">
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="托盘库内托盘数量:" FontSize="75" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="2"/>
|
|
<TextBlock x:Name="DDJEmptyCount" FontSize="75" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="2" Grid.ColumnSpan="2"/>
|
|
<Button x:Name="OneIn" Background="#346DFF" Foreground="White" Content="入一个空托盘" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="150" FontSize="75" Click="OneIn_Click"/>
|
|
<Button Background="#346DFF" Foreground="White" Content="修改" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="300" Height="150" FontSize="75" Click="UpdateEmpty_Click"/>
|
|
<Button x:Name="SomeIn" Background="#346DFF" Foreground="White" Content="入一螺空托盘" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="150" FontSize="75" Click="SomeIn_Click"/>
|
|
<Button x:Name="OneOut" Background="#346DFF" Foreground="White" Content="出一个空托盘" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="150" FontSize="75" Click="OneOut_Click"/>
|
|
<Button x:Name="SomeOut" Background="#346DFF" Foreground="White" Content="出一螺空托盘" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="150" FontSize="75" Click="SomeOut_Click"/>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="1" BorderBrush="White" BorderThickness="2" Height="300">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height='*'/>
|
|
<RowDefinition Height='*'/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="一楼接驳位确认入库(托盘上次绑定物料与这次相同需确认)" FontSize="50" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
|
|
<TextBlock Text="RFID:" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="50" Margin="10"/>
|
|
<TextBlock x:Name="firstRFID" Width="500" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="50" Margin="20,0,0,0"/>
|
|
<Button x:Name="querenruku" Content="确认入库" Background="#346DFF" Foreground="White" Width="150" Height="75" FontSize="30" Margin="30" Click="querenruku_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem x:Name="PlcManager" Header="PLC信息" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="100" 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="550" 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="350" Margin="0,30,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 Orientation="Vertical" VerticalAlignment="Center" Margin="100,5,0,0" Width="800">
|
|
<Grid Height="1000">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderBrush="White" BorderThickness="2" Grid.Row="1" CornerRadius="10" Margin="5,5,5,5">
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="二楼小包出入口" Foreground="White" FontSize="35" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="入口叫料" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="0" />
|
|
<TextBlock Text="出口到位" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="1" />
|
|
<TextBlock Text="出口RFID" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="2" />
|
|
<TextBlock x:Name="AgvPut" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Row="1" Grid.Column="0"/>
|
|
<TextBlock x:Name="AgvGet" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Row="1" Grid.Column="1"/>
|
|
<TextBlock x:Name="RFID2001" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Row="1" Grid.Column="2"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<Border BorderBrush="White" Visibility="Collapsed" Grid.Row="1" BorderThickness="2" CornerRadius="10" Margin="5">
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="二楼废料区" Foreground="White" FontSize="35" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="到位信号" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="0" />
|
|
<TextBlock Text="RFID" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="2" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<Border BorderBrush="White" Grid.Row="0" BorderThickness="2" CornerRadius="10" Margin="5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="1.2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="提升机" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="40" Grid.ColumnSpan="6"/>
|
|
<TextBlock Text="当前楼层" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="1" FontSize="25"/>
|
|
<TextBlock Text="目的楼层" 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="MES屏蔽" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="1" FontSize="25"/>
|
|
<TextBlock Text="货物到位状态" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="4" Grid.Row="1" FontSize="25"/>
|
|
<TextBlock x:Name="currentfloor06" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2" FontSize="25"/>
|
|
<TextBlock x:Name="targetfloor06" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" FontSize="25"/>
|
|
<TextBlock x:Name="equipstate06" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" FontSize="25"/>
|
|
<TextBlock x:Name="mesclose" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="2" FontSize="25"/>
|
|
<TextBlock x:Name="hoistertrayin06" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="4" Grid.Row="2" FontSize="25"/>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border BorderBrush="White" Grid.Row="2" BorderThickness="2" CornerRadius="10" Margin="5">
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="三楼翻转机" Foreground="White" FontSize="35" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="翻转机允许放" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="0" />
|
|
<TextBlock Text="翻转机空托盘" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30" Grid.Column="1" />
|
|
<TextBlock x:Name="putTray" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2" FontSize="25"/>
|
|
<TextBlock x:Name="getTray" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" FontSize="25"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem x:Name="AgvManager" Header="Agv信息" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="100" Margin="5" >
|
|
<DataGrid
|
|
x:Name="AgvDataGrid"
|
|
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" Height="1100" Width="1700" Margin="0,0,0,10"
|
|
>
|
|
<DataGrid.Columns>
|
|
<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 RobotCode}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="小车"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding Online}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="状态"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding Battery}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="电量"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding Speed}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="速度"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding Stop}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="是否暂停"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding MapCode}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="楼层"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding DateNow}"
|
|
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="HorizontalContentAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
</DataGrid.CellStyle>
|
|
<DataGrid.RowStyle>
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="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>
|
|
</TabItem>
|
|
<TabItem x:Name="AuthManager" Header="权限控制" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="100" Margin="5" >
|
|
<Grid Height="1100" Width="1700">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="用户名:" Margin="10" FontSize="30" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="LoginName" Margin="10" Width="200" Height="50" VerticalAlignment="Center"/>
|
|
<Button x:Name="SelectUser" Content="搜索" Width="100" Margin="10" Height="50" FontSize="25" Foreground="White" Background="#346DFF" Click="SelectUser_Click"/>
|
|
<Button x:Name="AddUser" Content="添加" Width="100" Margin="10" Height="50" FontSize="25" Foreground="White" Background="#346DFF" Click="AddUser_Click"/>
|
|
</StackPanel>
|
|
<DataGrid
|
|
Grid.Row="1"
|
|
AlternationCount="2"
|
|
AutoGenerateColumns="False"
|
|
Background="#172557"
|
|
CanUserAddRows="False"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="False"
|
|
CanUserResizeRows="False"
|
|
Focusable="False"
|
|
HeadersVisibility="Column"
|
|
IsReadOnly="True"
|
|
RowHeaderWidth="0"
|
|
SelectionMode="Single"
|
|
x:Name="UserData"
|
|
LoadingRow="dgData_LoadingRow"
|
|
MinRowHeight="50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
|
>
|
|
<DataGrid.Columns>
|
|
<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 UserName}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="用户名"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding NickName}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="别名"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding createBy}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="创建者"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="180*"
|
|
Binding="{Binding createTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
|
|
CanUserSort="False"
|
|
ElementStyle="{StaticResource dgCell}"
|
|
FontSize="20"
|
|
Header="创建时间"
|
|
IsReadOnly="True" />
|
|
<DataGridTemplateColumn
|
|
Width="300"
|
|
MinWidth="10"
|
|
Header=" 操作"
|
|
IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="删除" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="125" Height="75" Click="deleteUser"/>
|
|
<Button Content="绑定菜单" Style="{StaticResource ButtonPrimary}" FontSize="25" Width="125" Height="75" Click="SelectUserRole"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
<DataGrid.CellStyle>
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="65"/>
|
|
</Style>
|
|
</DataGrid.RowStyle>
|
|
<DataGrid.RowHeaderStyle>
|
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
|
<Setter Property="Background" Value="#213269" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<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="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>
|
|
</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="489">
|
|
|
|
<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" >
|
|
<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"/>
|
|
<Button Content="最小化" Background="#346DFF" Foreground="White" Width="100" Margin="20,0,0,0" Height="75" FontSize="25" Click="WindowHidden_Click"/>
|
|
<Button Content="退出" Background="#346DFF" Foreground="White" Width="100" Margin="20,0,0,0" Height="75" FontSize="25" Click="WindowClose_Click"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|