using Microsoft.Toolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPASmart.Model.配方
{
public class RecipeMaterials:ObservableObject
{
///
/// 原料ID
///
public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } }
private string _id;
///
/// 物料名称
///
public string Name { get { return _name; } set { _name = value;OnPropertyChanged(); } }
private string _name;
///
/// 物料种类
///
public MaterialType MaterialType { get { return _materialType; } set { _materialType = value; OnPropertyChanged(); } }
private MaterialType _materialType;
///
/// 物料重量
///
public int MaterialWeight { get { return _materialWeight; } set { _materialWeight = value; OnPropertyChanged(); } }
private int _materialWeight;
///
/// 原料位置
///
public string MaterialPosion { get { return _materialPosion; } set { _materialPosion = value;OnPropertyChanged(); } }
private string _materialPosion;
}
public enum MaterialType
{
无 = 0,
干料 = 1,
湿料 = 2,
粉体 = 3,
膏体 = 4
}
}