|
|
@@ -5,14 +5,109 @@ |
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
|
xmlns:local="clr-namespace:BPASmartClient.TourismCollege.View" |
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
xmlns:vm="clr-namespace:BPASmartClient.TourismCollege.ViewModel" |
|
|
|
Width="800" |
|
|
|
Height="450" |
|
|
|
mc:Ignorable="d"> |
|
|
|
|
|
|
|
<UserControl.DataContext> |
|
|
|
<vm:AddRawMaterialViewModel /> |
|
|
|
</UserControl.DataContext> |
|
|
|
<UserControl.Resources> |
|
|
|
<ResourceDictionary> |
|
|
|
<ResourceDictionary.MergedDictionaries> |
|
|
|
<ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" /> |
|
|
|
<ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" /> |
|
|
|
<ResourceDictionary Source="/BPASmartClient.CustomResource;component/Recdictionarys/GlobalStyle.xaml" /> |
|
|
|
</ResourceDictionary.MergedDictionaries> |
|
|
|
</ResourceDictionary> |
|
|
|
</UserControl.Resources> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="50" /> |
|
|
|
<RowDefinition Height="1*" /> |
|
|
|
<RowDefinition Height="1*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="2*" /> |
|
|
|
<ColumnDefinition Width="1*" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<!--#region 辅料--> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="50" /> |
|
|
|
<RowDefinition Height="1*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<DockPanel LastChildFill="False"> |
|
|
|
<TextBlock |
|
|
|
Margin="5" |
|
|
|
HorizontalAlignment="Left" |
|
|
|
Text="辅料参数设置" /> |
|
|
|
<Button Content="新增辅料数据" DockPanel.Dock="Right" /> |
|
|
|
</DockPanel> |
|
|
|
|
|
|
|
<Border Grid.Row="1" BorderThickness="1"> |
|
|
|
<ListView Width="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}}" ItemsSource="{Binding Accessories}"> |
|
|
|
|
|
|
|
<ListView.View> |
|
|
|
<GridView> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Id}" Header="ID" Width="50"/> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Loc}" Header="位置" Width="50"/> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Name}" Header="名称"/> |
|
|
|
<GridViewColumn Header="操作"> |
|
|
|
<GridViewColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Button Command="{Binding DataContext.DeleteAccessoryInfoCommand, |
|
|
|
RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}" Content="删除" /> |
|
|
|
</DataTemplate> |
|
|
|
</GridViewColumn.CellTemplate> |
|
|
|
</GridViewColumn> |
|
|
|
</GridView> |
|
|
|
</ListView.View> |
|
|
|
</ListView> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
<!--#endregion--> |
|
|
|
|
|
|
|
<!--#region 调料--> |
|
|
|
<Grid Grid.Row="1"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="50" /> |
|
|
|
<RowDefinition Height="1*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<DockPanel LastChildFill="False"> |
|
|
|
<TextBlock |
|
|
|
Margin="5" |
|
|
|
HorizontalAlignment="Left" |
|
|
|
Text="调料参数设置" /> |
|
|
|
<Button Content="新增调料数据" DockPanel.Dock="Right" /> |
|
|
|
</DockPanel> |
|
|
|
|
|
|
|
<Border Grid.Row="1" BorderThickness="1"> |
|
|
|
<ListView Width="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}}" ItemsSource="{Binding Seasonings}"> |
|
|
|
|
|
|
|
<ListView.View> |
|
|
|
<GridView> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Id}" Header="ID" Width="50"/> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Loc}" Header="位置" Width="50"/> |
|
|
|
<GridViewColumn DisplayMemberBinding="{Binding Name}" Header="名称"/> |
|
|
|
<GridViewColumn Header="操作"> |
|
|
|
<GridViewColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Button Command="{Binding DataContext.DeleteAccessoryInfoCommand, |
|
|
|
RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}" Content="删除" /> |
|
|
|
</DataTemplate> |
|
|
|
</GridViewColumn.CellTemplate> |
|
|
|
</GridViewColumn> |
|
|
|
</GridView> |
|
|
|
</ListView.View> |
|
|
|
</ListView> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
<!--#endregion--> |
|
|
|
<!--#region 原料--> |
|
|
|
|
|
|
|
<!--#endregion--> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</UserControl> |