using DataEntity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XImagingXhandler.XDAL
{
///
/// Ì¨Ãæ°åλʵÌåÀà
///
[SugarTable("lattice")]
public class Lattice : IEntity
{
private string _lattice_id { get; set; } = "";
///
/// Ì¨Ãæ°åλId
///
[SugarColumn(ColumnName = "lattice_id", IsPrimaryKey = true)]
public string lattice_id
{
get { return _lattice_id; }
set
{
if (lattice_id == value) return;
_lattice_id = value;
OnPropertyChanged(nameof(lattice_id));
}
}
private string _lattice_num { get; set; }
///
/// Ì¨Ãæ°åλ±àºÅÃû³Æ
///
[SugarColumn(ColumnName = "lattice_num")]
public string lattice_num
{
get { return _lattice_num; }
set
{
if (lattice_num == value) return;
_lattice_num = value;
OnPropertyChanged(nameof(lattice_num));
}
}
private double _lattice_X { get; set; }
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãµÄxÖáλÖÃÖµ£¨µ¥Î»£ººÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_X")]
public double lattice_X
{
get { return _lattice_X; }
set
{
if (lattice_X == value) return;
_lattice_X = value;
OnPropertyChanged(nameof(lattice_X));
}
}
private double _lattice_Y { get; set; }
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãµÄyÖáλÖÃÖµ£¨µ¥Î»£ººÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_Y")]
public double lattice_Y
{
get { return _lattice_Y; }
set
{
if (lattice_Y == value) return;
_lattice_Y = value;
OnPropertyChanged(nameof(lattice_Y));
}
}
private double _lattice_Z { get; set; }
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãµÄzÖáλÖÃÖµ£¨µ¥Î»£ººÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_Z")]
public double lattice_Z
{
get { return _lattice_Z; }
set
{
if (lattice_Z == value) return;
_lattice_Z = value;
OnPropertyChanged(nameof(lattice_Z));
}
}
private double _lattice_length { get; set; }
///
/// Ì¨Ãæ°åλÄÚ³¤¶ÈÖµ£¨µ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_length")]
public double lattice_length
{
get { return _lattice_length; }
set
{
if (lattice_length == value) return;
_lattice_length = value;
OnPropertyChanged(nameof(lattice_length));
}
}
private double _lattice_width { get; set; }
///
/// Ì¨Ãæ°åλÄÚ¿í¶ÈÖµ£¨µ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_width")]
public double lattice_width
{
get { return _lattice_width; }
set
{
if (lattice_width == value) return;
_lattice_width = value;
OnPropertyChanged(nameof(lattice_width));
}
}
///
/// ·½¸ñ±¾Éí¾àÀëÌ¨ÃæÔµãµÄ¸ß¶È£¨µ¥Î»£ººÁÃ×£©
///
private double _lattice_height { get; set; }
///
/// Ì¨Ãæ°åλÄÚ±íÃæzÖáÖµ£¨µ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_height")]
public double lattice_height
{
get { return _lattice_height; }
set
{
if (lattice_height == value) return;
_lattice_height = value;
OnPropertyChanged(nameof(lattice_height));
}
}
private double _lattice_lp_X { get; set; } = 0d;
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãÐ£×¼Æ«ÒÆ×ø±êxÖᣨµ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_lp_X")]
public double lattice_lp_X
{
get { return _lattice_lp_X; }
set
{
if (lattice_lp_X == value) return;
_lattice_lp_X = value;
OnPropertyChanged(nameof(lattice_lp_X));
}
}
private double _lattice_lp_Y { get; set; } = 0d;
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãÐ£×¼Æ«ÒÆ×ø±êyÖᣨµ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_lp_Y")]
public double lattice_lp_Y
{
get { return _lattice_lp_Y; }
set
{
if (lattice_lp_Y == value) return;
_lattice_lp_Y = value;
OnPropertyChanged(nameof(lattice_lp_Y));
}
}
private double _lattice_lp_Z { get; set; } = 0d;
///
/// Ì¨Ãæ°åλÄÚ×óÉϽǶ¥µãÐ£×¼Æ«ÒÆ×ø±êzÖᣨµ¥Î»ºÁÃ×£©
///
[SugarColumn(ColumnName = "lattice_lp_Z")]
public double lattice_lp_Z
{
get { return _lattice_lp_Z; }
set
{
if (lattice_lp_Z == value) return;
_lattice_lp_Z = value;
OnPropertyChanged(nameof(lattice_lp_Z));
}
}
private double _gripper_rotational { get; set; }
///
/// Õý×¥½Ç¶È£¨µ¥Î»¡ã£©
///
[SugarColumn(ColumnName = "gripper_rotational")]
public double gripper_rotational
{
get { return _gripper_rotational; }
set
{
if (gripper_rotational == value) return;
_gripper_rotational = value;
OnPropertyChanged(nameof(gripper_rotational));
}
}
private double _gripper_over_rotational { get; set; }
///
/// ·´×¥½Ç¶È£¨µ¥Î»¡ã£©
///
[SugarColumn(ColumnName = "gripper_over_rotational")]
public double gripper_over_rotational
{
get { return _gripper_over_rotational; }
set
{
if (gripper_over_rotational == value) return;
_gripper_over_rotational = value;
OnPropertyChanged(nameof(gripper_over_rotational));
}
}
private string _software_information_id { get; set; }
///
/// Èí¼þÐÅϢʵÌåid
///
[SugarColumn(ColumnName = "software_information_id")]
public string software_information_id
{
get { return _software_information_id; }
set
{
if (software_information_id == value) return;
_software_information_id = value;
OnPropertyChanged(nameof(software_information_id));
}
}
private int _is_trash { get; set; }
///
/// ÊÇ·ñÊÇÀ¬»øÍ°°åλ£»1:ÊÇ£»0£º·ñ£»
///
[SugarColumn(ColumnName = "is_trash")]
public int is_trash
{
get { return _is_trash; }
set
{
if (is_trash == value) return;
_is_trash = value;
OnPropertyChanged(nameof(is_trash));
}
}
private int _device_arm_id { get; set; }
///
/// É豸»úе±ÛʵÌåID
///
[SugarColumn(ColumnName = "device_arm_id")]
public int device_arm_id
{
get { return _device_arm_id; }
set
{
if (device_arm_id == value) return;
_device_arm_id = value;
OnPropertyChanged(nameof(device_arm_id));
}
}
private int _lattice_ch { get; set; }
///
/// É豸ͨµÀºÅ(É豸Ӳ¼þ¹ØÁª)
///
[SugarColumn(ColumnName = "lattice_ch")]
public int lattice_ch
{
get { return _lattice_ch; }
set
{
if (lattice_ch == value) return;
_lattice_ch = value;
OnPropertyChanged(nameof(lattice_ch));
}
}
private int _lattice_state { get; set; }
///
/// °åλ״̬£»0£ºÒÑɾ³ý£»1£º¿ÉÓÃ
///
[SugarColumn(ColumnName = "lattice_state")]
public int lattice_state
{
get { return _lattice_state; }
set
{
if (lattice_state == value) return;
_lattice_state = value;
OnPropertyChanged(nameof(lattice_state));
}
}
private double _lattice_pixel_x { get; set; } = 0;
///
/// °åλ×óÉϽÇÔÚÌ¨ÃæÉϵÄÏñËØ×ø±êx
///
[SugarColumn(IsIgnore =true)]
[Description("°åλ×óÉϽÇÔÚÌ¨ÃæÉϵÄÏñËØ×ø±êx")]
public double lattice_pixel_x
{
get { return _lattice_pixel_x; }
set
{
if (lattice_pixel_x == value) return;
_lattice_pixel_x = value;
OnPropertyChanged(nameof(lattice_pixel_x));
}
}
private double _lattice_pixel_y { get; set; } = 0;
///
/// °åλ×óÉϽÇÔÚÌ¨ÃæÉϵÄÏñËØ×ø±êy
///
[SugarColumn(IsIgnore = true)]
[Description("°åλ×óÉϽÇÔÚÌ¨ÃæÉϵÄÏñËØ×ø±êy")]
public double lattice_pixel_y
{
get { return _lattice_pixel_y; }
set
{
if (lattice_pixel_y == value) return;
_lattice_pixel_y = value;
OnPropertyChanged(nameof(lattice_pixel_y));
}
}
private string _labware_id { get; set; } = "";
///
/// ºÄ²ÄId
///
[SugarColumn(IsIgnore = true)]
[Description("ºÄ²ÄId")]
public string labware_id
{
get { return _labware_id; }
set
{
if (labware_id == value) return; // ±ÜÃâÖØ¸´ÉèÖÃÏàͬµÄÖµ
_labware_id = value;
OnPropertyChanged(nameof(labware_id));
}
}
}
///
/// ÊÇ·ñÊÇÀ¬»øÍ°£»1:ÊÇ£»0£º·ñ
///
public enum IsTrashEnum
{
///
/// ·ñ
///
[Description("·ñ")]
No = 0,
///
/// ÊÇ
///
[Description("ÊÇ")]
Yes = 1
}
}