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.
264 lines
18 KiB
XML
264 lines
18 KiB
XML
<UserControl x:Class="Aucma.Scada.UI.Page.OutStoreInfo.OutStoreInfoControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Aucma.Scada.UI.Page.OutStoreInfo"
|
|
xmlns:local1="clr-namespace:Aucma.Scada.UI.Converter.TaskInfo"
|
|
mc:Ignorable="d" FontFamily="Microsoft YaHei" Background="#1152AC"
|
|
d:DesignHeight="750" d:DesignWidth="1920">
|
|
<UserControl.Resources>
|
|
<local1:TaskStatusConverter x:Key="TaskStatusConverter" />
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="FontSize" Value="20"/>
|
|
</Style>
|
|
<Style TargetType="DataGrid">
|
|
<!--网格线颜色-->
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!--列头标题栏样式-->
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
|
<Setter Property="Foreground" Value="Black"/>-->
|
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
</Style>
|
|
|
|
<!--单元格样式-->
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding ExecuteStatus}" Value="2">
|
|
<Setter Property="Background" Value="Green" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
<Grid Margin="5,5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<!--扫码信息-->
|
|
<Border Grid.Column="0" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
|
<TextBlock Text="出库信息" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
|
|
<!--扫码信息-->
|
|
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="1" BorderBrush="Red" BorderThickness="0" CornerRadius="5" >
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="任务编号:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding TaskCode}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="计划编号:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding PlanCode}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="订单信息:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding OrderCode}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="2" BorderBrush="Red" BorderThickness="0" CornerRadius="5" >
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="物料条码:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding MaterialCode}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="物料名称:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding MaterialName}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
<TextBlock Text="出库货道:" FontSize="20" Foreground= "#FFFFFF"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" FontSize="20" Text="{Binding SpaceName}" Foreground= "#FFFFFF" Width="200" IsReadOnly="True"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!--<Border Grid.Row="3" BorderBrush="Red" BorderThickness="0" CornerRadius="5" VerticalAlignment="Center" HorizontalAlignment="Right" >
|
|
<Button Content="手工操作" Command="{Binding HandWorkCommand}" Style="{StaticResource BUTTON_AGREE}" Background="#007DFA" BorderBrush="#007DFA" Foreground="White" Margin="0,0,120,0" Height="30" Width="80" />
|
|
</Border>-->
|
|
|
|
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Column="1" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
|
<TextBlock Text="设备监控" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<ListBox FontSize="20" Grid.Row="1" x:Name="listBox" ItemsSource="{Binding LogInfoListBox}" Foreground= "#FFFFFF" Background="Transparent" BorderBrush="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden"/>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5" >
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
</Border.Effect>
|
|
<!--<TextBlock Text="任务记录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="0" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
|
<TextBlock Text="任务记录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" BorderBrush="CadetBlue" BorderThickness="0">
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0">
|
|
<TextBlock Text="任务编号" VerticalAlignment="Center" Foreground= "#FFFFFF" FontSize="20"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" Width="200" Height="25" Margin="10 0 0 0" Text="{Binding TaskCodeSearch}" Foreground= "#FFFFFF" VerticalAlignment="Center" FontSize="20"/>
|
|
|
|
<TextBlock Text="物料编号" VerticalAlignment="Center" Foreground= "#FFFFFF" FontSize="20" Margin="20,0,0,0"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" Width="200" Height="25" Margin="10 0 0 0" Text="{Binding MaterialCodeSearch}" Foreground= "#FFFFFF" VerticalAlignment="Center" FontSize="20"/>
|
|
|
|
<TextBlock Text="计划编号" VerticalAlignment="Center" Foreground= "#FFFFFF" FontSize="20" Margin="20,0,0,0"/>
|
|
<TextBox Style="{StaticResource TextBoxStyle}" Width="200" Height="25" Margin="10 0 0 0" Text="{Binding PlanCodeSearch}" Foreground= "#FFFFFF" VerticalAlignment="Center" FontSize="20"/>
|
|
|
|
<!--<TextBlock Text="产品型号" VerticalAlignment="Center" Foreground= "#FFFFFF" FontSize="20" Margin="20,0,0,0"/>
|
|
<ComboBox Text="{Binding MaterialTypeCombox}" Width="150" Height="25" Margin="10 0 0 0" Foreground="Black" VerticalAlignment="Center" FontSize="20">
|
|
<ComboBoxItem Content="所有" IsSelected="True"/>
|
|
<ComboBoxItem Content="SC232" />
|
|
<ComboBoxItem Content="SC485" />
|
|
</ComboBox>-->
|
|
|
|
<Button Content="查询" Command="{Binding QueryCommand}" Style="{StaticResource BUTTON_AGREE}" Background="#007DFA" BorderBrush="#007DFA" Foreground="White" Margin="20,0,0,0" Height="36" Width="80" FontSize="20"/>
|
|
<Button Content="重置" Command="{Binding ResetCommand}" Style="{StaticResource BUTTON_AGREE}" Background="#007DFA" BorderBrush="#007DFA" Foreground="White" Margin="20,0,0,0" Height="36" Width="80" FontSize="20"/>
|
|
<Button Content="全部删除" Command="{Binding DeleteAllCommand}" Style="{StaticResource BUTTON_AGREE}" Background="#FF9900" BorderBrush="#FF9900" Margin="20 0 0 0" Foreground="White" Height="36" Width="120" FontSize="20"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<DataGrid Grid.Row="2" Name="DG" ItemsSource="{Binding OutstoreTask}" Background="Transparent"
|
|
FontSize="20" ColumnHeaderHeight="35"
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
|
Foreground="#FFFFFF" >
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Binding="{Binding taskCode}" Header="任务编号" Width="100" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<!--<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编码" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>-->
|
|
<DataGridTextColumn Binding="{Binding materialType}" Header="物料类型" Width="2.7*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding spaceName}" Header="出库货道" Width="0.5*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding taskStatus,Converter={StaticResource TaskStatusConverter}}" Header="出库状态" Width="0.5*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" Header="创建时间" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<!--<DataGridTextColumn Binding="{Binding beginTime,StringFormat=\{0:MM-dd HH:mm:ss\}}" Header="开始时间" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>-->
|
|
<DataGridTemplateColumn Header="操作" Width="*">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="删除" CommandParameter="{Binding taskCode}" Background="Red" Foreground="White" Margin="10,0,0,0" Height="25" BorderBrush="Red" BorderThickness="1" Width="55" Command="{Binding DataContext.DeleteTaskInfoCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</UserControl>
|