Browse Source

临时提交

master
taoye 2 years ago
parent
commit
0f020ea13e
7 changed files with 16 additions and 7 deletions
  1. +3
    -0
      BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
  2. +1
    -1
      BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs
  3. +0
    -1
      FryPot_DosingSystem/App.xaml.cs
  4. +0
    -1
      FryPot_DosingSystem/Control/DosingLogicControl.cs
  5. +3
    -2
      FryPot_DosingSystem/Model/AlarmInfo.cs
  6. +8
    -1
      FryPot_DosingSystem/View/RecipeManageView.xaml.cs
  7. +1
    -1
      FryPot_DosingSystem/ViewModel/RecipeSetViewModel.cs

+ 3
- 0
BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs View File

@@ -65,6 +65,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
return;
}
});

//AlarmInfos = AlarmHelper<AlarmInfo>.Alarms;

}

private void GetHistoryAlarm()


+ 1
- 1
BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs View File

@@ -45,7 +45,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel

private void DoNavChanged(object obj)
{
ActionManage.GetInstance.Send("RecipeIsChange");

if (obj != null && obj is SubMenumodel menumodel)
{


+ 0
- 1
FryPot_DosingSystem/App.xaml.cs View File

@@ -16,7 +16,6 @@ using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using AlarmInfo = BPASmartClient.CustomResource.Pages.Model.AlarmInfo;

namespace FryPot_DosingSystem
{


+ 0
- 1
FryPot_DosingSystem/Control/DosingLogicControl.cs View File

@@ -1568,7 +1568,6 @@ namespace FryPot_DosingSystem.Control
FryPotMonitorManage.GetInstance.fryFive.OilCapacity = globalVar.fryPotFive.OilCapacity;
FryPotMonitorManage.GetInstance.fryFive.TotalOilCapactiy += globalVar.fryPotFive.OilCapacity;
}

//炒锅状态实时显示
FryPotStatusDisplay();
RollerLineStatusDisplay();


BPASmartClient.CustomResource/Pages/Model/AlarmInfo.cs → FryPot_DosingSystem/Model/AlarmInfo.cs View File

@@ -1,10 +1,11 @@
using System;
using BPASmartClient.CustomResource.Pages.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPASmartClient.CustomResource.Pages.Model
namespace FryPot_DosingSystem.Model
{
public class AlarmInfo
{

+ 8
- 1
FryPot_DosingSystem/View/RecipeManageView.xaml.cs View File

@@ -1,4 +1,5 @@
using System;
using BPASmartClient.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -23,6 +24,12 @@ namespace FryPot_DosingSystem.View
public RecipeManageView()
{
InitializeComponent();
this.Unloaded += RecipeManageView_Unloaded;
}

private void RecipeManageView_Unloaded(object sender, RoutedEventArgs e)
{
ActionManage.GetInstance.Send("RecipeIsChange");
}
}
}

+ 1
- 1
FryPot_DosingSystem/ViewModel/RecipeSetViewModel.cs View File

@@ -54,7 +54,7 @@ namespace FryPot_DosingSystem.ViewModel
int count = recipeModels.Count;
bool sign = false;
ActionManage.GetInstance.CancelRegister("RecipeIsChange");
ActionManage.GetInstance.Register(new Action(() =>
ActionManage.GetInstance.RegisterAsync(new Action(() =>
{
if (!sign)
{


Loading…
Cancel
Save