///////////////////////////////////////////////////////////////// // // (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; namespace GummingEntity { /// /// SysWord /// [Serializable] public partial class SysWordEntity : ICloneable { /// /// /// public string RecId { get; set; } /// /// 分组 /// public string WordGroup { get; set; } /// /// 描述 /// public string WordDesc { get; set; } /// /// 解决方法 /// public string WordInstruction { get; set; } /// /// 类型 /// public int? WordType { get; set; } /// /// 关键字 /// public string WordCode { get; set; } /// /// 名称 /// public string WordName { get; set; } /// /// /// public int? OrderBy { get; set; } /// /// /// public string CreateBy { get; set; } /// /// /// public DateTime? CreateTime { get; set; } /// /// /// public string ModifyBy { get; set; } /// /// /// public DateTime? ModifyTime { get; set; } /// /// /// public int? IsActive { get; set; } public object Clone() { SysWordEntity obj = new SysWordEntity(); 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; } } public partial class SysWordEntity { public string CreateByDisplayer { get; set; } public string ModifyByDisplayer { get; set; } } [Serializable] public class SysWordLogEntity : SysWordEntity { public string LogId { get; set; } public DateTime? OperTime { get; set; } public string OperUser { get; set; } public string OperType { get; set; } public string OperInfo { get; set; } public string OperUserDisplayer { get; set; } } }