using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace XImagingXhandler.XDAL
|
{
|
/// <summary>
|
/// 夹爪到板位的坐标实体表
|
/// </summary>
|
[SugarTable("grippercoordinate")]
|
public class GripperCoordinate : INotifyPropertyChanged
|
{
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
private int _gripper_lattice_id;
|
/// <summary>
|
/// 夹爪与板位关系表Id
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 设备系统主键Id
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 臂Id
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 坐标x
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 坐标y
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 坐标z
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 偏转角度
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 夹爪抓板的方向:1:夹爪屁股在右侧2:夹爪屁股在左侧:3:夹爪屁股在上侧;4:夹爪屁股在下侧
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 板位名称
|
/// </summary>
|
[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; }
|
/// <summary>
|
/// 是否在pick后移动到指定位置: 0:否;1:是
|
/// </summary>
|
[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; }
|
/// <summary>
|
/// pick后移动到x轴的点位
|
/// </summary>
|
[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; }
|
/// <summary>
|
/// pick后移动到y轴的点位
|
/// </summary>
|
[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)));
|
}
|
}
|
}
|
}
|
}
|