Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
ce3a40f1ee
7 files changed
+34
-15
No files matched your search
+7
-2
@@ -106,8 +106,8 @@
|
||||
<Grid>
|
||||
|
||||
<Rectangle HorizontalAlignment="Left" Width="180" Margin="0,0,0,0" Fill="#FFCCCCCC"/>
|
||||
<RadioButton Content="查询" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,190,0,0" VerticalAlignment="Top" Width="180" Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}"/>
|
||||
<RadioButton Content="统计" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,245,0,0" VerticalAlignment="Top" Width="180" Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}"/>
|
||||
<RadioButton Content="查询" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,190,0,0" VerticalAlignment="Top" Width="180" Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}" Checked="RadioButton_Checked"/>
|
||||
<RadioButton Content="统计" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,245,0,0" VerticalAlignment="Top" Width="180" Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}" Checked="RadioButton_Checked"/>
|
||||
<RadioButton Content="退出" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,0,0,50" VerticalAlignment="Bottom" Width="180" Background="#FFCCCCCC" Style="{DynamicResource Style}" Checked="exit" />
|
||||
<RadioButton Content="帮助" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,0,0,105" VerticalAlignment="Bottom" Width="180" Background="#FFCCCCCC" Style="{DynamicResource Style}" Checked="help" />
|
||||
<Rectangle HorizontalAlignment="Left" Height="150" Margin="15,15,0,0" VerticalAlignment="Top" Width="150">
|
||||
@@ -116,5 +116,10 @@
|
||||
</Rectangle.Fill>
|
||||
</Rectangle>
|
||||
|
||||
<!--righe-->
|
||||
<Grid Grid.Column="1">
|
||||
<ContentControl x:Name="container" Margin="180,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</mah:MetroWindow>
|
||||
+16
-2
@@ -1,4 +1,6 @@
|
||||
using MahApps.Metro.Controls;
|
||||
using Audit.View;
|
||||
using Audit.ViewModel;
|
||||
using MahApps.Metro.Controls;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -31,7 +33,6 @@ namespace Audit
|
||||
|
||||
private void TimePicker_SelectedDateTimeChanged(object sender, RoutedPropertyChangedEventArgs<DateTime?> e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void exit(object sender, RoutedEventArgs e)
|
||||
@@ -44,5 +45,18 @@ namespace Audit
|
||||
Windows.help help= new Windows.help();
|
||||
help.Show();//实例化并打开帮助窗口
|
||||
}
|
||||
|
||||
private void RadioButton_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!(sender is RadioButton button)) return;
|
||||
if (string.IsNullOrEmpty(button.Content.ToString())) return;
|
||||
switch (button.Content.ToString())
|
||||
{
|
||||
case "查询": container.Content = new QueryView(); break;
|
||||
case "统计": container.Content = new StatisticsView(); break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -1,13 +1,13 @@
|
||||
<Page x:Class="Audit.View.QueryView"
|
||||
<UserControl x:Class="Audit.View.QueryView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Audit.View"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
mc:Ignorable="d" DataContext="{Binding Source={StaticResource Locator},Path=Query}"
|
||||
d:DesignHeight="900" d:DesignWidth="1100">
|
||||
|
||||
<Grid>
|
||||
<TextBlock Text="QueryView" FontSize="100"/>
|
||||
</Grid>
|
||||
</Page>
|
||||
</UserControl>
|
||||
@@ -18,7 +18,7 @@ namespace Audit.View
|
||||
/// <summary>
|
||||
/// QueryView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class QueryView : Page
|
||||
public partial class QueryView : UserControl
|
||||
{
|
||||
///<Summary>
|
||||
/// QueryView
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Audit.View"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
mc:Ignorable="d" DataContext="{Binding Source={StaticResource Locator},Path=Statistics}"
|
||||
d:DesignHeight="900" d:DesignWidth="1000">
|
||||
<Grid>
|
||||
<TextBlock Text="StatisticsViewModel" FontSize="100"/>
|
||||
<TextBlock Text="StatisticsView" FontSize="100"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -20,9 +20,6 @@ namespace Audit.View
|
||||
/// </summary>
|
||||
public partial class StatisticsView : UserControl
|
||||
{
|
||||
///<Summary>
|
||||
/// StatisticsView
|
||||
///</Summary>
|
||||
public StatisticsView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@@ -6,6 +6,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Audit.ViewModel
|
||||
{
|
||||
///<Summary>
|
||||
/// StatisticsViewModel
|
||||
///</Summary>
|
||||
public class StatisticsViewModel
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user