/////////////////////////////////////////////////////////////////
//
// (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
{
public partial class HardPortsEntity
{
public DateTime LastSignTime { get; set; }
private bool _IsOpen;
public bool IsOpen
{
get { return _IsOpen; }
set
{
_IsOpen = value;
OnPropertyChanged("IsOpen");
}
}
private bool _IsWarn;
public bool IsWarn
{
get { return _IsWarn; }
set
{
_IsWarn = value;
OnPropertyChanged("IsWarn");
}
}
private bool _Allowed;
public bool Allowed
{
get { return _Allowed; }
set
{
_Allowed = value;
OnPropertyChanged("Allowed");
}
}
private int _IsWarnIndex;
public int IsWarnIndex
{
get { return _IsWarnIndex; }
set
{
_IsWarnIndex = value;
OnPropertyChanged("IsWarnIndex");
}
}
}
///
/// HardPorts
///
[Serializable]
public partial class HardPortsEntity : ViewModelBase, ICloneable
{
///
///
///
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
///
/// 标号
///
private string _GroupId;
public string GroupId
{
get { return _GroupId; }
set
{
_GroupId = value;
OnPropertyChanged("GroupId");
}
}
///
/// 标号名称
///
private string _GroupType;
public string GroupType
{
get { return _GroupType; }
set
{
_GroupType = value;
OnPropertyChanged("GroupType");
}
}
///
/// 所属电柜编号
///
private string _PositionId;
public string PositionId
{
get { return _PositionId; }
set
{
_PositionId = value;
OnPropertyChanged("PositionId");
}
}
///
/// 所属电柜名称
///
private string _PositionType;
public string PositionType
{
get { return _PositionType; }
set
{
_PositionType = value;
OnPropertyChanged("PositionType");
}
}
///
/// 所属轴卡编号
///
private int? _CardNo;
public int? CardNo
{
get { return _CardNo; }
set
{
_CardNo = value;
OnPropertyChanged("CardNo");
}
}
///
/// 所属节点编号
///
private ushort _NodeId;
public ushort NodeId
{
get { return _NodeId; }
set
{
_NodeId = value;
OnPropertyChanged("NodeId");
}
}
///
/// 所属节点从节点编号
///
private ushort _SlotId;
public ushort SlotId
{
get { return _SlotId; }
set
{
_SlotId = value;
OnPropertyChanged("SlotId");
}
}
///
/// 端口编号
///
private ushort _PortIndex;
public ushort PortIndex
{
get { return _PortIndex; }
set
{
_PortIndex = value;
OnPropertyChanged("PortIndex");
}
}
///
/// 端口子节点编号
///
private int? _PortSubIndex;
public int? PortSubIndex
{
get { return _PortSubIndex; }
set
{
_PortSubIndex = value;
OnPropertyChanged("PortSubIndex");
}
}
///
/// 端口类型
///
private int? _PortType;
public int? PortType
{
get { return _PortType; }
set
{
_PortType = value;
OnPropertyChanged("PortType");
}
}
///
/// 端口编号
///
private string _PortCode;
public string PortCode
{
get { return _PortCode; }
set
{
_PortCode = value;
OnPropertyChanged("PortCode");
}
}
///
/// 端口名
///
private string _PortName;
public string PortName
{
get { return _PortName; }
set
{
_PortName = value;
OnPropertyChanged("PortName");
}
}
/// 默认信号
///
private int _DefaultSign;
public int DefaultSign
{
get { return _DefaultSign; }
set
{
_DefaultSign = value;
OnPropertyChanged("DefaultSign");
}
}
///
///
///
private int? _OrderBy;
public int? OrderBy
{
get { return _OrderBy; }
set
{
_OrderBy = value;
OnPropertyChanged("OrderBy");
}
}
///
///
///
private string _CreateBy;
public string CreateBy
{
get { return _CreateBy; }
set
{
_CreateBy = value;
OnPropertyChanged("CreateBy");
}
}
///
///
///
private DateTime? _CreateTime;
public DateTime? CreateTime
{
get { return _CreateTime; }
set
{
_CreateTime = value;
OnPropertyChanged("CreateTime");
}
}
///
///
///
private string _ModifyBy;
public string ModifyBy
{
get { return _ModifyBy; }
set
{
_ModifyBy = value;
OnPropertyChanged("ModifyBy");
}
}
///
///
///
private DateTime? _ModifyTime;
public DateTime? ModifyTime
{
get { return _ModifyTime; }
set
{
_ModifyTime = value;
OnPropertyChanged("ModifyTime");
}
}
///
///
///
private int? _IsActive;
public int? IsActive
{
get { return _IsActive; }
set
{
_IsActive = value;
OnPropertyChanged("IsActive");
}
}
public object Clone()
{
HardPortsEntity obj = new HardPortsEntity();
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;
}
}
}