终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

76 righe
6.0 KiB

  1. <Window x:Class="FryPot_DosingSystem.View.FlowProcessView"
  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:FryPot_DosingSystem.View"
  7. xmlns:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
  8. mc:Ignorable="d"
  9. Title="FlowProcessView" Height="550" Width="800" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True">
  10. <Window.DataContext>
  11. <vm:FlowProcessSetViewModel/>
  12. </Window.DataContext>
  13. <Border x:Name="br">
  14. <Border.Background>
  15. <SolidColorBrush Color="#264c73"/>
  16. </Border.Background>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="50"/>
  20. <RowDefinition Height="50"/>
  21. <RowDefinition Height="40"/>
  22. <RowDefinition/>
  23. </Grid.RowDefinitions>
  24. <TextBlock Text="炒锅工艺" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" Background="Transparent" FontSize="25" Cursor="Arrow" ></TextBlock>
  25. <Border BorderThickness="0,0,0,1" BorderBrush="#FF2AB2E7"></Border>
  26. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
  27. <Button Content="保存工艺" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding ConfirmCommand}" ></Button>
  28. <Button Content="取消" Height="30" Width="100" Margin="0,0,10,0" Background="Transparent" FontSize="18" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Command="{Binding CloseWindowCommand}"></Button>
  29. </StackPanel>
  30. <Grid Grid.Row="2" Background="#FF2AB2E7" Margin="0,0,0,8">
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="100"/>
  33. <ColumnDefinition Width="140"/>
  34. <ColumnDefinition Width="140"/>
  35. <ColumnDefinition Width="140"/>
  36. <ColumnDefinition Width="140"/>
  37. <ColumnDefinition Width="140"/>
  38. </Grid.ColumnDefinitions>
  39. <TextBlock Text="工艺步骤" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  40. <GridSplitter BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  41. <TextBlock Grid.Column="1" Text="炒制原料/桶号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  42. <GridSplitter Grid.Column="1" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  43. <TextBlock Grid.Column="2" Text="炒制速度" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  44. <GridSplitter Grid.Column="2" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  45. <TextBlock Grid.Column="3" Text="炒制重量" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"></TextBlock>
  46. <GridSplitter Grid.Column="3" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  47. <TextBlock Grid.Column="4" Text="炒制温度" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
  48. <GridSplitter Grid.Column="4" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  49. <TextBlock Grid.Column="5" Text="炒制时间" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
  50. </Grid>
  51. <ItemsControl ItemsSource="{Binding flowProcessModels}" Grid.Row="3">
  52. <ItemsControl.ItemsPanel>
  53. <ItemsPanelTemplate>
  54. <StackPanel/>
  55. </ItemsPanelTemplate>
  56. </ItemsControl.ItemsPanel>
  57. <ItemsControl.ItemTemplate>
  58. <DataTemplate>
  59. <StackPanel Orientation="Horizontal" >
  60. <TextBox Text="{Binding Id}" Foreground="SkyBlue" Width="100" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="18" Background="Transparent" IsReadOnly="True" BorderBrush="#FF2AB2E7" BorderThickness="1,1,0.5,1" />
  61. <TextBox Text="{Binding FryMaterialNum}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  62. <TextBox Text="{Binding FrySpeed}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  63. <TextBox Text="{Binding FryWeight}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  64. <TextBox Text="{Binding FryTemperature}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  65. <TextBox Text="{Binding FryPeriodTime}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,1,1"/>
  66. </StackPanel>
  67. </DataTemplate>
  68. </ItemsControl.ItemTemplate>
  69. </ItemsControl>
  70. </Grid>
  71. </Border>
  72. </Window>