PMCommandView.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <UserControl x:Class="FurnaceUI.Views.Operations.PMCommandView"
  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:cal="http://www.caliburn.org"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  9. mc:Ignorable="d"
  10. Height="650" Width="960" Background="{DynamicResource MainArea_BG}">
  11. <Grid >
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="60"/>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="60"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="360"/>
  19. <ColumnDefinition Width="*"/>
  20. </Grid.ColumnDefinitions>
  21. <Border Grid.Row="1" Grid.Column="0" Margin="10" BorderBrush="Gray" BorderThickness="2">
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="100"/>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
  28. <ContentControl>
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition/>
  32. <RowDefinition/>
  33. </Grid.RowDefinitions>
  34. <TextBlock Text="Abort" FontSize="30" HorizontalAlignment="Center"/>
  35. <TextBlock Grid.Row="1" Text="Abort recipe is begin.&#13; And mode shifts tp the abort."/>
  36. </Grid>
  37. </ContentControl>
  38. <i:Interaction.Triggers>
  39. <i:EventTrigger EventName="Click">
  40. <cal:ActionMessage MethodName="EmergencyAbort"/>
  41. </i:EventTrigger>
  42. </i:Interaction.Triggers>
  43. </Button>
  44. <Border Grid.Row="1" Margin="10" BorderBrush="Gray" BorderThickness="2">
  45. <UniformGrid Rows="2">
  46. <Border Margin="10,10,10,10" BorderBrush="Gray" BorderThickness="2">
  47. <UniformGrid Rows="2">
  48. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  49. <ContentControl>
  50. <Grid>
  51. <Grid.RowDefinitions>
  52. <RowDefinition/>
  53. <RowDefinition/>
  54. </Grid.RowDefinitions>
  55. <TextBlock Text="Idle" FontSize="30" HorizontalAlignment="Center"/>
  56. <TextBlock Grid.Row="1" Text="Idle recipe is begin.&#13;mode shifts to the idle."/>
  57. </Grid>
  58. </ContentControl>
  59. </Button>
  60. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  61. <ContentControl>
  62. <Grid>
  63. <Grid.RowDefinitions>
  64. <RowDefinition/>
  65. <RowDefinition/>
  66. </Grid.RowDefinitions>
  67. <TextBlock Text="Standby" FontSize="30" HorizontalAlignment="Center"/>
  68. <TextBlock Grid.Row="1" Text="Mode shifts to the standby.&#13;"/>
  69. </Grid>
  70. </ContentControl>
  71. </Button>
  72. </UniformGrid>
  73. </Border>
  74. <Border Margin="10,10,10,10" BorderBrush="Gray" BorderThickness="2">
  75. <UniformGrid Rows="2">
  76. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  77. <ContentControl>
  78. <Grid>
  79. <Grid.RowDefinitions>
  80. <RowDefinition/>
  81. <RowDefinition/>
  82. </Grid.RowDefinitions>
  83. <TextBlock Text="Start" FontSize="30" HorizontalAlignment="Center"/>
  84. <TextBlock Grid.Row="1" Text="Process recipe is begin."/>
  85. </Grid>
  86. </ContentControl>
  87. </Button>
  88. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  89. <ContentControl>
  90. <Grid>
  91. <Grid.RowDefinitions>
  92. <RowDefinition/>
  93. <RowDefinition/>
  94. </Grid.RowDefinitions>
  95. <TextBlock Text="End" FontSize="30" HorizontalAlignment="Center"/>
  96. <TextBlock Grid.Row="1" Text="End step is begin."/>
  97. </Grid>
  98. </ContentControl>
  99. </Button>
  100. </UniformGrid>
  101. </Border>
  102. </UniformGrid>
  103. </Border>
  104. </Grid>
  105. </Border>
  106. <WrapPanel Grid.Row="2" Grid.ColumnSpan="2" IsEnabled="{Binding IsEnable}" HorizontalAlignment="Center">
  107. </WrapPanel>
  108. <Grid Grid.Row="1" Grid.Column="1">
  109. <Grid.RowDefinitions>
  110. <RowDefinition Height="100"/>
  111. <RowDefinition Height="120"/>
  112. <RowDefinition Height="*"/>
  113. </Grid.RowDefinitions>
  114. <WrapPanel HorizontalAlignment="Stretch" VerticalAlignment="Center">
  115. <TextBox Text="UNKNOWN" Height="78" Width="246" Margin="10,0,40,0"/>
  116. <Button Content="Close" HorizontalAlignment="Right" Width="180" Height="62">
  117. <i:Interaction.Triggers>
  118. <i:EventTrigger EventName="Click">
  119. <cal:ActionMessage MethodName="ClickCmd">
  120. <cal:Parameter Value="Cancel"/>
  121. </cal:ActionMessage>
  122. </i:EventTrigger>
  123. </i:Interaction.Triggers>
  124. </Button>
  125. </WrapPanel>
  126. <UniformGrid Columns="2" Grid.Row="1">
  127. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  128. <ContentControl>
  129. <Grid>
  130. <Grid.RowDefinitions>
  131. <RowDefinition/>
  132. <RowDefinition/>
  133. </Grid.RowDefinitions>
  134. <TextBlock Text="Reset" FontSize="30" HorizontalAlignment="Center"/>
  135. <TextBlock Grid.Row="1" Text="Reset recipe is begin.&#13; And mode shifts tp the reset."/>
  136. </Grid>
  137. </ContentControl>
  138. </Button>
  139. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="False">
  140. <ContentControl>
  141. <Grid>
  142. <Grid.RowDefinitions>
  143. <RowDefinition/>
  144. <RowDefinition/>
  145. </Grid.RowDefinitions>
  146. <TextBlock Text="Manual" FontSize="30" HorizontalAlignment="Center"/>
  147. <TextBlock Grid.Row="1" Text="Equiment is driven with the manual."/>
  148. </Grid>
  149. </ContentControl>
  150. </Button>
  151. </UniformGrid>
  152. <UniformGrid Grid.Row="2" Rows="2" Columns="2" >
  153. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="{Binding IsHoldButtonEnable}">
  154. <ContentControl>
  155. <Grid>
  156. <Grid.RowDefinitions>
  157. <RowDefinition/>
  158. <RowDefinition/>
  159. </Grid.RowDefinitions>
  160. <TextBlock Text="Hold" FontSize="30" HorizontalAlignment="Center"/>
  161. <TextBlock Grid.Row="1" Text="Recipe is hold in a present step."/>
  162. </Grid>
  163. </ContentControl>
  164. <i:Interaction.Triggers>
  165. <i:EventTrigger EventName="Click">
  166. <cal:ActionMessage MethodName="Hold"/>
  167. </i:EventTrigger>
  168. </i:Interaction.Triggers>
  169. </Button>
  170. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsEnabled="{Binding PM1IsRecipeHold}">
  171. <ContentControl>
  172. <Grid>
  173. <Grid.RowDefinitions>
  174. <RowDefinition/>
  175. <RowDefinition/>
  176. </Grid.RowDefinitions>
  177. <TextBlock Text="Release" FontSize="30" HorizontalAlignment="Center"/>
  178. <TextBlock Grid.Row="1" Text="Release the hold."/>
  179. </Grid>
  180. </ContentControl>
  181. <i:Interaction.Triggers>
  182. <i:EventTrigger EventName="Click">
  183. <cal:ActionMessage MethodName="Release"/>
  184. </i:EventTrigger>
  185. </i:Interaction.Triggers>
  186. </Button>
  187. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
  188. <ContentControl>
  189. <Grid>
  190. <Grid.RowDefinitions>
  191. <RowDefinition/>
  192. <RowDefinition/>
  193. </Grid.RowDefinitions>
  194. <TextBlock Text="Skip" FontSize="30" HorizontalAlignment="Center"/>
  195. <TextBlock Grid.Row="1" Text="Skipping to the next step."/>
  196. </Grid>
  197. </ContentControl>
  198. <i:Interaction.Triggers>
  199. <i:EventTrigger EventName="Click">
  200. <cal:ActionMessage MethodName="Skip"/>
  201. </i:EventTrigger>
  202. </i:Interaction.Triggers>
  203. </Button>
  204. <Button Width="250" Height="80" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
  205. <ContentControl>
  206. <Grid>
  207. <Grid.RowDefinitions>
  208. <RowDefinition/>
  209. <RowDefinition/>
  210. </Grid.RowDefinitions>
  211. <TextBlock Text="Jump" FontSize="30" HorizontalAlignment="Center"/>
  212. <TextBlock Grid.Row="1" Text="Jump to the specified step."/>
  213. </Grid>
  214. </ContentControl>
  215. <i:Interaction.Triggers>
  216. <i:EventTrigger EventName="Click">
  217. <cal:ActionMessage MethodName="Jump"/>
  218. </i:EventTrigger>
  219. </i:Interaction.Triggers>
  220. </Button>
  221. </UniformGrid>
  222. </Grid>
  223. </Grid>
  224. </UserControl>