|
- 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
- {
- /// <summary>
- /// 原料ID
- /// </summary>
- public string ID { get { return _id; } set { _id = value; OnPropertyChanged(); } }
- private string _id;
- /// <summary>
- /// 物料名称
- /// </summary>
- public string Name { get { return _name; } set { _name = value;OnPropertyChanged(); } }
- private string _name;
- /// <summary>
- /// 物料种类
- /// </summary>
- public MaterialType MaterialType { get { return _materialType; } set { _materialType = value; OnPropertyChanged(); } }
- private MaterialType _materialType;
- /// <summary>
- /// 物料重量
- /// </summary>
- public int MaterialWeight { get { return _materialWeight; } set { _materialWeight = value; OnPropertyChanged(); } }
- private int _materialWeight;
- /// <summary>
- /// 原料位置
- /// </summary>
- public string MaterialPosion { get { return _materialPosion; } set { _materialPosion = value;OnPropertyChanged(); } }
- private string _materialPosion;
- }
-
- public enum MaterialType
- {
- 无 = 0,
- 干料 = 1,
- 湿料 = 2,
- 粉体 = 3,
- 膏体 = 4
- }
-
- }
|