RecipeLoadDose.xaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <UserControl x:Class="CyberX8_Themes.UserControls.RecipeLoadDose"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  7. xmlns:Converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="150" d:DesignWidth="300" IsVisibleChanged="Self_IsVisibleChanged">
  10. <UserControl.Resources>
  11. <Converters:IntToTargetNumber3 x:Key="intToTargetNumber3"/>
  12. </UserControl.Resources>
  13. <Grid Height="{Binding ElementName=self,Path=ReplenNum,Converter={StaticResource intToTargetNumber3}}">
  14. <StackPanel Orientation="Vertical">
  15. <!--replen1-->
  16. <Grid Height="75" Width="300">
  17. <Grid.RowDefinitions>
  18. <RowDefinition/>
  19. <RowDefinition/>
  20. </Grid.RowDefinitions>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="0.5*"/>
  23. <ColumnDefinition Width="0.5*"/>
  24. </Grid.ColumnDefinitions>
  25. <Label Content="Replen 1 Recipe:" Grid.ColumnSpan="1" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"></Label>
  26. <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
  27. <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[0].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  28. </Border>
  29. <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox1" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
  30. <ComboBox.ItemTemplate>
  31. <DataTemplate>
  32. <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
  33. </DataTemplate>
  34. </ComboBox.ItemTemplate>
  35. </ComboBox>
  36. <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select" Width="100" Height="32" Click="SelectRecipe1_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  37. </Grid>
  38. <!--replen2-->
  39. <Grid Height="75" Width="300">
  40. <Grid.RowDefinitions>
  41. <RowDefinition/>
  42. <RowDefinition/>
  43. </Grid.RowDefinitions>
  44. <Grid.ColumnDefinitions>
  45. <ColumnDefinition Width="0.5*"/>
  46. <ColumnDefinition Width="0.5*"/>
  47. </Grid.ColumnDefinitions>
  48. <Label Content="Replen 2 Recipe:" Grid.ColumnSpan="1" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"></Label>
  49. <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
  50. <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[1].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  51. </Border>
  52. <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox2" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
  53. <ComboBox.ItemTemplate>
  54. <DataTemplate>
  55. <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
  56. </DataTemplate>
  57. </ComboBox.ItemTemplate>
  58. </ComboBox>
  59. <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select" Width="100" Height="32" Click="SelectRecipe2_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  60. </Grid>
  61. <!--replen3-->
  62. <Grid Height="75" Width="300">
  63. <Grid.RowDefinitions>
  64. <RowDefinition/>
  65. <RowDefinition/>
  66. </Grid.RowDefinitions>
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition Width="0.5*"/>
  69. <ColumnDefinition Width="0.5*"/>
  70. </Grid.ColumnDefinitions>
  71. <Label Content="Replen 3 Recipe:" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"/>
  72. <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
  73. <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[2].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  74. </Border>
  75. <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox3" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
  76. <ComboBox.ItemTemplate>
  77. <DataTemplate>
  78. <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
  79. </DataTemplate>
  80. </ComboBox.ItemTemplate>
  81. </ComboBox>
  82. <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select" Width="100" Height="32" Click="SelectRecipe3_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  83. </Grid>
  84. <!--replen4-->
  85. <Grid Height="75" Width="300">
  86. <Grid.RowDefinitions>
  87. <RowDefinition/>
  88. <RowDefinition/>
  89. </Grid.RowDefinitions>
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition Width="0.5*"/>
  92. <ColumnDefinition Width="0.5*"/>
  93. </Grid.ColumnDefinitions>
  94. <Label Content="Replen 4 Recipe:" FontWeight="Bold" FontSize="15" Margin="4,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></Label>
  95. <Border Background="Black" Margin="155,3,4,3" Height="36" Grid.ColumnSpan="2">
  96. <TextBlock Text="{Binding ElementName=self,Path=ReplenDatas[3].RecipeName}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  97. </Border>
  98. <ComboBox Grid.Row="1" Margin="5,2,5,2" x:Name="comboBox4" ItemsSource="{Binding ElementName=self,Path=RecipeNodes[0].Children}">
  99. <ComboBox.ItemTemplate>
  100. <DataTemplate>
  101. <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
  102. </DataTemplate>
  103. </ComboBox.ItemTemplate>
  104. </ComboBox>
  105. <Button Grid.Row="1" Grid.Column="1" FontSize="14" Content="Select" Width="100" Height="32" Click="SelectRecipe4_Click" Style="{StaticResource SysBtnStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  106. </Grid>
  107. </StackPanel>
  108. </Grid>
  109. </UserControl>