|
|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
<UserControl x:CompileBindings="False" xmlns="https://github.com/avaloniaui"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
x:Class="Sln.Wcs.UI.Views.Task.TaskQueueListView">
|
|
|
|
|
<Grid RowDefinitions="Auto,Auto,*" Margin="20,14,20,14" VerticalAlignment="Stretch">
|
|
|
|
|
<Grid RowDefinitions="Auto,Auto,*" Margin="20,14,20,14" VerticalAlignment="Stretch" ClipToBounds="True">
|
|
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto" Margin="0,0,0,8">
|
|
|
|
|
<TextBox Grid.Column="0" Watermark="搜索任务编号/物料编号..." Text="{Binding SearchText}" Width="220" Background="#0C1622" Foreground="#DDE4F0" BorderBrush="#1A2F4A" />
|
|
|
|
|
<Button Grid.Column="1" Content="搜索" Command="{Binding SearchCommand}" Background="#0F1F38" Foreground="#8B9BB5" Padding="14,6" Margin="12,0,6,0" />
|
|
|
|
|
<Button Grid.Column="2" Content="新增" Command="{Binding AddCommand}" Background="#1565C0" Foreground="White" Padding="14,6" Margin="12,0,6,0" />
|
|
|
|
|
</Grid>
|
|
|
|
|
<Border Grid.Row="1" Background="#0C1622" Padding="8,6" BorderBrush="#1A2F4A" BorderThickness="1">
|
|
|
|
|
<Grid ColumnDefinitions="1.2*,1*,1.2*,0.6*,0.6*,0.6*,1*,1*,0.7*,0.6*,0.8*,0.7*">
|
|
|
|
|
<Grid ColumnDefinitions="1.2*,1*,1.2*,0.6*,0.6*,0.6*,1*,1*,0.6*,0.6*,0.7*,1*">
|
|
|
|
|
<TextBlock Grid.Column="0" Text="任务编号" FontSize="12" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="1" Text="物料编号" FontSize="12" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="2" Text="托盘条码" FontSize="12" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border Padding="8,4" BorderBrush="#1A2F4A" BorderThickness="0,0,0,1">
|
|
|
|
|
<Grid ColumnDefinitions="1.2*,1*,1.2*,0.6*,0.6*,0.6*,1*,1*,0.7*,0.6*,0.8*,0.7*">
|
|
|
|
|
<Grid ColumnDefinitions="1.2*,1*,1.2*,0.6*,0.6*,0.6*,1*,1*,0.6*,0.6*,0.7*,1*">
|
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding taskCode}" Foreground="#DDE4F0" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding materialCode}" Foreground="#DDE4F0" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding palletBarcode}" Foreground="#64B5F6" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
@ -39,14 +39,74 @@
|
|
|
|
|
<TextBlock Grid.Column="8" Text="{Binding taskStatus}" Foreground="#8B9BB5" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="9" Text="{Binding taskSteps}" Foreground="#DDE4F0" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="10" Text="{Binding remark}" Foreground="#6B8CB5" FontSize="12" VerticalAlignment="Center" />
|
|
|
|
|
<StackPanel Grid.Column="11" Orientation="Horizontal" Spacing="6">
|
|
|
|
|
<Button Content="编辑" Tag="{Binding}" Click="Edit_Click" Background="#0277BD" Foreground="White" FontSize="11" Padding="8,3" />
|
|
|
|
|
<Button Content="删除" Tag="{Binding}" Click="Delete_Click" Background="#B71C1C" Foreground="White" FontSize="11" Padding="8,3" />
|
|
|
|
|
<StackPanel Grid.Column="11" Orientation="Horizontal" Spacing="4">
|
|
|
|
|
<Button Content="明细" Tag="{Binding}" Click="Details_Click" Background="#0D7377" Foreground="White" FontSize="11" Padding="6,3" />
|
|
|
|
|
<Button Content="编辑" Tag="{Binding}" Click="Edit_Click" Background="#0277BD" Foreground="White" FontSize="11" Padding="6,3" />
|
|
|
|
|
<Button Content="删除" Tag="{Binding}" Click="Delete_Click" Background="#B71C1C" Foreground="White" FontSize="11" Padding="6,3" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
|
</ListBox>
|
|
|
|
|
|
|
|
|
|
<!-- Slide-out overlay panel -->
|
|
|
|
|
<Panel Grid.Row="0" Grid.RowSpan="3" IsVisible="{Binding IsPanelOpen}" ZIndex="10">
|
|
|
|
|
<Grid ColumnDefinitions="0.6*,1.4*">
|
|
|
|
|
<Border Grid.Column="0" x:Name="Backdrop" Background="#80000000" Opacity="0" PointerPressed="Backdrop_Pressed" />
|
|
|
|
|
<Border Grid.Column="1" x:Name="SlideContent"
|
|
|
|
|
Background="#0C1622"
|
|
|
|
|
BorderBrush="#1A2F4A"
|
|
|
|
|
BorderThickness="1,0,0,0">
|
|
|
|
|
<Border.RenderTransform>
|
|
|
|
|
<TranslateTransform X="3000" />
|
|
|
|
|
</Border.RenderTransform>
|
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
|
|
|
|
<Border Grid.Row="0" Background="#0F1F38" Padding="14,10" BorderBrush="#1A2F4A" BorderThickness="0,0,0,1">
|
|
|
|
|
<Grid ColumnDefinitions="*,Auto,Auto">
|
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding SlidePanelTitle}" FontSize="14" FontWeight="SemiBold" Foreground="#DDE4F0" VerticalAlignment="Center" />
|
|
|
|
|
<Button Grid.Column="1" Content="新增" Command="{Binding AddDetailCommand}" Background="#1565C0" Foreground="White" FontSize="12" Padding="12,5" Margin="0,0,10,0" />
|
|
|
|
|
<Button Grid.Column="2" Content="✕" Click="ClosePanel_Click" Background="Transparent" Foreground="#8B9BB5" FontSize="14" Padding="6,2" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<Grid Grid.Row="1" RowDefinitions="Auto,*">
|
|
|
|
|
<Border Grid.Row="0" Background="#0C1622" Padding="10,6" BorderBrush="#1A2F4A" BorderThickness="0,0,0,1">
|
|
|
|
|
<Grid ColumnDefinitions="0.8*,1*,1.2*,1.2*,0.8*,0.7*,0.7*,1*">
|
|
|
|
|
<TextBlock Grid.Column="0" Text="路径编号" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="1" Text="物料编号" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="2" Text="起始位置" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="3" Text="结束位置" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="4" Text="设备类型" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="5" Text="状态" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="6" Text="启用" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
<TextBlock Grid.Column="7" Text="操作" FontSize="11" FontWeight="SemiBold" Foreground="#8B9BB5" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<ListBox Grid.Row="1" ItemsSource="{Binding DetailItems}" Background="Transparent" Foreground="#DDE4F0" BorderThickness="0">
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border Padding="10,5" BorderBrush="#1A2F4A" BorderThickness="0,0,0,1">
|
|
|
|
|
<Grid ColumnDefinitions="0.8*,1*,1.2*,1.2*,0.8*,0.7*,0.7*,1*">
|
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding pathCode}" Foreground="#DDE4F0" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding materialCode}" Foreground="#DDE4F0" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding startPoint}" Foreground="#64B5F6" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="3" Text="{Binding endPoint}" Foreground="#64B5F6" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="4" Text="{Binding deviceType}" Foreground="#8B9BB5" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="5" Text="{Binding taskStatus}" Foreground="#8B9BB5" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<TextBlock Grid.Column="6" Text="{Binding isFlag}" Foreground="#8B9BB5" FontSize="11" VerticalAlignment="Center" />
|
|
|
|
|
<StackPanel Grid.Column="7" Orientation="Horizontal" Spacing="4">
|
|
|
|
|
<Button Content="编辑" Tag="{Binding}" Click="DetailEdit_Click" Background="#0277BD" Foreground="White" FontSize="11" Padding="6,3" />
|
|
|
|
|
<Button Content="删除" Tag="{Binding}" Click="DetailDelete_Click" Background="#B71C1C" Foreground="White" FontSize="11" Padding="6,3" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
|
</ListBox>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Panel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|
|
|
|
|
|