using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WMS.Attirubte { /// /// /// //[System.AttributeUsage(System.AttributeTargets.Class | // System.AttributeTargets.Struct| AttributeTargets.Field)] public class TableClmAttribute : Attribute { public TableClmAttribute() { noSelect = true; } /// /// 表的名称 /// public string TableName = string.Empty; /// /// 字段的关联表 /// public string ClmJoinTable = string.Empty; /// /// 指定通用查询时关联表显示的列 /// public string JoinTableClmName = string.Empty; /// /// 关联表的查询条件列 /// public string JoinTableWhere = string.Empty; /// /// 关联列 /// public string JoinTableClm = string.Empty; private bool noSelect = true; /// /// 不进行通用查询(默认进行查询) /// public bool NoSelect { set { noSelect = value; } get { return noSelect; } } /// /// 指定下拉的值,不从数据查询,%分割显示和值,以|进行分割有多少值比如 是%1|否%0 /// public string ColumnData =string.Empty; /// /// 关联的字段在该modle 的名称 /// public string ClassName = string.Empty; } }