终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

139 行
8.1 KiB

  1. <Window
  2. x:Class="BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.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" BorderThickness="1" >
  52. <Border.Background>
  53. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  54. </Border.Background>
  55. <Grid>
  56. <Grid.RowDefinitions>
  57. <RowDefinition />
  58. </Grid.RowDefinitions>
  59. <Grid Grid.Row="1">
  60. <Grid.RowDefinitions>
  61. <RowDefinition Height="30" />
  62. <RowDefinition Height="30" />
  63. <RowDefinition Height="30" />
  64. <RowDefinition />
  65. <RowDefinition Height="40" />
  66. </Grid.RowDefinitions>
  67. <WrapPanel>
  68. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方名称:" />
  69. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeName}" />
  70. </WrapPanel>
  71. <WrapPanel Grid.Row="1">
  72. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="配方编号:" />
  73. <TextBlock Grid.Row="1" Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RecipeCode}" />
  74. </WrapPanel>
  75. <WrapPanel Grid.Row="2">
  76. <TextBlock Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="托盘编号:" />
  77. <TextBlock Grid.Row="1" Margin="10,0,0,0" Background="Transparent" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding TrayCode}" />
  78. </WrapPanel>
  79. <Grid Grid.Row="3">
  80. <Grid.RowDefinitions>
  81. <RowDefinition></RowDefinition>
  82. </Grid.RowDefinitions>
  83. <Grid.ColumnDefinitions>
  84. <ColumnDefinition Width="2*"/>
  85. <ColumnDefinition Width="9*"/>
  86. </Grid.ColumnDefinitions>
  87. <TextBlock Grid.Row="0" HorizontalAlignment="Center">大料站</TextBlock>
  88. <Grid Grid.Column="1">
  89. <Grid.RowDefinitions>
  90. <RowDefinition Height="20"></RowDefinition>
  91. <RowDefinition Height="9*"></RowDefinition>
  92. </Grid.RowDefinitions>
  93. <Grid Grid.Row="0" >
  94. <Grid.ColumnDefinitions>
  95. <ColumnDefinition Width="2*"/>
  96. <ColumnDefinition Width="2*"/>
  97. <ColumnDefinition Width="2*"/>
  98. </Grid.ColumnDefinitions>
  99. <TextBlock FontSize="16" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top">原料桶号</TextBlock>
  100. <TextBlock FontSize="16" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">原料位置</TextBlock>
  101. <TextBlock FontSize="16" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top">原料重量</TextBlock>
  102. </Grid>
  103. <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" >
  104. <ItemsControl ItemsSource="{Binding RawMaterialsInfo}" >
  105. <ItemsControl.ItemTemplate>
  106. <DataTemplate>
  107. <Grid x:Name="grb" Height="25" >
  108. <Grid.ColumnDefinitions>
  109. <ColumnDefinition Width="2*"/>
  110. <ColumnDefinition Width="2*"/>
  111. <ColumnDefinition Width="2*"/>
  112. </Grid.ColumnDefinitions>
  113. <TextBlock Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialBarrelNum}"></TextBlock>
  114. <TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialLocation}"></TextBlock>
  115. <TextBlock Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20" Foreground="#FF2AB2E7" Text="{Binding RawMaterialWeight}"></TextBlock>
  116. </Grid>
  117. <DataTemplate.Triggers>
  118. <Trigger Property="IsMouseOver" Value="true">
  119. <Setter TargetName="grb" Property="Background" Value="#112AB2E7" />
  120. </Trigger>
  121. </DataTemplate.Triggers>
  122. </DataTemplate>
  123. </ItemsControl.ItemTemplate>
  124. </ItemsControl>
  125. </ScrollViewer>
  126. </Grid>
  127. </Grid>
  128. <Grid Grid.Row="4">
  129. <Button Command="{Binding ReturnPage}" Width="200" >返回</Button>
  130. </Grid>
  131. </Grid>
  132. </Grid>
  133. </Border>
  134. </Window>