时序下发和首页
This commit is contained in:
parent
dba151304d
commit
c6a3fe6a3d
@ -57,6 +57,7 @@ namespace InSituLaboratory
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.MenuManagementView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.UserManagementView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.RoleView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.SequentialDistributionView>();
|
||||
|
||||
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityOperationView>();
|
||||
@ -73,6 +74,7 @@ namespace InSituLaboratory
|
||||
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifyRoleView>();
|
||||
containerRegistry.RegisterDialog<Views.Pages.Dialogs.SelectUserView>();
|
||||
containerRegistry.RegisterDialog<Views.Pages.Dialogs.SelectRoleView>();
|
||||
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifySequentialView>();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
using InSituLaboratory.Models;
|
||||
using Prism.Services.Dialogs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InSituLaboratory.ViewModels.Pages.Dialogs
|
||||
{
|
||||
public class ModifySequentialViewModel : DialogViewModelBase
|
||||
{
|
||||
public ModifySequentialViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void OnDialogOpened(IDialogParameters parameters)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DoSave()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
using InSituLaboratory.Entities;
|
||||
using InSituLaboratory.Models;
|
||||
using Prism.Regions;
|
||||
using Prism.Services.Dialogs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace InSituLaboratory.ViewModels.Pages
|
||||
{
|
||||
public class SequentialDistributionViewModel : ViewModelBase
|
||||
{
|
||||
|
||||
IDialogService _dialogService;
|
||||
public SequentialDistributionViewModel(IRegionManager regionManager, IDialogService dialogService) : base(regionManager)
|
||||
{
|
||||
this.PageTitle = "时序下发";
|
||||
_dialogService = dialogService;
|
||||
|
||||
Refresh();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑或者新增
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public override void DoModify(object model)
|
||||
{
|
||||
DialogParameters ps = new DialogParameters();
|
||||
ps.Add("model", model);
|
||||
_dialogService.ShowDialog("ModifySequentialView", ps, result =>
|
||||
{
|
||||
// 判断子窗口的返回状态,如果OK,刷新当前页面,否则不管
|
||||
if (result.Result == ButtonResult.OK)
|
||||
{
|
||||
this.Refresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public override void DoDelete(object model)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (MessageBox.Show("是否确定删除此项?", "提示", MessageBoxButton.YesNo) ==
|
||||
MessageBoxResult.Yes)
|
||||
{
|
||||
// 物理删除
|
||||
|
||||
MessageBox.Show("删除完成!", "提示");
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "提示");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6,7 +6,154 @@
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<TextBlock Text=" 欢迎"/>
|
||||
<ScrollViewer>
|
||||
<Grid Margin="10,20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0" Orientation="Horizontal">
|
||||
<TextBlock Text="系统状态:" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0" FontWeight="Normal" Foreground="#888"/>
|
||||
<TextBlock Text="采样时间:2024-03-27 21:26:36" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0" FontWeight="Normal" Foreground="#888"/>
|
||||
<TextBlock Text="48V电压:47.96V " FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="48V电流:1.26A" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0" Height="60" >
|
||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="基站48V漏电流状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="电池48V漏电流状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="ICL漏电流状态 :正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1" >
|
||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="工控机漏电流状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="温度1状态: 正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="温度2状态: 正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Grid Grid.Column="2" >
|
||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="湿度1状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="湿度2状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="漏水1状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="3" >
|
||||
<StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="漏水2状态 :正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="内部压力1状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="内部压力2状态:正常" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="2" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0" >
|
||||
<TextBlock Text="时序下配状态:最新更新状态:时序1:保持" FontWeight="Normal" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1" >
|
||||
<TextBlock Text="当前工作设备:MEMS色谱仪:工作" FontWeight="Normal" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="2" >
|
||||
<TextBlock Text="当前故障设备:MEMS质谱仪:故障" FontWeight="Normal" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<!--第一列-->
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
<TextBlock Text="MEMS色谱仪" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0" FontWeight="Normal" />
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding RecordInfo}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
<UserControl x:Class="InSituLaboratory.Views.Pages.Dialogs.ModifySequentialView"
|
||||
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:InSituLaboratory.Views.Pages.Dialogs"
|
||||
mc:Ignorable="d" Height="200" Width="350"
|
||||
Template="{StaticResource DialogViewTemplate}">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="70"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="传感器" VerticalAlignment="Center" Foreground="#888"/>
|
||||
<TextBlock Text="时长" Grid.Row="1" VerticalAlignment="Center" Foreground="#888"/>
|
||||
|
||||
<TextBox Grid.Column="1" Height="28" Name="tb_name"
|
||||
Text="{Binding SensorID,ValidatesOnNotifyDataErrors=True}"
|
||||
Style="{StaticResource ValidationTextBoxStyle}"/>
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Margin="0,2" Height="28"
|
||||
Text="{Binding Duration}"
|
||||
Style="{StaticResource ValidationTextBoxStyle}"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace InSituLaboratory.Views.Pages.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// ModifySequentialView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ModifySequentialView : UserControl
|
||||
{
|
||||
public ModifySequentialView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
498
InSituLaboratory/Views/Pages/SequentialDistributionView.xaml
Normal file
498
InSituLaboratory/Views/Pages/SequentialDistributionView.xaml
Normal file
@ -0,0 +1,498 @@
|
||||
<UserControl x:Class="InSituLaboratory.Views.Pages.SequentialDistributionView"
|
||||
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:InSituLaboratory.Views.Pages"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="{x:Type RadioButton}" x:Key="TopTabButtonStyle">
|
||||
<Setter Property="Height" Value="33"/>
|
||||
<Setter Property="Foreground" Value="#555"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RadioButton}">
|
||||
<Grid Background="Transparent">
|
||||
<ContentPresenter VerticalAlignment="Center"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate TargetType="CheckBox" x:Key="LastMonthButtonTemplate">
|
||||
<Border Background="#f8f8f8" CornerRadius="8" Name="back">
|
||||
<TextBlock Text="{Binding Content,RelativeSource={RelativeSource AncestorType=CheckBox ,Mode=FindAncestor}}"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
Margin="10,4" Name="txt"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter Property="Background" Value="#FFF05005" TargetName="back"/>
|
||||
<Setter Property="TextBlock.Foreground" Value="White" TargetName="txt"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</UserControl.Resources>
|
||||
|
||||
<ScrollViewer>
|
||||
<Grid Margin="10,20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="时序1" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="开始时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
<TextBlock Text="结束时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyCommand}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
</StackPanel>
|
||||
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding SensorID}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<TextBlock Text="{Binding Duration}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
|
||||
<!--操作-->
|
||||
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock VerticalAlignment="Center">
|
||||
<Hyperlink Command="{Binding DataContext.ModifyCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">编辑</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="5,3">
|
||||
<Hyperlink Command="{Binding DataContext.DeleteCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">删除</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="时序2" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="开始时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
<TextBlock Text="结束时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand2}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyCommand2}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand2}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
</StackPanel>
|
||||
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding SensorID}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<TextBlock Text="{Binding Duration}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
|
||||
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock VerticalAlignment="Center">
|
||||
<Hyperlink Command="{Binding DataContext.ModifyCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">编辑</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="5,3">
|
||||
<Hyperlink Command="{Binding DataContext.DeleteCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">删除</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="2">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="时序3" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="开始时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
<TextBlock Text="结束时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand3}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyCommand3}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand3}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
</StackPanel>
|
||||
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding SensorID}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<TextBlock Text="{Binding Duration}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock VerticalAlignment="Center">
|
||||
<Hyperlink Command="{Binding DataContext.ModifyCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">编辑</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="5,3">
|
||||
<Hyperlink Command="{Binding DataContext.DeleteCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">删除</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="3">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="时序4" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="开始时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
<TextBlock Text="结束时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand4}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyCommand4}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand4}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
</StackPanel>
|
||||
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding SensorID}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<TextBlock Text="{Binding Duration}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
|
||||
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock VerticalAlignment="Center">
|
||||
<Hyperlink Command="{Binding DataContext.ModifyCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">编辑</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="5,3">
|
||||
<Hyperlink Command="{Binding DataContext.DeleteCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">删除</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="4">
|
||||
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Background="#FAFCFF" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="45"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--列头-->
|
||||
<Border Background="#EFEFEF" Height="1" VerticalAlignment="Bottom"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="时序5" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="开始时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
<TextBlock Text="结束时间:" FontSize="14" Margin="15,0" FontWeight="Normal" Foreground="#888" VerticalAlignment="Center"/>
|
||||
<DatePicker Width="130" BorderThickness="0" SelectedDate="{Binding CurrentDate}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand5}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
<Button Content="新建" Style="{StaticResource IconWithContentButtonStyle}" Command="{Binding ModifyCommand5}" Tag="" >
|
||||
<Button.Background>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Button Content="下发" Style="{StaticResource NormalButtonStyle}" Command="{Binding SendCommand5}" Width="60" Margin="5,0" Background="#88409EFE"/>
|
||||
</StackPanel>
|
||||
|
||||
<ListBox Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding RecordList}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border Background="Transparent" Name="border">
|
||||
<ContentPresenter/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="border" Property="Background"
|
||||
Value="#F0F6FB"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ListBox.ItemContainerStyle>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border BorderBrush="#EFEFEF" BorderThickness="0,0,0,1">
|
||||
<Grid Margin="10,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Number}" Foreground="#444" FontWeight="Normal"/>
|
||||
<TextBlock Text="{Binding SensorID}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<TextBlock Text="{Binding Duration}" Foreground="#AAA" Margin="0,10" FontSize="10"/>
|
||||
<StackPanel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock VerticalAlignment="Center">
|
||||
<Hyperlink Command="{Binding DataContext.ModifyCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">编辑</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="5,3">
|
||||
<Hyperlink Command="{Binding DataContext.DeleteCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
CommandParameter="{Binding}" TextDecorations="None" Foreground="#409EFE">删除</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace InSituLaboratory.Views.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// SequentialDistributionView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class SequentialDistributionView : UserControl
|
||||
{
|
||||
public SequentialDistributionView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user