///////////////////////////////////////////////////////////////// // // (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 { /// /// SysDebug /// [Serializable] public partial class SysDebugEntity : ViewModelBase, ICloneable { /// /// /// private string _RecId; public string RecId { get { return _RecId; } set { _RecId = value; OnPropertyChanged("RecId"); } } /// /// 日志类型 /// private int? _LogType; public int? LogType { get { return _LogType; } set { _LogType = value; OnPropertyChanged("LogType"); } } /// /// 操作页面 /// private string _LogPage; public string LogPage { get { return _LogPage; } set { _LogPage = value; OnPropertyChanged("LogPage"); } } /// /// 操作功能 /// private string _LogFunction; public string LogFunction { get { return _LogFunction; } set { _LogFunction = value; OnPropertyChanged("LogFunction"); } } /// /// 操作节点 /// private string _LogIndex; public string LogIndex { get { return _LogIndex; } set { _LogIndex = value; OnPropertyChanged("LogIndex"); } } /// /// 日志详情 /// private string _LogDetail; public string LogDetail { get { return _LogDetail; } set { _LogDetail = value; OnPropertyChanged("LogDetail"); } } /// /// 调试编号 /// private string _DebugCode; public string DebugCode { get { return _DebugCode; } set { _DebugCode = value; OnPropertyChanged("DebugCode"); } } /// /// 调试标题 /// private string _DebugName; public string DebugName { get { return _DebugName; } set { _DebugName = value; OnPropertyChanged("DebugName"); } } /// /// /// 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() { SysDebugEntity obj = new SysDebugEntity(); 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; } } }