Compare commits
2 Commits
139fb910a2
...
a989a1648e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a989a1648e | ||
|
|
4387d1fa88 |
BIN
InSituLaboratory.Assets/Fonts/SourceHanSansCN-Bold.ttf
Normal file
BIN
InSituLaboratory.Assets/Fonts/SourceHanSansCN-Regular.ttf
Normal file
BIN
InSituLaboratory.Assets/Images/aLarm/img_baojing.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_baojing1.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_daiji.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_erji.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_erji1.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_gognzuo.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_yiji.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_yiji1.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_zhengchang.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
InSituLaboratory.Assets/Images/aLarm/img_zhengchang1.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
InSituLaboratory.Assets/Images/background1.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
InSituLaboratory.Assets/Images/chang.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
InSituLaboratory.Assets/Images/主腔体当前工作设备.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
InSituLaboratory.Assets/Images/主腔体当前工作设备字.png
Normal file
|
After Width: | Height: | Size: 993 B |
BIN
InSituLaboratory.Assets/Images/主腔体当前故障设备.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
InSituLaboratory.Assets/Images/主腔体当前故障设备字.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
InSituLaboratory.Assets/Images/主腔体状态.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
InSituLaboratory.Assets/Images/主腔体状态字.png
Normal file
|
After Width: | Height: | Size: 789 B |
BIN
InSituLaboratory.Assets/Images/化学生物实验室.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
InSituLaboratory.Assets/Images/横线1.png
Normal file
|
After Width: | Height: | Size: 295 B |
BIN
InSituLaboratory.Assets/Images/横线2.png
Normal file
|
After Width: | Height: | Size: 274 B |
BIN
InSituLaboratory.Assets/Images/组6.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
@ -10,11 +10,25 @@
|
||||
<ItemGroup>
|
||||
<None Remove="Fonts\iconfont.ttf" />
|
||||
<None Remove="Fonts\iconfont1.ttf" />
|
||||
<None Remove="Fonts\SourceHanSansCN-Bold.ttf" />
|
||||
<None Remove="Fonts\SourceHanSansCN-Regular.ttf" />
|
||||
<None Remove="Fonts\方正楷体简体.ttf" />
|
||||
<None Remove="Images\20240201.jpg" />
|
||||
<None Remove="Images\6604cd8ecc29d.ico" />
|
||||
<None Remove="Images\aLarm\img_baojing.png" />
|
||||
<None Remove="Images\aLarm\img_baojing1.png" />
|
||||
<None Remove="Images\aLarm\img_daiji.png" />
|
||||
<None Remove="Images\aLarm\img_erji.png" />
|
||||
<None Remove="Images\aLarm\img_erji1.png" />
|
||||
<None Remove="Images\aLarm\img_gognzuo.png" />
|
||||
<None Remove="Images\aLarm\img_yiji.png" />
|
||||
<None Remove="Images\aLarm\img_yiji1.png" />
|
||||
<None Remove="Images\aLarm\img_zhengchang.png" />
|
||||
<None Remove="Images\aLarm\img_zhengchang1.png" />
|
||||
<None Remove="Images\Avatar\002m.jpg" />
|
||||
<None Remove="Images\background1.jpg" />
|
||||
<None Remove="Images\bitbug_favicon.ico" />
|
||||
<None Remove="Images\chang.png" />
|
||||
<None Remove="Images\covers\1.png" />
|
||||
<None Remove="Images\covers\2.png" />
|
||||
<None Remove="Images\covers\3.png" />
|
||||
@ -26,13 +40,43 @@
|
||||
<None Remove="Images\login_back.jpg" />
|
||||
<None Remove="Images\Logo.png" />
|
||||
<None Remove="Images\Snipaste.png" />
|
||||
<None Remove="Images\主腔体当前工作设备.png" />
|
||||
<None Remove="Images\主腔体当前工作设备字.png" />
|
||||
<None Remove="Images\主腔体当前故障设备.png" />
|
||||
<None Remove="Images\主腔体当前故障设备字.png" />
|
||||
<None Remove="Images\主腔体状态.png" />
|
||||
<None Remove="Images\主腔体状态字.png" />
|
||||
<None Remove="Images\化学生物实验室.png" />
|
||||
<None Remove="Images\横线1.png" />
|
||||
<None Remove="Images\横线2.png" />
|
||||
<None Remove="Images\海洋.jpg" />
|
||||
<None Remove="Images\组6.jpg" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Images\aLarm\img_daiji.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_gognzuo.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_yiji1.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Images\aLarm\img_erji1.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Fonts\iconfont1.ttf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Fonts\SourceHanSansCN-Bold.ttf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Fonts\SourceHanSansCN-Regular.ttf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Fonts\方正楷体简体.ttf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
@ -40,9 +84,26 @@
|
||||
<Resource Include="Images\6604cd8ecc29d.ico">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_baojing.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_baojing1.png" />
|
||||
<Resource Include="Images\aLarm\img_erji.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_yiji.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_zhengchang.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\aLarm\img_zhengchang1.png" />
|
||||
<Resource Include="Images\bitbug_favicon.ico">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\chang.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\covers\wanF.jpg" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -70,9 +131,42 @@
|
||||
<Resource Include="Images\Snipaste.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体当前工作设备.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体当前工作设备字.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体当前故障设备.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体当前故障设备字.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体状态.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\主腔体状态字.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\化学生物实验室.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\横线1.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\横线2.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\海洋.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\background1.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Images\组6.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
<FontFamily x:Key="Icons">/InSituLaboratory.Assets;component/Fonts/iconfont.ttf#zx_icons</FontFamily>
|
||||
<FontFamily x:Key="IconsExt">/InSituLaboratory.Assets;component/Fonts/iconfont1.ttf#iconfont</FontFamily>
|
||||
<FontFamily x:Key="DigitalDisplay">/InSituLaboratory.Assets;component/Fonts/#方正楷体简体</FontFamily>
|
||||
<FontFamily x:Key="SourceHanSansCN-Bold">/InSituLaboratory.Assets;component/Fonts/#SourceHanSansCN-Bold</FontFamily>
|
||||
<FontFamily x:Key="SourceHanSansCN-Regular">/InSituLaboratory.Assets;component/Fonts/#SourceHanSansCN-Regular</FontFamily>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
|
||||
@ -32,7 +32,8 @@ namespace InSituLaboratory
|
||||
{
|
||||
base.InitializeShell(shell);
|
||||
|
||||
Container.Resolve<IRegionManager>().RegisterViewWithRegion("MainRegion", "DashboardView");
|
||||
//Container.Resolve<IRegionManager>().RegisterViewWithRegion("MainRegion", "DashboardView");
|
||||
Container.Resolve<IRegionManager>().RegisterViewWithRegion("MainRegion", "DashboardNewView");
|
||||
}
|
||||
|
||||
protected override void RegisterTypes(IContainerRegistry containerRegistry)
|
||||
@ -62,6 +63,7 @@ namespace InSituLaboratory
|
||||
|
||||
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.DashboardView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.DashboardNewView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.MenuManagementView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.UserManagementView>();
|
||||
containerRegistry.RegisterForNavigation<Views.Pages.RoleView>();
|
||||
|
||||
513
InSituLaboratory/ViewModels/Pages/DashboardNewViewModel.cs
Normal file
@ -0,0 +1,513 @@
|
||||
using InSituLaboratory.Entities;
|
||||
using InSituLaboratory.IService;
|
||||
using InSituLaboratory.Models;
|
||||
using Prism.Commands;
|
||||
using Prism.Regions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace InSituLaboratory.ViewModels.Pages
|
||||
{
|
||||
public class DashboardNewViewModel : ViewModelBase
|
||||
{
|
||||
public SysStatusModel SysStatusModel { get; set; } = new SysStatusModel();
|
||||
|
||||
public CurrentEquipmentModel CurrentWorkEquipment { get; set; } = new CurrentEquipmentModel();//当前工作设备
|
||||
public CurrentEquipmentModel currentFaultyEquipment { get; set; } = new CurrentEquipmentModel();//当前故障设备
|
||||
public DelegateCommand<object> ReadCommand { get; set; }
|
||||
|
||||
ISysStatusService _sysStatusService;
|
||||
public DashboardNewViewModel(IRegionManager regionManager, ISysStatusService isysStatusService) : base(regionManager)
|
||||
{
|
||||
PageTitle = "数据中心";
|
||||
IsCanClose = false;
|
||||
_sysStatusService = isysStatusService;
|
||||
|
||||
ReadCommand = new DelegateCommand<object>(DoRead);
|
||||
|
||||
this.Refresh();
|
||||
}
|
||||
|
||||
public override void Refresh()
|
||||
{
|
||||
var sysStatuslist = _sysStatusService.GetSysStauts().ToList();
|
||||
var CurrentWorklist = _sysStatusService.GetCurrentWorkEquipment().ToList();
|
||||
var currentFaultylist = _sysStatusService.GetCurrentFaultyEquipment().ToList();
|
||||
if (sysStatuslist.Count() != 0)
|
||||
{
|
||||
var data = _sysStatusService.GetSysStauts().FirstOrDefault();
|
||||
SysStatusModel.PackagingTime = data.PackagingTime;
|
||||
SysStatusModel.SamplingTime = data.SamplingTime;
|
||||
SysStatusModel.Voltage48 = data.Voltage48;
|
||||
SysStatusModel.Current48 = data.Current48;
|
||||
SysStatusModel.TimeSeriesGroupNumber = data.TimeSeriesGroupNumber;
|
||||
SysStatusModel.GroupNumberStatus = data.GroupNumberStatus;
|
||||
|
||||
#region 主腔体状态
|
||||
|
||||
//基站48V漏电流状态
|
||||
switch (data.BaseStation48VLeakageCS)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.BaseStation48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.BaseStation48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.BaseStation48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.BaseStation48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//电池48V漏电流状态
|
||||
switch (data.Batterz48VLeakageCS)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.Batterz48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.Batterz48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.Batterz48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.Batterz48VLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//ICL漏电流状态
|
||||
switch (data.ICLLeakageCS)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.ICLLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.ICLLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.ICLLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.ICLLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//工控机漏电流状态
|
||||
switch (data.IComputerLeakageCS)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.IComputerLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.IComputerLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.IComputerLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.IComputerLeakageCS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 温度1状态
|
||||
switch (data.TemperatureStaus1)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.TemperatureStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.TemperatureStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.TemperatureStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.TemperatureStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 温度2状态
|
||||
switch (data.TemperatureStaus2)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.TemperatureStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.TemperatureStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.TemperatureStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.TemperatureStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 湿度1状态
|
||||
switch (data.HumidityStaus1)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.HumidityStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.HumidityStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.HumidityStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.HumidityStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 湿度2状态
|
||||
switch (data.HumidityStaus2)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.HumidityStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.HumidityStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.HumidityStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.HumidityStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 漏水1状态
|
||||
switch (data.LeakageStaus1)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.LeakageStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.LeakageStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.LeakageStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.LeakageStaus1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 漏水2状态
|
||||
switch (data.LeakageStaus2)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.LeakageStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.LeakageStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.LeakageStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.LeakageStaus2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 内部压力1状态
|
||||
switch (data.InternalPressure1)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.InternalPressure1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.InternalPressure1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.InternalPressure1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.InternalPressure1 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 内部压力2状态
|
||||
switch (data.InternalPressure2)
|
||||
{
|
||||
case "正常":
|
||||
SysStatusModel.InternalPressure2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
case "一级报警":
|
||||
SysStatusModel.InternalPressure2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_yiji1.png";
|
||||
break;
|
||||
case "二级报警":
|
||||
SysStatusModel.InternalPressure2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_erji1.png";
|
||||
break;
|
||||
case "故障":
|
||||
SysStatusModel.InternalPressure2 = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
if (CurrentWorklist.Count() != 0)
|
||||
{
|
||||
var data = _sysStatusService.GetCurrentWorkEquipment().First();
|
||||
|
||||
#region 当前工作设备
|
||||
|
||||
// MEMS色谱仪
|
||||
switch (data.Chromatograph_MEMS)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.Chromatograph_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.Chromatograph_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// MEMS质谱仪
|
||||
switch (data.MassSpectrometer_MEMS)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.MassSpectrometer_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.MassSpectrometer_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 色质联用仪
|
||||
switch (data.ColorMassSpectrometer)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.ColorMassSpectrometer = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.ColorMassSpectrometer = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 甲烷同位素分析仪
|
||||
switch (data.CH4Analyzer)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.CH4Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.CH4Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 二氧化碳同位素分析仪
|
||||
switch (data.CO2Analyzer)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.CO2Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.CO2Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 颗粒物分析仪
|
||||
switch (data.ParticleAnalyzer)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.ParticleAnalyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.ParticleAnalyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 测序仪
|
||||
switch (data.Sequencer)
|
||||
{
|
||||
case "待机":
|
||||
CurrentWorkEquipment.Sequencer = "/InSituLaboratory.Assets;component/Images/aLarm/img_daiji.png";
|
||||
break;
|
||||
case "工作":
|
||||
CurrentWorkEquipment.Sequencer = "/InSituLaboratory.Assets;component/Images/aLarm/img_gognzuo.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
if (currentFaultylist.Count() != 0)
|
||||
{
|
||||
var data = _sysStatusService.GetCurrentFaultyEquipment().First();
|
||||
|
||||
// MEMS色谱仪
|
||||
switch (data.Chromatograph_MEMS)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.Chromatograph_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.Chromatograph_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// MEMS质谱仪
|
||||
switch (data.MassSpectrometer_MEMS)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.MassSpectrometer_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.MassSpectrometer_MEMS = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 色质联用仪
|
||||
switch (data.ColorMassSpectrometer)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.ColorMassSpectrometer = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.ColorMassSpectrometer = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 甲烷同位素分析仪
|
||||
switch (data.CH4Analyzer)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.CH4Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.CH4Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 二氧化碳同位素分析仪
|
||||
switch (data.CO2Analyzer)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.CO2Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.CO2Analyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 颗粒物分析仪
|
||||
switch (data.ParticleAnalyzer)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.ParticleAnalyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.ParticleAnalyzer = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// 测序仪
|
||||
switch (data.Sequencer)
|
||||
{
|
||||
case "故障":
|
||||
currentFaultyEquipment.Sequencer = "/InSituLaboratory.Assets;component/Images/aLarm/img_baojing1.png";
|
||||
break;
|
||||
case "正常":
|
||||
currentFaultyEquipment.Sequencer = "/InSituLaboratory.Assets;component/Images/aLarm/img_zhengchang1.png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 读取文本文档
|
||||
/// </summary>
|
||||
/// <param name="o"></param>
|
||||
public void DoRead(object o)
|
||||
{
|
||||
string? info = null;
|
||||
string? txtContent = null;
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Title = "选择文件";
|
||||
openFileDialog.Multiselect = false;//选择多个文件
|
||||
openFileDialog.RestoreDirectory = true;//跟踪上次打开的文件的目录
|
||||
//openFileDialog.Filter = "所有文件(*.*)|*";
|
||||
openFileDialog.Filter = "Text files(*.txt) | *.txt";
|
||||
openFileDialog.CheckFileExists = true;
|
||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
info = openFileDialog.FileName;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(info))
|
||||
{
|
||||
//逐行读取文件,返回数组
|
||||
txtContent = tools.ReadTXT_StreamReader(info);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@
|
||||
xmlns:b="clr-namespace:InSituLaboratory.Base"
|
||||
xmlns:c="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
mc:Ignorable="d"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Height="380" Width="680">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="TextBox">
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
mc:Ignorable="d"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
FontSize="13"
|
||||
Foreground="#333"
|
||||
FontWeight="ExtraLight"
|
||||
@ -117,134 +117,139 @@
|
||||
|
||||
<DockPanel>
|
||||
<!--左侧菜单-->
|
||||
<Border BorderBrush="Gray" BorderThickness="0,0,1,0" >
|
||||
<Border BorderBrush="Gray" BorderThickness="0,0,0,0" >
|
||||
<Grid Width="200" DockPanel.Dock="Left">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,20" HorizontalAlignment="Center">
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/6604cd8ecc29d.ico" Width="36"/>
|
||||
<TextBlock Text="化学生物实验室" FontSize="15" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" Foreground="White" FontWeight="Normal" Margin="10,0"/>
|
||||
</StackPanel>
|
||||
<Grid Background="#042138">
|
||||
<StackPanel Orientation="Horizontal" Margin="0,20" HorizontalAlignment="Center">
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/6604cd8ecc29d.ico" Width="36"/>
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/化学生物实验室.png" Width="100" Height="22" Margin="5,8,0,0"/>
|
||||
<!--<TextBlock Text="化学生物实验室" FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#85CDF6" FontWeight="Normal" Margin="10,0"/>-->
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<TreeView Grid.Row="1" Background="Transparent" BorderThickness="0" ItemsSource="{Binding Menus}">
|
||||
<TreeView.Resources>
|
||||
<ControlTemplate TargetType="ToggleButton" x:Key="ArrowButtonTemplate">
|
||||
<Grid Background="Transparent" Name="back">
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
RenderTransformOrigin="0.5,0.5" Name="arrow"
|
||||
FontSize="9">
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter TargetName="arrow" Property="RenderTransform">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="90"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="back" Property="Background" Value="#11000000"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
<Grid Grid.Row="1">
|
||||
<TreeView Background="#011d32" BorderThickness="0" ItemsSource="{Binding Menus}">
|
||||
<TreeView.Resources>
|
||||
<ControlTemplate TargetType="ToggleButton" x:Key="ArrowButtonTemplate">
|
||||
<Grid Background="Transparent" Name="back">
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
RenderTransformOrigin="0.5,0.5" Name="arrow"
|
||||
FontSize="9">
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter TargetName="arrow" Property="RenderTransform">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="90"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="back" Property="Background" Value="#11000000"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<Style TargetType="TreeViewItem">
|
||||
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="TreeViewItem">
|
||||
<Grid Background="Transparent" Name="root">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition MaxWidth="30"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" MinHeight="33"/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.InputBindings>
|
||||
<MouseBinding MouseAction="LeftDoubleClick"
|
||||
Command="{Binding DataContext.OpenViewCommand,RelativeSource={RelativeSource AncestorType=Window}}"
|
||||
CommandParameter="{Binding}"/>
|
||||
</Grid.InputBindings>
|
||||
<Style TargetType="TreeViewItem">
|
||||
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="TreeViewItem">
|
||||
<Grid Background="Transparent" Name="root">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition MaxWidth="30"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" MinHeight="33"/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.InputBindings>
|
||||
<MouseBinding MouseAction="LeftDoubleClick"
|
||||
Command="{Binding DataContext.OpenViewCommand,RelativeSource={RelativeSource AncestorType=Window}}"
|
||||
CommandParameter="{Binding}"/>
|
||||
</Grid.InputBindings>
|
||||
|
||||
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{TemplateBinding Background}"
|
||||
CornerRadius="5" Grid.ColumnSpan="2" Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="true"
|
||||
Margin="2,1">
|
||||
<ContentPresenter x:Name="PART_Header" ContentSource="Header"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
</ContentPresenter>
|
||||
</Border>
|
||||
<ToggleButton x:Name="Expander" Grid.Column="1" ClickMode="Press"
|
||||
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Template="{StaticResource ArrowButtonTemplate}"
|
||||
Foreground="White"/>
|
||||
<ItemsPresenter x:Name="ItemsHost" Margin="18,0,0,0" Grid.ColumnSpan="2" Grid.Row="1" />
|
||||
</Grid>
|
||||
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{TemplateBinding Background}"
|
||||
CornerRadius="5" Grid.ColumnSpan="2" Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="true"
|
||||
Margin="2,1">
|
||||
<ContentPresenter x:Name="PART_Header" ContentSource="Header"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
</ContentPresenter>
|
||||
</Border>
|
||||
<ToggleButton x:Name="Expander" Grid.Column="1" ClickMode="Press"
|
||||
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
Template="{StaticResource ArrowButtonTemplate}"
|
||||
Foreground="White"/>
|
||||
<ItemsPresenter x:Name="ItemsHost" Margin="18,0,0,0" Grid.ColumnSpan="2" Grid.Row="1" />
|
||||
</Grid>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="false">
|
||||
<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
|
||||
</Trigger>
|
||||
<Trigger Property="HasItems" Value="false">
|
||||
<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter Property="Background" TargetName="Bd">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
<Setter Property="Foreground" Value="white" TargetName="Expander"/>
|
||||
</Trigger>
|
||||
<!--被选中后失去焦点-->
|
||||
<DataTrigger Binding="{Binding MenuIcon}" Value="{x:Null}">
|
||||
<Setter Property="Margin" Value="10,0,0,0" TargetName="root"/>
|
||||
</DataTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</TreeView.Resources>
|
||||
<TreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
|
||||
<Grid Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="30" Name="c1"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding MenuIcon}"
|
||||
FontFamily="{StaticResource Icons}" Foreground="White"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
FontSize="15"/>
|
||||
<TextBlock Text="{Binding MenuHeader}" Grid.Column="1" Margin="5,0,0,0" FontSize="15" Foreground="White"
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<HierarchicalDataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding MenuIcon}" Value="{x:Null}">
|
||||
<Setter TargetName="c1" Property="Width" Value="0"/>
|
||||
</DataTrigger>
|
||||
</HierarchicalDataTemplate.Triggers>
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.ItemTemplate>
|
||||
</TreeView>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded" Value="false">
|
||||
<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
|
||||
</Trigger>
|
||||
<Trigger Property="HasItems" Value="false">
|
||||
<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter Property="Background" TargetName="Bd">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
||||
<GradientStop Color="#FE582D" Offset="0"/>
|
||||
<GradientStop Color="#F1961A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
<Setter Property="Foreground" Value="white" TargetName="Expander"/>
|
||||
</Trigger>
|
||||
<!--被选中后失去焦点-->
|
||||
<DataTrigger Binding="{Binding MenuIcon}" Value="{x:Null}">
|
||||
<Setter Property="Margin" Value="10,0,0,0" TargetName="root"/>
|
||||
</DataTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</TreeView.Resources>
|
||||
<TreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
|
||||
<Grid Background="Transparent">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="30" Name="c1"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding MenuIcon}"
|
||||
FontFamily="{StaticResource Icons}" Foreground="White"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||
FontSize="14"/>
|
||||
<TextBlock Text="{Binding MenuHeader}" Grid.Column="1" Margin="5,0,0,0" FontSize="14" Foreground="White"
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<HierarchicalDataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding MenuIcon}" Value="{x:Null}">
|
||||
<Setter TargetName="c1" Property="Width" Value="0"/>
|
||||
</DataTrigger>
|
||||
</HierarchicalDataTemplate.Triggers>
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.ItemTemplate>
|
||||
</TreeView>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
@ -257,194 +262,191 @@
|
||||
|
||||
<Border Grid.Row="1" Background="#F0F6FB" />
|
||||
|
||||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left"
|
||||
Margin="15,0">
|
||||
<Run Text="原位实验室主控系统" FontSize="15" FontWeight="ExtraBold" Foreground="White" />
|
||||
<Run Text="v1.0" FontSize="13" Foreground="White"/>
|
||||
</TextBlock>
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="0,0,10,0">
|
||||
<StackPanel.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/InSituLaboratory.Assets;component/Styles/ButtonStyles.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</StackPanel.Resources>
|
||||
|
||||
<!--时间和星期-->
|
||||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="2" Margin="37,0" FontSize="16" FontWeight="Normal"
|
||||
Foreground="White" DataContext="{x:Static sys:DateTime.Now}" Name="txt_time">
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='yyyy年MM月dd日'}" Name="txt_date" DataContext="{x:Static sys:DateTime.Now}" />
|
||||
<Run Text=" "/>
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='HH:mm:ss'}" />
|
||||
<Run Text=" "/>
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='dddd',ConverterCulture=zh-CN}"/>
|
||||
<Grid Background="#002945">
|
||||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0">
|
||||
<Run Text="原位实验室主控系统" FontSize="15" FontWeight="ExtraBold" Foreground="#00a7f5" />
|
||||
<Run Text="v1.0" FontSize="14" Foreground="#00a7f5"/>
|
||||
|
||||
</TextBlock>
|
||||
|
||||
<!--消息图标-->
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18" Foreground="White"
|
||||
Margin="0,0,10,0"/>
|
||||
<!--咨询图标-->
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18" Foreground="White"
|
||||
Margin="0,0,20,0"/>
|
||||
<!--登录用户头像-->
|
||||
<ToggleButton Width="30" Height="30" Margin="0,0,5,0"
|
||||
Style="{StaticResource UserIconButtonStyle}"
|
||||
Content="{Binding CurrentUser.UserIcon}"
|
||||
IsChecked="{Binding IsDropdownAvatar}"
|
||||
Name="tbtn_avatar"/>
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0">
|
||||
<StackPanel.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/InSituLaboratory.Assets;component/Styles/ButtonStyles.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</StackPanel.Resources>
|
||||
|
||||
<!--登录用户姓名-->
|
||||
<ToggleButton Content="{Binding CurrentUser.RealName}"
|
||||
ContentStringFormat="Hi! {0}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="15" FontWeight="Normal"
|
||||
Margin="0,0,10,0" Name="tbtn_user"
|
||||
Height="30" Foreground="White"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True"
|
||||
Style="{StaticResource UserInfoButtonStyle}"/>
|
||||
<!--时间和星期-->
|
||||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="2" Margin="37,0" FontSize="16" FontWeight="Normal"
|
||||
Foreground="White" DataContext="{x:Static sys:DateTime.Now}" Name="txt_time">
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='yyyy年MM月dd日'}" Name="txt_date" DataContext="{x:Static sys:DateTime.Now}" />
|
||||
<Run Text=" "/>
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='HH:mm:ss'}" />
|
||||
<Run Text=" "/>
|
||||
<Run Text="{Binding Now,Mode=OneWay,StringFormat='dddd',ConverterCulture=zh-CN}"/>
|
||||
</TextBlock>
|
||||
|
||||
<!--最小化按钮-->
|
||||
<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15" Foreground="White"
|
||||
Click="Button_MinClick"/>
|
||||
<!--消息图标-->
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18" Foreground="White"
|
||||
Margin="0,0,10,0"/>
|
||||
<!--咨询图标-->
|
||||
<TextBlock Text="" FontFamily="{StaticResource Icons}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18" Foreground="White"
|
||||
Margin="0,0,20,0"/>
|
||||
<!--登录用户头像-->
|
||||
<ToggleButton Width="30" Height="30" Margin="0,0,5,0"
|
||||
Style="{StaticResource UserIconButtonStyle}"
|
||||
Content="{Binding CurrentUser.UserIcon}"
|
||||
IsChecked="{Binding IsDropdownAvatar}"
|
||||
Name="tbtn_avatar"/>
|
||||
|
||||
<!--最大化按钮-->
|
||||
<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15" Foreground="White"
|
||||
Click="Button_MaxClick"/>
|
||||
<!--登录用户姓名-->
|
||||
<ToggleButton Content="{Binding CurrentUser.RealName}"
|
||||
ContentStringFormat="Hi! {0}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="15" FontWeight="Normal"
|
||||
Margin="0,0,10,0" Name="tbtn_user"
|
||||
Height="30" Foreground="#00a7f5"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True"
|
||||
Style="{StaticResource UserInfoButtonStyle}"/>
|
||||
|
||||
<!--关闭按钮-->
|
||||
<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15" Foreground="White"
|
||||
Click="Button_Click"/>
|
||||
</StackPanel>
|
||||
<!--最小化按钮-->
|
||||
<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15"
|
||||
Foreground="White" Click="Button_MinClick"/>
|
||||
|
||||
<!--更换用户头像-->
|
||||
<Popup StaysOpen="False" IsOpen="{Binding ElementName=tbtn_avatar,Path=IsChecked}" PlacementTarget="{Binding ElementName=tbtn_avatar}" AllowsTransparency="True">
|
||||
<Grid Margin="5">
|
||||
<Border Width="160" Height="100" Background="#FFF" CornerRadius="5">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<!--最大化按钮-->
|
||||
<!--<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15"
|
||||
Foreground="White" Click="Button_MaxClick"/>-->
|
||||
|
||||
<UniformGrid Columns="4" Margin="5">
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a01.jpg"
|
||||
CommandParameter="a01.jpg"
|
||||
Command="{Binding SetAvatarCommand}"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a02.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a02.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a03.png"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a03.png"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a04.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a04.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a05.png"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a05.png"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a06.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a06.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a07.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a07.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
Content="选择" FontSize="12" Foreground="#409EFE"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Popup>
|
||||
<!--关闭按钮-->
|
||||
<Button Content="" FontFamily="{StaticResource Icons}"
|
||||
Style="{StaticResource ControlButtonStyle}" FontSize="15"
|
||||
Foreground="White" Click="Button_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
<!--更换用户姓名等信息-->
|
||||
<Popup StaysOpen="False" IsOpen="{Binding ElementName=tbtn_user,Path=IsChecked}" PlacementTarget="{Binding ElementName=tbtn_user}" Placement="Right" HorizontalOffset="-160" VerticalOffset="33" AllowsTransparency="True" >
|
||||
<Grid Margin="5">
|
||||
<!--背景-->
|
||||
<Border Width="160" Height="200" Background="#FFF" CornerRadius="5">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
|
||||
<!--内容-->
|
||||
<Grid TextBlock.Foreground="#666">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--背景-->
|
||||
<Border CornerRadius="5,5,0,0">
|
||||
<Border.Background>
|
||||
<ImageBrush ImageSource="{Binding CurrentUser.UserIcon}" Stretch="UniformToFill"/>
|
||||
</Border.Background>
|
||||
<!--更换用户头像-->
|
||||
<Popup StaysOpen="False" IsOpen="{Binding ElementName=tbtn_avatar,Path=IsChecked}" PlacementTarget="{Binding ElementName=tbtn_avatar}" AllowsTransparency="True">
|
||||
<Grid Margin="5">
|
||||
<Border Width="160" Height="100" Background="#FFF" CornerRadius="5">
|
||||
<Border.Effect>
|
||||
<BlurEffect Radius="40"/>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<!--边缘裁切-->
|
||||
<Border.Clip>
|
||||
<RectangleGeometry Rect="0,0,160,200" RadiusX="5" RadiusY="5"/>
|
||||
</Border.Clip>
|
||||
</Border>
|
||||
|
||||
<!--用户头像-->
|
||||
<Border Width="50" Height="50" CornerRadius="10"
|
||||
Margin="0,0,5,0" BorderBrush="White" BorderThickness="1">
|
||||
<Border.Background>
|
||||
<ImageBrush ImageSource="{Binding CurrentUser.UserIcon}"/>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
|
||||
<!--用户真实姓名-->
|
||||
<TextBlock Text="{Binding CurrentUser.RealName}"
|
||||
Grid.Row="1" HorizontalAlignment="Center"
|
||||
FontWeight="Bold" FontSize="15"/>
|
||||
|
||||
<!--用户年龄及性别-->
|
||||
<StackPanel Grid.Row="2" VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal" TextBlock.FontSize="11">
|
||||
<TextBlock Text="{Binding CurrentUser.Age}" Margin="5,0" FontSize="15"/>
|
||||
<TextBlock Text="{Binding CurrentUser.Gender1}" Margin="5,0" FontSize="15"/>
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="#EEE" Height="0.5" Grid.Row="3"/>
|
||||
|
||||
<!--修改密码-->
|
||||
<Button Content="修改密码" Grid.Row="4"
|
||||
Style="{StaticResource NormalButtonStyle}"
|
||||
Background="Transparent" Foreground="#409EFE"
|
||||
Margin="5,3" FontSize="14"
|
||||
Command="{Binding ModifyPasswordCommand}"/>
|
||||
|
||||
<!--切换账号-->
|
||||
<Button Content="切换账号" Grid.Row="5"
|
||||
Style="{StaticResource NormalButtonStyle}"
|
||||
Background="Transparent" Foreground="#409EFE"
|
||||
Margin="5,3" FontSize="14"
|
||||
Command="{Binding SwitchCommand}"/>
|
||||
<UniformGrid Columns="4" Margin="5">
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a01.jpg"
|
||||
CommandParameter="a01.jpg"
|
||||
Command="{Binding SetAvatarCommand}"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a02.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a02.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a03.png"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a03.png"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a04.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a04.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a05.png"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a05.png"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a06.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a06.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Content="pack://siteoforigin:,,,/Avatars/a07.jpg"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
CommandParameter="a07.jpg"/>
|
||||
<Button Style="{StaticResource AvatarItemButtonStyle}"
|
||||
Command="{Binding SetAvatarCommand}"
|
||||
Content="选择" FontSize="12" Foreground="#409EFE"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Popup>
|
||||
</Popup>
|
||||
|
||||
<!--更换用户姓名等信息-->
|
||||
<Popup StaysOpen="False" IsOpen="{Binding ElementName=tbtn_user,Path=IsChecked}" PlacementTarget="{Binding ElementName=tbtn_user}" Placement="Right" HorizontalOffset="-160" VerticalOffset="33" AllowsTransparency="True" >
|
||||
<Grid Margin="5">
|
||||
<!--背景-->
|
||||
<Border Width="160" Height="200" Background="#FFF" CornerRadius="5">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Direction="0" Color="Gray" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
|
||||
<!--内容-->
|
||||
<Grid TextBlock.Foreground="#666">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--背景-->
|
||||
<Border CornerRadius="5,5,0,0">
|
||||
<Border.Background>
|
||||
<ImageBrush ImageSource="{Binding CurrentUser.UserIcon}" Stretch="UniformToFill"/>
|
||||
</Border.Background>
|
||||
<Border.Effect>
|
||||
<BlurEffect Radius="40"/>
|
||||
</Border.Effect>
|
||||
<!--边缘裁切-->
|
||||
<Border.Clip>
|
||||
<RectangleGeometry Rect="0,0,160,200" RadiusX="5" RadiusY="5"/>
|
||||
</Border.Clip>
|
||||
</Border>
|
||||
|
||||
<!--用户头像-->
|
||||
<Border Width="50" Height="50" CornerRadius="10" Margin="0,0,5,0" BorderBrush="White" BorderThickness="1">
|
||||
<Border.Background>
|
||||
<ImageBrush ImageSource="{Binding CurrentUser.UserIcon}"/>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
|
||||
<!--用户真实姓名-->
|
||||
<TextBlock Text="{Binding CurrentUser.RealName}"
|
||||
Grid.Row="1" HorizontalAlignment="Center"
|
||||
FontWeight="Bold" FontSize="15"/>
|
||||
|
||||
<!--用户年龄及性别-->
|
||||
<StackPanel Grid.Row="2" VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center" Orientation="Horizontal"
|
||||
TextBlock.FontSize="11">
|
||||
<TextBlock Text="{Binding CurrentUser.Age}" Margin="5,0" FontSize="15"/>
|
||||
<TextBlock Text="{Binding CurrentUser.Gender1}" Margin="5,0" FontSize="15"/>
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="#EEE" Height="0.5" Grid.Row="3"/>
|
||||
|
||||
<!--修改密码-->
|
||||
<Button Content="修改密码" Grid.Row="4" Style="{StaticResource NormalButtonStyle}"
|
||||
Background="Transparent" Foreground="#409EFE"
|
||||
Margin="5,3" FontSize="14"
|
||||
Command="{Binding ModifyPasswordCommand}"/>
|
||||
|
||||
<!--切换账号-->
|
||||
<Button Content="切换账号" Grid.Row="5" Style="{StaticResource NormalButtonStyle}"
|
||||
Background="Transparent" Foreground="#409EFE"
|
||||
Margin="5,3" FontSize="14"
|
||||
Command="{Binding SwitchCommand}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Popup>
|
||||
</Grid>
|
||||
|
||||
|
||||
<TabControl Grid.Row="1" Background="Transparent"
|
||||
@ -460,7 +462,7 @@
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Background="#14273a" BorderBrush="Gray" BorderThickness="0,1,0,0"/>
|
||||
<Border Background="#14273a" BorderBrush="Gray" BorderThickness="0,0,0,0"/>
|
||||
<TabPanel x:Name="HeaderPanel"
|
||||
Panel.ZIndex="1"
|
||||
Margin="0,3"
|
||||
@ -501,6 +503,7 @@
|
||||
<Setter Property="Header" Value="{Binding DataContext.PageTitle}"/>
|
||||
<Setter Property="Background" Value="Gray"/>
|
||||
<Setter Property="Foreground" Value="#444"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="TabItem">
|
||||
@ -512,8 +515,8 @@
|
||||
<ColumnDefinition Width="auto" MaxWidth="30" MinWidth="10"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{TemplateBinding Header}" VerticalAlignment="Center"
|
||||
Margin="10,5,0,5"
|
||||
FontSize="15"/>
|
||||
Margin="10,5,0,5"
|
||||
FontSize="14"/>
|
||||
<Grid Grid.Column="1" Name="close_grid" Visibility="Collapsed"
|
||||
Width="30" Margin="0,0,-3,0">
|
||||
<Button Grid.Column="1" Style="{StaticResource TabCloseButtonStyle}"
|
||||
|
||||
354
InSituLaboratory/Views/Pages/DashboardNewView.xaml
Normal file
@ -0,0 +1,354 @@
|
||||
<UserControl x:Class="InSituLaboratory.Views.Pages.DashboardNewView"
|
||||
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" FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Grid.Background>
|
||||
<ImageBrush ImageSource="/InSituLaboratory.Assets;component/Images/background1.jpg" Stretch="UniformToFill"/>
|
||||
</Grid.Background>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="60"/>
|
||||
<RowDefinition Height="110"/>
|
||||
<RowDefinition Height="300"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid >
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand}" Margin="2,0" Width="60"/>
|
||||
<Button Content="读取" Style="{StaticResource NormalButtonStyle}" Command="{Binding ReadCommand}" Margin="6,0,18,0" Width="60"/>
|
||||
</StackPanel>
|
||||
<Line X1="20" Y1="80" X2="1368" Y2="80" Stroke="#0A4470" StrokeThickness="1" VerticalAlignment="Bottom"></Line>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--组包时间-->
|
||||
<Grid>
|
||||
<Border CornerRadius="5" Background="Transparent" Margin="3">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="30,10" Orientation="Vertical" >
|
||||
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
|
||||
<Run Text="" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="16"/>
|
||||
<Run Text="组包时间" FontSize="14" Foreground="#758d9f"/>
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Text="{Binding SysStatusModel.PackagingTime ,Mode=TwoWay,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" FontSize="15" FontWeight="Normal" Foreground="White"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!--采样时间-->
|
||||
<Grid Grid.Column="1">
|
||||
<Border CornerRadius="5" Background="Transparent" Margin="3">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="30,10" Orientation="Vertical" >
|
||||
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
|
||||
<Run Text="" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
|
||||
<Run Text="采样时间" FontSize="14" Foreground="#758d9f"/>
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Text="{Binding SysStatusModel.SamplingTime ,Mode=TwoWay,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" FontSize="15" FontWeight="Normal" Foreground="White"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!--48V电压-->
|
||||
<Grid Grid.Column="2">
|
||||
<Border CornerRadius="5" Background="Transparent" Margin="3">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="30,10" Orientation="Vertical" >
|
||||
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
|
||||
<Run Text="" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
|
||||
<Run Text="48V电压" FontSize="14" Foreground="#758d9f"/>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding SysStatusModel.Voltage48 ,Mode=TwoWay,StringFormat={}{0}V}" FontSize="15" FontWeight="Normal" Foreground="White"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!--48V电流-->
|
||||
<Grid Grid.Column="3">
|
||||
<Border CornerRadius="5" Background="Transparent" Margin="3">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="30,10" Orientation="Vertical" >
|
||||
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
|
||||
<Run Text="" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
|
||||
<Run Text="48V电流" FontSize="14" Foreground="#758d9f"/>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding SysStatusModel.Current48 ,Mode=TwoWay,StringFormat={}{0}A}" FontSize="15" FontWeight="Normal" Foreground="White"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!--时序下配状态-->
|
||||
<Grid Grid.Column="4">
|
||||
<Border CornerRadius="5" Background="Transparent" Margin="3">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="30,10" Orientation="Vertical" >
|
||||
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
|
||||
<Run Text="" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
|
||||
<Run Text="时序下配状态" FontSize="14" Foreground="#758d9f"/>
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="15" FontWeight="Normal" Foreground="#555">
|
||||
<Run Text="{Binding SysStatusModel.TimeSeriesGroupNumber ,Mode=TwoWay}" Foreground="White" />
|
||||
<Run Text=" " />
|
||||
<Run Text="{Binding SysStatusModel.GroupNumberStatus ,Mode=TwoWay}" Foreground="Green"/>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<!--主腔体状态-->
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/chang.png" Width="1340" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/主腔体状态字.png" Width="80" HorizontalAlignment="Left" Margin="60,-15,0,0" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.BaseStation48VLeakageCS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="基站48V漏电流状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="40,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.TemperatureStaus1}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="温度1状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.Batterz48VLeakageCS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="电池48V漏电流状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="40,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.TemperatureStaus2}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="温度2状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.ICLLeakageCS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="ICL漏电流状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.HumidityStaus1}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="湿度1状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="3">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.IComputerLeakageCS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="工控机漏电流状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="40,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.HumidityStaus2}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="湿度2状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="4">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.InternalPressure1}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="内部压力1状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.LeakageStaus1}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="漏水1状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding SysStatusModel.InternalPressure2}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="内部压力2状态" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14" Foreground="White" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding SysStatusModel.LeakageStaus2}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="漏水2状态" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="3">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--主腔体当前工作设备-->
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/横线2.png" Width="660" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/主腔体当前工作设备.png" Width="180" HorizontalAlignment="Left" Margin="30,-35,0,0" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding CurrentWorkEquipment.Chromatograph_MEMS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="MEMS色谱仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding CurrentWorkEquipment.CH4Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="甲烷同位素分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="4" Source="{Binding CurrentWorkEquipment.CH4Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="5" Text="测序仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="70,0,0,0" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding CurrentWorkEquipment.CO2Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="CO2同位素分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding CurrentWorkEquipment.ColorMassSpectrometer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="色质联用仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding CurrentWorkEquipment.ParticleAnalyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="颗粒物分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding CurrentWorkEquipment.MassSpectrometer_MEMS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="MEMS质谱仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<!--主腔体当前故障设备-->
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/横线2.png" Width="640" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<Image Source="/InSituLaboratory.Assets;component/Images/主腔体当前故障设备.png" Width="180" HorizontalAlignment="Left" Margin="30,-35,0,0" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding currentFaultyEquipment.Chromatograph_MEMS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="MEMS色谱仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding currentFaultyEquipment.CH4Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="甲烷同位素分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="4" Source="{Binding currentFaultyEquipment.CH4Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="5" Text="测序仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="70,0,0,0" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding currentFaultyEquipment.CO2Analyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="CO2同位素分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding currentFaultyEquipment.ColorMassSpectrometer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="色质联用仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="30"/>
|
||||
<RowDefinition Height="70"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image Source="{Binding currentFaultyEquipment.ParticleAnalyzer}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="1" Text="颗粒物分析仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="50,0,0,0" />
|
||||
<Image Grid.Row="2" Source="{Binding currentFaultyEquipment.MassSpectrometer_MEMS}" Width="130" HorizontalAlignment="Left" Margin="30,0,0,0" />
|
||||
<TextBlock Grid.Row="3" Text="MEMS质谱仪" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" FontSize="14" Margin="60,0,0,0" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
InSituLaboratory/Views/Pages/DashboardNewView.xaml.cs
Normal file
@ -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>
|
||||
/// DashboardNewView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DashboardNewView : UserControl
|
||||
{
|
||||
public DashboardNewView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@
|
||||
xmlns:converters="clr-namespace:InSituLaboratory.Base;assembly=InSituLaboratory.Base"
|
||||
mc:Ignorable="d"
|
||||
Background="#14273a"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
d:DesignHeight="700" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<converters:StateBackConvert x:Key="StateBackConvert" />
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
xmlns:c="clr-namespace:InSituLaboratory.Base.Converters"
|
||||
mc:Ignorable="d" Template="{StaticResource DialogViewTemplate}"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Height="350" Width="500">
|
||||
<UserControl.Resources>
|
||||
<c:SectionConverter x:Key="mtConverter"/>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
mc:Ignorable="d" Template="{StaticResource DialogViewTemplate}"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
xmlns:b="clr-namespace:InSituLaboratory.Base"
|
||||
Height="200" Width="350">
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
mc:Ignorable="d" Height="200" Width="350"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Template="{StaticResource DialogViewTemplate}">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
mc:Ignorable="d" Height="440" Width="420"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
mc:Ignorable="d" Height="440" Width="500"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Template="{StaticResource DialogViewTemplate}">
|
||||
|
||||
<UserControl.Resources>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
mc:Ignorable="d" Height="330" Width="420"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Template="{StaticResource DialogViewTemplate}">
|
||||
<Grid Margin="40,20" TextBlock.Foreground="#888" FocusManager.FocusedElement="{Binding ElementName=pb}">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
|
||||
xmlns:c="clr-namespace:InSituLaboratory.Base.Converters"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource DialogViewTemplate}"
|
||||
Height="400" Width="520">
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
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"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource DialogViewTemplate}"
|
||||
Height="550" Width="400">
|
||||
<UserControl.Resources>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
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"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource DialogViewTemplate}"
|
||||
Height="550" Width="400">
|
||||
<UserControl.Resources>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}"
|
||||
>
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
|
||||
<Grid Grid.IsSharedSizeScope="True" Margin="0,5,0,10">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.History"
|
||||
xmlns:zxc="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchTempalte}">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages"
|
||||
mc:Ignorable="d" Template="{StaticResource PageTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages"
|
||||
mc:Ignorable="d"
|
||||
Background="#14273a"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:NegateConverter x:Key="NegateConverter" />
|
||||
<converters:RelayStateConvert x:Key="RelayStateConvert" />
|
||||
@ -160,7 +160,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="工控机:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="工控机:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" Background="{Binding sysSensorModels.InComputer, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" Name="InComputer" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -190,7 +190,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="色质联用:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="色质联用:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.CMSpectrometry, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="CMSpectrometry" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -220,7 +220,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="备用串口1:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
|
||||
<TextBlock FontSize="15" Text="备用串口1:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
|
||||
<Border Grid.Column="1" Width="20" Height="20" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" Background="{Binding sysSensorModels.Light1, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="Light1" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -258,7 +258,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="备用串口2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
|
||||
<TextBlock FontSize="15" Text="备用串口2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
|
||||
<Border Grid.Column="1" Width="20" Height="20" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" Background="{Binding sysSensorModels.Light2, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="Light2" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -289,7 +289,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="光通讯机:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="光通讯机:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{Binding sysSensorModels.LightMachine, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="LightMachine" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}">
|
||||
<Button.CommandParameter>
|
||||
@ -320,7 +320,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="ADCP:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="ADCP:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.ADCP, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="ADCP" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -359,7 +359,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="CTD:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="CTD:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.CTD, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="CTD" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -389,7 +389,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="气相色谱仪:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="气相色谱仪:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.SP, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="SP" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -419,7 +419,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="声学定位:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="声学定位:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.AcousticPositioning, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="AcousticPositioning" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -458,7 +458,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="CO2同位素:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="CO2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.CO2, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="CO2" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand }">
|
||||
<Button.CommandParameter>
|
||||
@ -489,7 +489,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="质谱仪:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="质谱仪:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.ZP , Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="ZP" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -521,7 +521,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="甲烷传感器:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="CH4:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.CH4, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="CH4" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -559,7 +559,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="显微拉曼:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="显微拉曼:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.RamanAnalyzer, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="RamanAnalyzer" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -590,7 +590,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="备用网口:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="备用网口:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.NetEquipment, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="NetEquipment" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}">
|
||||
<Button.CommandParameter>
|
||||
@ -621,7 +621,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="ICL:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="ICL:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.SerialPortServer, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="SerialPortServer" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -660,7 +660,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="摄像1:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="摄像1:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.Camera1, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="Camera1" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -691,7 +691,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="摄像2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="摄像2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.Camera2, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="Camera2" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand}" >
|
||||
<Button.CommandParameter>
|
||||
@ -722,7 +722,7 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock FontSize="17" Text="电交换机2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<TextBlock FontSize="15" Text="电交换机2:" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
|
||||
<Border Grid.Column="1" Width="20" Height="20" CornerRadius="10" Background="{Binding sysSensorModels.ElectricSwitch2, Converter={StaticResource ResourceKey=RelayStateConvert}}" />
|
||||
<Button Grid.Column="2" x:Name="ElectricSwitch2" Content="打开" Width="60" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource NormalButtonStyle}" Command="{Binding RelayCommand }">
|
||||
<Button.CommandParameter>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages"
|
||||
mc:Ignorable="d"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
Template="{StaticResource PageTempalte}">
|
||||
<UserControl.Resources>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||||
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Sensor"
|
||||
mc:Ignorable="d" Template="{StaticResource PageSearchAndDownloadTempalte}"
|
||||
FontFamily="{StaticResource DigitalDisplay}">
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}">
|
||||
<UserControl.Resources>
|
||||
<converters:SensorStateConvert x:Key="SensorStateConvert" />
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
xmlns:converters="clr-namespace:InSituLaboratory.Base;assembly=InSituLaboratory.Base"
|
||||
xmlns:c="clr-namespace:InSituLaboratory.Controls;assembly=InSituLaboratory.Controls"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
mc:Ignorable="d"
|
||||
mc:Ignorable="d" FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
Background="#14273a"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<TextBlock Grid.Column="1" Text="注:同一个子时序下,子时序整体循环间隔时长、启动延迟时间、循环次数与子时序号绑定,均与首次设置一致!" Foreground="#FF6A6A " TextWrapping="Wrap" VerticalAlignment="Center" FontSize="14" Margin="50,0,0,0"/>
|
||||
<TextBlock Grid.Column="1" Text="注:同一个子时序下,子时序整体循环间隔时长、启动延迟时间、循环次数与子时序号绑定,均与首次设置一致!" Foreground="#FF6A6A " FontWeight="Bold" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="14" Margin="50,0,0,0"/>
|
||||
</Grid>
|
||||
<!--时序1-->
|
||||
<Grid Grid.Row="2">
|
||||
@ -195,7 +195,7 @@
|
||||
<!--刷新 新建 下发-->
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status1,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status1,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363" FontWeight="Bold"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,-2,5,0" Background="#88409EFE" Name="sequent1Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -374,7 +374,7 @@
|
||||
<!--刷新 新建 下发-->
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status2,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status2,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363" FontWeight="Bold"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,-2,5,0" Background="#88409EFE" Name="sequent2Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -553,7 +553,7 @@
|
||||
<!--刷新 新建 下发-->
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status3,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status3,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363" FontWeight="Bold"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,-2,5,0" Background="#88409EFE" Name="sequent3Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -732,7 +732,7 @@
|
||||
<!--刷新 新建 下发-->
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status4,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status4,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363" FontWeight="Bold"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,-2,5,0" Background="#88409EFE" Name="sequent4Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
@ -910,7 +910,7 @@
|
||||
<!--刷新 新建 下发-->
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<!--刷新按钮-->
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status5,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363"/>
|
||||
<TextBlock Text="{Binding sequentStatusModel.Status5,Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Foreground="#EE6363" FontWeight="Bold"/>
|
||||
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshSeCommand}" Width="60" Margin="5,-2,5,0" Background="#88409EFE" Name="sequent5Refresh">
|
||||
<Button.CommandParameter>
|
||||
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
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"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageTempalte}">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
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"
|
||||
FontFamily="{StaticResource DigitalDisplay}"
|
||||
FontFamily="{StaticResource SourceHanSansCN-Regular}"
|
||||
mc:Ignorable="d" Template="{StaticResource PageTempalte}">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="GroupBox">
|
||||
|
||||