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

преди 2 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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" BorderThickness="1" >
  52. <Border.Background>
  53. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
  54. </Border.Background>
  55. <Grid>
  56. <Grid.RowDefinitions>
  57. <RowDefinition Height="5" />
  58. <RowDefinition />
  59. </Grid.RowDefinitions>
  60. <Grid Grid.Row="1">
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="40" />
  63. <RowDefinition Height="40" />
  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. <Grid Grid.Row="2">
  76. <Grid.RowDefinitions>
  77. <RowDefinition></RowDefinition>
  78. </Grid.RowDefinitions>
  79. <Grid.ColumnDefinitions>
  80. <ColumnDefinition Width="2*"/>
  81. <ColumnDefinition Width="9*"/>
  82. </Grid.ColumnDefinitions>
  83. <TextBlock Grid.Row="0" HorizontalAlignment="Center">小料</TextBlock>
  84. <Grid Grid.Column="1">
  85. <Grid.RowDefinitions>
  86. <RowDefinition Height="1*"></RowDefinition>
  87. <RowDefinition Height="9*"></RowDefinition>
  88. </Grid.RowDefinitions>
  89. <Grid Grid.Row="0" >
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition Width="2*"/>
  92. <ColumnDefinition Width="2*"/>
  93. <ColumnDefinition Width="2*"/>
  94. </Grid.ColumnDefinitions>
  95. <TextBlock FontSize="16" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top">原料桶号</TextBlock>
  96. <TextBlock FontSize="16" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top">原料位置</TextBlock>
  97. <TextBlock FontSize="16" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top">原料重量</TextBlock>
  98. </Grid>
  99. <!--<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  100. <Grid>
  101. <ItemsControl ItemsSource="{Binding RawMaterials}" >
  102. <ItemsControl.ItemTemplate>
  103. <DataTemplate>
  104. <Grid x:Name="gr" >
  105. <Grid.ColumnDefinitions>
  106. <ColumnDefinition Width="2*"/>
  107. <ColumnDefinition Width="2*"/>
  108. <ColumnDefinition Width="2*"/>
  109. </Grid.ColumnDefinitions>
  110. <TextBlock Grid.Column="0" Text="{Binding RawMaterialBarrelNum}"></TextBlock>
  111. <TextBlock Grid.Column="1" Text="{Binding RawmaterialLocation}"></TextBlock>
  112. <TextBlock Grid.Column="2" Text="{Binding RawMaterialWeight}"></TextBlock>
  113. </Grid>
  114. <DataTemplate.Triggers>
  115. <Trigger Property="IsMouseOver" Value="true">
  116. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  117. </Trigger>
  118. </DataTemplate.Triggers>
  119. </DataTemplate>
  120. </ItemsControl.ItemTemplate>
  121. </ItemsControl>
  122. </Grid>
  123. </ScrollViewer>-->
  124. <ItemsControl ItemsSource="{Binding RawMaterials}" >
  125. <ItemsControl.ItemTemplate>
  126. <DataTemplate>
  127. <Grid x:Name="gr" >
  128. <Grid.ColumnDefinitions>
  129. <ColumnDefinition Width="2*"/>
  130. <ColumnDefinition Width="2*"/>
  131. <ColumnDefinition Width="2*"/>
  132. </Grid.ColumnDefinitions>
  133. <TextBlock Grid.Column="0" Text="{Binding RawMaterialBarrelNum}"></TextBlock>
  134. <TextBlock Grid.Column="1" Text="{Binding RawMaterialLocation}"></TextBlock>
  135. <TextBlock Grid.Column="2" Text="{Binding RawMaterialWeight}"></TextBlock>
  136. </Grid>
  137. </DataTemplate>
  138. </ItemsControl.ItemTemplate>
  139. </ItemsControl>
  140. </Grid>
  141. </Grid>
  142. <Grid Grid.Row="3">
  143. <Button Command="{Binding ReturnPage}" Width="200" >返回</Button>
  144. </Grid>
  145. </Grid>
  146. </Grid>
  147. </Border>
  148. </Window>