|
|
|
|
@ -26,6 +26,8 @@
|
|
|
|
|
<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">
|
|
|
|
|
@ -106,11 +108,9 @@
|
|
|
|
|
<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>
|
|
|
|
|
@ -165,12 +165,11 @@
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<!-- TextBox默认样式 -->
|
|
|
|
|
<Style x:Key="DefaultTextBox" TargetType="{x:Type TextBox}" />
|
|
|
|
|
<Style x:Key="dgCell" TargetType="TextBlock">
|
|
|
|
|
<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" />
|
|
|
|
|
<Setter Property="Height" Value="auto"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DefaultButton" TargetType="{x:Type Button}">
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
@ -389,81 +388,81 @@
|
|
|
|
|
<Viewbox Stretch=" fill" >
|
|
|
|
|
<Canvas Width="1880" Height="1080" >
|
|
|
|
|
<Grid Width="1880" Height="1080">
|
|
|
|
|
<TabControl Background="Transparent" BorderThickness="0" HorizontalAlignment="Center" VerticalContentAlignment="Center" SelectionChanged="TabControl_SelectionChanged" TabStripPlacement="Left" Width="1890" Margin="-10,0,0,0">
|
|
|
|
|
<TabItem Header="任务管理" Style="{StaticResource DefaultItem}" Background="#213269" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<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="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="essentialData"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
Canvas.Top="110"
|
|
|
|
|
Width="1714"
|
|
|
|
|
Height="1060"
|
|
|
|
|
Background="#213269" Margin="0,-15,0,0">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Orientation="Vertical"
|
|
|
|
|
Background="#213269">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="5"
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-1500,20,0,-100"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Text="设备编号 :"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle1" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-1150,-8,0,-100"></TextBox>
|
|
|
|
|
<TextBlock
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle1" Margin="5" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" ></TextBox>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Width="125"
|
|
|
|
|
Height="70"
|
|
|
|
|
Margin="-800,20,0,-100"
|
|
|
|
|
Text="容器号 :"
|
|
|
|
|
Margin="5"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="25"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
/>
|
|
|
|
|
<Border
|
|
|
|
|
<Border
|
|
|
|
|
></Border>
|
|
|
|
|
<TextBox x:Name="lba_ThrifTtitle2" Style="{StaticResource XingHaoBianMaYangShi}" IsEnabled="true"
|
|
|
|
|
Width="180" Height="50" Margin="-500,-8,0,-100"></TextBox>
|
|
|
|
|
<Button Content="搜索" Margin="-100,-8,0,-100" Foreground="White" Height="50" FontSize="25" Width="132" Click="btnGetTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Content="创建任务" Margin="200,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="AddTaskButton_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="删除任务" Visibility="Hidden" Margin="500,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="btnDelTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Content="开始任务" Margin="500,-8,0,-100" FontSize="25" Foreground="White" Height="50" Width="132" Click="btnEditTask_Click">
|
|
|
|
|
<Button.Template >
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}" >
|
|
|
|
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="4,4,4,4">
|
|
|
|
|
<Border.Background>#346DFF</Border.Background>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>
|
|
|
|
|
<!--<Button Content="手动完成" Margin="800,-8,0,-100" Foreground="White" Height="50" Width="132" Click="btnFinishTask_Click">
|
|
|
|
|
<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="删除任务" Visibility="Collapsed" 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">
|
|
|
|
|
@ -473,10 +472,10 @@
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Button.Template>
|
|
|
|
|
</Button>-->
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<!-- 订单信息 -->
|
|
|
|
|
<Grid Width="1711" Height="1070" HorizontalAlignment="Left">
|
|
|
|
|
<Grid Width="1711" Margin="0,10,0,0" HorizontalAlignment="Left">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="10*"/>
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
@ -486,6 +485,7 @@
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<DataGrid
|
|
|
|
|
x:Name="LoadMaterial0"
|
|
|
|
|
Height="1000"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
@ -498,7 +498,7 @@
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10">
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn Width="130*" Header="选择">
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
@ -581,7 +581,7 @@
|
|
|
|
|
IsReadOnly="True" Visibility="Hidden"/>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="300*"
|
|
|
|
|
Binding="{Binding startPointNo,Converter={StaticResource EquipConverter}}"
|
|
|
|
|
Binding="{Binding currPointNo,Converter={StaticResource EquipConverter}}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
@ -620,6 +620,19 @@
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="创建时间"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
Width="100"
|
|
|
|
|
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}">
|
|
|
|
|
@ -662,7 +675,7 @@
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<!--<TabItem Header="入库确认" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5">
|
|
|
|
|
<!--<TabItem Header="入库确认" Foreground="White" FontSize="25" Width="160" Height="100" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
@ -781,7 +794,7 @@
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</TabItem>-->
|
|
|
|
|
<TabItem Header="设备管理" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<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"
|
|
|
|
|
@ -944,7 +957,7 @@
|
|
|
|
|
<Label Content="Label"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="库存信息" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<TabItem x:Name="LocationManager" Header="库存信息" Background="#213269" Style="{StaticResource DefaultItem}" Foreground="White" FontSize="25" Width="160" Height="100" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="orderControl"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
@ -997,7 +1010,7 @@
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<DataGrid
|
|
|
|
|
x:Name="LoadMaterial1"
|
|
|
|
|
x:Name="LoadMaterial1"
|
|
|
|
|
AlternationCount="2"
|
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
|
Background="#172557"
|
|
|
|
|
@ -1010,7 +1023,8 @@
|
|
|
|
|
IsReadOnly="True"
|
|
|
|
|
LoadingRow="dgData_LoadingRow"
|
|
|
|
|
RowHeaderWidth="0"
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10" >
|
|
|
|
|
SelectionMode="Single" FontSize="16" HorizontalAlignment="Left" Width="1711" Margin="0,0,0,10"
|
|
|
|
|
>
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
x:Name="orderControlData"
|
|
|
|
|
@ -1099,8 +1113,6 @@
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}">
|
|
|
|
|
@ -1146,7 +1158,7 @@
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<!--<TabItem Header="指令管理" Foreground="White" FontSize="25" Width="160" Height="125" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<!--<TabItem Header="指令管理" Foreground="White" FontSize="25" Width="160" Height="100" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" >
|
|
|
|
|
<StackPanel
|
|
|
|
|
x:Name="UpperStart"
|
|
|
|
|
Canvas.Left="174"
|
|
|
|
|
@ -1394,7 +1406,161 @@
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>-->
|
|
|
|
|
<TabItem Header="人工叫料" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<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" />
|
|
|
|
|
<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="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="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>
|
|
|
|
|
</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"/>
|
|
|
|
|
@ -1410,11 +1576,14 @@
|
|
|
|
|
<Button Content="出选择料箱" Background="#346DFF" Foreground="White" FontSize="25" Height="50" Width="200" Margin="20,0,0,0" Click="CallTrayBtn_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
<DataGrid Grid.Row="1" AlternationCount="2"
|
|
|
|
|
<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"
|
|
|
|
|
@ -1469,6 +1638,14 @@
|
|
|
|
|
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}"
|
|
|
|
|
@ -1477,22 +1654,17 @@
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料Id"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding materialName}"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料名称"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<!--<DataGridTextColumn
|
|
|
|
|
Width="250*"
|
|
|
|
|
Binding="{Binding materialSpec}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="物料规格"
|
|
|
|
|
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"
|
|
|
|
|
@ -1500,45 +1672,22 @@
|
|
|
|
|
IsReadOnly="True" >
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding materialSpec}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding materialSpec}" ToolTip="{Binding materialSpecSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<DataGridTextColumn
|
|
|
|
|
Width="180*"
|
|
|
|
|
Binding="{Binding palletInfoCode}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="料箱号"
|
|
|
|
|
IsReadOnly="True" />
|
|
|
|
|
<!--<DataGridTextColumn
|
|
|
|
|
Width="130*"
|
|
|
|
|
Binding="{Binding totalAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="总数"
|
|
|
|
|
IsReadOnly="True" />-->
|
|
|
|
|
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
Width="130*"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
Header="总数"
|
|
|
|
|
IsReadOnly="True" >
|
|
|
|
|
Width="130*"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
Header="总数"
|
|
|
|
|
IsReadOnly="True" >
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding totalAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding totalAmount}" ToolTip="{Binding totalAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
|
<!--<DataGridTextColumn
|
|
|
|
|
Width="130*"
|
|
|
|
|
Binding="{Binding frozenAmount}"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
ElementStyle="{StaticResource dgCell}"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Header="冻结数量"
|
|
|
|
|
IsReadOnly="True" />-->
|
|
|
|
|
<DataGridTemplateColumn
|
|
|
|
|
Width="130*"
|
|
|
|
|
CanUserSort="False"
|
|
|
|
|
@ -1556,8 +1705,6 @@
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="Margin" Value="5"/>
|
|
|
|
|
<Setter Property="Height" Value="auto"/>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
@ -1565,14 +1712,12 @@
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Background" Value="#213269" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="Height" Value="auto"/>
|
|
|
|
|
</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>
|
|
|
|
|
@ -1580,7 +1725,6 @@
|
|
|
|
|
<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" />
|
|
|
|
|
@ -1592,7 +1736,7 @@
|
|
|
|
|
<hc:Pagination x:Name="Pagination2" Grid.Row="2" MaxWidth="1500" MaxPageCount="1" Margin="0,0,0,15" PageUpdated="Pagination2_PageUpdated" IsJumpEnabled="True" HorizontalAlignment="Center" Width="339" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="扫描入库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<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">
|
|
|
|
|
@ -1624,15 +1768,6 @@
|
|
|
|
|
<ComboBox x:Name="MaterialSpec" DisplayMemberPath="MaterialSpec" Grid.Column="1" Grid.Row="1" Width="170" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>-->
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0">
|
|
|
|
|
<Image
|
|
|
|
|
x:Name="img_plcmesssage2"
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="物料扫描" Foreground="White" FontSize="25" Width="150" Height="40" Margin="10,10,80,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Width="1650" Height="1000">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
@ -1643,7 +1778,7 @@
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="166.667"/>
|
|
|
|
|
@ -1651,6 +1786,7 @@
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
</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"/>
|
|
|
|
|
@ -1765,19 +1901,10 @@
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="扫描出库" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" Background="#213269" VerticalContentAlignment="Center" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0">
|
|
|
|
|
<Image
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="35"
|
|
|
|
|
Margin="60,0,0,0"
|
|
|
|
|
Source="..\Resources\chanpintiaoma.png" Visibility="Visible"/>
|
|
|
|
|
<TextBlock Text="物料扫描" Foreground="White" FontSize="25" Width="150" Height="40" Margin="10,10,80,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Width="1650" Height="1000">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
@ -1796,6 +1923,7 @@
|
|
|
|
|
<RowDefinition Height="167*"/>
|
|
|
|
|
<RowDefinition Height="83*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Text="扫描出库" Foreground="White" FontSize="50" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="6"/>
|
|
|
|
|
<TextBlock Text="待执行CTU任务数:" Visibility="Hidden" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="50"/>
|
|
|
|
|
<TextBlock x:Name="outTaskCount" Visibility="Hidden" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="75"/>
|
|
|
|
|
<Button Content="执行CTU出库任务" Visibility="Hidden" Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Width="500" Height="100" FontSize="50" Background="#346DFF" Foreground="White" Click="ExecuteCtuTask_Click"/>
|
|
|
|
|
@ -1912,29 +2040,51 @@
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</TabItem>
|
|
|
|
|
<TabItem Header="一楼堆垛机" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<Grid Height="1060" Width="1729">
|
|
|
|
|
<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="*"/>
|
|
|
|
|
<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="200" 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="200" 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="200" 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="200" 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="200" FontSize="75" Click="SomeOut_Click"/>
|
|
|
|
|
<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 Header="PLC信息" Style="{StaticResource DefaultItem}" FontSize="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="#213269" Foreground="White" Width="160" Height="125" Margin="5">
|
|
|
|
|
<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">
|
|
|
|
|
@ -2030,6 +2180,157 @@
|
|
|
|
|
</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>
|
|
|
|
|
</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>
|
|
|
|
|
@ -2042,12 +2343,8 @@
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Background="#213269"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<StackPanel Orientation ="Horizontal" Width="700">
|
|
|
|
|
<Image
|
|
|
|
|
Width="160"
|
|
|
|
|
Height="100"
|
|
|
|
|
Margin="0,0,0,0"
|
|
|
|
|
Source="../Resources/amma3.png" />
|
|
|
|
|
<StackPanel Orientation ="Horizontal" Width="489">
|
|
|
|
|
|
|
|
|
|
<Label
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
@ -2060,7 +2357,7 @@
|
|
|
|
|
HorizontalContentAlignment="Center"
|
|
|
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="-100,0,0,0" Width="1100">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="-100,0,0,0" >
|
|
|
|
|
<Image
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="40"
|
|
|
|
|
@ -2086,6 +2383,8 @@
|
|
|
|
|
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>
|
|
|
|
|
|