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.

355 lines
8.6 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
{
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");
}
}
}
/// <summary>
/// HardPorts
/// </summary>
[Serializable]
public partial class HardPortsEntity : ViewModelBase, ICloneable
{
/// <summary>
///
/// </summary>
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
/// <summary>
/// 标号
/// </summary>
private string _GroupId;
public string GroupId
{
get { return _GroupId; }
set
{
_GroupId = value;
OnPropertyChanged("GroupId");
}
}
/// <summary>
/// 标号名称
/// </summary>
private string _GroupType;
public string GroupType
{
get { return _GroupType; }
set
{
_GroupType = value;
OnPropertyChanged("GroupType");
}
}
/// <summary>
/// 所属电柜编号
/// </summary>
private string _PositionId;
public string PositionId
{
get { return _PositionId; }
set
{
_PositionId = value;
OnPropertyChanged("PositionId");
}
}
/// <summary>
/// 所属电柜名称
/// </summary>
private string _PositionType;
public string PositionType
{
get { return _PositionType; }
set
{
_PositionType = value;
OnPropertyChanged("PositionType");
}
}
/// <summary>
/// 所属轴卡编号
/// </summary>
private int? _CardNo;
public int? CardNo
{
get { return _CardNo; }
set
{
_CardNo = value;
OnPropertyChanged("CardNo");
}
}
/// <summary>
/// 所属节点编号
/// </summary>
private ushort _NodeId;
public ushort NodeId
{
get { return _NodeId; }
set
{
_NodeId = value;
OnPropertyChanged("NodeId");
}
}
/// <summary>
/// 所属节点从节点编号
/// </summary>
private ushort _SlotId;
public ushort SlotId
{
get { return _SlotId; }
set
{
_SlotId = value;
OnPropertyChanged("SlotId");
}
}
/// <summary>
/// 端口编号
/// </summary>
private ushort _PortIndex;
public ushort PortIndex
{
get { return _PortIndex; }
set
{
_PortIndex = value;
OnPropertyChanged("PortIndex");
}
}
/// <summary>
/// 端口子节点编号
/// </summary>
private int? _PortSubIndex;
public int? PortSubIndex
{
get { return _PortSubIndex; }
set
{
_PortSubIndex = value;
OnPropertyChanged("PortSubIndex");
}
}
/// <summary>
/// 端口类型
/// </summary>
private int? _PortType;
public int? PortType
{
get { return _PortType; }
set
{
_PortType = value;
OnPropertyChanged("PortType");
}
}
/// <summary>
/// 端口编号
/// </summary>
private string _PortCode;
public string PortCode
{
get { return _PortCode; }
set
{
_PortCode = value;
OnPropertyChanged("PortCode");
}
}
/// <summary>
/// 端口名
/// </summary>
private string _PortName;
public string PortName
{
get { return _PortName; }
set
{
_PortName = value;
OnPropertyChanged("PortName");
}
}
/// 默认信号
/// </summary>
private int _DefaultSign;
public int DefaultSign
{
get { return _DefaultSign; }
set
{
_DefaultSign = value;
OnPropertyChanged("DefaultSign");
}
}
/// <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()
{
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;
}
}
}