|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (C) Copyright 2013, Kenneth, Inc.
|
|
|
// All rights reserved. Confidential. Except as pursuant
|
|
|
// to a written agreement with Kenneth, this software may
|
|
|
// not be used or distributed. This software may be covered
|
|
|
// by one or more patents.
|
|
|
//
|
|
|
// 本软件为Kenneth开发,版权所有,违者必究,320325198102218110,23810511@qq.com
|
|
|
//
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Reflection;
|
|
|
using GummingCommon;
|
|
|
|
|
|
namespace GummingEntity
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// HardRobotStation
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class HardRobotStationEntity : ViewModelBase, ICloneable
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _RecId;
|
|
|
public string RecId
|
|
|
{
|
|
|
get { return _RecId; }
|
|
|
set
|
|
|
{
|
|
|
_RecId = value;
|
|
|
OnPropertyChanged("RecId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// R手指取片点位
|
|
|
/// </summary>
|
|
|
private string _GetR;
|
|
|
public string GetR
|
|
|
{
|
|
|
get { return _GetR; }
|
|
|
set
|
|
|
{
|
|
|
_GetR = value;
|
|
|
OnPropertyChanged("GetR");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// R手指放片点位
|
|
|
/// </summary>
|
|
|
private string _PutR;
|
|
|
public string PutR
|
|
|
{
|
|
|
get { return _PutR; }
|
|
|
set
|
|
|
{
|
|
|
_PutR = value;
|
|
|
OnPropertyChanged("PutR");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// W手指取片点位
|
|
|
/// </summary>
|
|
|
private string _GetW;
|
|
|
public string GetW
|
|
|
{
|
|
|
get { return _GetW; }
|
|
|
set
|
|
|
{
|
|
|
_GetW = value;
|
|
|
OnPropertyChanged("GetW");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// W手指放片点位
|
|
|
/// </summary>
|
|
|
private string _PutW;
|
|
|
public string PutW
|
|
|
{
|
|
|
get { return _PutW; }
|
|
|
set
|
|
|
{
|
|
|
_PutW = value;
|
|
|
OnPropertyChanged("PutW");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// R手指取片位置
|
|
|
/// </summary>
|
|
|
private string _GetRPosition;
|
|
|
public string GetRPosition
|
|
|
{
|
|
|
get { return _GetRPosition; }
|
|
|
set
|
|
|
{
|
|
|
_GetRPosition = value;
|
|
|
OnPropertyChanged("GetRPosition");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// R手指放片位置
|
|
|
/// </summary>
|
|
|
private string _PutRPosition;
|
|
|
public string PutRPosition
|
|
|
{
|
|
|
get { return _PutRPosition; }
|
|
|
set
|
|
|
{
|
|
|
_PutRPosition = value;
|
|
|
OnPropertyChanged("PutRPosition");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// W手指取片位置
|
|
|
/// </summary>
|
|
|
private string _GetWPosition;
|
|
|
public string GetWPosition
|
|
|
{
|
|
|
get { return _GetWPosition; }
|
|
|
set
|
|
|
{
|
|
|
_GetWPosition = value;
|
|
|
OnPropertyChanged("GetWPosition");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// W手指放片位置
|
|
|
/// </summary>
|
|
|
private string _PutWPosition;
|
|
|
public string PutWPosition
|
|
|
{
|
|
|
get { return _PutWPosition; }
|
|
|
set
|
|
|
{
|
|
|
_PutWPosition = value;
|
|
|
OnPropertyChanged("PutWPosition");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 点位群组
|
|
|
/// </summary>
|
|
|
private string _Group;
|
|
|
public string Group
|
|
|
{
|
|
|
get { return _Group; }
|
|
|
set
|
|
|
{
|
|
|
_Group = value;
|
|
|
OnPropertyChanged("Group");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 工位编号
|
|
|
/// </summary>
|
|
|
private string _StationCode;
|
|
|
public string StationCode
|
|
|
{
|
|
|
get { return _StationCode; }
|
|
|
set
|
|
|
{
|
|
|
_StationCode = value;
|
|
|
OnPropertyChanged("StationCode");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 工位名称
|
|
|
/// </summary>
|
|
|
private string _StationName;
|
|
|
public string StationName
|
|
|
{
|
|
|
get { return _StationName; }
|
|
|
set
|
|
|
{
|
|
|
_StationName = value;
|
|
|
OnPropertyChanged("StationName");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int? _OrderBy;
|
|
|
public int? OrderBy
|
|
|
{
|
|
|
get { return _OrderBy; }
|
|
|
set
|
|
|
{
|
|
|
_OrderBy = value;
|
|
|
OnPropertyChanged("OrderBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _CreateBy;
|
|
|
public string CreateBy
|
|
|
{
|
|
|
get { return _CreateBy; }
|
|
|
set
|
|
|
{
|
|
|
_CreateBy = value;
|
|
|
OnPropertyChanged("CreateBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private DateTime? _CreateTime;
|
|
|
public DateTime? CreateTime
|
|
|
{
|
|
|
get { return _CreateTime; }
|
|
|
set
|
|
|
{
|
|
|
_CreateTime = value;
|
|
|
OnPropertyChanged("CreateTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _ModifyBy;
|
|
|
public string ModifyBy
|
|
|
{
|
|
|
get { return _ModifyBy; }
|
|
|
set
|
|
|
{
|
|
|
_ModifyBy = value;
|
|
|
OnPropertyChanged("ModifyBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private DateTime? _ModifyTime;
|
|
|
public DateTime? ModifyTime
|
|
|
{
|
|
|
get { return _ModifyTime; }
|
|
|
set
|
|
|
{
|
|
|
_ModifyTime = value;
|
|
|
OnPropertyChanged("ModifyTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int? _IsActive;
|
|
|
public int? IsActive
|
|
|
{
|
|
|
get { return _IsActive; }
|
|
|
set
|
|
|
{
|
|
|
_IsActive = value;
|
|
|
OnPropertyChanged("IsActive");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public object Clone()
|
|
|
{
|
|
|
HardRobotStationEntity obj = new HardRobotStationEntity();
|
|
|
Type t = this.GetType();
|
|
|
PropertyInfo[] properties = t.GetProperties();
|
|
|
foreach (PropertyInfo pi in properties)
|
|
|
{
|
|
|
if (pi.CanWrite)
|
|
|
{
|
|
|
object value = pi.GetValue(this, null);
|
|
|
if (obj.GetType().GetProperty(pi.Name) != null)
|
|
|
{
|
|
|
pi.SetValue(obj, value, null);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return obj;
|
|
|
}
|
|
|
}
|
|
|
} |