SetTemperatureView.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <UserControl x:Class="FurnaceUI.Views.Operations.SetTemperatureView"
  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:FurnaceUI.Views.Operations"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. mc:Ignorable="d"
  10. d:DesignHeight="440" d:DesignWidth="600">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="310"/>
  14. <RowDefinition Height="80"></RowDefinition>
  15. <RowDefinition Height="50"></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="*"/>
  19. </Grid.ColumnDefinitions>
  20. <Border Grid.Row="0" Grid.Column="0" Margin="10,0,0,0">
  21. <Canvas>
  22. <Border CornerRadius="40,40,0,0" Canvas.Left="40" Canvas.Top="10" Height="285" BorderBrush="Green" BorderThickness="1,1,1,1" Width="490">
  23. <Label Content="℃" Margin="200,13,0,0"></Label>
  24. </Border>
  25. <Border CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15" Canvas.Left="500" Canvas.Top="107">
  26. </Border>
  27. <Border CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15" Canvas.Left="500" Canvas.Top="147">
  28. </Border>
  29. <Border CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15" Canvas.Left="500" Canvas.Top="187">
  30. </Border>
  31. <Border CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15" Canvas.Left="500" Canvas.Top="227">
  32. </Border>
  33. <Border CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15" Canvas.Left="500" Canvas.Top="267">
  34. </Border>
  35. <Grid Width="450" VerticalAlignment="Bottom" Canvas.Left="60" Canvas.Top="65" >
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="30"/>
  38. <RowDefinition Height="40"/>
  39. <RowDefinition Height="40"/>
  40. <RowDefinition Height="40"/>
  41. <RowDefinition Height="40"/>
  42. <RowDefinition Height="40"/>
  43. </Grid.RowDefinitions>
  44. <Grid.ColumnDefinitions>
  45. <ColumnDefinition Width="25"/>
  46. <ColumnDefinition Width="135"/>
  47. <ColumnDefinition Width="135"/>
  48. <ColumnDefinition Width="135"/>
  49. </Grid.ColumnDefinitions>
  50. <Border Grid.Row="0" Grid.Column="0" Padding="1" >
  51. </Border>
  52. <Border Grid.Row="0" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="1" >
  53. <TextBlock Text="Actual" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="34" Canvas.Top="59"/>
  54. </Border>
  55. <Border Grid.Row="0" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="1" >
  56. <TextBlock Text="Set" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="34" Canvas.Top="59"/>
  57. </Border>
  58. <Border Grid.Row="0" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="1" >
  59. <TextBlock Grid.Row="0" Grid.Column="3" Text="Ramp" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="34" Canvas.Top="106"/>
  60. </Border>
  61. <Border Grid.Row="1" Grid.Column="0" Padding="1" CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15">
  62. </Border>
  63. <Border Grid.Row="1" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Padding="1" >
  64. <TextBlock Grid.Row="0" Grid.Column="2" Text="{Binding TopHeaterActionValue}" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="34" Canvas.Top="128"/>
  65. </Border>
  66. <Border Grid.Row="1" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  67. <TextBox FontSize="25" Text="{Binding TopHeaterSetPoint, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  68. </Border>
  69. <Border Grid.Row="1" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" Height="40" VerticalAlignment="Top" >
  70. <TextBox FontSize="25" Text="{Binding TopHeaterSetRamp, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  71. </Border>
  72. <Border Grid.Row="2" Grid.Column="0" Padding="1" CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15">
  73. </Border>
  74. <Border Grid.Row="2" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Padding="1" >
  75. <TextBlock Text="{Binding TopCenterActionValue}" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  76. </Border>
  77. <Border Grid.Row="2" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  78. <TextBox FontSize="25" Text="{Binding TopCenterHeaterSetPoint, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  79. </Border>
  80. <Border Grid.Row="2" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1">
  81. <TextBox FontSize="25" Text="{Binding TopCenterHeaterSetRamp, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  82. </Border>
  83. <Border Grid.Row="3" Grid.Column="0" Padding="1" CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15">
  84. </Border>
  85. <Border Grid.Row="3" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Padding="1" >
  86. <TextBlock Text="{Binding CenterHeaderActionValue}" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  87. </Border>
  88. <Border Grid.Row="3" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  89. <TextBox FontSize="25" Text="{Binding CenterHeaterSetPoint, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  90. </Border>
  91. <Border Grid.Row="3" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  92. <TextBox FontSize="25" Text="{Binding CenterHeaterSetRamp, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  93. </Border>
  94. <Border Grid.Row="4" Grid.Column="0" Padding="1" CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15">
  95. </Border>
  96. <Border Grid.Row="4" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Padding="5,1" >
  97. <TextBlock Text="{Binding CenterBottomHeaterActionValue}" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  98. </Border>
  99. <Border Grid.Row="4" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  100. <TextBox FontSize="25" Text="{Binding CenterBottomHeaterSetPoint, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  101. </Border>
  102. <Border Grid.Row="4" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  103. <TextBox FontSize="25" Text="{Binding CenterBottomHeaterSetRamp, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  104. </Border>
  105. <Border Grid.Row="5" Grid.Column="0" Padding="1" CornerRadius="40,40,40,40" BorderBrush="Green" BorderThickness="1,1,1,1" Width="15" Height="15">
  106. </Border>
  107. <Border Grid.Row="5" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Padding="5,1" >
  108. <TextBlock Text="{Binding BottomHeaterActionValue}" TextWrapping="Wrap" Foreground="Black" FontSize="15" FontFamily="Segoe" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  109. </Border>
  110. <Border Grid.Row="5" Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  111. <TextBox FontSize="25" Text="{Binding CenterBottomHeaterSetPoint, UpdateSourceTrigger=PropertyChanged}" Width="135" Padding="1" ></TextBox>
  112. </Border>
  113. <Border Grid.Row="5" Grid.Column="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Padding="1" >
  114. <TextBox FontSize="25" Text="{Binding BottomHeaterSetRamp, UpdateSourceTrigger=PropertyChanged}" Width="135" ></TextBox>
  115. </Border>
  116. </Grid>
  117. </Canvas>
  118. </Border>
  119. <DockPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,0">
  120. <RadioButton Content="Inner Control" FontSize="35" Width="260" Height="45" GroupName="ControlMode" Margin="10" IsChecked="{Binding IsInnerControlChecked}">
  121. <i:Interaction.Triggers>
  122. <i:EventTrigger EventName="Click">
  123. <cal:ActionMessage MethodName="SelectControlCmd">
  124. <cal:Parameter Value="Inner Control"></cal:Parameter>
  125. </cal:ActionMessage>
  126. </i:EventTrigger>
  127. </i:Interaction.Triggers>
  128. </RadioButton>
  129. <RadioButton Content="Outer Control" FontSize="35" Width="260" Height="45" GroupName="ControlMode" Margin="10" IsChecked="{Binding IsOutControlChecked}">
  130. <i:Interaction.Triggers>
  131. <i:EventTrigger EventName="Click">
  132. <cal:ActionMessage MethodName="SelectControlCmd">
  133. <cal:Parameter Value="Outer Control"></cal:Parameter>
  134. </cal:ActionMessage>
  135. </i:EventTrigger>
  136. </i:Interaction.Triggers>
  137. </RadioButton>
  138. </DockPanel>
  139. <DockPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,0,0">
  140. <Border>
  141. <Button Content="EXEC" Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="130" Height="45">
  142. <i:Interaction.Triggers>
  143. <i:EventTrigger EventName="Click">
  144. <cal:ActionMessage MethodName="EXECCmd">
  145. </cal:ActionMessage>
  146. </i:EventTrigger>
  147. </i:Interaction.Triggers>
  148. </Button>
  149. </Border>
  150. <Border>
  151. <Button Content="Close" Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="130" Height="45">
  152. <i:Interaction.Triggers>
  153. <i:EventTrigger EventName="Click">
  154. <cal:ActionMessage MethodName="ClosedCmd">
  155. </cal:ActionMessage>
  156. </i:EventTrigger>
  157. </i:Interaction.Triggers>
  158. </Button>
  159. </Border>
  160. </DockPanel>
  161. </Grid>
  162. </UserControl>