You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

307 lines
7.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/////////////////////////////////////////////////////////////////
//
// (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开发版权所有违者必究32032519810221811023810511@qq.com
//
/////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using GummingCommon;
namespace GummingEntity
{
/// <summary>
/// HardAction
/// </summary>
[Serializable]
public partial class HardActionEntity : ViewModelBase, ICloneable
{
/// <summary>
///
/// </summary>
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
/// <summary>
/// 工位类型
/// </summary>
private int? _StationType;
public int? StationType
{
get { return _StationType; }
set
{
_StationType = value;
OnPropertyChanged("StationType");
}
}
/// <summary>
/// 卡号
/// </summary>
private ushort _CardNo;
public ushort CardNo
{
get { return _CardNo; }
set
{
_CardNo = value;
OnPropertyChanged("CardNo");
}
}
/// <summary>
/// NodeId
/// </summary>
private ushort _NodeId;
public ushort NodeId
{
get { return _NodeId; }
set
{
_NodeId = value;
OnPropertyChanged("NodeId");
}
}
/// <summary>
/// SlotId
/// </summary>
private ushort _SlotId;
public ushort SlotId
{
get { return _SlotId; }
set
{
_SlotId = value;
OnPropertyChanged("SlotId");
}
}
/// <summary>
/// BitNo
/// </summary>
private ushort _BitNo;
public ushort BitNo
{
get { return _BitNo; }
set
{
_BitNo = value;
OnPropertyChanged("BitNo");
}
}
/// <summary>
/// 动作类型
/// </summary>
private int? _ActionType;
public int? ActionType
{
get { return _ActionType; }
set
{
_ActionType = value;
OnPropertyChanged("ActionType");
}
}
/// <summary>
/// 动作表达式
/// </summary>
private string _Expression;
public string Expression
{
get { return _Expression; }
set
{
_Expression = value;
OnPropertyChanged("Expression");
}
}
/// <summary>
/// 动作编号
/// </summary>
private string _ActionCode;
public string ActionCode
{
get { return _ActionCode; }
set
{
_ActionCode = value;
OnPropertyChanged("ActionCode");
}
}
/// <summary>
/// 动作名称
/// </summary>
private string _ActionName;
public string ActionName
{
get { return _ActionName; }
set
{
_ActionName = value;
OnPropertyChanged("ActionName");
}
}
/// <summary>
/// 工位编号
/// </summary>
private string _StationCode;
public string StationCode
{
get { return _StationCode; }
set
{
_StationCode = value;
OnPropertyChanged("StationCode");
}
}
/// <summary>
/// 是否高位
/// </summary>
private int _IsHigh;
public int IsHigh
{
get { return _IsHigh; }
set
{
_IsHigh = value;
OnPropertyChanged("IsHigh");
}
}
/// <summary>
/// 高位输入
/// </summary>
private string _RefPortHigh;
public string RefPortHigh
{
get { return _RefPortHigh; }
set
{
_RefPortHigh = value;
OnPropertyChanged("RefPortHigh");
}
}
/// <summary>
/// 低位输入
/// </summary>
private string _RefPortLow;
public string RefPortLow
{
get { return _RefPortLow; }
set
{
_RefPortLow = value;
OnPropertyChanged("RefPortLow");
}
}
/// <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()
{
HardActionEntity obj = new HardActionEntity();
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;
}
}
}