|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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 BaseEntity
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// SysDefineColumn
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class SysDefineColumnEntity: ICloneable
|
|
|
{
|
|
|
public string RecId { get; set; }
|
|
|
public string TableName { get; set; }
|
|
|
public string ColumnName { get; set; }
|
|
|
public int? ColumnIndex { get; set; }
|
|
|
public byte? IsMulitiline { get; set; }
|
|
|
public string ColumnType { get; set; }
|
|
|
public int? ColumnLength { get; set; }
|
|
|
public string ColumnHeader { get; set; }
|
|
|
public string ColumnDesc { get; set; }
|
|
|
public byte? ValidationType { get; set; }
|
|
|
public string ValidationPool { get; set; }
|
|
|
public string ValidationId { get; set; }
|
|
|
public string ValidationName { get; set; }
|
|
|
public byte? IsShowInEdit { get; set; }
|
|
|
public byte? IsShowInGrid { get; set; }
|
|
|
public byte? IsKeyWord { get; set; }
|
|
|
public byte? IsCode { get; set; }
|
|
|
public int? DefaultGridLength { get; set; }
|
|
|
public byte? IsRequired { get; set; }
|
|
|
public string CreateBy { get; set; }
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
public string ModifyBy { get; set; }
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
public byte? IsActive { get; set; }
|
|
|
|
|
|
|
|
|
public object Clone()
|
|
|
{
|
|
|
SysDefineColumnEntity obj = new SysDefineColumnEntity();
|
|
|
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 SysDefineColumnEntity
|
|
|
{
|
|
|
public string CreateByShow { get; set; }
|
|
|
public string ModifyByShow { get; set; }
|
|
|
}
|
|
|
} |