using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NextTreatMesDemo.Models
{
public class ProcessDataModel : INotifyPropertyChanged
{
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
public string MaterialType { get; set; }
public string PrintTagProduct { get; set; }
public string Brand { get; set; }
public string PrintDeviceId { get; set; }
public string Tip { get; set; }
public int SolidifyStation { get; set; }
public bool IsKid { get; set; }
public bool IsOverSea { get; set; }
public string IsLarge { get; set; } = "无";
public int Count { get; set; } = 0;
private string boardId;
///
/// 网板ID
///
public string BoardId
{
get { return boardId; }
set
{
boardId = value;
OnPropertyChanged("BoardId");
}
}
///
/// 网板处理唯一编码
///
public string BoardGuid { get; set; }
private ProcessState state;
///
/// 状态
///
public ProcessState State
{
get { return state; }
set
{
state = value;
OnPropertyChanged("State");
}
}
private string totalCount;
///
/// 总数
///
public string TotalCount
{
get { return totalCount; }
set
{
totalCount = value;
OnPropertyChanged("TotalCount");
}
}
private string totalWeight;
///
/// 总重
///
public string TotalWeight
{
get { return totalWeight; }
set
{
totalWeight = value;
OnPropertyChanged("TotalWeight");
}
}
///
/// 计时器
///
public Stopwatch stopwatch { get; set; }
private string startTime;
///
/// 开始时间
///
public string StartTime
{
get { return startTime; }
set
{
startTime = value;
OnPropertyChanged("StartTime");
}
}
private string totalSpendTime;
///
/// 总耗时
///
public string TotalSpendTime
{
get { return totalSpendTime; }
set
{
totalSpendTime = value;
OnPropertyChanged("TotalSpendTime");
}
}
private string centrifugalSpendTime;
///
/// 离心耗时
///
public string CentrifugalSpendTime
{
get { return centrifugalSpendTime; }
set
{
centrifugalSpendTime = value;
OnPropertyChanged("CentrifugalSpendTime");
}
}
private string waterSpendTime;
///
/// 水固化耗时
///
public string WaterSpendTime
{
get { return waterSpendTime; }
set
{
waterSpendTime = value;
OnPropertyChanged("WaterSpendTime");
}
}
private string lightSpendTime;
///
/// 光固化耗时
///
public string LightSpendTime
{
get { return lightSpendTime; }
set
{
lightSpendTime = value;
OnPropertyChanged("LightSpendTime");
}
}
private string finishTime;
///
/// 完成时间
///
public string FinishTime
{
get { return finishTime; }
set
{
finishTime = value;
OnPropertyChanged("FinishTime");
}
}
private string modelsInfo;
///
/// 模型信息
///
public string ModelsInfo
{
get { return modelsInfo; }
set
{
modelsInfo = value;
OnPropertyChanged("ModelsInfo");
}
}
}
public enum ProcessState
{
入料中,
待离心,
第一次离心中,
待翻面,
翻面完成,
第二次离心中,
离心完成,
待脱模,
脱模完成,
待真空固化,
真空固化开始,
真空固化完成,
送料中,
送料完成,
}
}