change - Index页面参数绑定

master
wenjy 2 months ago
parent bd30cb1446
commit d66333989c

@ -12,18 +12,43 @@
<DataTemplate x:Key="TaskTemplate">
<Border BorderBrush="#1254AB" BorderThickness="2" CornerRadius="5" Margin="2,5">
<StackPanel Margin="10,0,0,0">
<TextBlock Text="{Binding conveyorno}" FontSize="18" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10,0,0"/>
<TextBlock Text="{Binding taskno}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding taskstate}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<StackPanel Orientation="Horizontal">
<TextBlock Text="站台号:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding conveyorno}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="航班号:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding flightno}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="任务号:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding taskno}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="任务状态:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding taskstate}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="AGV编号" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding agvno}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="总行李筐数量:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding totalcount}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="已装载筐数量:" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
<TextBlock Text="{Binding loadcount}" FontSize="18" Foreground="White" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,10">
<Button Content="待处理任务" FontSize="14" Style="{StaticResource BUTTON_AGREE}"
Width="80" Height="30" Background="YellowGreen" BorderBrush="YellowGreen" Margin="40,0,0,0"
Command="{Binding DataContext.HandleTaskCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}"
CommandParameter="{Binding TaskCode}"/>
CommandParameter="{Binding taskno}"/>
<Button Content="删除任务" FontSize="14" Style="{StaticResource BUTTON_AGREE}"
Width="80" Height="30" Background="Red" BorderBrush="Red" Margin="20,0,0,0"
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}"
CommandParameter="{Binding TaskCode}"/>
CommandParameter="{Binding taskno}"/>
</StackPanel>
</StackPanel>
</Border>

Loading…
Cancel
Save