using CommunityToolkit.Mvvm.ComponentModel; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MegaRobo.C00225155.Entities.Entity_DB { public class DataResult_Dose:ObservableObject { private int boxId; /// /// 样品瓶工装号 /// public int BoxId { get => boxId; set => SetProperty(ref boxId, value); } private int bottleId; /// /// 样品瓶号 /// public int BottleId { get => bottleId; set => SetProperty(ref bottleId, value); } private string sampleCode; /// /// 样品瓶SN码 /// public string SampleCode { get => sampleCode; set => SetProperty(ref sampleCode, value); } private ObservableCollection liquidAdditives = new ObservableCollection(); public ObservableCollection LiquidAdditives { get => liquidAdditives; set => SetProperty(ref liquidAdditives, value); } private ObservableCollection powderAdditives = new ObservableCollection(); public ObservableCollection PowderAdditives { get => powderAdditives; set => SetProperty(ref powderAdditives, value); } } public class AddLiquidData_Dose : ObservableObject { private string sampleCode; /// /// SN码 /// public string SampleCode { get => sampleCode; set => SetProperty(ref sampleCode, value); } private string liquidname; /// /// 液体名称 /// public string LiquidName { get => liquidname; set => SetProperty(ref liquidname, value); } private double targetVolume; /// /// 目标加入体积 /// public double TargetVolume { get => targetVolume; set => SetProperty(ref targetVolume, value); } private double actualAddVolume; /// /// 实际加入体积 /// public double ActualAddVolume { get => actualAddVolume; set => SetProperty(ref actualAddVolume, value); } private int addState; /// /// 0:表示还未增加 1:表示正在增加 2:表示增加完成 /// public int AddState { get => addState; set => SetProperty(ref addState, value); } private string precision; /// /// 精度 /// public string Precision { get => precision; set => SetProperty(ref precision, value); } private bool result; /// /// 检测结果,true合格,false不合格 /// public bool bOK { get => result; set => SetProperty(ref result, value); } } public class AddPowderData_Dose : ObservableObject { private string sampleCode; /// /// SN码 /// public string SampleCode { get => sampleCode; set => SetProperty(ref sampleCode, value); } private string powdername; /// /// 粉末名称 /// public string PowderName { get => powdername; set => SetProperty(ref powdername, value); } private double targetWeight; /// /// 目标加入量 /// public double TargetWeight { get => targetWeight; set => SetProperty(ref targetWeight, value); } private double actualAddWeight; /// /// 实际加入量 /// public double ActualAddWeight { get => actualAddWeight; set => SetProperty(ref actualAddWeight, value); } private int addState; /// /// 0:表示还未增加 1:表示正在增加 2:表示增加完成 /// public int AddState { get => addState; set => SetProperty(ref addState, value); } private string precision; /// /// 精度 /// public string Precision { get => precision; set => SetProperty(ref precision, value); } private bool result; /// /// 检测结果,true合格,false不合格 /// public bool bOK { get => result; set => SetProperty(ref result, value); } } }