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("grippercoordinate")] public class GripperCoordinate : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private int _gripper_lattice_id; /// /// 夹爪与板位关系表Id /// [SugarColumn(ColumnName = "gripper_lattice_id", IsPrimaryKey = true)] public int gripper_lattice_id { get { return _gripper_lattice_id; } set { _gripper_lattice_id = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(gripper_lattice_id))); } } } private string _software_information_id; /// /// 设备系统主键Id /// [SugarColumn(ColumnName = "software_information_id")] public string software_information_id { get { return _software_information_id; } set { _software_information_id = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(software_information_id))); } } } private int _device_arm_id; /// /// 臂Id /// [SugarColumn(ColumnName = "device_arm_id")] public int device_arm_id { get { return _device_arm_id; } set { _device_arm_id = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(device_arm_id))); } } } private double _lattice_X; /// /// 坐标x /// [SugarColumn(ColumnName = "lattice_X")] public double lattice_X { get { return _lattice_X; } set { _lattice_X = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(lattice_X))); } } } private double _lattice_Y; /// /// 坐标y /// [SugarColumn(ColumnName = "lattice_Y")] public double lattice_Y { get { return _lattice_Y; } set { _lattice_Y = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(lattice_Y))); } } } private double _lattice_Z; /// /// 坐标z /// [SugarColumn(ColumnName = "lattice_Z")] public double lattice_Z { get { return _lattice_Z; } set { _lattice_Z = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(lattice_Z))); } } } private double _gripper_rotational; /// /// 偏转角度 /// [SugarColumn(ColumnName = "gripper_rotational")] public double gripper_rotational { get { return _gripper_rotational; } set { _gripper_rotational = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(gripper_rotational))); } } } private int _gripper_model; /// /// 夹爪抓板的方向:1:夹爪屁股在右侧2:夹爪屁股在左侧:3:夹爪屁股在上侧;4:夹爪屁股在下侧 /// [SugarColumn(ColumnName = "gripper_model")] public int gripper_model { get { return _gripper_model; } set { _gripper_model = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(gripper_model))); } } } private string _lattice_num; /// /// 板位名称 /// [SugarColumn(ColumnName = "lattice_num")] public string lattice_num { get { return _lattice_num; } set { _lattice_num = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(lattice_num))); } } } private int _is_after_pick_move { get; set; } /// /// 是否在pick后移动到指定位置: 0:否;1:是 /// [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public int is_after_pick_move { get { return _is_after_pick_move; } set { _is_after_pick_move = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(is_after_pick_move))); } } } private double _move_x { get; set; } /// /// pick后移动到x轴的点位 /// [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public double move_x { get { return _move_x; } set { _move_x = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(move_x))); } } } private double _move_y { get; set; } /// /// pick后移动到y轴的点位 /// [SugarColumn(IsIgnore = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)] public double move_y { get { return _move_y; } set { _move_y = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(move_y))); } } } } }