|
|
@@ -255,76 +255,212 @@ |
|
|
|
</Grid> |
|
|
|
</Border>--> |
|
|
|
|
|
|
|
<Border Name="br" BorderThickness="2" BorderBrush="#0CADF5"> |
|
|
|
<Border |
|
|
|
Name="br" |
|
|
|
BorderBrush="#0CADF5" |
|
|
|
BorderThickness="2"> |
|
|
|
<Border.Background> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/bg.png" /> |
|
|
|
</Border.Background> |
|
|
|
<Grid > |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="50"></RowDefinition> |
|
|
|
<RowDefinition Height="85"></RowDefinition> |
|
|
|
<RowDefinition Height="40"></RowDefinition> |
|
|
|
<RowDefinition></RowDefinition> |
|
|
|
<RowDefinition Height="50" /> |
|
|
|
<RowDefinition Height="85" /> |
|
|
|
<RowDefinition Height="40" /> |
|
|
|
<RowDefinition /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<TextBlock Text="大配料站配方信息" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="0,10"></TextBlock> |
|
|
|
<UniformGrid Grid.Row="1" Columns="2" Margin="0,0,0,5"> |
|
|
|
<StackPanel Orientation="Vertical" > |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,8"> |
|
|
|
<TextBlock Text="请输入配方名称:" Foreground="#FF2AB2E7" FontSize="18" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock> |
|
|
|
<TextBox Text="{Binding RecipeName}" Width="230" Height="30" BorderThickness="1" Background="Transparent" Foreground="Orange" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
BorderBrush="#FF2AB2E7" VerticalAlignment="Center" FontSize="16" ></TextBox> |
|
|
|
<TextBlock |
|
|
|
Margin="0,10" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontSize="25" |
|
|
|
Foreground="#FF2AB2E7" |
|
|
|
Text="大配料站配方信息" /> |
|
|
|
<UniformGrid |
|
|
|
Grid.Row="1" |
|
|
|
Margin="0,0,0,5" |
|
|
|
Columns="3"> |
|
|
|
<StackPanel Orientation="Vertical"> |
|
|
|
<StackPanel Margin="0,8" Orientation="Horizontal"> |
|
|
|
<TextBlock |
|
|
|
Margin="10,0,5,0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontSize="18" |
|
|
|
Foreground="#FF2AB2E7" |
|
|
|
Text="请输入配方名称:" /> |
|
|
|
<TextBox |
|
|
|
Width="170" |
|
|
|
Height="30" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
BorderThickness="1" |
|
|
|
FontSize="16" |
|
|
|
Foreground="Orange" |
|
|
|
Text="{Binding RecipeName}" /> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="请输入托盘编号:" Foreground="#FF2AB2E7" FontSize="18" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock> |
|
|
|
<TextBox Text="{Binding TrayCode}" InputMethod.IsInputMethodEnabled="False" Width="230" Height="30" BorderThickness="1" Background="Transparent" Foreground="Orange" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
BorderBrush="#FF2AB2E7" VerticalAlignment="Center" FontSize="16" ></TextBox> |
|
|
|
<TextBlock |
|
|
|
Margin="10,0,5,0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontSize="18" |
|
|
|
Foreground="#FF2AB2E7" |
|
|
|
Text="请输入托盘编号:" /> |
|
|
|
<TextBox |
|
|
|
Width="170" |
|
|
|
Height="30" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
BorderThickness="1" |
|
|
|
FontSize="16" |
|
|
|
Foreground="Orange" |
|
|
|
InputMethod.IsInputMethodEnabled="False" |
|
|
|
Text="{Binding TrayCode}" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="0,8" Orientation="Horizontal"> |
|
|
|
<TextBlock |
|
|
|
Margin="10,0,5,0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontSize="18" |
|
|
|
Foreground="#FF2AB2E7" |
|
|
|
Text="请选择配方类别:" /> |
|
|
|
<ComboBox |
|
|
|
Width="170" |
|
|
|
Height="30" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
BorderThickness="1" |
|
|
|
FontSize="16" |
|
|
|
Foreground="Orange" |
|
|
|
IsReadOnly="False" |
|
|
|
Text="{Binding RecipeCategory}" |
|
|
|
ItemsSource="{Binding Categorys}" /> |
|
|
|
</StackPanel> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition /> |
|
|
|
<RowDefinition /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,4,0,0"> |
|
|
|
<CheckBox Content="是否洗桶" FontSize="16" Foreground="#FF2AB2E7" Height="30" Width="180" Margin="0,0,10,0" IsChecked="{Binding IsWashingBarrel}"/> |
|
|
|
<Button Content="添加原料" Width="180" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" Command="{Binding AddRecipe}" ></Button> |
|
|
|
<StackPanel |
|
|
|
Margin="0,4,0,0" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<CheckBox |
|
|
|
Width="140" |
|
|
|
Height="30" |
|
|
|
Margin="0,0,10,0" |
|
|
|
Padding="10,0" |
|
|
|
HorizontalContentAlignment="Center" |
|
|
|
Content="是否洗桶" |
|
|
|
FontSize="16" |
|
|
|
Foreground="#FF2AB2E7" |
|
|
|
IsChecked="{Binding IsWashingBarrel}" /> |
|
|
|
<Button |
|
|
|
Width="140" |
|
|
|
Height="30" |
|
|
|
Margin="0,0,10,0" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
Command="{Binding AddRecipe}" |
|
|
|
Content="添加原料" |
|
|
|
Cursor="Hand" |
|
|
|
Foreground="#FF2AB2E7" /> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,4,0,0" HorizontalAlignment="Center"> |
|
|
|
<Button Content="确认" Margin="0,0,10,0" Height="30" Width="180" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Command="{Binding Comfirm}"></Button> |
|
|
|
<Button Click="Button_Click" Content="取消" Margin="0,0,10,0" Height="30" FontSize="20" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Width="180" Cursor="Hand"></Button> |
|
|
|
<StackPanel |
|
|
|
Grid.Row="1" |
|
|
|
Margin="0,4,0,0" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<Button |
|
|
|
Width="140" |
|
|
|
Height="30" |
|
|
|
Margin="0,0,10,0" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
Command="{Binding Comfirm}" |
|
|
|
Content="确认" |
|
|
|
Foreground="#FF2AB2E7" /> |
|
|
|
<Button |
|
|
|
Width="140" |
|
|
|
Height="30" |
|
|
|
Margin="0,0,10,0" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#FF2AB2E7" |
|
|
|
Click="Button_Click" |
|
|
|
Content="取消" |
|
|
|
Cursor="Hand" |
|
|
|
FontSize="20" |
|
|
|
Foreground="#FF2AB2E7" /> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</UniformGrid> |
|
|
|
<Grid Grid.Row="2" Background="#FF2AB2E7" Margin="0,0,0,10"> |
|
|
|
<Grid |
|
|
|
Grid.Row="2" |
|
|
|
Margin="0,0,0,10" |
|
|
|
Background="#FF2AB2E7"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition Width="120" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<TextBlock Grid.Column="0" Text="原料位置" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> |
|
|
|
<GridSplitter></GridSplitter> |
|
|
|
<TextBlock Grid.Column="1" Text="原料名称" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> |
|
|
|
<GridSplitter Grid.Column="1"></GridSplitter> |
|
|
|
<TextBlock Grid.Column="2" Text="原料中文名" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> |
|
|
|
<GridSplitter Grid.Column="1"></GridSplitter> |
|
|
|
<TextBlock Grid.Column="3" Text="托盘桶号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> |
|
|
|
<GridSplitter Grid.Column="2"></GridSplitter> |
|
|
|
<TextBlock Grid.Column="4" Text="原料重量" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"></TextBlock> |
|
|
|
<GridSplitter Grid.Column="3"></GridSplitter> |
|
|
|
<TextBlock Grid.Column="5" Text="操作" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="0" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="原料位置" /> |
|
|
|
<GridSplitter /> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="1" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="原料名称" /> |
|
|
|
<GridSplitter Grid.Column="1" /> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="2" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="原料中文名" /> |
|
|
|
<GridSplitter Grid.Column="1" /> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="3" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="托盘桶号" /> |
|
|
|
<GridSplitter Grid.Column="2" /> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="4" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="原料重量" /> |
|
|
|
<GridSplitter Grid.Column="3" /> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="5" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Foreground="White" |
|
|
|
Text="操作" /> |
|
|
|
</Grid> |
|
|
|
<ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Hidden"> |
|
|
|
<ItemsControl ItemsSource="{Binding RawMaterialsInfo}"> |
|
|
|
<ItemsControl.ItemsPanel> |
|
|
|
<ItemsPanelTemplate> |
|
|
|
<StackPanel></StackPanel> |
|
|
|
<StackPanel /> |
|
|
|
</ItemsPanelTemplate> |
|
|
|
</ItemsControl.ItemsPanel> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
@@ -334,19 +470,19 @@ |
|
|
|
<ControlTemplate> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition></ColumnDefinition> |
|
|
|
<ColumnDefinition></ColumnDefinition> |
|
|
|
<ColumnDefinition></ColumnDefinition> |
|
|
|
<ColumnDefinition></ColumnDefinition> |
|
|
|
<ColumnDefinition Width="120"></ColumnDefinition> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition Width="120" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<!--<ComboBox ItemsSource="{Binding DataContext.materialNames,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" Text="{Binding RawMaterialLocation}" Margin="10,0,0,10" Width="190" FontSize="14" KeyUp="ComboBox_KeyUp" LostFocus="ComboBox_LostFocus"> |
|
|
|
<ComboBox.ItemContainerStyle> |
|
|
|
<Style TargetType="{x:Type ComboBoxItem}"> |
|
|
|
<Setter Property="Background" Value="White" /> |
|
|
|
<Setter Property="Foreground" Value="#e69519"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Style> |
|
|
|
</ComboBox.ItemContainerStyle>--> |
|
|
@@ -361,39 +497,79 @@ |
|
|
|
Foreground="LightGray" |
|
|
|
IsEditable="False" |
|
|
|
ItemsSource="{Binding DataContext.RawMaterialLocation, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}" |
|
|
|
SelectedValue="{Binding RawMaterialLocation}" |
|
|
|
MouseLeave="ComboBox_MouseLeave" |
|
|
|
SelectedValue="{Binding RawMaterialLocation}" |
|
|
|
Style="{StaticResource ComboBoxStyle}" |
|
|
|
Text="{Binding RawMaterialLocation}"/> |
|
|
|
<StackPanel |
|
|
|
VerticalAlignment="Center" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" > |
|
|
|
<TextBlock Grid.Column="1" Text="{Binding RawMaterialName}" Background="Transparent" FontSize="14" Foreground="LightGray" ></TextBlock> |
|
|
|
Text="{Binding RawMaterialLocation}" /> |
|
|
|
<StackPanel |
|
|
|
Grid.Column="1" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="1" |
|
|
|
Background="Transparent" |
|
|
|
FontSize="14" |
|
|
|
Foreground="LightGray" |
|
|
|
Text="{Binding RawMaterialName}" /> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel |
|
|
|
VerticalAlignment="Center" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Center" > |
|
|
|
<TextBlock Grid.Column="1" Text="{Binding RawMaterialChineseName}" Background="Transparent" FontSize="14" Foreground="LightGray" ></TextBlock> |
|
|
|
<StackPanel |
|
|
|
Grid.Column="2" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<TextBlock |
|
|
|
Grid.Column="1" |
|
|
|
Background="Transparent" |
|
|
|
FontSize="14" |
|
|
|
Foreground="LightGray" |
|
|
|
Text="{Binding RawMaterialChineseName}" /> |
|
|
|
</StackPanel> |
|
|
|
<!--<TextBox Text="{Binding RawMaterialName}" Background="Transparent" FontSize="14" |
|
|
|
BorderBrush="#e69519" Foreground="LightGray" Width="190" Margin="10,0,0,10" ></TextBox>--> |
|
|
|
<StackPanel |
|
|
|
Margin="3" Grid.Column="3" Orientation="Horizontal" HorizontalAlignment="Center"> |
|
|
|
<TextBox Text="{Binding RawMaterialBarrelNum}" Background="Transparent" FontSize="14" |
|
|
|
BorderBrush="#e69519" Foreground="LightGray" Width="120" ></TextBox> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel |
|
|
|
Margin="3" Orientation="Horizontal" Grid.Column="4" HorizontalAlignment="Center"> |
|
|
|
<TextBox Text="{Binding RawMaterialWeight}" Background="Transparent" FontSize="14" |
|
|
|
BorderBrush="#e69519" Foreground="LightGray" Width="120" ></TextBox> |
|
|
|
<TextBlock FontSize="14" VerticalAlignment="Center" Margin="4,0,0,0" Text="Kg" Foreground="#e69519" ></TextBlock> |
|
|
|
</StackPanel> |
|
|
|
<Button Grid.Column="5" |
|
|
|
Content="删除" |
|
|
|
Width="94" |
|
|
|
<StackPanel |
|
|
|
Grid.Column="3" |
|
|
|
Margin="3" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<TextBox |
|
|
|
Width="120" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#e69519" |
|
|
|
FontSize="14" |
|
|
|
Foreground="LightGray" |
|
|
|
Text="{Binding RawMaterialBarrelNum}" /> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel |
|
|
|
Grid.Column="4" |
|
|
|
Margin="3" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Orientation="Horizontal"> |
|
|
|
<TextBox |
|
|
|
Width="120" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#e69519" Foreground="LightGray" HorizontalAlignment="Center" |
|
|
|
Command="{Binding DataContext.RemoveRecipe,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}" |
|
|
|
CommandParameter="{Binding RawMaterialLocation}"></Button> |
|
|
|
BorderBrush="#e69519" |
|
|
|
FontSize="14" |
|
|
|
Foreground="LightGray" |
|
|
|
Text="{Binding RawMaterialWeight}" /> |
|
|
|
<TextBlock |
|
|
|
Margin="4,0,0,0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontSize="14" |
|
|
|
Foreground="#e69519" |
|
|
|
Text="Kg" /> |
|
|
|
</StackPanel> |
|
|
|
<Button |
|
|
|
Grid.Column="5" |
|
|
|
Width="94" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Background="Transparent" |
|
|
|
BorderBrush="#e69519" |
|
|
|
Command="{Binding DataContext.RemoveRecipe, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ItemsControl}}" |
|
|
|
CommandParameter="{Binding RawMaterialLocation}" |
|
|
|
Content="删除" |
|
|
|
FontSize="14" |
|
|
|
Foreground="LightGray" /> |
|
|
|
</Grid> |
|
|
|
</ControlTemplate> |
|
|
|
</RadioButton.Template> |
|
|
|