|
- <Window
- x:Class="BPASmartClient.FoodStationTest.View.RecipeInfosView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.FoodStationTest.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
- Title="RecipeInfosView"
- Width="550"
- Height="450"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.DataContext>
- <vm:RecipeInfosViewModel />
- </Window.DataContext>
-
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
-
- <ResourceDictionary>
- <!--#region ListBox样式-->
- <!--<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
- <Setter Property="OverridesDefaultStyle" Value="True" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="BorderBrush" Value="{x:Null}" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border x:Name="border" CornerRadius="8">
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>-->
- <!--#endregion-->
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
-
- <Border
- Name="br"
- BorderBrush="#0CADF5"
- BorderThickness="1">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" />
- </Border.Background>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="80" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <WrapPanel>
- <TextBlock
- Margin="10,10"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="配方名称:" />
- <TextBlock
- Margin="10,10"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RecipeName}" />
- </WrapPanel>
- <WrapPanel Grid.Column="1">
- <TextBlock
- Margin="10,10"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="配方编号:" />
- <TextBlock
- Margin="10,10"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RecipeCode}" />
- </WrapPanel>
-
- <WrapPanel Grid.Row="1">
- <TextBlock
- Margin="10,0,0,0"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="托盘编号:" />
- <TextBlock
- Grid.Row="1"
- Margin="10,10"
- Background="Transparent"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding TrayCode}" />
-
- </WrapPanel>
- <Button
- Grid.Row="1"
- Grid.Column="1"
- Width="100"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- Command="{Binding ReturnPage}">
- 返回
- </Button>
- </Grid>
-
- <Grid Grid.Row="3">
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="20" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2.5*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16">
- 原料名称
- </TextBlock>
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16">
- 原料位置
- </TextBlock>
- <TextBlock
- Grid.Column="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16">
- 原料桶号
- </TextBlock>
- <TextBlock
- Grid.Column="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16">
- 原料重量
- </TextBlock>
- <TextBlock
- Grid.Column="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16">
- 原料类型
- </TextBlock>
- </Grid>
- <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden">
- <ItemsControl Width="548" ItemsSource="{Binding RawMaterialsInfo}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid x:Name="grb" Height="25">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2.5*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RawMaterialName}" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RawMaterialLocation}" />
- <TextBlock
- Grid.Column="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RawMaterialBarrelNum}" />
- <TextBlock
- Grid.Column="3"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RawMaterialWeight}" />
- <TextBlock
- Grid.Column="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="16"
- Foreground="#FF2AB2E7"
- Text="{Binding RawMaterialType}" />
- </Grid>
- <DataTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="grb" Property="Background" Value="#112AB2E7" />
- </Trigger>
- </DataTemplate.Triggers>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </Border>
- </Window>
|