From 80ee127af1d4e2bf31ee946ab44a9745d401c47f Mon Sep 17 00:00:00 2001
From: pengliangyang <1406009520@qq.com>
Date: Wed, 26 Oct 2022 11:02:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DosingSystem/Model/StockStatusModel.cs | 23 ++++--
.../ViewModel/RecipeControlViewModel.cs | 78 +++++++------------
2 files changed, 44 insertions(+), 57 deletions(-)
diff --git a/DosingSystem/Model/StockStatusModel.cs b/DosingSystem/Model/StockStatusModel.cs
index 072da4e7..16626d7c 100644
--- a/DosingSystem/Model/StockStatusModel.cs
+++ b/DosingSystem/Model/StockStatusModel.cs
@@ -12,26 +12,27 @@ namespace BPASmartClient.DosingSystem
///
/// 料仓物料重量
///
- private double _materialWeight;
public double MaterialWeight { get { return _materialWeight; } set { _materialWeight = value; OnPropertyChanged(); } }
+ private double _materialWeight;
///
/// 料仓物料名称
///
- private string _materialName;
public string MaterialName { get { return _materialName; } set { _materialName = value; OnPropertyChanged(); } }
+ private string _materialName;
///
/// 是否真在运行
///
- private bool _isRunning;
public bool IsRunning { get { return _isRunning; } set { _isRunning = value; OnPropertyChanged(); } }
+ private bool _isRunning;
+
///
/// 是否正在下料
///
- private bool _isLayOff;
public bool IsLayOff { get { return _isLayOff; } set { _isLayOff = value; OnPropertyChanged(); } }
+ private bool _isLayOff;
///
- /// 打开状态
+ /// 是否开盖
///
public bool IsOpen { get { return _mIsOpen; } set { _mIsOpen = value; OnPropertyChanged(); } }
private bool _mIsOpen;
@@ -39,8 +40,18 @@ namespace BPASmartClient.DosingSystem
///
/// 是否故障报警
///
+ public bool IsFault { get { return _isFault; } set { _isFault = value; OnPropertyChanged(); } }
private bool _isFault;
- public bool IsFault { get { return _isFault; } set { _isFault = value; OnPropertyChanged(); } }
+ ///
+ /// 下料状态 0:未出料 1:出料指令下发 2:出料完成
+ ///
+ public int IssueStatus { get { return _isIssueStatus; } set { _isIssueStatus = value; OnPropertyChanged(); } }
+ private int _isIssueStatus;
+ ///
+ /// 下料重量
+ ///
+ public double IssueWeight { get { return _IssueWeight; } set { _IssueWeight = value; OnPropertyChanged(); } }
+ private double _IssueWeight;
}
}
diff --git a/DosingSystem/ViewModel/RecipeControlViewModel.cs b/DosingSystem/ViewModel/RecipeControlViewModel.cs
index e20ca786..60787a84 100644
--- a/DosingSystem/ViewModel/RecipeControlViewModel.cs
+++ b/DosingSystem/ViewModel/RecipeControlViewModel.cs
@@ -20,7 +20,7 @@ namespace BPASmartClient.DosingSystem.ViewModel
public class RecipeControlViewModel : NotifyBase
{
ConcurrentQueue RecipeNames = new ConcurrentQueue();
-
+ ObservableCollection StockStatus = new ObservableCollection();
public RecipeControlViewModel()
{
StartCommand = new RelayCommand