|
@@ -16,110 +16,111 @@
|
|
|
</Window.DataContext>
|
|
</Window.DataContext>
|
|
|
|
|
|
|
|
<DockPanel>
|
|
<DockPanel>
|
|
|
- <!-- 搴曢儴瀵艰埅鏍 -->
|
|
|
|
|
- <Border DockPanel.Dock="Bottom" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0" Padding="4,0">
|
|
|
|
|
|
|
+ <!-- 鈺愨晲鈺 缁熶竴椤堕儴鏍囬鏍 鈺愨晲鈺 -->
|
|
|
|
|
+ <Border DockPanel.Dock="Top" Background="{DynamicResource SurfaceBgBrush}"
|
|
|
|
|
+ BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1" Height="48">
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto" Margin="16,0">
|
|
|
|
|
+ <!-- 宸︿晶: Logo + 鏍囬 -->
|
|
|
|
|
+ <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
|
|
|
|
|
+ <Border Background="{DynamicResource SuccessBrush}" Width="4" Height="24" CornerRadius="2"/>
|
|
|
|
|
+ <TextBlock Text="YZ WATER" FontSize="16" FontWeight="Bold"
|
|
|
|
|
+ Foreground="{DynamicResource TextPrimaryBrush}" FontFamily="Consolas, monospace"
|
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
|
+ <TextBlock Text="姹℃按澶勭悊鐩戞帶绯荤粺" FontSize="12"
|
|
|
|
|
+ Foreground="{DynamicResource TextTertiaryBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Tab 鏍囬鎸囩ず -->
|
|
|
|
|
+ <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
|
|
|
+ FontFamily="Consolas, monospace" FontSize="12" FontWeight="Bold"
|
|
|
|
|
+ Foreground="{DynamicResource TextSecondaryBrush}"
|
|
|
|
|
+ Text="{Binding TabTitle}"/>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- PLC 鐘舵 + 鎿嶄綔鎸夐挳 -->
|
|
|
|
|
+ <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" Margin="16,0">
|
|
|
|
|
+ <Border Width="10" Height="10" CornerRadius="5"
|
|
|
|
|
+ Background="{Binding IsPlcConnected, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="PLC" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
+ Foreground="{DynamicResource TextTertiaryBrush}" VerticalAlignment="Center"/>
|
|
|
|
|
+ <Button Content="CONNECT" Command="{Binding ConnectPlcCommand}" Classes="btn-success" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="DISCONNECT" Command="{Binding DisconnectPlcCommand}" Classes="btn-danger" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="REFRESH" Command="{Binding RefreshDataCommand}" Classes="btn-info" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鏃堕挓 -->
|
|
|
|
|
+ <StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" Margin="16,0">
|
|
|
|
|
+ <Border Background="{DynamicResource BorderBrush}" Width="1" Height="24"/>
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:HH:mm:ss}'}"
|
|
|
|
|
+ FontFamily="Consolas, monospace" FontSize="16" FontWeight="Bold"
|
|
|
|
|
+ Foreground="{DynamicResource SuccessBrush}"/>
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:yyyy-MM-dd}'}"
|
|
|
|
|
+ FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
+ Foreground="{DynamicResource TextDisabledBrush}" VerticalAlignment="Bottom" Margin="0,0,0,2"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鐗堟湰 -->
|
|
|
|
|
+ <TextBlock Grid.Column="4" Text="v3.0" FontFamily="Consolas, monospace" FontSize="9"
|
|
|
|
|
+ Foreground="{DynamicResource TextDisabledBrush}" VerticalAlignment="Center" Margin="12,0,0,0"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鈺愨晲鈺 搴曢儴瀵艰埅鏍 鈺愨晲鈺 -->
|
|
|
|
|
+ <Border DockPanel.Dock="Bottom" Background="{DynamicResource SurfaceBgBrush}"
|
|
|
|
|
+ BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0" Padding="4,0">
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0">
|
|
|
- <!-- PROCESS -->
|
|
|
|
|
- <Button Command="{Binding ShowViewACommand}" Padding="20,8" BorderThickness="0">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
- <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
- Background="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- <TextBlock Text="PROCESS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
- FontWeight="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
- Foreground="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- <Button.Styles>
|
|
|
|
|
- <Style Selector="Button">
|
|
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
- </Style>
|
|
|
|
|
- </Button.Styles>
|
|
|
|
|
|
|
+ <Button Command="{Binding ShowViewACommand}" Padding="20,8" BorderThickness="0" Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="PROCESS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
-
|
|
|
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
-
|
|
|
|
|
- <!-- PARAMS -->
|
|
|
|
|
- <Button Command="{Binding ShowViewBCommand}" Padding="20,8" BorderThickness="0">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
- <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
- Background="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- <TextBlock Text="PARAMS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
- FontWeight="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
- Foreground="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- <Button.Styles>
|
|
|
|
|
- <Style Selector="Button">
|
|
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
- </Style>
|
|
|
|
|
- </Button.Styles>
|
|
|
|
|
|
|
+ <Button Command="{Binding ShowViewBCommand}" Padding="20,8" BorderThickness="0" Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="PARAMS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
-
|
|
|
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
-
|
|
|
|
|
- <!-- FLOW -->
|
|
|
|
|
- <Button Command="{Binding ShowViewCCommand}" Padding="20,8" BorderThickness="0">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
- <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
- Background="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- <TextBlock Text="FLOW" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
- FontWeight="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
- Foreground="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- <Button.Styles>
|
|
|
|
|
- <Style Selector="Button">
|
|
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
- </Style>
|
|
|
|
|
- </Button.Styles>
|
|
|
|
|
|
|
+ <Button Command="{Binding ShowViewCCommand}" Padding="20,8" BorderThickness="0" Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="FLOW" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
-
|
|
|
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
-
|
|
|
|
|
- <!-- ALARM -->
|
|
|
|
|
- <Button Command="{Binding ShowViewDCommand}" Padding="20,8" BorderThickness="0">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
- <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
- Background="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- <TextBlock Text="ALARM" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
- FontWeight="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
- Foreground="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- <Button.Styles>
|
|
|
|
|
- <Style Selector="Button">
|
|
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
- </Style>
|
|
|
|
|
- </Button.Styles>
|
|
|
|
|
|
|
+ <Button Command="{Binding ShowViewDCommand}" Padding="20,8" BorderThickness="0" Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="ALARM" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
-
|
|
|
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
-
|
|
|
|
|
- <!-- ABOUT -->
|
|
|
|
|
- <Button Command="{Binding ShowViewECommand}" Padding="20,8" BorderThickness="0">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
- <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
- Background="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- <TextBlock Text="ABOUT" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
- FontWeight="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
- Foreground="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- <Button.Styles>
|
|
|
|
|
- <Style Selector="Button">
|
|
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
- </Style>
|
|
|
|
|
- </Button.Styles>
|
|
|
|
|
|
|
+ <Button Command="{Binding ShowViewECommand}" Padding="20,8" BorderThickness="0" Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="ABOUT" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Border>
|
|
</Border>
|
|
|
|
|
|
|
|
- <!-- 涓诲唴瀹瑰尯鍩 -->
|
|
|
|
|
|
|
+ <!-- 鈺愨晲鈺 涓诲唴瀹瑰尯鍩 鈺愨晲鈺 -->
|
|
|
<TabControl SelectedIndex="{Binding SelectedTabIndex}" Background="{DynamicResource AppBgBrush}">
|
|
<TabControl SelectedIndex="{Binding SelectedTabIndex}" Background="{DynamicResource AppBgBrush}">
|
|
|
<TabItem Header="PROCESS" IsVisible="False">
|
|
<TabItem Header="PROCESS" IsVisible="False">
|
|
|
<views:ViewAView/>
|
|
<views:ViewAView/>
|