|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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>
|
|
|
/// SysWarning
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class SysWarningEntity : ViewModelBase, ICloneable
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _RecId;
|
|
|
public string RecId
|
|
|
{
|
|
|
get { return _RecId; }
|
|
|
set
|
|
|
{
|
|
|
_RecId = value;
|
|
|
OnPropertyChanged("RecId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 关联工作流
|
|
|
/// </summary>
|
|
|
private string _RefFlow;
|
|
|
public string RefFlow
|
|
|
{
|
|
|
get { return _RefFlow; }
|
|
|
set
|
|
|
{
|
|
|
_RefFlow = value;
|
|
|
OnPropertyChanged("RefFlow");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 关联告警
|
|
|
/// </summary>
|
|
|
private string _RefWarn;
|
|
|
public string RefWarn
|
|
|
{
|
|
|
get { return _RefWarn; }
|
|
|
set
|
|
|
{
|
|
|
_RefWarn = value;
|
|
|
OnPropertyChanged("RefWarn");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 日志类型
|
|
|
/// </summary>
|
|
|
private int _LogType;
|
|
|
public int LogType
|
|
|
{
|
|
|
get { return _LogType; }
|
|
|
set
|
|
|
{
|
|
|
_LogType = value;
|
|
|
OnPropertyChanged("LogType");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 报警编码
|
|
|
/// </summary>
|
|
|
private string _LogCode;
|
|
|
public string LogCode
|
|
|
{
|
|
|
get { return _LogCode; }
|
|
|
set
|
|
|
{
|
|
|
_LogCode = value;
|
|
|
OnPropertyChanged("LogCode");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 日志详情
|
|
|
/// </summary>
|
|
|
private string _LogDetail;
|
|
|
public string LogDetail
|
|
|
{
|
|
|
get { return _LogDetail; }
|
|
|
set
|
|
|
{
|
|
|
_LogDetail = value;
|
|
|
OnPropertyChanged("LogDetail");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 开始时间
|
|
|
/// </summary>
|
|
|
private DateTime? _StartTime;
|
|
|
public DateTime? StartTime
|
|
|
{
|
|
|
get { return _StartTime; }
|
|
|
set
|
|
|
{
|
|
|
_StartTime = value;
|
|
|
OnPropertyChanged("StartTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 结束时间
|
|
|
/// </summary>
|
|
|
private DateTime? _EndTime;
|
|
|
public DateTime? EndTime
|
|
|
{
|
|
|
get { return _EndTime; }
|
|
|
set
|
|
|
{
|
|
|
_EndTime = value;
|
|
|
OnPropertyChanged("EndTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 报警编号
|
|
|
/// </summary>
|
|
|
private string _WarnCode;
|
|
|
public string WarnCode
|
|
|
{
|
|
|
get { return _WarnCode; }
|
|
|
set
|
|
|
{
|
|
|
_WarnCode = value;
|
|
|
OnPropertyChanged("WarnCode");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 报警标题
|
|
|
/// </summary>
|
|
|
private string _WarnName;
|
|
|
public string WarnName
|
|
|
{
|
|
|
get { return _WarnName; }
|
|
|
set
|
|
|
{
|
|
|
_WarnName = value;
|
|
|
OnPropertyChanged("WarnName");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 工位编号
|
|
|
/// </summary>
|
|
|
private string _StationCode;
|
|
|
public string StationCode
|
|
|
{
|
|
|
get { return _StationCode; }
|
|
|
set
|
|
|
{
|
|
|
_StationCode = value;
|
|
|
OnPropertyChanged("StationCode");
|
|
|
}
|
|
|
}
|
|
|
/// <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()
|
|
|
{
|
|
|
SysWarningEntity obj = new SysWarningEntity();
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
} |