Selaa lähdekoodia

ModuleAuto Add
ModuleAutoViewModel Add

DESKTOP-6U0VOTJ\User 6 vuotta sitten
vanhempi
commit
6fa01a2cbd

+ 293 - 48
Dev/OHV/OHV.Module.Monitoring/Interactivity/ModuleAuto.xaml

@@ -7,7 +7,7 @@
              xmlns:local="clr-namespace:OHV.Module.Monitoring.Interactivity"
              mc:Ignorable="d" 
              d:DesignHeight="710" d:DesignWidth="1212">
-    <Grid>
+    <Grid Background="White">
         <Grid.ColumnDefinitions>
             <ColumnDefinition Width="641*"/>
             <ColumnDefinition Width="379*"/>
@@ -22,67 +22,178 @@
             </Grid.RowDefinitions>
 
             <Grid Grid.Row="0">
-                <Grid.ColumnDefinitions>
-                    <ColumnDefinition Width="81*"/>
-                    <ColumnDefinition Width="560*"/>
-                </Grid.ColumnDefinitions>
-                <Grid Grid.Column="0">
-                    <DockPanel Margin="4,0,0,0">
-                        <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" Height="Auto" materialDesign:ButtonAssist.CornerRadius="50 50 0 0"
-            ToolTip="MaterialDesignRaisedAccentButton with Round Top Corners" Margin="0,15.999,0,12.334" RenderTransformOrigin="0.5,0.5" Background="#FF9B5107" UseLayoutRounding="False">
-                            <Button.RenderTransform>
-                                <TransformGroup>
-                                    <ScaleTransform ScaleX="-1"/>
-                                    <SkewTransform/>
-                                    <RotateTransform Angle="180"/>
-                                    <TranslateTransform/>
-                                </TransformGroup>
-                            </Button.RenderTransform>
-                            <TextBlock Text="TABOS" RenderTransformOrigin="1,1" Width="51" Foreground="White">
-                                <TextBlock.RenderTransform>
-                                    <TransformGroup>
-                                        <ScaleTransform ScaleX="-1"/>
-                                        <SkewTransform/>
-                                        <RotateTransform Angle="180"/>
-                                        <TranslateTransform/>
-                                    </TransformGroup>
-                                </TextBlock.RenderTransform>
-                            </TextBlock>
-                        </Button>
-                    </DockPanel>
-                </Grid>
+                <Grid.RowDefinitions>
+                    <RowDefinition/>
+                    <RowDefinition/>
+                </Grid.RowDefinitions>
 
-                <Grid Grid.Column="1">
+                <Grid Grid.Row="0" Margin="96,0,0,0">
                     <Grid.RowDefinitions>
                         <RowDefinition Height="23*"/>
                         <RowDefinition Height="22*"/>
                     </Grid.RowDefinitions>
+
+                    <Grid Grid.Row="0">
+                        <DockPanel Background="#FFDCA617" Margin="-94,2,2,-45">
+                            <ProgressBar Height="38" Margin="298,0,0,0" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="367" IsIndeterminate="True">
+                                <ProgressBar.RenderTransform>
+                                    <TransformGroup>
+                                        <ScaleTransform ScaleY="-1"/>
+                                        <SkewTransform/>
+                                        <RotateTransform/>
+                                        <TranslateTransform/>
+                                    </TransformGroup>
+                                </ProgressBar.RenderTransform>
+                            </ProgressBar>
+                        </DockPanel>
+                        <TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" Width="366" Height="45" Foreground="White" FontSize="30" Margin="0,0,2,0"><Run Text="Tabos Battery Energy "/><InlineUIContainer>
+                                <materialDesign:PackIcon Kind="BatteryCharging" Height="28" RenderTransformOrigin="0.5,0.857" Width="33"/>
+                            </InlineUIContainer></TextBlock>
+                    </Grid>
                 </Grid>
 
-                <Grid Grid.Row="0" Grid.ColumnSpan="2">
-                    <Grid.RowDefinitions>
-                        <RowDefinition Height="*"/>
-                        <RowDefinition Height="*"/>
-                    </Grid.RowDefinitions>
+                <Grid Background="#FFD18E00" Grid.Row="1" Margin="2,0,2,1">
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition/>
+                    </Grid.ColumnDefinitions>
+
+                    <TextBlock Text="STX" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,52,4" Foreground="White"/>
+                    <TextBlock Text="RTX" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,138,3" Foreground="White"/>
+
+                    <Button Margin="392,28,311,19" Height="Auto" Background="{x:Null}" BorderBrush="#FF683400">
+                        <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
+                    </Button>
+                    <TextBlock Text="Open" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="404,0,323,3" Foreground="White" Width="31"/>
+
+                    <Button Margin="486,28,217,19" Background="{x:Null}" Height="Auto" BorderBrush="#FF683400">
+                        <materialDesign:PackIcon Kind="CloseNetwork" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
+                    </Button>
+                    <TextBlock Text="Close" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="499,0,228,3" Foreground="White" Width="31"/>
+
+                    <Button Background="{x:Null}" Margin="581,27,122,20" Height="Auto" BorderBrush="#FF683400">
+                        <materialDesign:PackIcon Kind="CircleDouble" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                    </Button>
+
+                    <Button Background="{x:Null}" Margin="667,27,36,20" Height="Auto" BorderBrush="#FF683400">
+                        <materialDesign:PackIcon Kind="CircleDouble" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                    </Button>
                 </Grid>
+
+                <materialDesign:PackIcon Kind="CarBattery" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="158,45,478,51" Height="Auto" Grid.RowSpan="2" Width="Auto"/>
             </Grid>
 
             <Grid Grid.Row="1">
+                <Grid.RowDefinitions>
+                    <RowDefinition/>
+                    <RowDefinition/>
+                </Grid.RowDefinitions>
                 <DockPanel>
                     <TextBlock Text="Laser Status" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                 </DockPanel>
+
+                <Grid Grid.Row="0" Margin="2,2,2,0" Background="#FF7EBFFF">
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*"/>
+                    </Grid.ColumnDefinitions>
+
+                    <Grid Grid.Column="0">
+                    </Grid>
+                    <Grid Grid.Column="1">
+                        <DockPanel VerticalAlignment="Center" HorizontalAlignment="Center">
+                            <TextBlock Text="Robot Lazer Scanner" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="30"/>
+                        </DockPanel>
+                    </Grid>
+                </Grid>
+
+                <Grid Grid.Row="1" Margin="2,0,2,2" Background="#FF288DF1">
+
+                    <Button Margin="392,24,311,23" Height="Auto" Background="{x:Null}" BorderBrush="#FF0016EE">
+                        <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
+                    </Button>
+                    <TextBlock Text="Open" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="404,0,323,7" Foreground="White" Width="31"/>
+
+                    <Button Margin="488,24,215,23" Height="Auto" Background="{x:Null}" BorderBrush="#FF0016EE">
+                        <materialDesign:PackIcon Kind="CloseNetworkOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
+                    </Button>
+                    <TextBlock Text="Close" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="502,0,225,7" Foreground="White" Width="31"/>
+                </Grid>
+
+                <materialDesign:PackIcon Kind="ImageFilterCenterFocusStrongOutline" Margin="158,48,0,0" Height="82" Grid.RowSpan="2" Width="126" />
             </Grid>
 
             <Grid Grid.Row="2">
-                <DockPanel>
-                    <TextBlock Text="PIO or Devices Status" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
-                </DockPanel>
+                <Grid.RowDefinitions>
+                    <RowDefinition/>
+                    <RowDefinition/>
+                </Grid.RowDefinitions>
+
+                <Grid Grid.Row="0" Background="#FF62953F" Margin="2,0">
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*"/>
+                    </Grid.ColumnDefinitions>
+
+                    <Grid Grid.Column="0">
+
+                    </Grid>
+
+                    <Grid Grid.Column="1">
+                        <DockPanel>
+                            <TextBlock Text="Steering System" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="30"/>
+                        </DockPanel>
+                    </Grid>
+                </Grid>
+
+                <Grid Grid.Row="1" Background="#FF3C6C1B" Margin="2,0,2,2">
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition/>
+                    </Grid.ColumnDefinitions>
+
+                    <Grid Grid.Column="0">
+
+                        <Button Margin="392,24,311,23" Height="Auto" Background="{x:Null}" BorderBrush="#FF08A600">
+                            <materialDesign:PackIcon Kind="RotateLeftVariant" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
+                        </Button>
+                        <TextBlock Text="Left" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="404,0,323,7" Foreground="White" Width="31"/>
+
+                        <Button Margin="488,24,215,23" Height="Auto" Background="{x:Null}" BorderBrush="#FF08A600">
+                            <materialDesign:PackIcon Kind="RotateRightVariant" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
+                        </Button>
+                        <TextBlock Text="Right" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="501,0,226,7" Foreground="White" Width="31"/>
+                    </Grid>
+                </Grid>
+
+                <materialDesign:PackIcon Kind="SearchHandsFree" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="Auto" Margin="159,47,477,48" Grid.RowSpan="2" Width="Auto"/>
             </Grid>
 
             <Grid Grid.Row="3">
-                <DockPanel>
-                    <TextBlock Text="Ocs Command" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
-                </DockPanel>
+                <Grid.RowDefinitions>
+                    <RowDefinition Height="*"/>
+                    <RowDefinition Height="*"/>
+                </Grid.RowDefinitions>
+
+                <Grid Grid.Row="0" Background="#FF4D4D4D" Margin="2,0">
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition/>
+                        <ColumnDefinition/>
+                    </Grid.ColumnDefinitions>
+                    <Grid Grid.Column="0"></Grid>
+                    <Grid Grid.Column="1">
+                        <DockPanel>
+                            <TextBlock Text="OCS System Command" Foreground="White" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                        </DockPanel>
+                    </Grid>
+                </Grid>
+
+                <Grid Grid.Row="1" Background="#FF292929" Margin="2,0,2,2">
+                    <StackPanel>
+                        <CheckBox x:Name="MaterialDesignOutlinedTextFieldTextBoxEnabledComboBox" IsChecked="True" Margin="339,0,0,8" Content="Enabled"/>
+                        <TextBox Style="{StaticResource MaterialDesignOutlinedTextFieldTextBox}" VerticalAlignment="Top" Height="59" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" materialDesign:HintAssist.Hint="Command Area" IsEnabled="{Binding IsChecked, ElementName=MaterialDesignOutlinedTextFieldTextBoxEnabledComboBox}" Margin="339,0,2,0" />
+                    </StackPanel>
+                </Grid>
+
+                <materialDesign:PackIcon Kind="LanConnect" Height="83" RenderTransformOrigin="0.5,0.857" Width="126" Margin="159,41,0,0" Grid.RowSpan="2"/>
             </Grid>
         </Grid>
 
@@ -95,22 +206,156 @@
             </Grid.RowDefinitions>
 
             <Grid Grid.Row="0">
-                <DockPanel>
-                    <TextBlock Text="Vehicle Model name or Serial Code" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
-                </DockPanel>
+                <Grid.RowDefinitions>
+                    <RowDefinition/>
+                    <RowDefinition/>
+                </Grid.RowDefinitions>
+                <Grid Grid.Row="0">
+                    <DockPanel>
+                        <TextBlock Text="Vehicle Machine #1" Style="{StaticResource MaterialDesignHeadline5TextBlock}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                    </DockPanel>
+                </Grid>
+                <Grid Grid.Row="1">
+                    <DockPanel>
+                        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">
+                            <Hyperlink IsEnabled="False" Style="{StaticResource MaterialDesignHeadline6Hyperlink}">
+                            S/N : G2S008ICOOT00M
+                            </Hyperlink>
+                        </TextBlock>
+                    </DockPanel>
+                </Grid>
             </Grid>
 
             <Grid Grid.Row="1">
                 <DockPanel>
-                    <TextBlock Text="Device Status % Monitor" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                    <TextBlock Text="Device Status 0.0% Monitor" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                 </DockPanel>
+                <materialDesign:PackIcon Kind="ChartTimelineVariant" Height="39" Width="46" Margin="89,183,0,0" />
+                <materialDesign:PackIcon Kind="TimelineClockOutline" Height="39" Width="46" Margin="161,183,0,0" />
+                <materialDesign:PackIcon Kind="BatteryChargingWirelessWarning" Height="39" Width="46" Margin="236,183,0,0" />
+                <materialDesign:PackIcon Kind="Bullhorn" Height="39" Width="46" Margin="310,183,0,0" />
             </Grid>
 
             <Grid Grid.Row="2">
-                <DockPanel>
-                    <TextBlock Text="Jog Pad" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                <Grid.ColumnDefinitions>
+                    <ColumnDefinition/>
+                    <ColumnDefinition/>
+                    <ColumnDefinition/>
+                </Grid.ColumnDefinitions>
+
+                <Grid.RowDefinitions>
+                    <RowDefinition/>
+                    <RowDefinition/>
+                </Grid.RowDefinitions>
+
+                <DockPanel Grid.Column="0" Grid.Row="1">
+                    <!--<Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Margin="0,10,0,3" Width="146">
+                        <materialDesign:PackIcon Kind="ArrowLeftBoldBoxOutline" Height="86" Width="86"/>
+                    </Button>-->
+                    <materialDesign:Badged Badge="Warring" BadgeColorZoneMode="Dark">
+                        <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="150" Height="142">
+                            <materialDesign:PackIcon Kind="ArrowLeftBoldBoxOutline" Height="86" Width="86"/>
+                        </Button>
+                    </materialDesign:Badged>
                 </DockPanel>
+                <DockPanel Grid.Column="1" Grid.Row="1">
+                    <TextBlock Text="0.0mm" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+                </DockPanel>
+                <DockPanel Grid.Column="2" Grid.Row="1">
+                    <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Margin="0,10,0,3" Width="146">
+                        <materialDesign:PackIcon Kind="ArrowRightBoldBoxOutline" Height="86" Width="86"/>
+                    </Button>
+                </DockPanel>
+
+                <DockPanel Grid.Column="0" Grid.Row="0"></DockPanel>
+                <DockPanel Grid.Column="1" Grid.Row="0"></DockPanel>
+                <DockPanel Grid.Column="2" Grid.Row="0"></DockPanel>
             </Grid>
         </Grid>
+        <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" Height="Auto" materialDesign:ButtonAssist.CornerRadius="50 50 0 0"
+            ToolTip="MaterialDesignRaisedAccentButton with Round Top Corners" Margin="18,11.499,654.5,565.834" RenderTransformOrigin="0.5,0.5" Background="#FF9B5107" UseLayoutRounding="False" BorderBrush="{x:Null}">
+            <Button.RenderTransform>
+                <TransformGroup>
+                    <ScaleTransform ScaleX="-1"/>
+                    <SkewTransform/>
+                    <RotateTransform Angle="180"/>
+                    <TranslateTransform/>
+                </TransformGroup>
+            </Button.RenderTransform>
+            <TextBlock Text="TABOS" RenderTransformOrigin="1,1" Width="51" Foreground="White">
+                <TextBlock.RenderTransform>
+                    <TransformGroup>
+                        <ScaleTransform ScaleX="-1"/>
+                        <SkewTransform/>
+                        <RotateTransform Angle="180"/>
+                        <TranslateTransform/>
+                    </TransformGroup>
+                </TextBlock.RenderTransform>
+            </TextBlock>
+        </Button>
+        <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" Height="Auto" materialDesign:ButtonAssist.CornerRadius="50 50 0 0"
+            ToolTip="MaterialDesignRaisedAccentButton with Round Top Corners" Margin="19.5,198.999,653,378.334" RenderTransformOrigin="0.5,0.5" Background="#FF002587" UseLayoutRounding="False" BorderBrush="{x:Null}">
+            <Button.RenderTransform>
+                <TransformGroup>
+                    <ScaleTransform ScaleX="-1"/>
+                    <SkewTransform/>
+                    <RotateTransform Angle="180"/>
+                    <TranslateTransform/>
+                </TransformGroup>
+            </Button.RenderTransform>
+            <TextBlock Text="Hokuyo" RenderTransformOrigin="1,1" Width="51" Foreground="White">
+                <TextBlock.RenderTransform>
+                    <TransformGroup>
+                        <ScaleTransform ScaleX="-1"/>
+                        <SkewTransform/>
+                        <RotateTransform Angle="180"/>
+                        <TranslateTransform/>
+                    </TransformGroup>
+                </TextBlock.RenderTransform>
+            </TextBlock>
+        </Button>
+        <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" Height="Auto" materialDesign:ButtonAssist.CornerRadius="50 50 0 0"
+            ToolTip="MaterialDesignRaisedAccentButton with Round Top Corners" Margin="19.5,554.499,653,22.834" RenderTransformOrigin="0.5,0.5" Background="#FFA0A4AE" UseLayoutRounding="False" BorderBrush="{x:Null}">
+            <Button.RenderTransform>
+                <TransformGroup>
+                    <ScaleTransform ScaleX="-1"/>
+                    <SkewTransform/>
+                    <RotateTransform Angle="180"/>
+                    <TranslateTransform/>
+                </TransformGroup>
+            </Button.RenderTransform>
+            <TextBlock Text="O C S" RenderTransformOrigin="1,1" Width="50" Foreground="White">
+                <TextBlock.RenderTransform>
+                    <TransformGroup>
+                        <ScaleTransform ScaleX="-1"/>
+                        <SkewTransform/>
+                        <RotateTransform Angle="180"/>
+                        <TranslateTransform/>
+                    </TransformGroup>
+                </TextBlock.RenderTransform>
+            </TextBlock>
+        </Button>
+        <Button Style="{StaticResource MaterialDesignRaisedAccentButton}" Height="Auto" materialDesign:ButtonAssist.CornerRadius="50 50 0 0"
+            ToolTip="MaterialDesignRaisedAccentButton with Round Top Corners" Margin="19.5,374.499,653,202.834" RenderTransformOrigin="0.5,0.5" Background="#FF167C16" UseLayoutRounding="False" BorderBrush="{x:Null}">
+            <Button.RenderTransform>
+                <TransformGroup>
+                    <ScaleTransform ScaleX="-1"/>
+                    <SkewTransform/>
+                    <RotateTransform Angle="180"/>
+                    <TranslateTransform/>
+                </TransformGroup>
+            </Button.RenderTransform>
+            <TextBlock Text="FA-Duino" RenderTransformOrigin="1,1" Width="62" Foreground="White">
+                <TextBlock.RenderTransform>
+                    <TransformGroup>
+                        <ScaleTransform ScaleX="-1"/>
+                        <SkewTransform/>
+                        <RotateTransform Angle="180"/>
+                        <TranslateTransform/>
+                    </TransformGroup>
+                </TextBlock.RenderTransform>
+            </TextBlock>
+        </Button>
+
     </Grid>
 </UserControl>

+ 11 - 2
Dev/OHV/OHV.Module.Monitoring/Interactivity/ModuleAutoViewModel.cs

@@ -1,4 +1,6 @@
-using System;
+using Prism.Mvvm;
+using Prism.Regions;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -6,7 +8,14 @@ using System.Threading.Tasks;
 
 namespace OHV.Module.Monitoring.Interactivity
 {
-    class ModuleAutoViewModel
+    public class ModuleAutoViewModel : BindableBase
     {
+        IRegionManager regionManager;
+
+
+        public ModuleAutoViewModel()
+        {
+
+        }
     }
 }