RecipeInfoEditor.xaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <Window x:Class="Aitex.UI.RecipeEditor.View.RecipeInfoEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:recipeEditor="clr-namespace:Aitex.UI.RecipeEditor"
  5. Title="{DynamicResource GlobalLableInfoProperty}" Height="500" Width="680" ResizeMode="NoResize" Topmost="True" ShowInTaskbar="True" Background="#FFC5D0D8" WindowStartupLocation="CenterOwner">
  6. <Window.Resources>
  7. <recipeEditor:BoolConverter x:Key="boolConverter"/>
  8. </Window.Resources>
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="403" />
  12. <RowDefinition Height="45" />
  13. </Grid.RowDefinitions>
  14. <StackPanel>
  15. <GroupBox Header="{DynamicResource GlobalLableInfoOwner}" FontSize="14" Height="101" VerticalAlignment="Top">
  16. <Grid>
  17. <Label Content="{DynamicResource GlobalLableInfoLastModifiedBy}" Height="28" HorizontalAlignment="Left" Margin="6,10,0,0" VerticalAlignment="Top" FontSize="13" />
  18. <Label Content="{Binding LastModifiedBy}" HorizontalAlignment="Left" Margin="139,10,0,40" FontSize="13" />
  19. <Label Content="{DynamicResource GlobalLableInfoLastRevisionTime}" Height="28" HorizontalAlignment="Left" Margin="6,42,0,0" VerticalAlignment="Top" FontSize="13" />
  20. <Label Content="{Binding LastRevisionTime}" Height="28" HorizontalAlignment="Left" Margin="139,42,0,0" VerticalAlignment="Top" FontSize="13" />
  21. <!--Label Content="压力模式:" Height="28" HorizontalAlignment="Left" Margin="6,48,0,0" VerticalAlignment="Top" FontSize="13" />
  22. <ComboBox Text="{Binding PressureMode,Mode=TwoWay}" IsEditable="True" Height="23" HorizontalAlignment="Left" Margin="89,51,0,0" Name="comboBox_PressureMode" VerticalAlignment="Top" Width="120" /-->
  23. </Grid>
  24. </GroupBox>
  25. <GroupBox Header="{DynamicResource GlobalLableInfoLastDescription}" FontSize="14" Height="80" VerticalAlignment="Center" >
  26. <TextBox x:Name="desc" Text="{Binding Description,Mode=OneWay}" Margin="0" Background="#8DFFFFFF" AcceptsReturn="True" AcceptsTab="True" />
  27. </GroupBox>
  28. <GroupBox Header="{DynamicResource GlobalLableInfoCommonSetting}" FontSize="14" Height="227" VerticalAlignment="Bottom">
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="50"/>
  32. <RowDefinition Height="50"/>
  33. <RowDefinition Height="50"/>
  34. <RowDefinition Height="50"/>
  35. </Grid.RowDefinitions>
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="190" />
  38. <ColumnDefinition Width="150" />
  39. <ColumnDefinition Width="170" />
  40. <ColumnDefinition Width="150" />
  41. </Grid.ColumnDefinitions>
  42. <Rectangle Grid.Row="0" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  43. <TextBlock Grid.Row="0" Grid.Column="0" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoBasePressure}" Foreground="White" />
  44. <Rectangle Grid.Row="0" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  45. <TextBox Grid.Row="0" Grid.Column="1" PreviewTextInput="OnPreviewTextInput" Margin="5" TextAlignment="Center" FontSize="11" x:Name="basePressure" Text="{Binding BasePressure,Mode=OneWay}"/>
  46. <Rectangle Grid.Row="0" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  47. <TextBlock Grid.Row="0" Grid.Column="2" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoPumpDownLimit}" Foreground="White" />
  48. <Rectangle Grid.Row="0" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  49. <TextBox Grid.Row="0" Grid.Column="3" PreviewTextInput="OnPreviewTextInput" Margin="5" TextAlignment="Center" FontSize="11" x:Name="pumpDownLimit" Text="{Binding PumpDownLimit,Mode=OneWay}" />
  50. <Rectangle Grid.Row="1" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  51. <TextBlock Grid.Row="1" Grid.Column="0" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoPurgeActive}" Foreground="White" />
  52. <Rectangle Grid.Row="1" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  53. <CheckBox Grid.Row="1" Grid.Column="1" Margin="60 10 0 0" x:Name="purgeActive" IsChecked="{Binding Path=PurgeActive, Converter={StaticResource boolConverter}, Mode=OneWay}"/>
  54. <Rectangle Grid.Row="1" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  55. <TextBlock Grid.Row="1" Grid.Column="2" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoChamber1Temp}" Foreground="White" />
  56. <Rectangle Grid.Row="1" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  57. <TextBox Grid.Row="1" Grid.Column="3" PreviewTextInput="OnPreviewTextInput" Margin="5" TextAlignment="Center" FontSize="11" x:Name="chamber1Temp" Text="{Binding Chamber1Temp,Mode=OneWay}" />
  58. <Rectangle Grid.Row="2" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  59. <TextBlock Grid.Row="2" Grid.Column="0" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource VentingPinState}" Foreground="White" />
  60. <Rectangle Grid.Row="2" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  61. <ComboBox Grid.Row="2" Grid.Column="1" Name="ventingPinState">
  62. <ComboBoxItem Content="Up"></ComboBoxItem>
  63. <ComboBoxItem Content="Down"></ComboBoxItem>
  64. </ComboBox>
  65. <Rectangle Grid.Row="2" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  66. <TextBlock Grid.Row="2" Grid.Column="2" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoChamber2Temp}" Foreground="White" />
  67. <Rectangle Grid.Row="2" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  68. <TextBox Grid.Row="2" Grid.Column="3" PreviewTextInput="OnPreviewTextInput" Margin="5" TextAlignment="Center" FontSize="11" x:Name="chamber2Temp" Text="{Binding Chamber2Temp,Mode=OneWay}" />
  69. <Rectangle Grid.Row="3" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  70. <TextBlock Grid.Row="3" Grid.Column="0" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource PumpingPinState}" Foreground="White" />
  71. <Rectangle Grid.Row="3" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  72. <ComboBox Grid.Row="3" Grid.Column="1" Name="pumpingPinState">
  73. <ComboBoxItem Content="Up"></ComboBoxItem>
  74. <ComboBoxItem Content="Down"></ComboBoxItem>
  75. </ComboBox>
  76. <Rectangle Grid.Row="3" Grid.Column="2" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  77. <TextBlock Grid.Row="3" Grid.Column="2" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource GlobalLableInfoNotToPurgeOrVent}" Foreground="White" />
  78. <Rectangle Grid.Row="3" Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  79. <CheckBox Grid.Row="3" Grid.Column="3" Margin="60 10 0 0" x:Name="notToPurgeOrVent" IsChecked="{Binding Path=NotToPurgeOrVent, Converter={StaticResource boolConverter}, Mode=OneWay}"/>
  80. </Grid>
  81. </GroupBox>
  82. </StackPanel>
  83. <Grid Grid.Row="1" Margin="7,0,0,0">
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="190" />
  86. <ColumnDefinition Width="150" />
  87. <ColumnDefinition Width="320" />
  88. </Grid.ColumnDefinitions>
  89. <Rectangle Grid.Row="0" Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  90. <TextBlock Grid.Row="0" Grid.Column="0" FontSize="15" Margin="5" VerticalAlignment="Center" Text="{DynamicResource PinDownPressure}" Foreground="White" />
  91. <Rectangle Grid.Row="0" Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  92. <TextBox Grid.Row="0" Grid.Column="1" PreviewTextInput="OnPreviewTextInput" Margin="5" TextAlignment="Center" FontSize="11" x:Name="pinDownPressure" Text="{Binding downPressure,Mode=OneWay}"/>
  93. <Button Content="{DynamicResource GlobalLableButtonOk}" Grid.Column="2" Margin="43,10,0,6" Width="70" Height="24" HorizontalAlignment="Left" Click="Button_OK_Click" />
  94. <Button Content="{DynamicResource GlobalLableButtonCancel}" Grid.Column="2" Margin="185,10,0,0" Width="70" Height="24" HorizontalAlignment="Left" Click="Button_Cancel_Click" />
  95. </Grid>
  96. </Grid>
  97. </Window>