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

60 lines
3.3 KiB

  1. <Window x:Class="BPASmart.RecipeManagement.View.MaterialConfigure"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmart.RecipeManagement.View"
  7. xmlns:vm="clr-namespace:BPASmart.RecipeManagement.ViewModel"
  8. mc:Ignorable="d"
  9. Title="MaterialConfigure" Height="300" Width="500" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="White" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  10. <Window.DataContext>
  11. <vm:MaterialConfigureViewModel/>
  12. </Window.DataContext>
  13. <Window.Resources>
  14. </Window.Resources>
  15. <Border CornerRadius="20" Background="White">
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="17*"/>
  19. <ColumnDefinition Width="33*"/>
  20. </Grid.ColumnDefinitions>
  21. <Grid.RowDefinitions>
  22. <RowDefinition/>
  23. <RowDefinition />
  24. <RowDefinition />
  25. <RowDefinition Height="40"/>
  26. <RowDefinition />
  27. </Grid.RowDefinitions>
  28. <TextBlock Text="原料名称:" FontSize="22"
  29. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  30. <TextBlock Text="原料种类:" FontSize="22" Grid.Row="1"
  31. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  32. <TextBlock Text="原料位置:" FontSize="22" Grid.Row="2"
  33. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  34. <TextBox Text="{Binding MaterialName}" FontSize="22" Grid.Column="1" Width="200" Height="40"
  35. VerticalAlignment="Center" HorizontalAlignment="Center"
  36. VerticalContentAlignment="Center"/>
  37. <ComboBox ItemsSource="{Binding MaterialTypes}"
  38. FontSize="18"
  39. Grid.Column="1" Grid.Row="1" Width="200" Height="40"
  40. SelectedItem="{Binding MaterialType}"/>
  41. <TextBox Text="{Binding MaterialPosion}" FontSize="22" Grid.Column="1" Grid.Row="2"
  42. Width="100" Height="40"
  43. VerticalAlignment="Center" HorizontalAlignment="Center"
  44. VerticalContentAlignment="Center"/>
  45. <TextBlock Text="{Binding ErrorMessage}" Grid.Row="3" Grid.ColumnSpan=" 2"
  46. Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  47. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal"
  48. HorizontalAlignment="Center" VerticalAlignment="Center">
  49. <Button Content="保存" Foreground="White" FontSize="22" Width="120" Height="40" Margin="10" Background="#58B0ED"
  50. Command="{Binding SaveCommand}"/>
  51. <Button Content="取消" Foreground="White" FontSize="22" Width="120" Height="40" Margin="10" Background="#58B0ED"
  52. Click="Button_Click"/>
  53. </StackPanel>
  54. </Grid>
  55. </Border>
  56. </Window>