终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
3.6 KiB

  1. <UserControl x:Class="BPASmartClient.MorkMW.View.DebugView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkMW.View"
  7. xmlns:vm="clr-namespace:BPASmartClient.MorkMW.ViewModel"
  8. mc:Ignorable="d"
  9. Name="本地调试"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <UserControl.DataContext>
  12. <vm:DebugViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  18. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  19. </ResourceDictionary.MergedDictionaries>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition />
  25. <RowDefinition Height="500"/>
  26. </Grid.RowDefinitions>
  27. <StackPanel>
  28. <Grid Width="600">
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition/>
  31. <ColumnDefinition/>
  32. <ColumnDefinition/>
  33. </Grid.ColumnDefinitions>
  34. <TextBlock Text="物料名称" HorizontalAlignment="Center" />
  35. <TextBlock Text="物料位置" Grid.Column="1" HorizontalAlignment="Center"/>
  36. <TextBlock Text="时间" Grid.Column="2" HorizontalAlignment="Center"/>
  37. </Grid>
  38. <StackPanel Width="600">
  39. <ItemsControl ItemsSource="{Binding SimRecipe.recipe}">
  40. <ItemsControl.ItemsPanel>
  41. <ItemsPanelTemplate>
  42. <StackPanel/>
  43. </ItemsPanelTemplate>
  44. </ItemsControl.ItemsPanel>
  45. <ItemsControl.ItemTemplate>
  46. <DataTemplate>
  47. <Grid>
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition/>
  50. <ColumnDefinition/>
  51. <ColumnDefinition/>
  52. </Grid.ColumnDefinitions>
  53. <TextBox Text="{Binding materialName}" Margin="10,10" />
  54. <ComboBox Text="{Binding Loc}" ItemsSource="{Binding DataContext.location,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" Grid.Column="1" Margin="10,10"/>
  55. <TextBox Text="{Binding Time}" Grid.Column="2" Margin="10,10"/>
  56. </Grid>
  57. </DataTemplate>
  58. </ItemsControl.ItemTemplate>
  59. </ItemsControl>
  60. </StackPanel>
  61. </StackPanel>
  62. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
  63. <Button Content="添加原料" Width="150" Command="{Binding AddMaterial}" Margin="10,10"></Button >
  64. <Button Content="删除原料" Width="150" Command="{Binding ClearMaterial}"></Button >
  65. <Button Content="本地订单下发" Width="150" Margin="10,10" Command="{Binding SimOrderSetDown}" CommandParameter="{Binding SimRecipe}"/>
  66. <CheckBox Content="运行本地模拟程序" Command="{Binding StartLocalSim}" IsChecked="{Binding IsSimOrder}"/>
  67. </StackPanel>
  68. </Grid>
  69. </UserControl>