using DataEntity; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Collections.ObjectModel; namespace XImagingXhandler.XDAL { /// /// 耗材孔位信息表 /// [SugarTable("labwarewellinfo")] public class LabwareWellInfo : IEntity { private int _Index = 0; /// /// 序号 /// [SugarColumn(IsIgnore = true)] [Description("序号")] public int Index { get { return _Index; } set { if (Index == value) return;// 避免重复设置相同的值 _Index = value; OnPropertyChanged(nameof(Index)); } } private string _well_id { get; set; } = ""; /// /// 孔位Id /// [SugarColumn(ColumnName = "well_id", IsPrimaryKey = true)] [Description("孔位Id")] public string well_id { get { return _well_id; } set { if (well_id == value) return; _well_id = value; OnPropertyChanged(nameof(well_id)); } } private string _labware_id { get; set; } = ""; /// /// 耗材Id /// [SugarColumn(ColumnName = "labware_id")] [Description("耗材Id")] public string labware_id { get { return _labware_id; } set { if (labware_id == value) return; _labware_id = value; OnPropertyChanged(nameof(labware_id)); } } private string _labware_well_name { get; set; } = ""; /// /// 耗材孔名称 /// [SugarColumn(ColumnName = "labware_well_name")] [Description("耗材孔名称")] public string labware_well_name { get { return _labware_well_name; } set { if (labware_well_name == value) return; _labware_well_name = value; OnPropertyChanged(nameof(labware_well_name)); } } private double _labware_well_center_x { get; set; } = 0d; /// /// 孔中心坐标x(相对于左上角) /// [SugarColumn(ColumnName = "labware_well_center_x")] [Description("孔中心坐标x(相对于左上角)")] public double labware_well_center_x { get { return _labware_well_center_x; } set { if (labware_well_center_x == value) return; _labware_well_center_x = value; OnPropertyChanged(nameof(labware_well_center_x)); } } private double _labware_well_center_y { get; set; } = 0d; /// /// 孔中心坐标y(相对于左上角) /// [SugarColumn(ColumnName = "labware_well_center_y")] [Description("孔中心坐标y(相对于左上角)")] public double labware_well_center_y { get { return _labware_well_center_y; } set { if (labware_well_center_y == value) return; _labware_well_center_y = value; OnPropertyChanged(nameof(labware_well_center_y)); } } private double _labware_well_deepval { get; set; } = 0d; /// /// 孔深度值 /// [SugarColumn(ColumnName = "labware_well_deepval")] [Description("孔深度值")] public double labware_well_deepval { get { return _labware_well_deepval; } set { if (labware_well_deepval == value) return; _labware_well_deepval = value; OnPropertyChanged(nameof(labware_well_deepval)); } } private int _labware_well_shape { get; set; } = 1; /// /// 孔洞形状,1:圆;2:等边矩形 /// [SugarColumn(ColumnName = "labware_well_shape")] [Description("孔洞形状,1:圆;2:等边矩形")] public int labware_well_shape { get { return _labware_well_shape; } set { if (labware_well_shape == value) return; _labware_well_shape = value; OnPropertyChanged(nameof(labware_well_shape)); } } private double _well_max_length { get; set; } = 0d; /// /// 孔最大长度mm /// [SugarColumn(ColumnName = "well_max_length")] [Description("孔最大长度mm")] public double well_max_length { get { return _well_max_length; } set { if (well_max_length == value) return; _well_max_length = value; OnPropertyChanged(nameof(well_max_length)); } } private string _well_labware_id { get; set; } = ""; /// /// 孔适配的耗材Id /// [SugarColumn(ColumnName = "well_labware_id")] [Description("孔适配的耗材Id")] public string well_labware_id { get { return _well_labware_id; } set { if (well_labware_id == value) return; _well_labware_id = value; OnPropertyChanged(nameof(well_labware_id)); } } } }