终端一体化运控平台
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.
 
 
 

141 wiersze
8.1 KiB

  1. <Window
  2. x:Class="BPASmartClient.JXJFoodSmallStation.View.RecipeInfosView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
  9. Title="RecipeInfosView"
  10. Width="550"
  11. Height="450"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. Topmost="True"
  15. WindowStartupLocation="CenterScreen"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.DataContext>
  19. <vm:RecipeInfosViewModel />
  20. </Window.DataContext>
  21. <Window.Resources>
  22. <ResourceDictionary>
  23. <ResourceDictionary.MergedDictionaries>
  24. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  25. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  26. <ResourceDictionary>
  27. <!--#region ListBox样式-->
  28. <!--<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
  29. <Setter Property="OverridesDefaultStyle" Value="True" />
  30. <Setter Property="SnapsToDevicePixels" Value="True" />
  31. <Setter Property="BorderBrush" Value="{x:Null}" />
  32. <Setter Property="Foreground" Value="White" />
  33. <Setter Property="FontSize" Value="20" />
  34. <Setter Property="HorizontalContentAlignment" Value="Center" />
  35. <Setter Property="VerticalContentAlignment" Value="Center" />
  36. <Setter Property="Template">
  37. <Setter.Value>
  38. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  39. <Border x:Name="border" CornerRadius="8">
  40. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  41. </Border>
  42. </ControlTemplate>
  43. </Setter.Value>
  44. </Setter>
  45. </Style>-->
  46. <!--#endregion-->
  47. </ResourceDictionary>
  48. </ResourceDictionary.MergedDictionaries>
  49. </ResourceDictionary>
  50. </Window.Resources>
  51. <Border Name="br"
  52. BorderBrush="#0CADF5"
  53. BorderThickness="1" >
  54. <Border.Background>
  55. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  56. </Border.Background>
  57. <Grid>
  58. <Grid.RowDefinitions>
  59. <RowDefinition />
  60. </Grid.RowDefinitions>
  61. <Grid Grid.Row="1">
  62. <Grid.RowDefinitions>
  63. <RowDefinition Height="80" />
  64. <RowDefinition />
  65. </Grid.RowDefinitions>
  66. <Grid>
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition></ColumnDefinition>
  69. <ColumnDefinition></ColumnDefinition>
  70. </Grid.ColumnDefinitions>
  71. <Grid.RowDefinitions>
  72. <RowDefinition></RowDefinition>
  73. <RowDefinition></RowDefinition>
  74. </Grid.RowDefinitions>
  75. <WrapPanel>
  76. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方名称:" />
  77. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeName}" />
  78. </WrapPanel>
  79. <WrapPanel Grid.Column="1">
  80. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方编号:" />
  81. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeCode}" />
  82. </WrapPanel>
  83. <WrapPanel Grid.Row="1">
  84. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="托盘编号:" />
  85. <TextBlock Grid.Row="1" Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding TrayCode}" />
  86. </WrapPanel>
  87. <Button Grid.Column="1" Grid.Row="1" Width="100" Command="{Binding ReturnPage}" HorizontalAlignment="Left" Margin="10,0,0,0">返回</Button>
  88. </Grid>
  89. <Grid Grid.Row="3">
  90. <Grid Grid.Column="1">
  91. <Grid.RowDefinitions>
  92. <RowDefinition Height="20"></RowDefinition>
  93. <RowDefinition></RowDefinition>
  94. </Grid.RowDefinitions>
  95. <Grid Grid.Row="0" >
  96. <Grid.ColumnDefinitions>
  97. <ColumnDefinition Width="2*"/>
  98. <ColumnDefinition Width="2*"/>
  99. <ColumnDefinition Width="2*"/>
  100. </Grid.ColumnDefinitions>
  101. <TextBlock FontSize="16" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top">原料位置</TextBlock>
  102. <TextBlock FontSize="16" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">原料桶号</TextBlock>
  103. <TextBlock FontSize="16" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top">原料重量</TextBlock>
  104. </Grid>
  105. <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden" >
  106. <ItemsControl ItemsSource="{Binding RawMaterialsInfo}" Width="548" >
  107. <ItemsControl.ItemTemplate>
  108. <DataTemplate>
  109. <Grid x:Name="grb" Height="25" >
  110. <Grid.ColumnDefinitions>
  111. <ColumnDefinition Width="2*"/>
  112. <ColumnDefinition Width="2*"/>
  113. <ColumnDefinition Width="2*"/>
  114. </Grid.ColumnDefinitions>
  115. <TextBlock Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialLocation}"></TextBlock>
  116. <TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialBarrelNum}"></TextBlock>
  117. <TextBlock Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialWeight}"></TextBlock>
  118. </Grid>
  119. <DataTemplate.Triggers>
  120. <Trigger Property="IsMouseOver" Value="true">
  121. <Setter TargetName="grb" Property="Background" Value="#112AB2E7" />
  122. </Trigger>
  123. </DataTemplate.Triggers>
  124. </DataTemplate>
  125. </ItemsControl.ItemTemplate>
  126. </ItemsControl>
  127. </ScrollViewer>
  128. </Grid>
  129. </Grid>
  130. </Grid>
  131. </Grid>
  132. </Border>
  133. </Window>