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