终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

151 wiersze
7.2 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.View.SiemensRecipeReceiveView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
  16. <SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
  17. <SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
  18. <SolidColorBrush x:Key="CursorColor" Color="Aqua" />
  19. <SolidColorBrush x:Key="TitleBorderColor" Color="#FF2AB2E7" />
  20. <SolidColorBrush x:Key="TextBlockForeground" Color="#9934F7F7" />
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="20" />
  24. <Setter Property="Background" Value="Transparent" />
  25. <!--<Setter Property="Foreground" Value="{StaticResource FontColor}" />-->
  26. <Setter Property="VerticalAlignment" Value="Center" />
  27. <Setter Property="HorizontalAlignment" Value="Center" />
  28. </Style>
  29. <Style x:Key="buttonStyle" TargetType="Button">
  30. <Setter Property="Background" Value="Transparent" />
  31. <Setter Property="FontSize" Value="16" />
  32. <Setter Property="Foreground" Value="Aqua" />
  33. <Setter Property="HorizontalAlignment" Value="Center" />
  34. <Setter Property="BorderThickness" Value="0" />
  35. </Style>
  36. </UserControl.Resources>
  37. <UserControl.DataContext>
  38. <vm:SiemensRecipeReceiveViewModel />
  39. </UserControl.DataContext>
  40. <Grid>
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="50" />
  43. <RowDefinition />
  44. </Grid.RowDefinitions>
  45. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  46. <pry:IcoButton
  47. Grid.Column="3"
  48. Width="140"
  49. Margin="10"
  50. HorizontalAlignment="Right"
  51. Command="{Binding ClearAllRecipe}"
  52. Content="清除所有配方"
  53. FontSize="16"
  54. Foreground="Aqua"
  55. IcoText="&#xe635;"
  56. IsEnabled="True"
  57. Style="{StaticResource IcoButtonStyle}" />
  58. </StackPanel>
  59. <ScrollViewer Grid.Row="1">
  60. <ListView
  61. Margin="5"
  62. VerticalAlignment="Top"
  63. Background="Transparent"
  64. BorderThickness="0"
  65. ItemsSource="{Binding RemoteRecipes}"
  66. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  67. <ListView.ItemsPanel>
  68. <ItemsPanelTemplate>
  69. <UniformGrid
  70. HorizontalAlignment="Left"
  71. VerticalAlignment="Top"
  72. Columns="8" />
  73. </ItemsPanelTemplate>
  74. </ListView.ItemsPanel>
  75. <ListView.ItemTemplate>
  76. <DataTemplate>
  77. <Border Margin="5" Background="LightSkyBlue">
  78. <Grid>
  79. <Grid.RowDefinitions>
  80. <RowDefinition />
  81. <RowDefinition Height="0.25*" />
  82. <RowDefinition Height="0.2*" />
  83. </Grid.RowDefinitions>
  84. <Image Source="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  85. <WrapPanel Grid.Row="1">
  86. <TextBlock
  87. Margin="2,0,0,0"
  88. Foreground="#dd000000"
  89. Text="名称:" />
  90. <TextBlock
  91. Margin="2,0,0,0"
  92. Foreground="#dd000000"
  93. Text="{Binding RecipeName}" />
  94. <TextBlock
  95. Margin="5,0,0,0"
  96. Foreground="#dd000000"
  97. Text="编号:" />
  98. <TextBlock
  99. Margin="2,0,0,0"
  100. Foreground="#dd000000"
  101. Text="{Binding RecipeCode}" />
  102. <TextBlock
  103. Margin="5,0,0,0"
  104. Foreground="#dd000000"
  105. Text="托盘号:" />
  106. <TextBlock
  107. Margin="2,0,0,0"
  108. Foreground="#dd000000"
  109. Text="{Binding TrayCode}" />
  110. </WrapPanel>
  111. <Grid
  112. Name="gr"
  113. Grid.Row="2"
  114. Height="30">
  115. <Grid.ColumnDefinitions>
  116. <ColumnDefinition />
  117. </Grid.ColumnDefinitions>
  118. <pry:IcoButton
  119. Grid.Column="0"
  120. Width="{Binding ElementName=gr, Path=ActualWidth}"
  121. Height="{Binding ElementName=gr, Path=ActualHeight}"
  122. HorizontalAlignment="Left"
  123. VerticalAlignment="Center"
  124. BorderThickness="0"
  125. Command="{Binding DataContext.DetailsCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  126. CommandParameter="{Binding RecipeCode}"
  127. Content="详情"
  128. EnterBackground="#FF2AB2E7"
  129. Foreground="#dd000000"
  130. IcoText="&#xe636;"
  131. Style="{StaticResource IcoButtonStyle}" />
  132. </Grid>
  133. </Grid>
  134. </Border>
  135. </DataTemplate>
  136. </ListView.ItemTemplate>
  137. </ListView>
  138. </ScrollViewer>
  139. </Grid>
  140. </UserControl>